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
Creates new form FrmRol
public FrmRol() { initComponents(); this.CONTROL = new ControlRol(); this.listar(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public FrmInsertar() {\n initComponents();\n }", "public FrmCrearEmpleado() {\n initComponents();\n tFecha.setDate(new Date());\n }", "private void createBtnActionPerformed(java.awt.event.ActionEvent evt) {\n\n staff.setName(regName.getText());\n staff.setID(regID.getText());\n staff.setPassword(regPwd.getText());\n staff.setPosition(regPos.getSelectedItem().toString());\n staff.setGender(regGender.getSelectedItem().toString());\n staff.setEmail(regEmail.getText());\n staff.setPhoneNo(regPhone.getText());\n staff.addStaff();\n if (staff.getPosition().equals(\"Vet\")) {\n Vet vet = new Vet();\n vet.setExpertise(regExp.getSelectedItem().toString());\n vet.setExpertise_2(regExp2.getSelectedItem().toString());\n vet.addExpertise(staff.getID());\n }\n JOptionPane.showMessageDialog(null, \"User added to database\");\n updateJTable();\n }", "public String nuevo() {\n\n\t\tLOG.info(\"Submitado formulario, accion nuevo\");\n\t\tString view = \"/alumno/form\";\n\n\t\t// las validaciones son correctas, por lo cual los datos del formulario estan en\n\t\t// el atributo alumno\n\n\t\t// TODO simular index de la bbdd\n\t\tint id = this.alumnos.size();\n\t\tthis.alumno.setId(id);\n\n\t\tLOG.debug(\"alumno: \" + this.alumno);\n\n\t\t// TODO comprobar edad y fecha\n\n\t\talumnos.add(alumno);\n\t\tview = VIEW_LISTADO;\n\t\tmockAlumno();\n\n\t\t// mensaje flash\n\t\tFacesContext facesContext = FacesContext.getCurrentInstance();\n\t\tExternalContext externalContext = facesContext.getExternalContext();\n\t\texternalContext.getFlash().put(\"alertTipo\", \"success\");\n\t\texternalContext.getFlash().put(\"alertMensaje\", \"Alumno \" + this.alumno.getNombre() + \" creado con exito\");\n\n\t\treturn view + \"?faces-redirect=true\";\n\t}", "public FrmNuevoEmpleado() {\n initComponents();\n }", "public crud_empleados() {\n initComponents();\n txt_usuario1.setEditable(false);\n Mostrar();\n \n\n\n }", "public FormInserir() {\n initComponents();\n }", "public ControllerRol() {\n }", "public static void create(Formulario form){\n daoFormulario.create(form);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n bindingGroup = new org.jdesktop.beansbinding.BindingGroup();\n\n entityManager1 = java.beans.Beans.isDesignTime() ? null : javax.persistence.Persistence.createEntityManagerFactory(\"facturacionMueblesDesktopPU\").createEntityManager();\n query1 = java.beans.Beans.isDesignTime() ? null : entityManager1.createQuery(\"Select r from Rol r\");\n list1 = java.beans.Beans.isDesignTime() ? java.util.Collections.emptyList() : query1.getResultList();\n jButton1 = new javax.swing.JButton();\n jPanel1 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n nombreTxt = new javax.swing.JTextField();\n jLabel3 = new javax.swing.JLabel();\n cedulaTxt = new javax.swing.JTextField();\n jLabel2 = new javax.swing.JLabel();\n mailTxt = new javax.swing.JTextField();\n jLabel4 = new javax.swing.JLabel();\n telefonotxt = new javax.swing.JTextField();\n jLabel5 = new javax.swing.JLabel();\n direccionTxt = new javax.swing.JTextField();\n jPanel2 = new javax.swing.JPanel();\n jLabel6 = new javax.swing.JLabel();\n usernameTxt = new javax.swing.JTextField();\n jLabel8 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n roles = new javax.swing.JComboBox();\n passwordTxt = new javax.swing.JPasswordField();\n\n getContentPane().setLayout(null);\n\n jButton1.setFont(new java.awt.Font(\"Lucida Grande\", 1, 12)); // NOI18N\n jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/ortega/miriam/imagenes/save.png\"))); // NOI18N\n jButton1.setText(\"Guardar\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n getContentPane().add(jButton1);\n jButton1.setBounds(243, 390, 150, 40);\n\n jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"Datos generales\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Abadi MT Condensed Extra Bold\", 1, 14))); // NOI18N\n jPanel1.setLayout(null);\n\n jLabel1.setFont(new java.awt.Font(\"Lucida Grande\", 1, 13)); // NOI18N\n jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jLabel1.setText(\"Nombres:\");\n jPanel1.add(jLabel1);\n jLabel1.setBounds(10, 30, 127, 16);\n jPanel1.add(nombreTxt);\n nombreTxt.setBounds(160, 30, 200, 28);\n\n jLabel3.setFont(new java.awt.Font(\"Lucida Grande\", 1, 13)); // NOI18N\n jLabel3.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jLabel3.setText(\"Cédula:\");\n jPanel1.add(jLabel3);\n jLabel3.setBounds(20, 60, 120, 16);\n jPanel1.add(cedulaTxt);\n cedulaTxt.setBounds(160, 60, 200, 28);\n\n jLabel2.setFont(new java.awt.Font(\"Lucida Grande\", 1, 13)); // NOI18N\n jLabel2.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jLabel2.setText(\"Correo electrónico:\");\n jPanel1.add(jLabel2);\n jLabel2.setBounds(10, 90, 130, 20);\n jPanel1.add(mailTxt);\n mailTxt.setBounds(160, 90, 200, 28);\n\n jLabel4.setFont(new java.awt.Font(\"Lucida Grande\", 1, 13)); // NOI18N\n jLabel4.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jLabel4.setText(\"Teléfono:\");\n jPanel1.add(jLabel4);\n jLabel4.setBounds(10, 120, 130, 20);\n jPanel1.add(telefonotxt);\n telefonotxt.setBounds(160, 120, 200, 28);\n\n jLabel5.setFont(new java.awt.Font(\"Lucida Grande\", 1, 13)); // NOI18N\n jLabel5.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jLabel5.setText(\"Dirección:\");\n jPanel1.add(jLabel5);\n jLabel5.setBounds(10, 150, 130, 20);\n jPanel1.add(direccionTxt);\n direccionTxt.setBounds(160, 150, 200, 28);\n\n getContentPane().add(jPanel1);\n jPanel1.setBounds(10, 20, 380, 200);\n\n jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"Credenciales\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Abadi MT Condensed Extra Bold\", 1, 14))); // NOI18N\n jPanel2.setLayout(null);\n\n jLabel6.setFont(new java.awt.Font(\"Lucida Grande\", 1, 13)); // NOI18N\n jLabel6.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jLabel6.setText(\"Usuario:\");\n jPanel2.add(jLabel6);\n jLabel6.setBounds(10, 20, 130, 20);\n jPanel2.add(usernameTxt);\n usernameTxt.setBounds(160, 20, 200, 28);\n\n jLabel8.setFont(new java.awt.Font(\"Lucida Grande\", 1, 13)); // NOI18N\n jLabel8.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jLabel8.setText(\"Clave:\");\n jPanel2.add(jLabel8);\n jLabel8.setBounds(10, 50, 130, 20);\n\n jLabel7.setFont(new java.awt.Font(\"Lucida Grande\", 1, 13)); // NOI18N\n jLabel7.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jLabel7.setText(\"Rol:\");\n jPanel2.add(jLabel7);\n jLabel7.setBounds(10, 80, 130, 20);\n\n org.jdesktop.swingbinding.JComboBoxBinding jComboBoxBinding = org.jdesktop.swingbinding.SwingBindings.createJComboBoxBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, list1, roles);\n bindingGroup.addBinding(jComboBoxBinding);\n\n jPanel2.add(roles);\n roles.setBounds(160, 80, 200, 30);\n jPanel2.add(passwordTxt);\n passwordTxt.setBounds(160, 50, 200, 28);\n\n getContentPane().add(jPanel2);\n jPanel2.setBounds(10, 240, 380, 140);\n\n bindingGroup.bind();\n\n setBounds(0, 0, 411, 458);\n }", "public void CrearNew(ActionEvent e) {\n List<Pensum> R = ejbFacade.existePensumID(super.getSelected().getIdpensum());\n if(R.isEmpty()){\n super.saveNew(e);\n }else{\n new Auxiliares().setMsj(3,\"PENSUM ID YA EXISTE\");\n }\n }", "@Override\n\tpublic int create(Rol r) {\n\t\treturn rolDao.create(r);\n\t}", "public frm_tutor_subida_prueba() {\n }", "public FrmNuevoProveedor() {\n initComponents();\n }", "public String crea() {\n c.setId(0);\n clienteDAO.crea(c); \n //Post-Redirect-Get\n return \"visualiza?faces-redirect=true&id=\"+c.getId();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jTextField2 = new javax.swing.JTextField();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n txtID = new javax.swing.JTextField();\n txtRol = new javax.swing.JTextField();\n jScrollPane1 = new javax.swing.JScrollPane();\n jTable = new javax.swing.JTable();\n btnSave = new javax.swing.JButton();\n btnSearch = new javax.swing.JButton();\n btnNew = new javax.swing.JButton();\n btnUpdate = new javax.swing.JButton();\n btnDelete = new javax.swing.JButton();\n btnList = new javax.swing.JButton();\n btnCancel = new javax.swing.JButton();\n\n jTextField2.setText(\"jTextField2\");\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jLabel1.setText(\"ID Rol:\");\n\n jLabel2.setText(\"Rol:\");\n\n txtID.setEnabled(false);\n\n txtRol.setEnabled(false);\n\n jTable.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n \"idRol\", \"Rol\"\n }\n ));\n jScrollPane1.setViewportView(jTable);\n\n btnSave.setText(\"Guardar\");\n btnSave.setEnabled(false);\n btnSave.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnSaveActionPerformed(evt);\n }\n });\n\n btnSearch.setText(\"Buscar\");\n\n btnNew.setText(\"Nuevo\");\n btnNew.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnNewActionPerformed(evt);\n }\n });\n\n btnUpdate.setText(\"Actualizar\");\n\n btnDelete.setText(\"Eliminar\");\n btnDelete.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnDeleteActionPerformed(evt);\n }\n });\n\n btnList.setText(\"Listar\");\n btnList.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnListActionPerformed(evt);\n }\n });\n\n btnCancel.setText(\"Cancelar\");\n btnCancel.setEnabled(false);\n btnCancel.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnCancelActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap(36, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(layout.createSequentialGroup()\n .addGap(11, 11, 11)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel2)\n .addComponent(jLabel1))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(txtID, javax.swing.GroupLayout.DEFAULT_SIZE, 396, Short.MAX_VALUE)\n .addComponent(txtRol)))\n .addGroup(layout.createSequentialGroup()\n .addComponent(btnSave, javax.swing.GroupLayout.DEFAULT_SIZE, 227, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(btnCancel, javax.swing.GroupLayout.PREFERRED_SIZE, 224, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(btnSearch, javax.swing.GroupLayout.DEFAULT_SIZE, 156, Short.MAX_VALUE)\n .addComponent(btnNew, javax.swing.GroupLayout.DEFAULT_SIZE, 156, Short.MAX_VALUE)))\n .addGroup(layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(btnUpdate, javax.swing.GroupLayout.DEFAULT_SIZE, 157, Short.MAX_VALUE)\n .addComponent(btnDelete, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btnList, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(53, 53, 53)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(txtID, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnNew))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(txtRol, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnSearch))\n .addGap(7, 7, 7)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(btnSave)\n .addComponent(btnCancel))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 116, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(btnUpdate)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(btnDelete)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(btnList)))\n .addGap(0, 42, Short.MAX_VALUE))\n );\n\n pack();\n }", "@Command\n\tpublic void nuevoAnalista(){\n\t\tMap<String, Object> parametros = new HashMap<String, Object>();\n\n\t\t//parametros.put(\"recordMode\", \"NEW\");\n\t\tllamarFormulario(\"formularioAnalistas.zul\", null);\n\t}", "public CreateAccount() {\n initComponents();\n selectionall();\n }", "public String actionCreateNew() {\r\n \t\tsetBook(new Book());\r\n \t\treturn \"new\";\r\n \t}", "public creacionempresa() {\n initComponents();\n mostrardatos();\n }", "public void crear() {\n con = new Conexion();\n con.setInsertar(\"insert into lenguajes_programacion (nombre, fecha_creacion, estado) values ('\"+this.getNombre()+\"', '\"+this.getFecha_creacion()+\"', 'activo')\");\n }", "@Override\n\tpublic void createForm(ERForm form) {\n\t\t\tString sql = \"insert into project1.reimbursementInfo (userName, fullName, thedate, eventstartdate, thelocation, description, thecost, gradingformat, passingpercentage, eventtype, filename,status,reason) values (?,?,?,?,?,?,?,?,?,?,?,?,?);\";\n\t\t\ttry {PreparedStatement stmt = conn.prepareCall(sql);\n\t\t\t//RID should auto increment, so this isnt necessary\n\t\t\t\n\t\t\tstmt.setString(1, form.getUserName());\n\t\t\tstmt.setString(2, form.getFullName());\n\t\t\tstmt.setDate(3, Date.valueOf(form.getTheDate()));\n\t\t\tstmt.setDate(4, Date.valueOf(form.getEventStartDate()));\n\t\t\tstmt.setString(5, form.getTheLocation());\n\t\t\tstmt.setString(6, form.getDescription());\n\t\t\tstmt.setDouble(7, form.getTheCost());\n\t\t\tstmt.setString(8, form.getGradingFormat());\n\t\t\tstmt.setString(9, form.getPassingPercentage());\n\t\t\tstmt.setString(10, form.getEventType());\n\t\t\tstmt.setString(11, form.getFileName());\n\t\t\tstmt.setString(12, \"pending\");\n\t\t\tstmt.setString(13, \"\");\n\t\t\tstmt.executeUpdate();\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public FrmIntProveedor() {\n initComponents();\n muestraProveedor();\n\n }", "public ViewCreatePagamento() {\n initComponents();\n clientesDAO cDAO = DaoFactory.createClientesDao(); \n matriculaDAO mDAO = DaoFactory.createMatriculaDao();\n \n cmbIDClientes.addItem(null);\n cDAO.findAll().forEach((p) -> {\n cmbIDClientes.addItem(p.getNome());\n });\n \n \n txtDataAtual.setText(DateFormat.getDateInstance().format(new Date()));\n }", "public registro() {\n initComponents();\n }", "public FrmCrearFotoEmpresa() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jTFNombreRol = new javax.swing.JTextField();\n jScrollPane1 = new javax.swing.JScrollPane();\n jTADescripcionRol = new javax.swing.JTextArea();\n jBCancelarRol = new javax.swing.JButton();\n jBAceptarRol = new javax.swing.JButton();\n\n setBackground(java.awt.Color.white);\n setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/proyectopuntodeventa/logo.png\"))); // NOI18N\n add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(830, 0, -1, -1));\n\n jLabel2.setFont(new java.awt.Font(\"Dialog\", 1, 24)); // NOI18N\n jLabel2.setForeground(java.awt.Color.black);\n jLabel2.setText(\"Registro de roles\");\n add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(410, 30, -1, -1));\n\n jLabel3.setFont(new java.awt.Font(\"Dialog\", 1, 18)); // NOI18N\n jLabel3.setForeground(java.awt.Color.black);\n jLabel3.setText(\"Nombre\");\n add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(220, 140, -1, -1));\n\n jLabel4.setFont(new java.awt.Font(\"Dialog\", 1, 18)); // NOI18N\n jLabel4.setForeground(java.awt.Color.black);\n jLabel4.setText(\"Descripcion\");\n add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(220, 220, -1, -1));\n\n jTFNombreRol.setBackground(java.awt.Color.white);\n jTFNombreRol.setFont(new java.awt.Font(\"Dialog\", 0, 18)); // NOI18N\n jTFNombreRol.setForeground(java.awt.Color.black);\n add(jTFNombreRol, new org.netbeans.lib.awtextra.AbsoluteConstraints(340, 140, 310, 30));\n\n jTADescripcionRol.setBackground(java.awt.Color.white);\n jTADescripcionRol.setColumns(20);\n jTADescripcionRol.setFont(new java.awt.Font(\"Dialog\", 0, 18)); // NOI18N\n jTADescripcionRol.setRows(5);\n jScrollPane1.setViewportView(jTADescripcionRol);\n\n add(jScrollPane1, new org.netbeans.lib.awtextra.AbsoluteConstraints(340, 220, 310, 110));\n\n jBCancelarRol.setBackground(java.awt.Color.red);\n jBCancelarRol.setFont(new java.awt.Font(\"Dialog\", 1, 18)); // NOI18N\n jBCancelarRol.setForeground(java.awt.Color.black);\n jBCancelarRol.setText(\"Cancelar\");\n jBCancelarRol.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jBCancelarRolActionPerformed(evt);\n }\n });\n add(jBCancelarRol, new org.netbeans.lib.awtextra.AbsoluteConstraints(320, 402, 120, 50));\n\n jBAceptarRol.setBackground(java.awt.Color.green);\n jBAceptarRol.setFont(new java.awt.Font(\"Dialog\", 1, 18)); // NOI18N\n jBAceptarRol.setForeground(java.awt.Color.black);\n jBAceptarRol.setText(\"Aceptar\");\n jBAceptarRol.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jBAceptarRolActionPerformed(evt);\n }\n });\n add(jBAceptarRol, new org.netbeans.lib.awtextra.AbsoluteConstraints(560, 402, 120, 50));\n }", "@GetMapping(\"/restaurante/new\")\n\tpublic String newRestaurante(Model model) {\n\t\tmodel.addAttribute(\"restaurante\", new Restaurante());\n\t\tControllerHelper.setEditMode(model, false);\n\t\tControllerHelper.addCategoriasToRequest(categoriaRestauranteRepository, model);\n\t\t\n\t\treturn \"restaurante-cadastro\";\n\t\t\n\t}", "public CrearPedidos() {\n initComponents();\n }", "@RequestMapping(value = \"/new\", method = RequestMethod.GET)\n public String newRole(Model model) {\n model.addAttribute(\"roleCreate\", new CreateRoleDTO());\n return (WebUrls.URL_ROLE+\"/new\");\n }", "public void setRol(String rol) {\r\n\t\tthis.rol = rol;\r\n\t}", "public FrmFerramentas() throws IOException {\n initComponents();\n SelecionaLocal();\n //PreencheLook();\n }", "public ReservaBean() {\r\n nrohabitacion=1;\r\n createLista(nrohabitacion);\r\n editable=true;\r\n sino=\"\";\r\n \r\n reserva = new TReserva();\r\n }", "public frmAdministracion() {\n initComponents();\n skin();\n DaoAdministracion da = new DaoAdministracion();\n da.setAdministracion(txtMedioAdministracion.getText());\n tblAdministracion.setModel(da.listar());\n\n }", "public FrmCadUsuario() {\n initComponents();\n Connection conexao = new Conexao().getConnection();\n\n txtId.setEnabled(false);\n lista = usuarioController.getUsuarios();\n if (lista.isEmpty()) {\n JOptionPane.showMessageDialog(null, \"Ainda não foram cadastrados usuários\");\n } else {\n mostrarDados();\n }\n }", "public FrmInicioSesion() {\n initComponents();\n\n }", "@Override\n\tpublic Rol edit(Rol p) {\n\t\treturn dao.save(p);\n\t}", "public FrmCalculadora() {\n initComponents();\n }", "@GetMapping(\"/createRegistro\")\n\tpublic String crearValidacion(Model model) {\n\t\tList<Barrio> localidades = barrioService.obtenerBarrios();\n\t\tmodel.addAttribute(\"localidades\",localidades);\n\t\tmodel.addAttribute(\"persona\",persona);\n\t\tmodel.addAttribute(\"validacion\",validacion);\n\t\tmodel.addAttribute(\"registro\",registro);\n\t\tmodel.addAttribute(\"barrio\",barrio);\n\t\treturn \"RegistroForm\";\n\t}", "public frmPrincipal() {\n initComponents(); \n inicializar();\n \n }", "@RequestMapping(params = \"new\", method = RequestMethod.GET)\n\t@PreAuthorize(\"hasRole('ADMIN')\")\n\tpublic String createProductForm(Model model) { \t\n \t\n\t\t//Security information\n\t\tmodel.addAttribute(\"admin\",security.isAdmin()); \n\t\tmodel.addAttribute(\"loggedUser\", security.getLoggedInUser());\n\t\t\n\t model.addAttribute(\"product\", new Product());\n\t return \"products/newProduct\";\n\t}", "public FrmNuevoAlumno() {\n initComponents();\n obtenerCarreras();\n comboCarrera.setSelectedIndex(-1);\n obtenerDependencias();\n comboPlantel.setSelectedIndex(-1);\n mostrarAlumnos();\n deshabilitar();\n lblId.setVisible(false);\n }", "public FrmClienteEsc() {\n initComponents();\n }", "public FrmFactura() {\n initComponents();\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\ttry {\n\n\t\t\t\t\tString nomSaisi = txtNomPersonnel.getText();\n\t\t\t\t\tString motDePasseSaisi = txtMotDePassePersonnel.getText();\n\t\t\t\t\tString roleChoisi = comboRoles.getSelectedItem().toString();\n\n\t\t\t\t\tif (!nomSaisi.isEmpty() && !motDePasseSaisi.isEmpty() && !roleChoisi.isEmpty()) {\n\t\t\t\t\t\t//ajout d'un nouveau personnel dans la bdd\n\t\t\t\t\t\tPersonnelMger.getInstance().addPersonnel(nomSaisi, motDePasseSaisi, roleChoisi);\n\t\t\t\t\t\t//fermer la boite de dialogue\n\t\t\t\t\t\tNewPersonnelDialog.this.setVisible(false);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\talert.showMessageDialog(null, \"Cet identifiant existe déjà !\", \"Erreur\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\t}\n\n\t\t\t}", "public void agregarNuevoUsuario(){\n //recupero objeto rol usuario\n usuarioBean.getUsuario().setRol(new ListadoRoles().getListaRoles().get(1));\n usuarioBean.agregarUsuario(); \n FacesContext context = FacesContext.getCurrentInstance(); \n context.addMessage(null, new FacesMessage(\"Éxito\", \"Se agregó un Usuario correctamente.\" )); \n RequestContext.getCurrentInstance().execute(\"PF('dlgAltaUsuario').hide();\");\n }", "public FrmCadastro() {\n initComponents();\n\n }", "public FormCadastroAutomovel() {\n initComponents();\n }", "@RequestMapping(value = \"/create\", method = RequestMethod.GET)\n public String create(Model model) {\n model.addAttribute(\"roles\", getAllRoles());\n return \"object/create\";\n }", "public FrmAbmAfiliado() {\n initComponents();\n }", "public frmUsuarios() {\n initComponents();\n mostrar(\"\");\n inhabilitar();\n }", "public void agregarNuevoUsuarioAdmin(){\n //recupero objeto rol administrador\n usuario.setRol(new ListadoRoles().getListaRoles().get(0));\n usuarioBean.setUsuario(usuario);\n usuarioBean.agregarUsuario();\n FacesContext context = FacesContext.getCurrentInstance(); \n context.addMessage(null, new FacesMessage(\"Éxito\", \"Se agregó un Usuario Administrador correctamente.\" ));\n RequestContext.getCurrentInstance().execute(\"PF('dlgAltaUsuario').hide();\");\n }", "public NewUser() {\n initComponents();\n }", "public CrearProductos() {\n initComponents();\n }", "public frmPrincipal() {\n initComponents();\n }", "public Rol() {}", "public CadastroProdutoNew() {\n initComponents();\n }", "public ProductCreate() {\n initComponents();\n }", "public FrmGestion(FrmMenu menu) {\n this.menu=menu;\n initComponents();\n ConstruyeTablaGestion();\n }", "public void registrarMateria() {\n materia.setIdDepartamento(departamento);\n ejbFacade.create(materia);\n RequestContext requestContext = RequestContext.getCurrentInstance();\n requestContext.execute(\"PF('MateriaCreateDialog').hide()\");\n items = ejbFacade.findAll();\n departamento = new Departamento();\n materia = new Materia();\n\n FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_INFO, \"Información\", \"La materia se registró con éxito\");\n FacesContext.getCurrentInstance().addMessage(null, msg);\n requestContext.update(\"msg\");//Actualiza la etiqueta growl para que el mensaje pueda ser mostrado\n\n requestContext.update(\"MateriaListForm\");\n requestContext.update(\"MateriaCreateForm\");\n }", "public editarUsuarioBean() {\r\n }", "public AddExpensesForm() {\n initComponents();\n }", "@RequestMapping(value= \"/create\", method = RequestMethod.POST)\n public String create(Film film) { //Hier gaat Spring ervanuit dat 'Film' een Java Bean is en dan gaat hij automatisch de setters gebruiken\n filmRepository.save(film);\n return \"redirect:/films\";\n }", "public FrmDatosMiembro(int Id, String nombres, String apellidos,\n String usuario, String cedula, String rol){\n \n initComponents();;\n ID = Id;\n this.TxtNombres.setText(nombres);\n this.TxtApellidos.setText(apellidos);\n this.TxtUsuario.setText(usuario);\n this.TxtCedula.setText(cedula);\n \n llenarComboBox();\n tipoMiembro(rol);\n }", "public JFrmPrincipal() {\n initComponents();\n }", "@FXML\r\n private void crearSolicitud() {\r\n try {\r\n //Carga la vista de crear solicitud rma\r\n FXMLLoader loader = new FXMLLoader();\r\n loader.setLocation(Principal.class.getResource(\"/vista/CrearSolicitud.fxml\"));\r\n BorderPane vistaCrear = (BorderPane) loader.load();\r\n\r\n //Crea un dialogo para mostrar la vista\r\n Stage dialogo = new Stage();\r\n dialogo.setTitle(\"Solicitud RMA\");\r\n dialogo.initModality(Modality.WINDOW_MODAL);\r\n dialogo.initOwner(primerStage);\r\n Scene escena = new Scene(vistaCrear);\r\n dialogo.setScene(escena);\r\n\r\n //Annadir controlador y datos\r\n ControladorCrearSolicitud controlador = loader.getController();\r\n controlador.setDialog(dialogo, primerStage);\r\n\r\n //Carga el numero de Referencia\r\n int numReferencia = DAORma.crearReferencia();\r\n\r\n //Modifica el dialogo para que no se pueda cambiar el tamaño y lo muestra\r\n dialogo.setResizable(false);\r\n dialogo.showAndWait();\r\n\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }", "public FRM_Estudiantes() {\n initComponents();\n }", "public String registrarRol() throws Exception\n {\n this.setMsg(\"\");\n String vst_mensaje=\"\";\n ArrayList list_st_comentarios = new ArrayList();\n /* Campos requeridos para registrar un funcionario */\n if(this.getIdRol() == 0)list_st_comentarios.add(\" el número\");\n if(this.getNombreRol().equals(\"\"))list_st_comentarios.add(\" el Nombre\");\n if(this.getDescripcionRol().equals(\"\"))list_st_comentarios.add(\" la Descripción\");\n\n if(!list_st_comentarios.isEmpty())\n {\n for(int i = 0; i < list_st_comentarios.size();i++)\n {\n if(list_st_comentarios.size() == 1)\n vst_mensaje = (String)list_st_comentarios.get(i)+\".\";\n else if(i == 0)\n vst_mensaje += (String)list_st_comentarios.get(i);\n else if(i == list_st_comentarios.size()-1 )\n vst_mensaje += \" y \" + (String)list_st_comentarios.get(i)+\".\";\n else\n vst_mensaje += \", \" + (String)list_st_comentarios.get(i);\n }\n vst_mensaje = \"Para Registrar un rol debe ingresar \"+ vst_mensaje;\n }\n\n if(!list_st_comentarios.isEmpty())\n {\n this.setMsg(vst_mensaje);\n return \"faltandatos\";\n }\n else\n {\n if(new ToolBean().ValidarEsNumero(Integer.toString(this.getIdRol())))\n {\n if(!new ToolBean().ValidarEsPalabra(this.getNombreRol()))\n {\n this.setMsg(\"El nombre del rol debe contener únicamente letras.\");\n return \"\";\n }\n else if(!new ToolBean().ValidarEsPalabra(this.getDescripcionRol()))\n {\n this.setMsg(\"La descripción del rol debe contener únicamente letras.\");\n return \"\";\n }\n else\n {\n Servicio.rolAgregar(this);\n //this.list_ins_RolBeanAdd(this);// <== para el PROTOTIPO\n Servicio.rolListarTodos(this);\n\n\n if(this.getIdRol() == 0)\n return \"noestaregistrado\";\n else\n {\n if(this.getMsg().equals(\"El rol ya está registrado en el sistema.\"))\n return \"yaexiste\";\n else\n return \"registrado\";\n }\n }\n }\n else\n {\n this.setMsg(\"El ID del Rol debe ser un valor numérico.\");\n return \"\";\n }\n }\n }", "public M6_UsuarioNuevo() {\n initComponents();\n }", "boolean insertarRol(String nombre) throws Exception;", "private void registrar() {\n String nombre = txtNombre.getText();\n if (!nombre.trim().isEmpty()) {\n Alumno a = new Alumno();\n \n // cont++ , ++cont\n// contIds++;\n a.setNombre(nombre);\n a.setId(++contIds);\n \n listaAlumnos.add(a);\n\n lblCantidad.setText(\"Cantidad de nombres: \" + listaAlumnos.size());\n\n txtNombre.setText(null);\n txtNombre.requestFocus();\n // Actualiza la interfaz gráfica de la tabla\n tblNombres.updateUI();\n \n// int cont = 1;\n// System.out.println(\"------------------\");\n// System.out.println(\"Listado de alumnos\");\n// System.out.println(\"------------------\");\n// for (String nom : listaNombres) {\n// System.out.println(cont+\") \"+nom);\n// cont++;\n// }\n// System.out.println(\"------------------\");\n }\n }", "private void nuevaLiga() {\r\n\t\tif(Gestion.isModificado()){\r\n\t\t\tint opcion = JOptionPane.showOptionDialog(null, \"¿Desea guardar los cambios?\", \"Nueva Liga\", JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, null,null, null);\r\n\t\t\tswitch(opcion){\r\n\t\t\tcase JOptionPane.YES_OPTION:\r\n\t\t\t\tguardar();\r\n\t\t\t\tbreak;\r\n\t\t\tcase JOptionPane.NO_OPTION:\r\n\t\t\t\tGestion.reset();\r\n\t\t\t\tbreak;\r\n\t\t\tcase JOptionPane.CANCEL_OPTION:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t\tGestion.reset();\r\n\t\tfrmLigaDeFtbol.setTitle(\"Liga de Fútbol\");\r\n\t}", "public frmOrdenacao() {\n initComponents();\n setResizable(false);\n ordenacaoControle = new OrdenacaoControle();\n }", "public CARGOS_REGISTRO() {\n initComponents();\n InputMap map2 = txtNombre.getInputMap(JTextField.WHEN_FOCUSED); \n map2.put(KeyStroke.getKeyStroke(KeyEvent.VK_V, Event.CTRL_MASK), \"null\");\n InputMap maps = TxtSue.getInputMap(JTextField.WHEN_FOCUSED); \n maps.put(KeyStroke.getKeyStroke(KeyEvent.VK_V, Event.CTRL_MASK), \"null\");\n InputMap map3 = txtFun.getInputMap(JTextField.WHEN_FOCUSED); \n map3.put(KeyStroke.getKeyStroke(KeyEvent.VK_V, Event.CTRL_MASK), \"null\");\n this.setLocationRelativeTo(null);\n this.txtFun.setLineWrap(true);\n this.lblId.setText(Funciones.extraerIdMax());\n\t\tsexo.addItem(\"Administrativo\");\n\t\tsexo.addItem(\"Operativo\");\n sexo.addItem(\"Tecnico\");\n sexo.addItem(\"Servicios\");\n \n }", "FORM createFORM();", "public SisRol() {\n\t}", "private void btntambahActionPerformed(java.awt.event.ActionEvent evt) {\n\tdiaTambahKelas.pack();\n\tdiaTambahKelas.setVisible(true);\n\trefreshTableKelas();\n//\tDate date = jdWaktu.getDate();\n//\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"YYYY-MM-dd\");\n//\tString strDate = dateFormat.format(date);\n//\tif (validateKelas()) {\n//\t int result = fungsi.executeUpdate(\"insert into kelas values ('\" + txtidkls.getText() + \"', '\" + txtkls.getText() + \"', '\" + txtpertemuan.getText() + \"', '\" + strDate + \"', '\" + txtRuang.getText() + \"')\");\n//\t if (result > 0) {\n//\t\trefreshTableKelas();\n//\t }\n//\t}\n\t\n }", "public static Result newForm() {\n return ok(newForm.render(palletForm, setOfArticleForm));\n }", "public ventanaCRUDEAlumos() {\n initComponents();\n \n this.setLocationRelativeTo(null);\n this.setTitle(\"Registrar Alumno\");\n }", "public rentForm() {\n initComponents();\n }", "public Frm_EliminaProducto() {\n initComponents();\n try{\n actualizarTabla();\n }catch(Exception e){\n \n }\n }", "public frmAfiliado() {\n initComponents();\n \n }", "public void ajouterRole(RoleUtilisateur ru);", "public FormUtama() {\n initComponents();\n }", "public CrearGrupos() throws SQLException {\n initComponents();\n setTitle(\"Crear Grupos\");\n setSize(643, 450);\n setLocationRelativeTo(this);\n cargarModelo();\n }", "public Asignacion_usuario_Perfil1() {\n int CodigoAplicacion = 120;\n initComponents();\n llenadoDeCombos();\n llenadoDeTablas();\n \n\n \n }", "public frmAddIncidencias() {\n initComponents();\n }", "public FormularioCliente() {\n initComponents();\n }", "public String createQuiz() {\n quiz = quizEJB.createQuiz(quiz);\n quizList = quizEJB.listQuiz();\n FacesContext.getCurrentInstance().addMessage(\"successForm:successInput\", new FacesMessage(FacesMessage.SEVERITY_INFO, \"Success\", \"New record added successfully\"));\n return \"quiz-list.xhtml\";\n }", "public String formCreated()\r\n {\r\n return formError(\"201 Created\",\"Object was created\");\r\n }", "public TorneoForm() {\n initComponents();\n }", "private void btn_cadActionPerformed(java.awt.event.ActionEvent evt) {\n \n CDs_dao c = new CDs_dao();\n TabelaCDsBean p = new TabelaCDsBean();\n \n TabelaGeneroBean ge = (TabelaGeneroBean) g_box.getSelectedItem();\n TabelaArtistaBean au = (TabelaArtistaBean) g_box2.getSelectedItem();\n\n //p.setId(Integer.parseInt(id_txt.getText()));\n p.setTitulo(nm_txt.getText());\n p.setPreco(Double.parseDouble(vr_txt.getText()));\n p.setGenero(ge);\n p.setArtista(au);\n c.create(p);\n\n nm_txt.setText(\"\");\n //isqn_txt.setText(\"\");\n vr_txt.setText(\"\");\n cd_txt.setText(\"\");\n g_box.setSelectedIndex(0);\n g_box2.setSelectedIndex(0);\n \n }", "public Add_E() {\n initComponents();\n this.setTitle(\"Add Engineer\");\n }", "public void actionPerformed(ActionEvent e) {\n\t\t\t\tvista.FormInsertarUsuario formInsertarUser = new FormInsertarUsuario();\r\n\t\t\t\tformInsertarUser.main();\r\n\t\t\t}", "public InvoiceCreate() {\n initComponents();\n }", "public formPrincipal() {\n initComponents();\n }", "@GetMapping(value = \"/create\") // https://localhost:8080/etiquetasTipoDisenio/create\n\tpublic String create(Model model) {\n\t\tetiquetasTipoDisenio etiquetasTipoDisenio = new etiquetasTipoDisenio();\n\t\tmodel.addAttribute(\"title\", \"Registro de una nuev entrega\");\n\t\tmodel.addAttribute(\"etiquetasTipoDisenio\", etiquetasTipoDisenio); // similar al ViewBag\n\t\treturn \"etiquetasTipoDisenio/form\"; // la ubicacion de la vista\n\t}", "public JfrmPrincipal() {\n initComponents();\n }", "public LibrosFormBean() {\r\n libr = new ConjuntoLibro();\r\n }", "@GetMapping(\"/cliente/new\")\n\tpublic String newCliente(Model model) {\n\t\tmodel.addAttribute(\"cliente\", new Cliente());\n\t\tControllerHelper.setEditMode(model, false);\n\t\t\n\t\t\n\t\treturn \"cadastro-cliente\";\n\t\t\n\t}" ]
[ "0.6428761", "0.6399876", "0.6363038", "0.62636346", "0.62399673", "0.6225488", "0.61792374", "0.6130434", "0.6092426", "0.6050326", "0.60284996", "0.6019827", "0.5999752", "0.5934043", "0.5910763", "0.59020215", "0.588202", "0.58797103", "0.58721584", "0.5870664", "0.57924044", "0.57912135", "0.5788856", "0.5753243", "0.575184", "0.5736932", "0.5730321", "0.571566", "0.5712764", "0.5708645", "0.57074517", "0.5706304", "0.56806415", "0.56788254", "0.5676822", "0.5666316", "0.56644744", "0.5661028", "0.56594735", "0.56594664", "0.56533366", "0.56528395", "0.564686", "0.56338215", "0.5629274", "0.5628984", "0.5621916", "0.56168413", "0.5603485", "0.55904454", "0.55775434", "0.55680823", "0.5550088", "0.5530438", "0.5515989", "0.5510211", "0.55007756", "0.55005556", "0.5496338", "0.54925513", "0.54892623", "0.5486792", "0.5482599", "0.54812294", "0.5479483", "0.54769564", "0.5476339", "0.54747003", "0.5469854", "0.54663414", "0.5465053", "0.5463141", "0.5460135", "0.5460113", "0.54600686", "0.5455457", "0.5454802", "0.5451952", "0.5450678", "0.5448278", "0.54446834", "0.5441505", "0.54402804", "0.54358673", "0.5433735", "0.5421651", "0.5418133", "0.54134727", "0.5412892", "0.5412523", "0.54112506", "0.54019207", "0.5400635", "0.53971404", "0.53914773", "0.5391434", "0.53870696", "0.5384659", "0.5380062", "0.5379381" ]
0.71435463
0
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { panelRolLista = new javax.swing.JTabbedPane(); jPanel1 = new javax.swing.JPanel(); jScrollPane1 = new javax.swing.JScrollPane(); tablaRoles = new javax.swing.JTable(); lblTotalRegistros = new javax.swing.JLabel(); setBackground(new java.awt.Color(255, 255, 255)); setBorder(javax.swing.BorderFactory.createEtchedBorder()); setIconifiable(true); setMaximizable(true); setResizable(true); setTitle("Roles"); jPanel1.setBackground(new java.awt.Color(255, 255, 255)); tablaRoles.setFont(new java.awt.Font("Arial", 0, 16)); // NOI18N tablaRoles.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { }, new String [] { } )); jScrollPane1.setViewportView(tablaRoles); lblTotalRegistros.setFont(new java.awt.Font("Arial", 0, 16)); // NOI18N lblTotalRegistros.setText("Registros"); javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout.setHorizontalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 1211, Short.MAX_VALUE) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup() .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(lblTotalRegistros, javax.swing.GroupLayout.PREFERRED_SIZE, 336, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap()) ); jPanel1Layout.setVerticalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addContainerGap() .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 219, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18) .addComponent(lblTotalRegistros) .addContainerGap(325, Short.MAX_VALUE)) ); panelRolLista.addTab("Listado", jPanel1); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(panelRolLista) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(panelRolLista) ); pack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n initComponents();\n }", "public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }", "public FormListRemarking() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n \n }", "public FormPemilihan() {\n initComponents();\n }", "public GUIForm() { \n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "public TorneoForm() {\n initComponents();\n }", "public FormCompra() {\n initComponents();\n }", "public muveletek() {\n initComponents();\n }", "public Interfax_D() {\n initComponents();\n }", "public quanlixe_form() {\n initComponents();\n }", "public SettingsForm() {\n initComponents();\n }", "public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public Soru1() {\n initComponents();\n }", "public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }", "public soal2GUI() {\n initComponents();\n }", "public EindopdrachtGUI() {\n initComponents();\n }", "public MechanicForm() {\n initComponents();\n }", "public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }", "public BloodDonationGUI() {\n initComponents();\n }", "public quotaGUI() {\n initComponents();\n }", "public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }", "public PatientUI() {\n initComponents();\n }", "public myForm() {\n\t\t\tinitComponents();\n\t\t}", "public Oddeven() {\n initComponents();\n }", "public intrebarea() {\n initComponents();\n }", "public Magasin() {\n initComponents();\n }", "public RadioUI()\n {\n initComponents();\n }", "public NewCustomerGUI() {\n initComponents();\n }", "public ZobrazUdalost() {\n initComponents();\n }", "public FormUtama() {\n initComponents();\n }", "public p0() {\n initComponents();\n }", "public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }", "public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }", "public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }", "public form2() {\n initComponents();\n }", "public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}", "public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }", "public kunde() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }", "public MusteriEkle() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public DESHBORDPANAL() {\n initComponents();\n }", "public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }", "public frmVenda() {\n initComponents();\n }", "public Botonera() {\n initComponents();\n }", "public FrmMenu() {\n initComponents();\n }", "public OffertoryGUI() {\n initComponents();\n setTypes();\n }", "public JFFornecedores() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }", "public EnterDetailsGUI() {\n initComponents();\n }", "public vpemesanan1() {\n initComponents();\n }", "public Kost() {\n initComponents();\n }", "public FormHorarioSSE() {\n initComponents();\n }", "public UploadForm() {\n initComponents();\n }", "public frmacceso() {\n initComponents();\n }", "public HW3() {\n initComponents();\n }", "public Managing_Staff_Main_Form() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "public sinavlar2() {\n initComponents();\n }", "public P0405() {\n initComponents();\n }", "public IssueBookForm() {\n initComponents();\n }", "public MiFrame2() {\n initComponents();\n }", "public Choose1() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }", "public GUI_StudentInfo() {\n initComponents();\n }", "public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }", "public JFrmPrincipal() {\n initComponents();\n }", "public bt526() {\n initComponents();\n }", "public Pemilihan_Dokter() {\n initComponents();\n }", "public Ablak() {\n initComponents();\n }", "@Override\n\tprotected void initUi() {\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}", "public Pregunta23() {\n initComponents();\n }", "public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }", "public AvtekOkno() {\n initComponents();\n }", "public busdet() {\n initComponents();\n }", "public ViewPrescriptionForm() {\n initComponents();\n }", "public Ventaform() {\n initComponents();\n }", "public Kuis2() {\n initComponents();\n }", "public CreateAccount_GUI() {\n initComponents();\n }", "public POS1() {\n initComponents();\n }", "public Carrera() {\n initComponents();\n }", "public EqGUI() {\n initComponents();\n }", "public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }", "public nokno() {\n initComponents();\n }", "public dokter() {\n initComponents();\n }", "public ConverterGUI() {\n initComponents();\n }", "public hitungan() {\n initComponents();\n }", "public Modify() {\n initComponents();\n }", "public frmAddIncidencias() {\n initComponents();\n }", "public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }" ]
[ "0.73191476", "0.72906625", "0.72906625", "0.72906625", "0.72860986", "0.7248112", "0.7213479", "0.72078276", "0.7195841", "0.71899796", "0.71840525", "0.7158498", "0.71477973", "0.7092748", "0.70800966", "0.70558053", "0.69871384", "0.69773406", "0.69548076", "0.69533914", "0.6944929", "0.6942576", "0.69355655", "0.6931378", "0.6927896", "0.69248974", "0.6924723", "0.69116884", "0.6910487", "0.6892381", "0.68921053", "0.6890637", "0.68896896", "0.68881863", "0.68826133", "0.68815064", "0.6881078", "0.68771756", "0.6875212", "0.68744373", "0.68711984", "0.6858978", "0.68558776", "0.6855172", "0.6854685", "0.685434", "0.68525875", "0.6851834", "0.6851834", "0.684266", "0.6836586", "0.6836431", "0.6828333", "0.68276715", "0.68262815", "0.6823921", "0.682295", "0.68167603", "0.68164384", "0.6809564", "0.68086857", "0.6807804", "0.6807734", "0.68067646", "0.6802192", "0.67943805", "0.67934304", "0.6791657", "0.6789546", "0.6789006", "0.67878324", "0.67877173", "0.6781847", "0.6765398", "0.6765197", "0.6764246", "0.6756036", "0.6755023", "0.6751404", "0.67508715", "0.6743043", "0.67387456", "0.6736752", "0.67356426", "0.6732893", "0.6726715", "0.6726464", "0.67196447", "0.67157453", "0.6714399", "0.67140275", "0.6708251", "0.6707117", "0.670393", "0.6700697", "0.66995865", "0.66989213", "0.6697588", "0.66939527", "0.66908985", "0.668935" ]
0.0
-1
An 8bit 'byte' value:
public static void main(String[] args) { byte aByte = (byte) 0b00100001; // A 16-bit 'short' value: short aShort = (short) 0b1010000101000101; // Some 32-bit 'int' values: int anInt1 = 0b10100001010001011010000101000101; int anInt2 = 0b101; int anInt3 = 0B101; // The B can be upper or lower case. // A 64-bit 'long' value. Note the "L" suffix: long aLong = 0b1010000101000101101000010100010110100001010001011010000101000101L; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "byte toByteValue() {\n return (byte) value;\n }", "@Override\n public byte byteValue() {\n return value;\n }", "public byte get8BitRegisterValue(Register r) {\n switch (r) {\n case A:\n return A;\n case B:\n return B;\n case C:\n return C;\n case D:\n return D;\n case E:\n return E;\n case F:\n return F;\n case H:\n return H;\n case L:\n return L;\n case HL_ADDRESS:\n throw new IllegalArgumentException(\"CPU must call getByteFromHL!\");\n default:\n throw new RuntimeException(\"Register provided did not match known 8-bit register\");\n }\n }", "void writeByte(byte value);", "ByteConstant createByteConstant();", "@Test\n\tpublic void getByteOf_Test() {\n\t\tfinal short value = 8738;\n\t\t\n\t\t// Should be 0010 0010 = 34\n\t\tfinal byte value0 = FlagUtils.getByteOf(value, 0);\n\t\tassertThat(value0, is((byte) 34));\n\t\t\n\t\t// The same like above\n\t\tfinal byte value1 = FlagUtils.getByteOf(value, 1);\n\t\tassertThat(value1, is((byte) 34));\n\t}", "public int getUByte() { return bb.get() & 0xff; }", "public byte value() {\n return value;\n }", "byte getEByte();", "public Byte getByteAttribute();", "public byte type() {\n return (byte) value;\n }", "public byte getValue() {\n return value;\n }", "byte toStringValue() {\n return (byte) String.valueOf(value).charAt(0);\n }", "public byte read8(int ireg)\n {\n return this.read(ireg, 1)[0];\n }", "private byte getValue() {\n\t\treturn value;\n\t}", "public byte getByte(String name) {\n\t\tObject val = values.get(name);\n\t\tif (val == null) {\n\t\t\tthrow new IllegalArgumentException(\"Byte value required, but not specified\");\n\t\t}\n\t\tif (val instanceof Number) {\n\t\t\treturn ((Number) val).byteValue();\n\t\t}\n\t\ttry {\n\t\t\treturn Byte.parseByte((String) val);\n\t\t} catch (Exception e) {\n\t\t\tthrow new IllegalArgumentException(\"Byte value required, but found: \" + val);\n\t\t}\n\t}", "byte readByte();", "@ZenCodeType.Caster\n @ZenCodeType.Method\n default @ZenCodeType.Unsigned byte asByte() {\n \n return notSupportedCast(BasicTypeID.BYTE);\n }", "public byte getByte(String key) {\n Object value = get(key);\n return ((value instanceof Long) ? (byte)((Long)value).intValue() : 0);\n }", "public int toByte(){\n return toByte(0);\n }", "public byte readByte() {\n return ((byte) readLong());\n }", "public static byte[] getBytes(char value) {\r\n\t\treturn ByteBuffer.allocate(2).order(ByteOrder.LITTLE_ENDIAN).putChar(value).array();\r\n\t}", "public final byte byte_literal() throws RecognitionException {\n byte value = 0;\n\n\n CommonTree BYTE_LITERAL194 = null;\n\n try {\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:1193:3: ( BYTE_LITERAL )\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:1193:5: BYTE_LITERAL\n {\n BYTE_LITERAL194 = (CommonTree) match(input, BYTE_LITERAL, FOLLOW_BYTE_LITERAL_in_byte_literal3292);\n value = LiteralTools.parseByte((BYTE_LITERAL194 != null ? BYTE_LITERAL194.getText() : null));\n }\n\n } catch (RecognitionException re) {\n reportError(re);\n recover(input, re);\n } finally {\n // do for sure before leaving\n }\n return value;\n }", "public abstract byte read_octet();", "public byte getByteS() {\n\t\treturn (byte) (128 - get());\n\t}", "@Test\n\tpublic void getByteOf_Test2() {\n\t\tfinal short value = 8930;\n\t\t\n\t\t// Should be 1110 0010 = -30\n\t\tfinal byte value0 = FlagUtils.getByteOf(value, 0);\n\t\tassertThat(value0, is((byte) -30));\n\t\t\n\t\t// Should be 0010 0010 = 34\n\t\tfinal byte value1 = FlagUtils.getByteOf(value, 1);\n\t\tassertThat(value1, is((byte) 34));\n\t}", "public static byte[] convertInt8(int v)\r\n {\r\n byte[] bytes = new byte[1];\r\n bytes[0] = (byte) v;\r\n return bytes;\r\n }", "final byte getByte(int column) {\n switch (jdbcTypes_[column - 1]) {\n case Types.BOOLEAN:\n return CrossConverters.getByteFromBoolean(get_BOOLEAN(column));\n case Types.SMALLINT:\n int smallInt = get_SMALLINT(column);\n if (smallInt > Byte.MAX_VALUE || smallInt < Byte.MIN_VALUE)\n throw new IllegalArgumentException(\"Value outside of byte range: \" + smallInt);\n return (byte) smallInt;\n case Types.INTEGER:\n int i = get_INTEGER(column);\n if (i > Byte.MAX_VALUE || i < Byte.MIN_VALUE)\n throw new IllegalArgumentException(\"Value outside of byte range: \" + i);\n return (byte) i;\n case Types.BIGINT:\n long l = get_BIGINT(column);\n if (l > Byte.MAX_VALUE || l < Byte.MIN_VALUE)\n throw new IllegalArgumentException(\"Value outside of byte range: \" + l);\n return (byte) l;\n case Types.REAL:\n float f = get_FLOAT(column);\n if (f > Byte.MAX_VALUE || f < Byte.MIN_VALUE)\n throw new IllegalArgumentException(\"Value outside of byte range: \" + f);\n return (byte) f;\n case Types.DOUBLE:\n double d = get_DOUBLE(column);\n if (d > Byte.MAX_VALUE || d < Byte.MIN_VALUE)\n throw new IllegalArgumentException(\"Value outside of byte range: \" + d);\n return (byte) d;\n case Types.DECIMAL:\n // For performance we don't materialize the BigDecimal, but convert directly from decimal bytes to a long.\n long ld = getLongFromDECIMAL(column, \"byte\");\n if (ld > Byte.MAX_VALUE || ld < Byte.MIN_VALUE)\n throw new IllegalArgumentException(\"Value outside of byte range: \" + ld);\n return (byte) ld;\n case Types.CHAR:\n return CrossConverters.getByteFromString(get_CHAR(column));\n case Types.VARCHAR:\n case Types.LONGVARCHAR:\n return CrossConverters.getByteFromString(get_VARCHAR(column));\n default:\n throw coercionError( \"byte\", column );\n }\n }", "public static byte GetByte()\n\t{\n\t Random rand = new Random();\n\t return (byte)rand.nextInt(127);\n\t}", "public byte getByteA() {\n\t\treturn (byte) (get() - 128);\n\t}", "byte decodeByte();", "public byte toByte() {\n return this.toByteArray()[0];\n }", "public byte get_byte() {\n return local_byte;\n }", "public Byte _parseByte(JsonParser jVar, DeserializationContext gVar) throws IOException {\n JsonToken l = jVar.mo29328l();\n if (l == JsonToken.VALUE_STRING) {\n String trim = jVar.mo29334t().trim();\n if (_hasTextualNull(trim)) {\n return (Byte) _coerceTextualNull(gVar, this._primitive);\n }\n if (trim.length() == 0) {\n return (Byte) _coerceEmptyString(gVar, this._primitive);\n }\n _verifyStringForScalarCoercion(gVar, trim);\n try {\n int a = NumberInput.m23779a(trim);\n if (_byteOverflow(a)) {\n return (Byte) gVar.mo31517b(this._valueClass, trim, \"overflow, value cannot be represented as 8-bit value\", new Object[0]);\n }\n return Byte.valueOf((byte) a);\n } catch (IllegalArgumentException unused) {\n return (Byte) gVar.mo31517b(this._valueClass, trim, \"not a valid Byte value\", new Object[0]);\n }\n } else if (l == JsonToken.VALUE_NUMBER_FLOAT) {\n if (!gVar.mo31509a(DeserializationFeature.ACCEPT_FLOAT_AS_INT)) {\n _failDoubleToIntCoercion(jVar, gVar, \"Byte\");\n }\n return Byte.valueOf(jVar.mo29335A());\n } else if (l == JsonToken.VALUE_NULL) {\n return (Byte) _coerceNullToken(gVar, this._primitive);\n } else {\n if (l == JsonToken.START_ARRAY) {\n return (Byte) _deserializeFromArray(jVar, gVar);\n }\n if (l == JsonToken.VALUE_NUMBER_INT) {\n return Byte.valueOf(jVar.mo29335A());\n }\n return (Byte) gVar.mo31493a(this._valueClass, jVar);\n }\n }", "byte mo30283c();", "public byte readScalarByte() throws java.io.IOException;", "public static double bitsToBytes(double num) { return (num/8); }", "public String getCol8value() {\n return col8value;\n }", "public static String toByteString(byte value) {\n String str = String.format(\"%x\", value);\n if (str.length() == 1)\n str = \"0\" + str;\n return str;\n }", "public int IMMBYTE() {\n int reg = ROP_ARG(konami.pc);\n konami.pc = konami.pc + 1 & 0xFFFF;\n return reg & 0xFF;//insure it returns a 8bit value\n }", "static Value<Byte> parseByte(String value) {\n try {\n if (value == null || value.isEmpty()) return empty();\n return of(Byte.parseByte(value));\n } catch (NumberFormatException error) {\n return empty();\n }\n }", "private static byte getByteValue(double angle) {\n int maxVol = 127;\n return (new Integer(\n (int)Math.round(\n Math.sin(angle)*maxVol))).\n byteValue();\n }", "public Builder setS8Bytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000080;\n s8_ = value;\n onChanged();\n return this;\n }", "@Override\n public void setByte(byte value) throws SQLException {\n setString(Byte.toString(value));\n }", "@Field(1)\n\tpublic byte_struct byte$() {\n\t\treturn this.io.getNativeObjectField(this, 1);\n\t}", "boolean hasByte();", "Type(byte value) {\n\t\t\tthis.value = value;\n\t\t}", "public static void main(String[] args) {\n int num = 4;\r\n byte b =(byte) num;\r\n System.out.println(b);\r\n\t}", "byte[] byteValue() {\n\treturn data;\n }", "public Byte getByte(String name) {\n Object o = get(name);\n if (o instanceof Number) {\n return ((Number)o).byteValue();\n }\n\n if (o != null) {\n try {\n String string = o.toString();\n if (string != null && string.length() > 0) {\n return Byte.parseByte(string);\n }\n }\n catch (NumberFormatException e) {}\n }\n return null;\n }", "public void set_byte(byte param) {\n this.local_byte = param;\n }", "public Byte getAnalogValueByte() {\n return analogValueByte;\n }", "public byte getByte(String name, byte defaultValue) {\n\t\tObject val = values.get(name);\n\t\tif (val == null) {\n\t\t\treturn defaultValue;\n\t\t}\n\t\tif (val instanceof Number) {\n\t\t\treturn ((Number) val).byteValue();\n\t\t}\n\t\ttry {\n\t\t\treturn Byte.parseByte((String) val);\n\t\t} catch (Exception e) {\n\t\t\tthrow new IllegalArgumentException(\"Byte value required, but found: \" + val);\n\t\t}\n\t}", "public static byte getB(final short key)\n {\n return (byte) (key & BITS);\n }", "public static int checkBits8(int v) {\n checkArgument(0 <= v && v <= 0xff);\n return v;\n }", "com.google.protobuf.ByteString\n getS8Bytes();", "public boolean hasS8() {\n return ((bitField0_ & 0x00000080) == 0x00000080);\n }", "public byte getPixel8bitGrayScale(int x, int y)\n {\n getPixelRgb(x, y, rgb);\n\n int sum = VSDK.signedByte2unsignedInteger(rgb.r) + VSDK.signedByte2unsignedInteger(rgb.g) + VSDK.signedByte2unsignedInteger(rgb.b);\n return VSDK.unsigned8BitInteger2signedByte(sum / 3);\n }", "public boolean hasS8() {\n return ((bitField0_ & 0x00000080) == 0x00000080);\n }", "public static byte toByte(Boolean bool)\r\n {\r\n return bool == null ? (byte)0 : Boolean.FALSE.equals(bool) ? (byte)1 : (byte)2;\r\n }", "public abstract void mo9798a(byte b);", "@MavlinkFieldInfo(\n position = 9,\n unitSize = 2,\n description = \"RC channel 8 value\"\n )\n public final int chan8Raw() {\n return this.chan8Raw;\n }", "private int byteToInt(byte b) { int i = b & 0xFF; return i; }", "public final int getUByte(int index) { return bb.get(index) & 0xff; }", "public ByteInValuePacking getByteInValuePacking() {\n return null;\n }", "public static byte[] getBytes(int value) {\r\n\t\treturn ByteBuffer.allocate(4).order(ByteOrder.LITTLE_ENDIAN).putInt(value).array();\r\n\t}", "public byte getByte(String key)\n {\n return getByte(key, (byte) 0);\n }", "static public byte getDefaultByte() {\n return defaultByte;\n }", "public Int8Msg() {\n super(DEFAULT_MESSAGE_SIZE);\n amTypeSet(AM_TYPE);\n }", "public abstract void accept(byte value);", "public long getUInt8(int columnIndex) {\n UInt8Vector vector = (UInt8Vector) table.getVector(columnIndex);\n return vector.get(rowNumber);\n }", "protected final int getStatusByte() {\r\n return ((this.carryFlag ? 0x01 : 0) + (this.zeroFlag ? 0x02 : 0) + (this.interruptFlag ? 0x04 : 0) + (this.decimalFlag ? 0x08 : 0) + (this.breakFlag ? 0x10 : 0) + 0x20 + (this.overflowFlag ? 0x40 : 0) + (this.signFlag ? 0x80 : 0));\r\n }", "public int getTriByte() {\n\t\treturn payload.get() << 16 & 0xFF | payload.get() << 8 & 0xFF\n\t\t\t\t| payload.get() & 0xFF;\n\t}", "public static byte getUniqueByte() {\n return (byte) getUniqueChar();\n }", "public Int8Msg(net.tinyos.message.Message msg, int base_offset, int data_length) {\n super(msg, base_offset, data_length);\n amTypeSet(AM_TYPE);\n }", "public final int getByte() throws IOException {\r\n b3 = 0;\r\n\r\n b3 = (tagBuffer[bPtr] & 0xff);\r\n bPtr += 1;\r\n\r\n return b3;\r\n }", "public Boolean getC8() {\n\t\treturn c8;\n\t}", "synchronized byte getCurrentValueHi()\n {\n int cv = getCurrentValue();\n cv >>= 8;\n return (byte)cv;\n }", "public byte getByteC() {\n\t\treturn (byte) -get();\n\t}", "public static String a(byte paramByte) {\n/* 65 */ return \"\" + a[(paramByte & 0xF0) >>> 4] + a[paramByte & 0xF];\n/* */ }", "public ArrayGetByte()\n {\n super(\"ArrayGetByte\");\n }", "public void setIntAttribute8(String value) {\n setAttributeInternal(INTATTRIBUTE8, value);\n }", "public int utf8ToInt(byte bval) {\n\t\t\treturn utf8_map[ByteUtil.byteToUint(bval)];\n\t\t}", "public static TribitByte value(int realByte){\n Tribit[] bits = new Tribit[LENGTH];\n int current = realByte;\n for(int idx = 0; idx < LENGTH; idx++){\n int bit = current & 0b1;\n bits[idx] = (bit == 0 ? Tribit.ZERO : Tribit.ONE);\n current = current >>> 1;\n }\n return new TribitByte(bits);\n }", "private byte nextByte(ByteBuffer inputBuffer) throws IOException {\n getAtLeastBytes(inputBuffer, 1);\n return inputBuffer.get();\n }", "public Self aByte(int b) {\n return aByte((byte) b);\n }", "String byteOrBooleanWrite();", "public byte getValueType() {\r\n\t\tbyte valueType;\r\n\t\tvalueType=this.valueType;\r\n\t\treturn valueType;\r\n\t}", "public Int8Msg(byte[] data) {\n super(data);\n amTypeSet(AM_TYPE);\n }", "public Int8Msg(int data_length, int base_offset) {\n super(data_length, base_offset);\n amTypeSet(AM_TYPE);\n }", "public int getUnsignedByte() {\n\t\treturn payload.getUnsigned();\n\t}", "private static byte int2(int x) { return (byte)(x >> 16); }", "public byte getValueByte(short valueOffset) throws ToolkitException {\n byte[] buffer = getAPDUBuffer();\n short Lc = (short)(buffer[OFFSET_LC] & 0xFF);\n short TLVOffset = getLastTLVOffset(buffer, Lc);\n if (TLVOffset >= Lc) {\n ToolkitException.throwIt(ToolkitException.UNAVAILABLE_ELEMENT);\n }\n short TLVLength = (short)(buffer[(short)(TLVOffset + 1)] & 0xFF);\n if (valueOffset > TLVLength) {\n ToolkitException.throwIt(ToolkitException.OUT_OF_TLV_BOUNDARIES);\n }\n // return the byte at offset\n return buffer[(short)(TLVOffset + 2 + valueOffset)]; \n }", "public static byte[] getBytes(long value) {\r\n\t\treturn ByteBuffer.allocate(8).order(ByteOrder.LITTLE_ENDIAN).putLong(value).array();\r\n\t}", "public void setAttribute8(String value) {\n setAttributeInternal(ATTRIBUTE8, value);\n }", "public void setAttribute8(String value) {\n setAttributeInternal(ATTRIBUTE8, value);\n }", "public void setAttribute8(String value) {\n setAttributeInternal(ATTRIBUTE8, value);\n }", "public void setAttribute8(String value) {\n setAttributeInternal(ATTRIBUTE8, value);\n }", "void setByte(int index, byte value) throws SQLException;", "public com.google.protobuf.ByteString\n getS8Bytes() {\n java.lang.Object ref = s8_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n s8_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public byte readByte() throws IOException {\n return in.readByte();\n }" ]
[ "0.76927006", "0.71749556", "0.69854057", "0.6828673", "0.67762595", "0.67640066", "0.6735737", "0.6725488", "0.67122626", "0.67055804", "0.6696352", "0.6610582", "0.65877515", "0.6564293", "0.6484089", "0.6440532", "0.6439651", "0.64105856", "0.6401967", "0.63951904", "0.63682", "0.6349703", "0.6335797", "0.6333842", "0.63231796", "0.6313595", "0.6311102", "0.62979317", "0.62973464", "0.6271942", "0.626474", "0.62635684", "0.6258206", "0.62547785", "0.624853", "0.62469023", "0.6245375", "0.6206999", "0.62044704", "0.61667573", "0.6128658", "0.6125917", "0.61172783", "0.6106446", "0.6085553", "0.60736394", "0.6056913", "0.6047272", "0.6038568", "0.6029388", "0.60128015", "0.6008134", "0.60060376", "0.59994453", "0.5984393", "0.5979307", "0.5970178", "0.59543", "0.59464985", "0.59179366", "0.5916805", "0.5915285", "0.59092486", "0.5892211", "0.58921367", "0.5859077", "0.58522606", "0.58371234", "0.58370686", "0.5820625", "0.58181727", "0.581349", "0.58132523", "0.58040667", "0.58030856", "0.5798476", "0.57977206", "0.57975537", "0.5788231", "0.578519", "0.5781905", "0.5775769", "0.5774597", "0.5771297", "0.5767734", "0.5758181", "0.5757117", "0.5740979", "0.5739956", "0.5737476", "0.57309085", "0.5714867", "0.5713284", "0.57115334", "0.57107866", "0.57107866", "0.57107866", "0.57107866", "0.57023036", "0.56981385", "0.5694959" ]
0.0
-1
Parses the string representation of the time and returns a Java Calendar object.
public static Calendar getTimeFromString(String timeStr) { DateFormat format = new SimpleDateFormat("hh:mm"); Calendar c = new GregorianCalendar(); Date date; try { date = (Date)format.parse(timeStr.substring(0, timeStr.length()-1)); c.setTime(date); if (timeStr.charAt(timeStr.length()-1) == 'p') c.set(Calendar.HOUR_OF_DAY, c.get(Calendar.HOUR) + 12); else c.set(Calendar.HOUR_OF_DAY, c.get(Calendar.HOUR)); Calendar now = Calendar.getInstance(); c.set(Calendar.DATE, now.get(Calendar.DATE)); c.set(Calendar.MONTH, now.get(Calendar.MONTH)); c.set(Calendar.YEAR, now.get(Calendar.YEAR)); return c; } catch (ParseException e) { e.printStackTrace(); return null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Calendar toCalendar(){\r\n\t\tSimpleDateFormat[] formats = new SimpleDateFormat[] {\r\n\t\t\t\tYYYY_MM_DD_FORMATTER, YYYY_MMT_DD_T_HH_MM_FORMATTER,\r\n\t\t\t\tYYYY_MMT_DD_T_HH_MM_SS_FORMATTER };\r\n\t\tfor (SimpleDateFormat format : formats) {\r\n\t\t\ttry {\r\n\t\t\t\tDate date = format.parse(this.timeString);\r\n\t\t\t\tCalendar calendar = Calendar.getInstance();\r\n\t\t\t\tcalendar.setTime(date);\r\n\t\t\t\treturn calendar;\r\n\t\t\t} catch (ParseException e) {\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "private Calendar getCalFromString(final String calString) {\n\t\tfinal Calendar ret = new GregorianCalendar(1970, 0, 1, 0, 0, 0);\n\t\tfinal SimpleDateFormat isoDateFormat = new SimpleDateFormat(\n\t\t\t\t\"yyyy-MM-dd HH:mm\", Locale.getDefault());\n\t\ttry {\n\t\t\tret.setTime(isoDateFormat.parse(calString.concat(\" 00:00\")));\n\t\t\tret.setTime(isoDateFormat.parse(calString));\n\t\t} catch (ParseException e) { \n\t\t\t// the code will definitely throw an exception, but we don't care\n\t\t\t// any suggestions how to better handle this?\n\t\t}\n\n\t\treturn ret;\n\t}", "public static TS valueOf(String time) {\n\t\tif (time != null) {\n\t\t\ttime = time.trim();\n\t\t}\n\t\tif (time == null || time.equals(\"\")) {\n\t\t\treturn TSnull.NA;\n\t\t}\n\t\t//return new TSjuDateAdapter(parseDate(time).getTime(), time.length());\n\n\t\tfinal Calendar c = Calendar.getInstance();\n\t\tint precision = time.indexOf('+'), field, i = 0, zoneOffset;\n\t\tfinal int realLen = time.length();\n\t\tboolean hasTimezone = false;\n\t\tc.clear();\n\t\tif (precision < 0) {\n\t\t\tprecision = time.indexOf('-');\n\t\t\tif (precision < 0) {\n\t\t\t\tprecision = realLen;\n\t\t\t} else {\n\t\t\t\ti = -1;\n\t\t\t}\n\t\t} else {\n\t\t\ti = 1;\n\t\t}\n\t\tif (i != 0) {\n\t\t\tif ((realLen - precision) % 2 == 0) {\n\t\t\t\tthrow new RuntimeException(\"not a valid date: \" + time);\n\t\t\t}\n\t\t\tzoneOffset = MILLIS_PER_HOUR * parseInt(time, precision + 1, precision + 3);\n\t\t\tif (precision + 3 < realLen) {\n\t\t\t\tzoneOffset += (MILLIS_PER_MINUTE * parseInt(time, precision + 3, precision + 5));\n\t\t\t}\n\t\t\tzoneOffset *= i;\n\t\t\tc.set(Calendar.ZONE_OFFSET, zoneOffset);\n\t\t\thasTimezone = true;\n\t\t}\n\t\tif (precision < 4 || (precision < 14 && precision % 2 == 1)) {\n\t\t\tthrow new RuntimeException(\"not a valid date: \" + time);\n\t\t}\n\t\tc.set(Calendar.YEAR, parseInt(time, 0, 4));\n\t\tif (precision >= 6) {\n\t\t\tc.set(Calendar.MONTH, parseInt(time, 4, 6) - 1);\n\t\t\tif (precision >= 8) {\n\t\t\t\tc.set(Calendar.DAY_OF_MONTH, parseInt(time, 6, 8));\n\t\t\t\tif (precision >= 10) {\n\t\t\t\t\tc.set(Calendar.HOUR_OF_DAY, parseInt(time, 8, 10));\n\t\t\t\t\tif (precision >= 12) {\n\t\t\t\t\t\tc.set(Calendar.MINUTE, parseInt(time, 10, 12));\n\t\t\t\t\t\tif (precision >= 14) {\n\t\t\t\t\t\t\tc.set(Calendar.SECOND, parseInt(time, 12, 14));\n\t\t\t\t\t\t\tif (precision >= 16) {\n\t\t\t\t\t\t\t\tfield = parseInt(time, 15, precision);\n\t\t\t\t\t\t\t\tfor (i = precision; i < 18; i++)\n\t\t\t\t\t\t\t\t{\tfield = field * 10;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tfor (i = precision; i > 18; i--)\n\t\t\t\t\t\t\t\t{\tfield = field / 10;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tc.set(Calendar.MILLISECOND, field);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (time.indexOf('.') >= 0) {\n\t\t\tprecision--;\n\t\t}\n\t\treturn new TSjuDateAdapter(c, precision, hasTimezone);\n\t}", "public static Time fromString( String timeStr ) {\n int hour, minute;\n\n String[] parts = timeStr.split( \":\" );\n if ( parts.length != 2 ) throw new NumberFormatException( timeStr );\n hour = Integer.parseInt( parts[ 0 ] );\n\n String[] subParts = parts[ 1 ].split( \" \" );\n if ( subParts.length > 2 ) throw new NumberFormatException( timeStr );\n minute = Integer.parseInt( subParts[ 0 ] );\n\n if ( subParts.length == 2 ) { // Meridiem indicator is present.\n switch ( subParts[ 1 ] ) {\n case \"AM\":\n case \"am\":\n if ( hour == Time.HALF_DAY_HRS ) {\n hour = 0;\n }\n break;\n case \"PM\":\n case \"pm\":\n if ( hour != Time.HALF_DAY_HRS ) {\n hour += Time.HALF_DAY_HRS;\n }\n break;\n default:\n throw new NumberFormatException( timeStr );\n }\n }\n if (\n hour < 0 || hour >= Time.HRS_PER_DAY ||\n minute < 0 || minute >= Time.MINS_PER_HR\n ) {\n throw new NumberFormatException( \"Bad time \" + hour + ':' + minute );\n }\n return new Time( hour, minute );\n }", "public static Calendar convertStringDateTimeToCalendar(String strCal)\r\n\t{\r\n\t\t//\"dd/mm/yyyy hh:mm\"\r\n\t\tCalendar c = new GregorianCalendar();\r\n\t\t\r\n\t\tString[] arrSlash = strCal.split(\"/\");\r\n\t\t\r\n\t\t//arrCal is now {DD,MM,YYYY HH:MM}\r\n\t\t\r\n\t\tint day = Integer.parseInt(arrSlash[0]);\r\n\t\tint month = Integer.parseInt(arrSlash[1]);\r\n\t\t\r\n\t\tString[] arrSpace = arrSlash[2].split(\" \");\r\n\t\t\r\n\t\t//arrSpace is now {YYYY,HH:MM}\r\n\t\t\r\n\t\tint year = Integer.parseInt(arrSpace[0]);\r\n\t\t\r\n\t\tString[] arrColon = arrSpace[1].split(\":\");\r\n\t\t\r\n\t\t//arrColon is now {HH,MM}\r\n\t\t\r\n\t\tint hour = Integer.parseInt(arrColon[0]);\r\n\t\tint minute = Integer.parseInt(arrColon[1]);\r\n\t\t\r\n\t\t//set values to object\r\n\t\tc.set(Calendar.DAY_OF_MONTH, day);\r\n\t\tc.set(Calendar.MONTH, month-1);\r\n\t\tc.set(Calendar.YEAR, year);\r\n\t\tc.set(Calendar.HOUR_OF_DAY, hour);\r\n\t\tc.set(Calendar.MINUTE, minute);\r\n\t\t\r\n\t\treturn c;\r\n\t}", "public static Date stringToTime(String time)\r\n/* 43: */ {\r\n/* 44: */ try\r\n/* 45: */ {\r\n/* 46: 54 */ return sdfTime.parse(time);\r\n/* 47: */ }\r\n/* 48: */ catch (ParseException e)\r\n/* 49: */ {\r\n/* 50: 56 */ log.fatal(\"DateUtil.stringToTime抛出异常\", e);\r\n/* 51: */ }\r\n/* 52: 57 */ return new Date();\r\n/* 53: */ }", "public static Time fromString(String str) {\n checkFormat(str);\n int h = Integer.parseInt(str.substring(0, 2));\n int m = Integer.parseInt(str.substring(3, 5));\n String mStr = str.substring(6);\n boolean b = mStr.equals(\"PM\");\n\n return new Time(h, m, b);\n }", "public static Date parseTime(String time)\n\t{\n\t\treturn parseFormatDate(time, getTimeFormat());\n\t}", "public static Calendar parseCalendar(DateFormat format, String dateStr) throws ParseException {\n\t\tCalendar calendar = Calendar.getInstance();\n\t\tcalendar.setTime(parseDate(format, dateStr));\n\t\treturn calendar;\n\t}", "public static Calendar toCalendar(final String iso8601string)\n\t\t\t\tthrows ParseException {\n\t\t\tCalendar calendar = GregorianCalendar.getInstance();\n\n String s = \"\";\n if (iso8601string.contains(\"'Z'\")){\n s = iso8601string.replace(\"Z\", \"+00:00\");\n }\n else if (!iso8601string.contains(\"+\")){\n s = iso8601string + \"+00:00\";\n }\n else{\n s = iso8601string;\n }\n\n\t\t\tDate date = new SimpleDateFormat(dateFormat).parse(s);\n\t\t\tcalendar.setTime(date);\n\t\t\treturn calendar;\n\t\t}", "public static Calendar parseStringToCalendar(String data, String pattern) {\r\n\t\tCalendar calendar = GregorianCalendar.getInstance();\r\n\t\tif (data != null \r\n\t\t\t\t&& pattern != null) {\r\n\t\t\tcalendar.setTime(parseStringToDate(data, pattern));\r\n\t\t}\r\n\t\treturn calendar;\r\n\t}", "public static Calendar toCalendar(final String iso8601string) throws ParseException {\n // TODO: move this method to DateUtils\n Calendar calendar = GregorianCalendar.getInstance();\n String s = iso8601string.replace(\"Z\", \"+00:00\");\n try {\n s = s.substring(0, 22) + s.substring(23);\n } catch (IndexOutOfBoundsException e) {\n // throw new org.apache.http.ParseException();\n e.printStackTrace();\n }\n\n Date date = null;\n try {\n date = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ssZ\").parse(s);\n } catch (java.text.ParseException e) {\n e.printStackTrace();\n }\n calendar.setTime(date);\n return calendar;\n }", "public static Date convertString2Date(String strTime) {\r\n\t\t Calendar calendar = Calendar.getInstance();\r\n\t\t calendar.setTimeInMillis(Long.valueOf(strTime));\r\n\t\t return calendar.getTime();\r\n\t}", "Calendar stringsToCalendar(String hour, String month, String date) throws ParseException {\n\t\tCalendar cal = Calendar.getInstance();\n\t\tString dateString = hour + \" \" + month + \" \" + date;\n\t\tcal.setTime(formatter.parse(dateString));\n\n\t\treturn cal;\n\t}", "public static GregorianCalendar getCalendar(String dateTime)\n\t{\n\t\tGregorianCalendar gc = new GregorianCalendar();\n\t\tDate date = parseDateTime(dateTime);\n\t\tgc.setTime(date);\n\t\t\n\t\treturn gc;\n\t}", "public static Date convert(String timeString){\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd/MMM/yyyy:HH:mm:ss ZZZZ\");\n // set default timezone to be runtime independent\n TimeZone.setDefault(TimeZone.getTimeZone(\"UTC\"));\n try {\n return dateFormat.parse(timeString);\n } catch (ParseException e) {\n LOGGER.log(Level.SEVERE, \"Date cannot be parsed: \"+ timeString, e);\n return null;\n }\n }", "public String parseTime(String time) {\n Date date = null;\n try {\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm\", Locale.getDefault());\n String todaysDate = new SimpleDateFormat(\"yyyy-MM-dd\", Locale.getDefault()).format(new Date());\n date = simpleDateFormat.parse(todaysDate + \" \" + time.split(\" \")[0]);\n\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\", Locale.getDefault());\n sdf.setTimeZone(TimeZone.getTimeZone(\"UTC\"));\n return sdf.format(date);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n return null;\n }", "public static Calendar parseCxsDateString(String inputCalendarString) {\r\n\t\tif (inputCalendarString == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\t\r\n\t\tCalendar cal;\r\n\t\tif (inputCalendarString.indexOf('T') > -1) {\r\n\t\t\tcal = parse(inputCalendarString, CAL_DATETIME_FORMAT);\r\n\t\t} else {\r\n\t\t\tcal = parse(inputCalendarString, CAL_DATE_FORMAT);\r\n\t\t\tif (cal == null) {\r\n\t\t\t\tcal = parse(inputCalendarString, ISO_DATE_FORMAT);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn cal;\r\n\t}", "public static Date parseTime(String formattedTime) {\n\t\treturn parseDate(formattedTime, DEFAULT_TIME_FORMAT);\n\t}", "private AbsTime(String t) throws NumberFormatException, Time.Ex_TimeNotAvailable\n {\n // Parse the string.\n parse(t);\n }", "public static Calendar extractTime(int time){\n Calendar c = Calendar.getInstance();\n String d = time+\"\";\n if(d.length() == 3)\n d = \"0\"+d;\n int hour = Integer.parseInt(d.substring(0, 2));\n int min = Integer.parseInt(d.substring(2, 4));\n c.set(Calendar.HOUR_OF_DAY,hour);\n c.set(Calendar.MINUTE,min);\n return c;\n }", "private Calendar createNewCalendar(String dateAndTime) {\n // initiate a calendar\n Calendar calendar = Calendar.getInstance();\n // take the given dateandTime string and split it into the different values\n String date = dateAndTime.split(\" \")[0];\n String time = dateAndTime.split(\" \")[1];\n int year = Integer.valueOf(date.split(\"-\")[0]);\n int month = Integer.valueOf(date.split(\"-\")[1]) - 1;\n int day = Integer.valueOf(date.split(\"-\")[2]);\n int hour = Integer.valueOf(time.split(\":\")[0]);\n int min = Integer.valueOf(time.split(\":\")[1]);\n // set the calendar to the wanted values\n calendar.set(year, month, day, hour, min);\n return calendar;\n }", "private static Date parseISOTimestring(String timestring) throws ParseException{\r\n boolean containsT = timestring.contains(\"T\");\r\n boolean containsSpace = timestring.contains(\" \");\r\n int len = timestring.length();\r\n char colonTZ = timestring.charAt(len-3);\r\n if(colonTZ == ':'){\r\n String part1 = timestring.substring(0, len-3);\r\n String part2 = timestring.substring(len-2, len);\r\n try{\r\n if(containsT){\r\n Date date = formatSecsTZwT.parse(part1+part2);\r\n return date;\r\n }else if(containsSpace){\r\n Date date = formatSecsTZ.parse(part1+part2);\r\n return date;\r\n }\r\n else{\r\n throw new ParseException(\"Unsupported pattern!\", 0);\r\n }\r\n } catch(ParseException e){\r\n throw new ParseException(e.getMessage(), 0);\r\n }\r\n }\r\n else{\r\n throw new ParseException(\"Unsupported pattern!\", 0);\r\n }\r\n }", "public ClockTime(String s, String subtype) {\n super(Property.CLOCKTIME_PROPERTY,subtype);\n\n\n Date value = null;\n\n try {\n StringTokenizer tokens = new StringTokenizer(s, \":\");\n if (tokens.countTokens() == 1) {\n if (s.startsWith(\"24\")) {\n s = \"00\" + s.substring(2);\n }\n if (s.startsWith(\"00\")) {\n s = s.substring(2);\n if (s == null || s.equals(\"\"))\n s = \"00\";\n if (!s.equals(\"00\") && Integer.parseInt(s) >= 60) {\n calValue = null;\n return;\n //throw new Exception(\"Invalid clocktime: \" + s);\n }\n try {\n value = dfMedium.get().parse(\"00:\" + s + \":00\");\n }\n catch (Exception e) {\n calValue = null;\n return;\n }\n calValue = Calendar.getInstance();\n calValue.setTime(value);\n normalize();\n return;\n }\n if (s.length() > 0 && s.charAt(0) == '0')\n s = s.substring(1);\n int h = Integer.parseInt(s);\n if (h >= 0 && h <= 9)\n s = \"0\" + s + \":00:00\";\n else if (h < 24)\n s = s + \":00:00\";\n else if (h >= 100 && h <= 959) {\n int hh = Integer.parseInt(s.substring(0, 1));\n int mm = Integer.parseInt(s.substring(1, 3));\n if (mm >= 60) {\n calValue = null;\n return;\n //throw new Exception(\"Invalid clocktime: \" + s);\n }\n s = \"0\" + hh + \":\" + mm + \":00\";\n }\n else if (h >= 1000 && h <= 2359) {\n int hh = Integer.parseInt(s.substring(0, 2));\n int mm = Integer.parseInt(s.substring(2, 4));\n if (hh >= 24) {\n calValue = null;\n return;\n //throw new Exception(\"Invalid clocktime: \" + s);\n }\n if (mm >= 60) {\n calValue = null;\n return;\n //throw new Exception(\"Invalid clocktime: \" + s);\n }\n s = hh + \":\" + mm + \":00\";\n }\n else {\n calValue = null;\n return;\n //throw new Exception(\"Invalid clocktime: \" + s);\n }\n }\n else\n if (tokens.countTokens() == 2) {\n s += \":00\";\n }\n try {\n value = dfMedium.get().parse(s);\n calValue = Calendar.getInstance();\n calValue.setTime(value);\n normalize();\n if (getSubType(\"showseconds\") != null && getSubType(\"showseconds\").equalsIgnoreCase(\"false\")) {\n \tsetShortFormat(true);\n }\n }\n catch (Exception e) {\n //throw new Exception(e);\n calValue = null;\n }\n } catch (Throwable e1) {\n calValue = null;\n }\n }", "public void testParser1() throws Exception {\n // YYYY-MM-DDThh:mm:ss.sTZD => 1997-07-16T19:20:30.45+02:00\n Calendar ref = Calendar.getInstance(TimeZone.getTimeZone(\"GMT+2:00\"));\n ref.set(1997, 06, 16, 19, 20, 30);\n ref.set(Calendar.MILLISECOND, 45);\n Calendar cal = DateParser.parse(\"1997-07-16T19:20:30.045+02:00\");\n assertEquals(ref.getTime(), cal.getTime());\n // calendars are not equals since they have different time zones - but\n // datetime in milliseconds are the same\n }", "public static String parseTime(String sTime) {\n\t\treturn sTime.substring(4, 6);\n\t}", "public static DateTime parseTime(String str) {\n if (str.indexOf('.') == -1) {\n return DateTimeFormat.forPattern(\"HH:mm:ss\").withZoneUTC().parseDateTime(str);\n } else {\n return DateTimeFormat.forPattern(\"HH:mm:ss.SSS\").withZoneUTC().parseDateTime(str);\n }\n }", "public Calendar convertFromString(String stringDate) {\n Calendar dateVacancy = Calendar.getInstance();\n dateVacancy.set(Calendar.MILLISECOND, 0); //remove milliseconds\n if (months.isEmpty()) {\n fillMap();\n }\n if (stringDate.contains(TODAY)) {\n year = Calendar.getInstance().get(Calendar.YEAR);\n month = Calendar.getInstance().get(Calendar.MONTH);\n day = Calendar.getInstance().get(Calendar.DAY_OF_MONTH);\n dateVacancy.set(year, month, day);\n } else if (stringDate.contains(YESTERDAY)) {\n year = Calendar.getInstance().get(Calendar.YEAR);\n month = Calendar.getInstance().get(Calendar.MONTH);\n day = Calendar.getInstance().get(Calendar.DAY_OF_MONTH);\n dateVacancy.set(year, month, day - 1);\n } else {\n stringDate = stringDate.substring(0, 9);\n String monthStr = stringDate.substring(stringDate.length() - 7, stringDate.length() - 3).trim();\n this.year = convertToYear(stringDate);\n this.month = months.get(monthStr);\n this.day = convertToDay(stringDate);\n dateVacancy.set(year, month, day);\n }\n return dateVacancy;\n }", "public static LocalTime parseTime(String time) {\n return LocalTime.parse(time, formatter);\n }", "private LocalDateTime parseDate(String timeStr) throws DateTimeParseException {\n return LocalDateTime.parse(timeStr, formatter);\n }", "public static Date makeDate(String tvaTimeString) throws TVAnytimeException\n\t{\n\t\tint year = -1;\n\t\tint month = -1;\n\t\tint day = -1;\n\t\tint hours = -1;\n\t\tint minutes = -1;\n\t\tint seconds = -1;\n\n\t\tint offsetHours = 0;\t\t// an offset to deal with time zones\n\t\tint offsetMinutes = 0;\n\n\t\t// look to see if the string ends in \"Z\" (GMT) \n\t\tif (tvaTimeString.endsWith(\"Z\")) {\n\t\t\toffsetHours = 0;\n\t\t\toffsetMinutes = 0;\n\t\t}\n // or no +/- for offset\n else if (tvaTimeString.length()>6 && (!tvaTimeString.substring(tvaTimeString.length()-6,tvaTimeString.length()-5).equals(\"+\")) && (!tvaTimeString.substring(tvaTimeString.length()-6,tvaTimeString.length()-5).equals(\"-\")) ) {\n\t\t\toffsetHours = 0;\n\t\t\toffsetMinutes = 0;\n }\n\t\t// if not, pull out the offsets for hours and minutes\n\t\telse {\n\t\t\tString stringOffset = (tvaTimeString.substring(tvaTimeString.length()-6, tvaTimeString.length()));\n\n\t\t\ttry {\n\t\t\t\toffsetHours = Integer.parseInt(stringOffset.substring(1,3));\n\t\t\t} catch (NumberFormatException e) {\n\t\t\t\tthrow new TVAnytimeException (\"TimeToolbox: problem parsing time offsetHours. \"+e);\n\t\t\t}\n\n\t\t\tif (offsetHours < 0 || offsetHours > 23)\n\t\t\t\tthrow new TVAnytimeException (\"TimeToolbox: hours offset is out of range (must be between 0 and 23).\");\n\n\t\t\ttry {\n\t\t\t\toffsetMinutes = Integer.parseInt(stringOffset.substring(4,6));\n\t\t\t} catch (NumberFormatException e) {\n\t\t\t\tthrow new TVAnytimeException (\"TimeToolbox: problem parsing time offsetMinutes. \"+e);\n\t\t\t}\n\n\t\t\t// check for valid offsetMinutes range\n\t\t\tif (offsetMinutes < 0 || offsetMinutes > 59)\n\t\t\t\tthrow new TVAnytimeException (\"TimeToolbox: minutes offset is out of range (must be between 0 and 59).\");\n\n\t\t\t// if a negative offset...\n\t\t\tif (stringOffset.startsWith(\"-\")) {\n\t\t\t\toffsetHours = (offsetHours * -1);\n\t\t\t\toffsetMinutes = (offsetMinutes * -1);\n\t\t\t}\n\t\t}\n\t\ttry {\n\t\t\tyear = Integer.parseInt(tvaTimeString.substring(0, 4));\n\t\t\tmonth = Integer.parseInt(tvaTimeString.substring(5, 7));\n\t\t\tday = Integer.parseInt(tvaTimeString.substring(8, 10));\n\t\t} catch (NumberFormatException e) {\n\t\t\tthrow new TVAnytimeException (\"TimeToolbox: problem parsing year, month or day integer. \"+e);\n\t\t}\n\n\t\t// check validity of year\n\t\tif (year < 0)\n\t\t\tthrow new TVAnytimeException (\"TimeToolbox: year is out of range (must be greater than 0.\");\n\n\t\t// check validity of month\n\t\tif (month < 1 || month > 12)\n\t\t\tthrow new TVAnytimeException (\"TimeToolbox: month is out of range (must be between 1 and 12).\");\n\n\t\t// check validity of day\n\t\tif (day < 1 || day > 31)\n\t\t\tthrow new TVAnytimeException (\"TimeToolbox: day is out of range (must be between 1 and 31).\");\n\n\t\ttry {\n\t\t\thours = Integer.parseInt(tvaTimeString.substring(11, 13));\n\t\t\tminutes = Integer.parseInt(tvaTimeString.substring(14, 16));\n\t\t\tseconds = Integer.parseInt(tvaTimeString.substring(17, 19));\n\t\t} catch (NumberFormatException e) {\n\t\t\tthrow new TVAnytimeException (\"TimeToolbox: problem parsing hour, minute or seconds integer. \"+e);\n\t\t}\n\n\t\t// check validity of hours\n\t\tif (hours < 0 || hours > 23)\n\t\t\tthrow new TVAnytimeException (\"TimeToolbox: hour is out of range (must be between 0 and 23.\");\n\n\t\t// check validity of minutes\n\t\tif (minutes < 0 || minutes > 59)\n\t\t\tthrow new TVAnytimeException (\"TimeToolbox: minutes is out of range (must be between 0 and 59).\");\n\n\t\t// check validity of seconds\n\t\tif (seconds < 0 || seconds > 59)\n\t\t\tthrow new TVAnytimeException (\"TimeToolbox: seconds is out of range (must be between 0 and 59).\");\n\n\t\tCalendar cal = Calendar.getInstance();\n\n\t\tcal.set(year, month-1, day, hours-offsetHours, minutes-offsetMinutes, seconds);\n cal.set(Calendar.MILLISECOND, 0);\n\n\t\tcal.setTimeZone(TimeZone.getTimeZone(\"GMT\"));\n\n\t\treturn cal.getTime();\n\t}", "public DateTime(String string) {\r\n\t\tSimpleDateFormat[] formats = new SimpleDateFormat[] {\r\n\t\t\t\tYYYY_MM_DD_FORMATTER, YYYY_MMT_DD_T_HH_MM_FORMATTER,\r\n\t\t\t\tYYYY_MMT_DD_T_HH_MM_SS_FORMATTER };\r\n\t\tfor (SimpleDateFormat format : formats) {\r\n\t\t\ttry {\r\n\t\t\t\tformat.parse(string);\r\n\t\t\t\tthis.timeString = string;\r\n\t\t\t\treturn;\r\n\t\t\t} catch (ParseException e) {\r\n\t\t\t}\r\n\t\t}\r\n\t\tthrow new IllegalArgumentException();\r\n\t}", "public static Calendar getDateFromBandoriString(String str) {\r\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"MMMMM dd, yyyy hh:mm:ss\");\r\n\t\tsdf.setTimeZone(TimeZone.getTimeZone(\"UTC\"));\r\n\t\tCalendar c = Calendar.getInstance();\r\n\t\ttry {\r\n\t\t\tc.setTime(sdf.parse(str));\r\n\t\t} catch (ParseException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\treturn c;\r\n\t}", "public DateParser(String dateAndTimeString) {\n this.dateAndTimeString = dateAndTimeString;\n }", "private int parseTime(String timeString){\n\n if(timeString != null) {\n String[] parseTime = timeString.split(\":|\\\\s\");\n String intTime = parseTime[0] + parseTime[1];\n int time = Integer.parseInt((intTime));\n if (time != 1200 && parseTime[2].equals(\"PM\")) {\n time += 1200;\n } else if (time == 1200 && parseTime[2].equals(\"AM\")) {\n time = 0;\n }\n return time;\n\n } else {\n return 0;\n }\n }", "public static Date stringToDate (String s) {\n\t\tint year=0 , month=0 , date=0;\n\t\tCalendar cal = Calendar.getInstance(Locale.getDefault());\n\t\t\n\t\tStringTokenizer st = new StringTokenizer (s,\"/\");\n\t\t\n\t\tdate = Integer.parseInt(st.nextToken());\n\t\tmonth = Integer.parseInt(st.nextToken());\n\t\tyear = Integer.parseInt(st.nextToken());\n\t\tcal.clear();\n\t\tcal.set(year,month-1,date);\n\t\t//System.out.println(\"\\nDate : \"+getStringFromDate(cal.getTime()));\n\t\treturn (Date)cal.getTime().clone();\n\t}", "public Calendar GetCalendar(String sDateTime) throws Exception {\n String YYYY = \"\", MM = \"\", DD = \"\", hh = \"\", mm = \"\", ss = \"\";\n Calendar calendarInstance = null;\n try {\n //considering deafult date format as YYYY-MM-DD hh:mm:ss (e.g 2012-11-21 23:59:30)\n sDateTime = sDateTime.trim();\n if (sDateTime.equalsIgnoreCase(\"\")) {\n throw new Exception(\"Blank datetime value\");\n }\n\n YYYY = sDateTime.substring(0, 4);\n MM = sDateTime.substring(5, 7);\n DD = sDateTime.substring(8, 10);\n hh = sDateTime.substring(11, 13);\n mm = sDateTime.substring(14, 16);\n ss = sDateTime.substring(17, 19);\n MM = \"\" + (Integer.parseInt(MM) - 1);\n if (MM.length() < 2) {\n MM = \"0\" + MM;\n }\n\n calendarInstance = Calendar.getInstance();\n calendarInstance.set(Integer.parseInt(YYYY), Integer.parseInt(MM), Integer.parseInt(DD), Integer.parseInt(hh), Integer.parseInt(mm), Integer.parseInt(ss));\n return calendarInstance;\n } catch (Exception e) {\n throw new Exception(\"SetCalendar : \" + e.toString());\n }\n }", "public String parseTimeToTimeDate(String time) {\n Date date = null;\n try {\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm\", Locale.getDefault());\n String todaysDate = new SimpleDateFormat(\"yyyy-MM-dd\", Locale.getDefault()).format(new Date());\n date = simpleDateFormat.parse(todaysDate + \" \" + time);\n\n SimpleDateFormat sdf = new SimpleDateFormat(\"HH:mm dd,MMM\", Locale.getDefault());\n //sdf.setTimeZone(TimeZone.getTimeZone(\"UTC\"));\n return sdf.format(date);\n\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return null;\n }", "private static Date parseISOTimestringWithMillis(String timestring) throws ParseException{\r\n boolean containsT = timestring.contains(\"T\");\r\n boolean containsSpace = timestring.contains(\" \");\r\n int len = timestring.length();\r\n char colonTZ = timestring.charAt(len-3);\r\n if(colonTZ == ':'){\r\n String part1 = timestring.substring(0, len-3);\r\n String part2 = timestring.substring(len-2, len);\r\n try{\r\n if(containsT){\r\n Date date = formatMiliSecsTZwT.parse(part1+part2);\r\n return date;\r\n }else if(containsSpace){\r\n Date date = formatMiliSecsTZ.parse(part1+part2);\r\n return date;\r\n }\r\n else{\r\n throw new ParseException(\"Unsupported pattern!\", 0);\r\n }\r\n } catch(ParseException e){\r\n throw new ParseException(e.getMessage(), 0);\r\n }\r\n }\r\n else{\r\n throw new ParseException(\"Unsupported pattern!\", 0);\r\n }\r\n }", "public static TimeInstant parse(String timeInstantExpr) {\n if (timeInstantExpr == null || timeInstantExpr.length() == 0) {\n throw new IllegalArgumentException(\"Empty time instant expression\");\n }\n TimeInstant instant = new TimeInstant();\n String expr = timeInstantExpr.toLowerCase().trim();\n\n // now + time amount (optional)\n boolean begin = expr.startsWith(\"begin\");\n boolean end = expr.startsWith(\"end\");\n if (!begin && !end) {\n if (expr.startsWith(\"now\")) {\n instant.setTimeMode(TimeMode.NOW);\n if (expr.length() > 3) {\n instant.setTimeAmount(TimeAmount.parse(expr.substring(3)));\n }\n } else {\n instant.setTimeMode(null);\n instant.setTimeAmount(TimeAmount.parse(expr));\n }\n return instant;\n }\n // begin/end modes\n instant.setTimeMode(begin ? TimeMode.BEGIN : TimeMode.END);\n\n // Look for braces limits \"begin[year March]\"\n String example = begin ? \"begin[year March]\" : \"end[year March]\";\n int bracesBegin = expr.indexOf('[');\n int bracesEnd = expr.indexOf(']');\n if (bracesBegin == -1 || bracesEnd == -1 || bracesBegin >= bracesEnd) {\n throw new IllegalArgumentException(\"Missing braces (ex '\" + example + \"'): \" + timeInstantExpr);\n }\n // Interval type\n String[] intervalTerms = expr.substring(bracesBegin+1, bracesEnd).split(\"\\\\s+\");\n if (intervalTerms.length > 2) {\n throw new IllegalArgumentException(\"Too many settings (ex '\" + example + \"'): \" + timeInstantExpr);\n }\n instant.setIntervalType(DateIntervalType.getByName(intervalTerms[0]));\n if (instant.getIntervalType() == null) {\n throw new IllegalArgumentException(\"Invalid interval (ex '\" + example + \"'): \" + timeInstantExpr);\n }\n\n // First month of year\n if (intervalTerms.length == 2) {\n instant.setFirstMonthOfYear(Month.getByName(intervalTerms[1]));\n if (instant.getFirstMonthOfYear() == null) {\n throw new IllegalArgumentException(\"Invalid first year month (ex '\" + example + \"'): \" + timeInstantExpr);\n }\n }\n // Time amount\n if (bracesEnd < expr.length()) {\n expr = expr.substring(bracesEnd + 1).trim();\n if (!expr.isEmpty()) {\n TimeAmount timeAmount = TimeAmount.parse(expr);\n instant.setTimeAmount(timeAmount);\n }\n }\n return instant;\n }", "private Calendar parseCalendar(String dateString,String dateFormat) throws ParseException {\n\t\tif (dateString != null && dateString.length() > 0) {\n SimpleDateFormat sdf = new SimpleDateFormat(dateFormat);\n sdf.set2DigitYearStart((new GregorianCalendar(1950,01,01)).getTime());\n sdf.setLenient(false);\n\t\t GregorianCalendar cal = new GregorianCalendar();\n\t\t cal.setTime(sdf.parse(dateString.trim()));\n return cal;\n\t\t}\n return null;\n\t}", "public static Calendar convertStringDateToCalendar(String strCal)\r\n\t{\r\n\t\t//\"dd/mm/yyyy\"\r\n\t\tCalendar c = new GregorianCalendar();\r\n\t\t\r\n\t\tString[] arrCal = strCal.split(\"/\");\r\n\t\t\r\n\t\tint day = Integer.parseInt(arrCal[0]);\r\n\t\tint month = Integer.parseInt(arrCal[1]);\r\n\t\tint year = Integer.parseInt(arrCal[2]);\r\n\t\t\r\n\t\tc.set(Calendar.DAY_OF_MONTH, day);\r\n\t\tc.set(Calendar.MONTH, month-1);\r\n\t\tc.set(Calendar.YEAR, year);\r\n\t\t\r\n\t\treturn c;\r\n\t}", "public static double parse_time(String s) {\n double tm = -1;\n String patternStr = \"[:]\";\n String [] fields2 = s.split(patternStr);\n if (fields2.length >= 3) {\n tm = parse_double(fields2[2]) + 60 * parse_double(fields2[1]) + 3600 * parse_double(fields2[0]); // hrs:min:sec\n } else if (fields2.length == 2) {\n tm = parse_double(fields2[1]) + 60 * parse_double(fields2[0]); // min:sec\n } else if (fields2.length == 1){\n tm = parse_double(fields2[0]); //getColumn(_sec, head[TM_CLK]);\n }\n return tm;\n }", "private LocalDateTime parseTime(String time) {\n String[] str = time.split(\" \");\n String[] oldDate = str[0].split(\"/\");\n if (oldDate.length != 3) {\n throw new DukeException(\"OOPS!!! The time is not of the correct format!\");\n }\n LocalDateTime localTime;\n if (str.length > 1) {\n String hour = str[1].substring(0, 2);\n String min = str[1].substring(2, 4);\n\n localTime = LocalDateTime.of(Integer.parseInt(oldDate[2]), Integer.parseInt(oldDate[1]),\n Integer.parseInt(oldDate[0]), Integer.parseInt(hour), Integer.parseInt(min));\n } else {\n localTime = LocalDate.of(Integer.parseInt(oldDate[2]), Integer.parseInt(oldDate[1]),\n Integer.parseInt(oldDate[0]))\n .atStartOfDay();\n hasTime = false;\n }\n return localTime;\n }", "public static Date parse(String input) throws java.text.ParseException {\n\t\treturn new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss.S\").parse(input);\n\n\t}", "public static Date parseTimestamp(String time) throws ParseException{\r\n /**\r\n * Checks whether timestring contains UTC time zone identifier\r\n */\r\n boolean containsZ = time.contains(\"Z\");\r\n if(containsZ){\r\n time = time.replace(\"Z\", \"+0000\");\r\n }\r\n /**\r\n * checks if the timestring ends with \"+hh\" or \"-hh\" time zone definition\r\n * modifies timestring with minutes to time zone\r\n */\r\n char suffixTZ = time.charAt(time.length()-3);\r\n if(suffixTZ == '+' || suffixTZ == '-'){\r\n time = time+\"00\";\r\n }\r\n int len = time.length();\r\n /**\r\n * checks patterns ending with seconds only\r\n */\r\n if(len == patternSecsLen){\r\n return parseTimestampWithSeconds(time);\r\n }\r\n /**\r\n * checks patterns ending with milliseconds\r\n */\r\n else if(len == patternMiliSecsLen){\r\n return parseTimestringWithMillis(time);\r\n }\r\n /**\r\n * checks patterns ending with seconds and time zone\r\n */\r\n else if(len == patternSecsTZLen){\r\n return parseTimestampWithSecondsWithTimeZone(time);\r\n }\r\n /**\r\n * checks patterns ending with milliseconds and time zone\r\n */\r\n else if(len == patternMiliSecsTZLen){\r\n return parseTimestringWithMillisWithTimeZone(time);\r\n }\r\n /**\r\n * checks patterns according to ISO pattern\r\n */\r\n else if(len == patternISOLen){\r\n return parseISOTimestring(time);\r\n }\r\n /**\r\n * checks patterns according to ISO pattern with milliseconds\r\n */\r\n else if(len == patternISOMilisLen){\r\n return parseISOTimestringWithMillis(time);\r\n }\r\n /**\r\n * checks patterns ending with microseconds\r\n */\r\n else if(len == patternMicroSecLen){\r\n return parseTimestringWithMicros(time);\r\n }\r\n /**\r\n * checks patterns ending with microseconds and time zone\r\n */\r\n else if(len == patternMicroSecTZLen){\r\n return parseTimestringWithMicrosWithTimeZone(time);\r\n }\r\n \r\n else{\r\n throw new ParseException(\"Unsupported pattern!\", 0);\r\n }\r\n }", "public static GregorianCalendar TimeStampDecode(String timestamp)\n\t{\n\t\ttimestamp = PduCodec.swapDigits(timestamp);\n\t\tint year = Integer.parseInt(timestamp.substring(0, 2));\n\t\tint month = Integer.parseInt(timestamp.substring(2, 4)) - 1;\n\t\tint day = Integer.parseInt(timestamp.substring(4, 6));\n\t\tint hour = Integer.parseInt(timestamp.substring(6, 8));\n\t\tint minute = Integer.parseInt(timestamp.substring(8, 10));\n\t\tint second = Integer.parseInt(timestamp.substring(10, 12));\n\t\tint zone = Integer.parseInt(timestamp.substring(10, 12)) * (60 * 60 * 1000) / 4;\n\t\tGregorianCalendar time = new GregorianCalendar(year, month, day, hour, minute, second);\n\t\treturn time;\n\t}", "private static Date parseTimestringWithMillisWithTimeZone(String timestring) throws ParseException{\r\n boolean containsT = timestring.contains(\"T\");\r\n boolean containsSpace = timestring.contains(\" \");\r\n int len = timestring.length();\r\n char dot = timestring.charAt(len-9);\r\n boolean containsDot = false;\r\n if(dot == '.'){\r\n containsDot = true;\r\n }\r\n if(!containsT && containsSpace && containsDot){\r\n try {\r\n Date date = formatMiliSecsTZ.parse(timestring);\r\n return date;\r\n } catch (ParseException e) {\r\n throw new ParseException(e.getMessage(), 0);\r\n }\r\n }\r\n else if(containsT && !containsSpace && containsDot){\r\n try {\r\n Date date = formatMiliSecsTZwT.parse(timestring);\r\n return date;\r\n } catch (ParseException e) {\r\n throw new ParseException(e.getMessage(), 0);\r\n }\r\n }\r\n else{\r\n throw new ParseException(\"Unsupported pattern!\", 0);\r\n }\r\n }", "public static Date strToTime(String strDate)\r\n/* 135: */ {\r\n/* 136:192 */ SimpleDateFormat formatter = new SimpleDateFormat(\"yyyyMMdd HH:mm:ss\");\r\n/* 137:193 */ ParsePosition pos = new ParsePosition(0);\r\n/* 138:194 */ Date strtodate = formatter.parse(strDate, pos);\r\n/* 139:195 */ return strtodate;\r\n/* 140: */ }", "public static synchronized Date parseDate(String s) throws ParseException {\n return dateFormat.parse(s);\n }", "private static Date parseTimestringWithMillis(String timestring) throws ParseException{\r\n boolean containsT = timestring.contains(\"T\");\r\n boolean containsSpace = timestring.contains(\" \");\r\n int len = timestring.length();\r\n char dot = timestring.charAt(len-4);\r\n boolean containsDot = false;\r\n if(dot == '.'){\r\n containsDot = true;\r\n }\r\n if(!containsT && containsSpace && containsDot){\r\n try {\r\n Date date = formatMiliSecs.parse(timestring);\r\n return date;\r\n } catch (ParseException e) {\r\n throw new ParseException(e.getMessage(), 0);\r\n }\r\n }\r\n else if(containsT && !containsSpace && containsDot){\r\n try {\r\n Date date = formatMiliSecsWT.parse(timestring);\r\n return date;\r\n } catch (ParseException e) {\r\n throw new ParseException(e.getMessage(), 0);\r\n }\r\n }\r\n else{\r\n throw new ParseException(\"Unsupported pattern!\", 0);\r\n }\r\n }", "private static Date parseTimestampWithSeconds(String timestring) throws ParseException{\r\n boolean containsT = timestring.contains(\"T\");\r\n boolean containsSpace = timestring.contains(\" \");\r\n if(!containsT && containsSpace){\r\n try {\r\n Date date = formatSecs.parse(timestring);\r\n return date;\r\n } catch (ParseException e) {\r\n throw new ParseException(e.getMessage(), 0);\r\n }\r\n }\r\n else if(containsT && !containsSpace){\r\n try {\r\n Date date = formatSecsWT.parse(timestring);\r\n return date;\r\n } catch (ParseException e) {\r\n throw new ParseException(e.getMessage(), 0);\r\n }\r\n }\r\n else{\r\n throw new ParseException(\"Unsupported pattern!\", 0);\r\n }\r\n }", "public static GregorianCalendar stringToCalendar(String fecha,\n String formato){\n GregorianCalendar gc = new GregorianCalendar();\n try {\n fecha = nullToBlank(fecha);\n SimpleDateFormat df = new SimpleDateFormat(formato);\n gc.setTime(df.parse(fecha));\n } catch (Exception e) {\n e.printStackTrace();\n }\n return gc;\n }", "private LocalTime parse(String timeString, boolean recursivelyCalled) {\n LocalTime parsed = null;\n try {\n parsed = LocalTime.parse(timeString);\n } catch (DateTimeParseException | IndexOutOfBoundsException exception) {\n int indexOfColon = timeString.indexOf(\":\");\n String newString = null;\n if (recursivelyCalled) {\n //Has excepted on the supposedly \"fixed\" & parsable string, now try removing the end of the string\n newString = timeString.substring(indexOfColon - 2, indexOfColon + 3); //ie \"12:30blabla\" would return \"12:30\"\n } else {\n newString = timeString.substring(indexOfColon - 2);\n }\n return parse(newString, true);\n }\n return parsed;\n }", "public static Date parseHourMinute(String formattedTime) {\n\t\treturn parseDate(formattedTime, HOUR_MINUTE_FORMAT);\n\t}", "public Date parse (String dateAsString , String dateFormat) throws Exception ;", "private Date stringToDate(String s) throws ParseException{\r\n\t\tSimpleDateFormat fmt = new SimpleDateFormat(DATE_FORMAT);\r\n\t\treturn fmt.parse(s);\r\n\t}", "public static Timestamp parseString(String timestampString) {\n return parseString(timestampString, null, true);\n }", "public static LocalTime parse(CharSequence text) {\n\t\tMatcher m = TIME_PATTERN.matcher(text);\n\t\treturn extract(m).orElseThrow(() -> new DateTimeParseException(\"not a time\", text, 0));\n\t}", "public static String fromDate(String s){\n \t\t\n \t\tString[] date = s.split(\"T\");\n \t\tString time = date[1].substring(0,5);\n \t\tString[] dates = date[0].split(\"-\"); \n \t\tString month = dates[1];\n \t\tString day = dates[2];\n \t\t\n \t\treturn day + \"/\" + month + \", kl: \" + time;\n \t}", "@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 LocalDateTime parseTimeString(\n String time, String pattern) throws DukeParseException {\n try {\n DateTimeFormatter dtf = DateTimeFormatter.ofPattern(pattern);\n LocalTime localTime = LocalTime.parse(time, dtf);\n return LocalDateTime.of(LocalDate.now(), localTime);\n } catch (DateTimeParseException exception) {\n String msg = String.format(\"Ensure the time passed in is of the form: '%s'.\", pattern);\n throw new DukeParseException(msg);\n }\n }", "private static Date parseTimestampWithSecondsWithTimeZone(String timestring) throws ParseException{\r\n boolean containsT = timestring.contains(\"T\");\r\n boolean containsSpace = timestring.contains(\" \");\r\n if(!containsT && containsSpace){\r\n try {\r\n Date date = formatSecsTZ.parse(timestring);\r\n return date;\r\n } catch (ParseException e) {\r\n throw new ParseException(e.getMessage(), 0);\r\n }\r\n }\r\n else if(containsT && !containsSpace){\r\n try {\r\n Date date = formatSecsTZwT.parse(timestring);\r\n return date;\r\n } catch (ParseException e) {\r\n throw new ParseException(e.getMessage(), 0);\r\n }\r\n }\r\n else{\r\n throw new ParseException(\"Unsupported pattern!\", 0);\r\n }\r\n }", "public CinemaDate setTime(String t) {\n return new CinemaDate(this.month, this.day, t);\n }", "@Test\n\tpublic void parseTimeTest() {\n\t\tfinal String printTime = \"00:27:55.916+01:00\";\n\t\tfinal XmlTimeTypeAdapter xmlTimeTypeAdapter = new XmlTimeTypeAdapter();\n\t\tfinal Date simpleSwedishDateForm = xmlTimeTypeAdapter.unmarshal(printTime);\n\t\tassertEquals(\"Expect specified time\",printTime,xmlTimeTypeAdapter.marshal(simpleSwedishDateForm));\n\n\t\tassertNull(\"Expect null\",xmlTimeTypeAdapter.unmarshal(null));\n\t\tassertNull(\"Expect null\",xmlTimeTypeAdapter.marshal(null));\n\n\t}", "private Object parse(\n String value\n ){\n return \n value.startsWith(\"P\") || value.startsWith(\"-P\") ? Datatypes.create(Duration.class, value) : \n value.indexOf('T') < 0 ? Datatypes.create(XMLGregorianCalendar.class, value) : \n Datatypes.create(java.util.Date.class, value);\n }", "public static AbsTime factory(String t) throws NumberFormatException, Time.Ex_TimeNotAvailable\n {\n // The value to return.\n AbsTime result;\n\n // Check for ASAP and NEVER.\n if (t.equals(\"ASAP\")) {\n // No need to make a new object.\n result = ASAP;\n } else if (t.equals(\"NEVER\")) {\n // No need to make a new object.\n result = NEVER;\n } else if (t.equals(\"NOW\")) {\n // Make a new object using null constructor.\n result = new AbsTime();\n } else {\n // Not a special case. Need to make a new object.\n result = new AbsTime(t);\n }\n\n return result;\n }", "private static Date parseTimestringWithMicrosWithTimeZone(String timestring) throws ParseException {\r\n boolean containsT = timestring.contains(\"T\");\r\n boolean containsSpace = timestring.contains(\" \");\r\n boolean containsDot = false;\r\n int len = timestring.length();\r\n char dot = timestring.charAt(len-12);\r\n if(dot == '.'){\r\n containsDot = true;\r\n }\r\n if(!containsT && containsSpace && containsDot){\r\n try {\r\n String milisTime = timestring.substring(0, patternMiliSecsLen);\r\n String timeZone = timestring.substring(len-5, len);\r\n Date date = formatMiliSecsTZ.parse(milisTime+timeZone);\r\n return date;\r\n } catch (ParseException e) {\r\n throw new ParseException(e.getMessage(), 0);\r\n }\r\n }\r\n else if(containsT && !containsSpace && containsDot){\r\n try {\r\n String milisTime = timestring.substring(0, patternMiliSecsWTLen);\r\n String timeZone = timestring.substring(len-5, len);\r\n Date date = formatMiliSecsTZwT.parse(milisTime+timeZone);\r\n return date;\r\n } catch (ParseException e) {\r\n throw new ParseException(e.getMessage(), 0);\r\n }\r\n }\r\n else{\r\n throw new ParseException(\"Unsupported pattern!\", 0);\r\n }\r\n }", "public Object parseDateTime(long systemTimeMillis);", "public static Calendar parseISODate(String dateAsString, String timezone) throws ParseException {\n\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(DATE_FORMAT, Locale.US);\n simpleDateFormat.setTimeZone(TimeZone.getTimeZone(SERVER_TIME_ZONE));\n try {\n\n Calendar date = Calendar.getInstance();\n\n if (dateAsString != null && !(dateAsString.equalsIgnoreCase(\"\"))) {\n\n date.setTime(simpleDateFormat.parse(dateAsString));\n date.setTimeZone(TimeZone.getTimeZone(timezone));\n\n }\n\n return date;\n\n } catch (ParseException e) {\n\n Log.d(TAG, \"Failed to parse date: \" + dateAsString + \" to iso format: \" + DATE_FORMAT);\n throw e;\n\n }\n\n }", "private LocalDateTime parseDate(String s) {\n String[] splitDate = s.split(\" \", 2);\n // Split day, month, year\n String[] splitDateElements = splitDate[0].split(\"/\", 3);\n int day = parseInt(splitDateElements[0]);\n int month = parseInt(splitDateElements[1]);\n int year = parseInt(splitDateElements[2]);\n // Split hours and minutes\n int hours = parseInt(splitDate[1].substring(0, 2));\n int mins = parseInt(splitDate[1].substring(2, 4));\n return LocalDateTime.of(year, month, day, hours, mins);\n }", "@Test\n\tpublic void testParseDate1() throws ParseException {\n\t\tDate date = ParserFacade.getInstance().parseDate(\"1/2 2am\");\n\n\t\tCalendar cal = Calendar.getInstance();\n\t\tcal.set(Calendar.DATE, 1);\n\t\tcal.set(Calendar.MONTH, 1);\n\t\tcal.set(Calendar.HOUR_OF_DAY, 2);\n\t\tcal.set(Calendar.MINUTE, 0);\n\t\tcal.set(Calendar.SECOND, 0);\n\t\tcal.set(Calendar.MILLISECOND, 0);\n\t\tassertEquals(cal.getTime(), date);\n\n\t}", "private static Date parseTimestringWithMicros(String timestring) throws ParseException{\r\n boolean containsT = timestring.contains(\"T\");\r\n boolean containsSpace = timestring.contains(\" \");\r\n boolean containsDot = false;\r\n int len = timestring.length();\r\n char dot = timestring.charAt(len-7);\r\n if(dot == '.'){\r\n containsDot = true;\r\n }\r\n if(!containsT && containsSpace && containsDot){\r\n try {\r\n String milisTime = timestring.substring(0, patternMiliSecsLen);\r\n Date date = formatMiliSecs.parse(milisTime);\r\n return date;\r\n } catch (ParseException e) {\r\n throw new ParseException(e.getMessage(), 0);\r\n }\r\n }\r\n else if(containsT && !containsSpace && containsDot){\r\n try {\r\n String milisTime = timestring.substring(0, patternMiliSecsWTLen);\r\n Date date = formatMiliSecsWT.parse(milisTime);\r\n return date;\r\n } catch (ParseException e) {\r\n throw new ParseException(e.getMessage(), 0);\r\n }\r\n }\r\n else{\r\n throw new ParseException(\"Unsupported pattern!\", 0);\r\n }\r\n }", "@Override\r\n\tpublic Time convert(String input, Class<? extends Time> targetType,\r\n\t\t\tCollection<ValidationError> errors) {\r\n\r\n\t\tinput = input.trim();\r\n\r\n\t\tDate date = null;\r\n\r\n\t\tfor (DateFormat format : this.formats) {\r\n\t\t\ttry {\r\n\t\t\t\tdate = format.parse(input);\r\n\t\t\t\tbreak;\r\n\t\t\t} catch (ParseException pe) {} /* Do nothing, we'll get lots of these. */\r\n\t\t}\r\n\t\t\r\n\t\t// If we successfully parsed, convert date to time and return, \r\n\t\t// otherwise send back an error\r\n\t\tif (date != null) {\r\n\t\t\treturn new Time(date.getTime());\r\n\t\t} else {\r\n\t\t\terrors.add(new ScopedLocalizableError(\"converter.time\",\"invalidTime\"));\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "public static LocalDate parseTime(String time) throws DateTimeParseException {\n try {\n return LocalDate.parse(time);\n } catch (DateTimeParseException e) {\n throw new DukeException(\"OOPS!!! Please specify the time in the yyyy-mm-dd format.\\n\");\n }\n }", "@Override\n public void parse(String sentence) {\n String[] tmp = sentence.split(DELIM);\n if (tmp.length > 5) {\n try {\n\n Date btTime = timeFormatter.parse(tmp[1]);\n\n // Timezone code\n /*\n * int timeZone = parseStringToInt(tmp[5]); int\n * offSetMinutes; if (timeZone < 0) { offSetMinutes =\n * timeZone*60 - parseStringToInt(tmp[6]); } else {\n * offSetMinutes = timeZone*60 + parseStringToInt(tmp[6]); }\n * TimeZone myGPSTimezone = TimeZone.getTimeZone(\"UTC\");\n * myGPSTimezone.setRawOffset(offSetMinutes*60*1000);\n */\n GPSCalendar.setTimeInMillis(btTime.getTime());\n GPSCalendar.set(parseStringToInt(tmp[4]), parseStringToInt(tmp[3]),\n parseStringToInt(tmp[2]));\n\n updateTimeStamp(GPSCalendar.getTimeInMillis());\n if (!\"A\".equals(tmp[6])) {\n return;\n }\n } catch (ParseException e) {\n Log.e(TAG, \"Could not parse: \" + tmp[1]);\n return;\n }\n }\n }", "public DERUTCTime(String time) {\n\t}", "private static Long parseTimeStrictly(String s) throws IllegalArgumentException\n {\n String nanos_s;\n\n long hour;\n long minute;\n long second;\n long a_nanos = 0;\n\n String formatError = \"Timestamp format must be hh:mm:ss[.fffffffff]\";\n String zeros = \"000000000\";\n\n if (s == null)\n throw new java.lang.IllegalArgumentException(formatError);\n s = s.trim();\n\n // Parse the time\n int firstColon = s.indexOf(':');\n int secondColon = s.indexOf(':', firstColon+1);\n\n // Convert the time; default missing nanos\n if (firstColon > 0 && secondColon > 0 && secondColon < s.length() - 1)\n {\n int period = s.indexOf('.', secondColon+1);\n hour = Integer.parseInt(s.substring(0, firstColon));\n if (hour < 0 || hour >= 24)\n throw new IllegalArgumentException(\"Hour out of bounds.\");\n\n minute = Integer.parseInt(s.substring(firstColon + 1, secondColon));\n if (minute < 0 || minute >= 60)\n throw new IllegalArgumentException(\"Minute out of bounds.\");\n\n if (period > 0 && period < s.length() - 1)\n {\n second = Integer.parseInt(s.substring(secondColon + 1, period));\n if (second < 0 || second >= 60)\n throw new IllegalArgumentException(\"Second out of bounds.\");\n\n nanos_s = s.substring(period + 1);\n if (nanos_s.length() > 9)\n throw new IllegalArgumentException(formatError);\n if (!Character.isDigit(nanos_s.charAt(0)))\n throw new IllegalArgumentException(formatError);\n nanos_s = nanos_s + zeros.substring(0, 9 - nanos_s.length());\n a_nanos = Integer.parseInt(nanos_s);\n }\n else if (period > 0)\n throw new IllegalArgumentException(formatError);\n else\n {\n second = Integer.parseInt(s.substring(secondColon + 1));\n if (second < 0 || second >= 60)\n throw new IllegalArgumentException(\"Second out of bounds.\");\n }\n }\n else\n throw new IllegalArgumentException(formatError);\n\n long rawTime = 0;\n rawTime += TimeUnit.HOURS.toNanos(hour);\n rawTime += TimeUnit.MINUTES.toNanos(minute);\n rawTime += TimeUnit.SECONDS.toNanos(second);\n rawTime += a_nanos;\n return rawTime;\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 static String m128354a(String str) {\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"yyyy-MM-dd-HHmmssSSS\", Locale.US);\n Calendar instance = Calendar.getInstance(TimeZone.getTimeZone(\"GMT+8\"));\n C7573i.m23582a((Object) instance, \"calendar\");\n Date time = instance.getTime();\n StringBuilder sb = new StringBuilder();\n sb.append(simpleDateFormat.format(time));\n sb.append(str);\n return sb.toString();\n }", "public Date unmarshal( String value )\n {\n return DatatypeConverter.parseDateTime( value ).getTime();\n }", "private Date localTimeToDate(String time) {\n return new Date(Timestamp.valueOf(time.replace(\"T\", \" \").concat(\":00\")).getTime());\n }", "public static Date convert_string_time_into_original_time(String hhmmaa) {\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"HH:mm aa\");\n Date convertedDate = new Date();\n try {\n convertedDate = dateFormat.parse(hhmmaa);\n } catch (ParseException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n return convertedDate;\n }", "@Override\n\tpublic String convertTime(String aTime) {\n\t\tBerlinClock berlinClock = new BerlinClockImpl();\n\t\treturn berlinClock.convertTime(aTime);\n\t}", "public static TimeRange parse(String value) {\n\t\tTimeRange obj = new TimeRange();\n\t\tString startStr = null;\n\t\tString endStr = null;\n\t\tif (value.contains(\"-\")) {\n\t\t\tString[] startEnd = value.split(\"-\");\n\t\t\tstartStr = startEnd[0];\n\t\t\tendStr = startEnd[1];\n\t\t} else {\n\t\t\tstartStr = value;\n\t\t}\n\t\tlong start = 0;\n\t\tlong end = 0;\n\t\tString[] values = startStr.split(\":\");\n\t\tint size = values.length;\n\t\tfor (int i=0; i<size; i++) {\n\t\t\tstart += getValue(values[i], i);\n\t\t}\n\t\tif (endStr == null) {\n\t\t\tend = start;\n\t\t} else {\n\t\t\tvalues = endStr.split(\":\");\n\t\t\tsize = values.length;\n\t\t\tfor (int i=0; i<size; i++) {\n\t\t\t\tend += getValue(values[i], i);\n\t\t\t}\n\t\t}\n\t\tobj.setStart(start);\n\t\tobj.setEnd(end);\n\t\treturn obj;\n\t}", "public static LocalDateTime convertStringToTime(String time) {\n\t\treturn LocalDateTime.parse(time, DateTimeFormatter.ISO_LOCAL_DATE_TIME)\n\t\t\t\t\t\t\t .truncatedTo(ChronoUnit.MINUTES);\n\t}", "public ClockTime(String value) {\n this(value,null);\n }", "public static Date parseDateTime(String str)\n {\n if(Empty.isEmpty(str))\n return null;\n if(str.length() <= 10)\n return parse(str);\n try{\n \treturn (new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\")).parse(str);\n\t\t}catch(ParseException e){\n\t\t \t return null;\n\t\t}\n }", "public static long getTimeInMillis(String formatted_time){\n \t\n \tlong firstTime = System.currentTimeMillis();\n \tint hour;\n \tint minute;\n\n \tif (formatted_time != null){\n \t\t\n \t\tString[] timeString = formatted_time.split(\":\");\n \tif (timeString.length != 2)\n \t\treturn firstTime;\n \telse{\n \t\thour = Integer.parseInt(timeString[0]);\n \t\tminute = Integer.parseInt(timeString[1]);\n \t}\n \t\n\t \tCalendar cal = Calendar.getInstance();\n\t cal.set(Calendar.HOUR_OF_DAY,hour);\n\t cal.set(Calendar.MINUTE,minute);\n\t cal.set(Calendar.SECOND,0);\n\t \tfirstTime = cal.getTimeInMillis();\n \t}\n \t\n \treturn firstTime;\n }", "private static void m1() {\n\n String d = \"2019/03/22 10:00-11:00\";\n DateFormat df = new SimpleDateFormat(\"yyyy/MM/dd HH:mm-HH:mm\");\n try {\n Date parse = df.parse(d);\n System.out.println(df.format(parse));\n } catch (ParseException e) {\n e.printStackTrace();\n }\n }", "private static Date convertFromString(String dateString) throws ParseException {\n return new SimpleDateFormat(\"yyyyMMddHHmm\").parse(dateString);\n }", "public static MCAlarmInfo StringToAlarmInfo(String strText)\n\t{\n\t\tif (strText == null || strText.length() <= 0)\n\t\t\treturn null;\n\n\t\tStringTokenizer tok = new StringTokenizer(strText, FIELD_SEP);\n\n\t\tint nTokens = tok.countTokens();\n\n\t\tif (nTokens != 4 && nTokens != 5)\n\t\t\treturn null;\n\n\t\tString strTitle, strType, strTime, strHour, strMin, strZone;\n\t\tString strData = null;\n\n\t\tstrType = tok.nextToken();\n\t\tstrTitle = tok.nextToken();\n\t\tstrTime = tok.nextToken();\n\t\tstrZone = tok.nextToken();\n\t\tif (nTokens == 5)\n\t\t\tstrData = tok.nextToken();\n\n\t\tint nType, nHour, nMin;\n\n\t\ttry\n\t\t{\n\t\t\tnType = Integer.parseInt(strType);\n\t\t}\n\t\tcatch(NumberFormatException e)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\n\t\tStringTokenizer tokTime = new StringTokenizer(strTime, TIME_SEP);\n\t\tif (tokTime.countTokens() != 2)\n\t\t\treturn null;\n\n\t\tstrHour = tokTime.nextToken();\n\t\tstrMin = tokTime.nextToken();\n\n\t\ttry\n\t\t{\n\t\t\tnHour = Integer.parseInt(strHour);\n\t\t\tnMin = Integer.parseInt(strMin);\n\t\t}\n\t\tcatch(NumberFormatException e)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\n\t\tint nData = 0;\n\t\tDate date = null;\n\t\tif (strData != null)\n\t\t{\n\t\t\tif (nType == AT_DATE)\n\t\t\t{\n\t\t\t\tdate = GValidator.StringToDate(strData);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tnData = Integer.parseInt(strData);\n\t\t\t\t}\n\t\t\t\tcatch(NumberFormatException e)\n\t\t\t\t{\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tMCAlarmInfo alarmInfo = null;\n\n\t\tswitch(nType)\n\t\t{\n\t\t\tcase AT_DAILY:\n\t\t\t{\n\t\t\t\talarmInfo = new MCAlarmInfo();\n\t\t\t\talarmInfo.setDailyTime(nHour, nMin);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase AT_WEEK_DAY:\n\t\t\t{\n\t\t\t\talarmInfo = new MCAlarmInfo();\n\t\t\t\talarmInfo.setWeekDayTime(nHour, nMin, nData);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase AT_MONTH_DATE:\n\t\t\t{\n\t\t\t\talarmInfo = new MCAlarmInfo();\n\t\t\t\talarmInfo.setMonthDateTime(nHour, nMin, nData);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase AT_MONTH_START:\n\t\t\t{\n\t\t\t\talarmInfo = new MCAlarmInfo();\n\t\t\t\talarmInfo.setMonthStartTime(nHour, nMin);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase AT_MONTH_END:\n\t\t\t{\n\t\t\t\talarmInfo = new MCAlarmInfo();\n\t\t\t\talarmInfo.setMonthEndTime(nHour, nMin);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase AT_DATE:\n\t\t\t{\n\t\t\t\talarmInfo = new MCAlarmInfo();\n\t\t\t\talarmInfo.setDateTime(nHour, nMin, date);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tdefault:\n\t\t\t\t; //do nothing; null will be returned\n\t\t}\n\n\t\tif (alarmInfo != null)\n\t\t{\n\t\t\talarmInfo.setTimeZone(strZone);\n\t\t\talarmInfo.setTitle(strTitle);\n\t\t}\n\n\t\treturn alarmInfo;\n\t}", "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 void parse(String str) throws NumberFormatException, Time.Ex_TimeNotAvailable\n {\n // Remove any extraneous whitespace before parsing\n str = str.trim();\n\n // Apply some heuristics to str to figure out what format it\n // is in, then call the appropriate parsing function.\n if ((str.length() >= 3) && (str.substring(0, 2).equals(\"0x\"))) {\n // If the string begins with \"0x\", then it should be HEX_BAT.\n parseHexBAT(str);\n } else if (str.charAt(4) == ' ') {\n // Fifth character is a space, therefore should be in FORMATTED_BAT\n // format.\n parseFormattedBAT(str);\n } else if (str.charAt(4) == '-') {\n // Fifth character is a \"-\", therefore should be in UTC_STRING format.\n parseUTCString(str);\n } else if (str.indexOf('.') != -1) {\n // The string contains a \".\" charcater. Try to parse it as SECS_BAT.\n parseSecsBAT(str);\n } else {\n // Fall through to DECIMAL_BAT format.\n parseDecimalBAT(str);\n }\n // Check that we didn't create an ASAP or NEVER by mistake.\n if (isASAP() || isNEVER()) {\n throw new NumberFormatException(\"absolute time reserved value: \\\"\" + str + \"\\\"\");\n }\n }", "public static DateTime parseTimestampWithTimeZone(String str) {\n return DateTimeFormat.forPattern(\"yyyy-MM-dd HH:mm:ssZ\").parseDateTime(str);\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 }", "private static String convertTime(String timeString) {\n try {\n int timeIn24hRepresentation = Integer.parseInt(timeString);\n int hours = timeIn24hRepresentation / 100;\n int minutes = timeIn24hRepresentation % 100;\n boolean isOutOfBounds = hours < 0 || hours > 24 || minutes < 0 || minutes > 60;\n boolean cannotConvertToTime = timeString.length() != 4;\n\n if (isOutOfBounds || cannotConvertToTime) {\n return timeString;\n } else {\n return convertTimeToStringRepresentation(hours, minutes);\n }\n } catch (NumberFormatException e) {\n return timeString;\n }\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 Date convertMongoToDate(String dateString, String timeString) {\n int year = Integer.parseInt(dateString.substring(0, 4));\n //Log.e(\"KARA\", \"year \" + year);\n int month = Integer.parseInt(dateString.substring(5, 7));\n //Log.e(\"KARA\", \"month \" + month);\n int day = Integer.parseInt(dateString.substring(8, 10));\n //Log.e(\"KARA\", \"day \" + day);\n int hour = Integer.parseInt(timeString.substring(0, 2));\n //Log.e(\"KARA\", \"hour \" + hour);\n int min = Integer.parseInt(timeString.substring(3, 5));\n return new Date(year - 1900, month - 1, day, hour, min);\n }", "public static String timeConversion(String s) {\n // Write your code here\n String end = s.substring(2, s.length() - 2);\n String ans = s.substring(0, s.length() - 2);\n if (s.charAt(8) == 'A') {\n return s.startsWith(\"12\") ? \"00\" + end : ans;\n }\n\n return s.startsWith(\"12\") ? ans : (Integer.parseInt(s.substring(0, 2)) + 12) + end;\n }" ]
[ "0.66842437", "0.6361885", "0.6353294", "0.63191134", "0.6281127", "0.60938156", "0.60829115", "0.6030776", "0.5911416", "0.58702725", "0.58514225", "0.58387697", "0.5782855", "0.5777876", "0.5730492", "0.57110643", "0.56905794", "0.5653294", "0.5613566", "0.55886537", "0.5549217", "0.5543771", "0.5496131", "0.5456106", "0.5444507", "0.54374695", "0.5423196", "0.53915524", "0.53469336", "0.5337155", "0.5334472", "0.5282509", "0.5261154", "0.5254742", "0.52426904", "0.5195172", "0.51948094", "0.5172831", "0.51530576", "0.5151132", "0.51386076", "0.51312834", "0.51235014", "0.510483", "0.5096965", "0.50914276", "0.5086782", "0.50828755", "0.5059844", "0.5029083", "0.50289094", "0.50251156", "0.5017366", "0.50114506", "0.49874854", "0.49835935", "0.49347094", "0.49328133", "0.49211997", "0.49010116", "0.48970288", "0.48902276", "0.48607692", "0.48586398", "0.48561227", "0.48455375", "0.48117688", "0.4810789", "0.47844648", "0.47748294", "0.4766649", "0.47659525", "0.47577822", "0.47462258", "0.47439948", "0.47407088", "0.47358182", "0.47254288", "0.47235012", "0.47194055", "0.4711995", "0.47059974", "0.4699848", "0.46872926", "0.46815673", "0.4675129", "0.46618697", "0.46415773", "0.4636468", "0.4630881", "0.4624724", "0.4608694", "0.46050578", "0.45920795", "0.45913965", "0.45860285", "0.4581162", "0.4579667", "0.45630807", "0.45604682" ]
0.7072354
0
This method was generated by MyBatis Generator. This method corresponds to the database table wd_vocab
public WdVocabExample() { oredCriteria = new ArrayList<Criteria>(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<VocabWord> document(int index);", "int[] documents(VocabWord vocabWord);", "public static void writeVocab(Vocab vocab) {\n String userId = FirebaseAuth.getInstance().getUid();\n Log.d(\"000\", \"writeVocab: \"+userId);\n mDatabase.child(\"user\").child(userId).child(\"vocab\").child(vocab.Id).setValue(vocab);\n }", "void addWordsToDoc(int doc,List<VocabWord> words);", "void addWordToDoc(int doc,VocabWord word);", "public VocabularyTerms() {}", "public Vector mapDocument(BOW bow) {\n //logger.info(\"lsm.mapDocument\");\n SparseVector vector = new SparseVector();\n\n Iterator<String> it = bow.termSet().iterator();\n String term = null;\n int index = 0;\n //int tf = 0;\n float tfIdf;\n for (int i = 0; it.hasNext(); i++) {\n //logger.info(i + \" \" + t[i]);\n term = it.next();\n index = termIndex.get(term);\n\n if (index != -1) {\n //tf = bow.getFrequency(term);\n //tfIdf = (float) (log2(tf)) * Iidf[index];\n //tfIdf = (float) bow.augmentedFrequency(term) * Iidf[index];\n tfIdf = (float) bow.tf(term) * Iidf[index];\n //logger.info(term + \" ==> \" + index + \", tf.idf = \" + tf + \"(\" + (log2(tf)) + \") * \" + Iidf[index] + \" = \" + tfIdf);\n vector.add(index, tfIdf);\n\n }\n } // end for\n\n return vector;\n }", "@Id\n @Column(name=\"term_key\")\n public int getTermKey() {\n\treturn termKey;\n }", "private static void setWordPosition() {\n\t\tSet setKeys = Utility.vocabHM.keySet();\n\t\tIterator i = setKeys.iterator();\n\t\tint position = 0;\n\t\twhile (i.hasNext()) {\n\t\t\tString w = (String) i.next();\n\t\t\tInteger rows[] = new Integer[2];\n\t\t\trows[0] = new Integer(position); /* word position */\n\t\t\trows[1] = (Integer) Utility.vocabHM.get(w); /* df */\n\n\t\t\tUtility.vocabHM.put(w, rows);\n\t\t\tposition++;\n\t\t}\n\t}", "public Vector<Word> allKeyValue(){\n\n\tVector<Word> words = new Vector<Word>();\n\tfor(int w = 0; w < theTable.length; w++){\n\t // System.out.println(\"w: \" + w);\n\t // System.out.println(\"theTable[w]: \" + theTable[w]);\n\t if(theTable[w] != null){\n\t\twords.addElement(theTable[w]);\n\t }\n\t}\n\treturn words;\n }", "public static void deleteVocab(Context context){\n Toast.makeText(context, \"deleted\", Toast.LENGTH_SHORT).show();\n DatabaseReference vocabRef=FirebaseDatabase.getInstance().getReference().child(\"user\").child(FirebaseAuth.getInstance().getUid()).child(\"vocab\").child(currentVocabId);\n vocabRef.removeValue();\n }", "public Controlador(boolean newTable){\n if(newTable){\n vocabulario = new TSB_OAHashtable<>();\n }\n }", "public static void initVocabData() {\n FirebaseDatabase.getInstance().getReference().child(\"user\").child(FirebaseAuth.getInstance().getUid()).child(\"vocab\")\n .addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n staticVocabs.clear();\n for(DataSnapshot snapshot: dataSnapshot.getChildren() ){\n Vocab vocab = snapshot.getValue(Vocab.class);\n staticVocabs.add(vocab);\n size=1;\n }\n vocabsAdapter.notifyDataSetChanged();\n if (staticVocabs.size()==0){\n vocabsRecyclerView.setVisibility(View.INVISIBLE);\n isFirst.setVisibility(View.VISIBLE);\n notFirst.setVisibility(View.INVISIBLE);\n\n }else {\n vocabsRecyclerView.setVisibility(View.VISIBLE);\n isFirst.setVisibility(View.INVISIBLE);\n notFirst.setVisibility(View.VISIBLE);\n }\n }\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n }\n });\n }", "List<WdWordDict> selectByExample(WdWordDictExample example);", "@Query(\"SELECT * from english_word ORDER BY word ASC limit 300\")\n List<StoredEnglishWord> findAllWords();", "public void saveVocab (Vocabulary v, String vocabFilePath) throws IOException {\n\t\tFile file = new File(vocabFilePath);\n\t\t//if (file.exists()) file.delete();\n\t\t//file.createNewFile();\n\t\tBufferedWriter bw = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(file)));\n\t\tfor (int i = 0; i < v.vocabSize; i++) {\n\t\t\tbw.write(v.vocab.get(i).word + \" \" + v.vocab.get(i).cn + \"\\n\");\n\t\t}\n\t\tbw.close();\n\t}", "public void setVocubalaryId(long vocubalaryId);", "private void setVocabulary(int vocSize) {\n\t\tArrayList<String> chosen = new ArrayList<String>();\n\t\twhile (chosen.size() < vocSize) {\n\t\t\tint max = 0;\n\t\t\tString best = \"\";\n\t\t\tfor (String t : df.keySet()) {\n\t\t\t\tif (df.get(t) > max && !chosen.contains(t)) {\n\t\t\t\t\tmax = df.get(t);\n\t\t\t\t\tbest = t;\n\t\t\t\t}\n\t\t\t}\n\t\t\tchosen.add(best);\n\t\t}\n\t\tvocab = chosen;\n\t}", "public void constructOntologyVocabulary() {\n ontologyOwlClassVocabulary = new HashMap<>();\n ontologyOWLDataPropertyVocabulary = new HashMap<>();\n ontologyOWLNamedIndividualVocabulary = new HashMap<>();\n ontologyOWLObjectPropertylVocabulary = new HashMap<>();\n\n Set<OWLClass> classes = domainOntology.getClassesInSignature();\n Set<OWLNamedIndividual> individualPropertyAtom = domainOntology.getIndividualsInSignature();\n Set<OWLDataProperty> dataProperty = domainOntology.getDataPropertiesInSignature();\n Set<OWLObjectProperty> OWLObjectPropertyAtom = domainOntology.getObjectPropertiesInSignature();\n String tempName = null;\n\n for (OWLClass c : classes) {\n tempName = c.toString();\n tempName = tempName.substring(tempName.lastIndexOf(\"/\") + 1);\n tempName = TextUtil.formatName(tempName);\n ontologyOwlClassVocabulary.put(tempName, c);\n }\n for (OWLDataProperty d : dataProperty) {\n tempName = d.toString();\n tempName = tempName.substring(tempName.lastIndexOf(\"/\") + 1);\n tempName = TextUtil.formatName(tempName);\n ontologyOWLDataPropertyVocabulary.put(tempName, d);\n }\n for (OWLNamedIndividual i : individualPropertyAtom) {\n tempName = i.toString();\n tempName = tempName.substring(tempName.lastIndexOf(\"/\") + 1);\n tempName = TextUtil.formatName(tempName);\n ontologyOWLNamedIndividualVocabulary.put(tempName, i);\n }\n for (OWLObjectProperty o : OWLObjectPropertyAtom) {\n tempName = o.toString();\n tempName = tempName.substring(tempName.lastIndexOf(\"/\") + 1);\n tempName = TextUtil.formatName(tempName);\n ontologyOWLObjectPropertylVocabulary.put(tempName, o);\n }\n }", "public void getVector() throws IOException {\n\t\tint i=1;\r\n\t\tfor(String key:keyword){\r\n\t\t\tWord w=new Word();\r\n\t\t\tdouble tf=calTF(key);\r\n\t\t\tdouble idf=calIDF(key);\r\n\t\t\tdouble tfidf=tf*idf;\r\n\t\t\tw.setId(i);\r\n\t\t\ti++;\r\n\t\t\tw.setName(key);\r\n\t\t\tw.setTfidf(tfidf);\r\n\t\t\tif(word.containsKey(key)){\r\n\t\t\t\tw.setCount((Integer) word.get(key));\r\n\t\t\t}\r\n\t\t\tkeymap.add(w);\r\n\t\t}\r\n\t\tFileHelper.writeTrainFile(keymap);\r\n\t\tFileHelper.writeTestFile(keymap);\r\n\t}", "public int getTermIndex() {return termIndex;}", "public String getKeyWordTableName() {\r\n\t\treturn keyWordTableName;\r\n\t}", "@Override\n public String getTableName() {\n return getFreeTextDocTablename(conf);\n }", "private Vocabulary() {\n }", "public Vector mapDocument(BOW bow, boolean b) {\n //logger.info(\"lsm.mapDocument \" + b);\n SparseVector vector = new SparseVector();\n\n Iterator<String> it = bow.termSet().iterator();\n for (int i = 0; it.hasNext(); i++) {\n //logger.info(i + \" \" + t[i]);\n String term = it.next();\n int index = termIndex.get(term);\n\n if (index != -1) {\n int tf = bow.getFrequency(term);\n float tfIdf = (float) (log2(tf));\n if (b) {\n tfIdf *= Iidf[index];\n }\n\n //logger.info(term + \" ==> \" + index + \", tf.idf = \" + tf + \"(\" + (log2(tf)) + \") * \" + Iidf[index] + \" = \" + tfIdf);\n vector.add(index, tfIdf);\n\n }\n } // end for\n\n return vector;\n }", "void skillsFound( String key ) {\n developer.skills = new ArrayList<>();\n }", "@Override\n\tpublic List<Skill> getSkills() {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\t\n\t\t//create a query\n\t\tQuery<Skill> theQuery = currentSession.createQuery(\"from Skill\", Skill.class);\n\t\t\n\t\t//execute query and get result list\n\t\tList<Skill> skills = theQuery.getResultList();\n\t\t\n\t\t//return the results\n\t\treturn skills;\n\t}", "RepStuLearning selectByPrimaryKey(RepStuLearningKey key);", "public void fillVerbTbl(String sentenceID){\n\t\t// implement me!\n\t}", "WdWordDict selectByPrimaryKey(Long dictId);", "List<WordSchool> selectByExample(WordSchoolExample example);", "public OWLModel getKnowledgeBase();", "@Transactional\r\n\tpublic List<CmVocabularyCategory> getCmVocabularyCategorys() {\r\n\t\treturn dao.findAllWithOrder(CmVocabularyCategory.class, \"modifyTimestamp\", false);\r\n\t}", "public static void caso31(){\n\t FilterManager fm= new FilterManager(\"resources/stopWordsList.txt\",\"resources/useCaseWeight.properties\");\n\t\t\tQualityAttributeBelongable qualityAttributeBelongable = new OntologyManager(\"file:resources/caso3.owl\",\"file:resources/caso3.repository\",fm);\n\t\t\tMap<QualityAttributeInterface,Double> map = qualityAttributeBelongable.getWordPertenence(\"response1\");\n\t\t\tif(map==null){\n\t\t\t\tSystem.out.println(\"El map es null\");\n\t\t\t}else{\n\t\t\t\tMapUtils.imprimirMap(map);\n\t\t\t}\n\t}", "public void setKeyWordTableName(String keyWordTableName) {\r\n\t\tthis.keyWordTableName = keyWordTableName;\r\n\t}", "public static void caso32(){\n\t FilterManager fm= new FilterManager(\"resources/stopWordsList.txt\",\"resources/useCaseWeight.properties\");\n\t\t\tQualityAttributeBelongable qualityAttributeBelongable = new OntologyManager(\"file:resources/caso3.owl\",\"file:resources/caso3.repository\",fm);\n\t\t\tMap<QualityAttributeInterface,Double> map = qualityAttributeBelongable.getWordPertenence(\"response2\");\n\t\t\tif(map==null){\n\t\t\t\tSystem.out.println(\"El map es null\");\n\t\t\t}else{\n\t\t\t\tMapUtils.imprimirMap(map);\n\t\t\t}\n\t}", "WordSchool selectByPrimaryKey(Long id);", "public void AddKeywords()\n\t{\n\t\ttry\n\t\t{\n\t\t\tConnector con = new Connector();\n\t\t\tString query; \n\t\t\t\n\t\t\tfor(int i = 0; i < keywords.size(); i++)\n\t\t\t{\n\t\t\t\tString keyword = keywords.get(i); \n\t\t\t\t\n\t\t\t\tint kid = GetKIDFromWord(keyword); \n\t\t\t\t\n\t\t\t\t//word is not already in table\n\t\t\t\tif(kid == -1)\n\t\t\t\t{\n\t\t\t\t\t//insert word into Keywords \n\t\t\t\t\tSystem.out.println(\"test\"); \n\t\t\t\t\tquery = \"INSERT INTO Keywords(word) VALUE ('\"+keyword+\"')\"; \n\t\t\t \tint intoTable = con.stmt.executeUpdate(query); \n\t\t\t \t\n\t\t\t \t//able to put it in the table\n\t\t\t \tif(intoTable > 0)\n\t\t\t \t{\n\t\t\t \t\t//insert into HasKeywords\n\t\t\t\t \tkid = GetKIDFromWord(keyword); \n\t\t\t\t\t\tquery = \"INSERT INTO HasKeywords(keyword_hid, keyword_kid) VALUE('\"+hid+\"', '\"+kid+\"')\";\n\t\t\t\t \tint hasKey = con.stmt.executeUpdate(query); \n\t\t\t \t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//word is already in table\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tList<Integer> hkCheck = GetHIDSFromKID(kid);\n\t\t\t\t\t\n\t\t\t\t\tboolean inHKTable = false; \n\t\t\t\t\tfor(int j = 0; j < hkCheck.size(); j++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(hkCheck.get(j) == hid)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tinHKTable = true; \n\t\t\t\t\t\t\tbreak; \n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif(inHKTable == false)\n\t\t\t\t\t{\n\t\t\t\t\t\tquery = \"INSERT INTO HasKeywords(keyword_hid, keyword_kid) VALUE('\"+hid+\"', '\"+kid+\"')\";\n\t\t\t\t \tint hasKey = con.stmt.executeUpdate(query); \n\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tcon.closeConnection();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t}", "public final void mRULE_TOKEN_VOCAB() throws RecognitionException {\n try {\n int _type = RULE_TOKEN_VOCAB;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalUniMapperGenerator.g:5095:18: ( 'tokenVocab' )\n // InternalUniMapperGenerator.g:5095:20: 'tokenVocab'\n {\n match(\"tokenVocab\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public static void testDictionary() throws IOException {\n String wnhome=\"c:\\\\Users\\\\Katherine\\\\Documents\\\\2nd sem\\\\IR\\\\project\\\\WordNet_3.1\";\n String path = wnhome + File.separator + \"dict\";\n\n\n URL url = new URL(\"file\", null, path);\n\n IDictionary dictionary = new Dictionary(url);\n dictionary.open();\n // /Users/Ward/Downloads\n IIndexWord indexWord = dictionary.getIndexWord(\"use\", POS.VERB);\n\n for (IWordID wordID : indexWord.getWordIDs()) {\n\n IWord word = dictionary.getWord(wordID);\n for (IWord word1 : word.getSynset().getWords()) {\n System.out.println(word1.getLemma());\n }\n// System.out.println(\"Id = \" + wordID);\n// System.out.println(\" Lemma = \" + word.getLemma());\n// System.out.println(\" Gloss = \" + word.getSynset().getGloss());\n\n List<ISynsetID> hypernyms =\n word.getSynset().getRelatedSynsets(Pointer.HYPERNYM);\n // print out each h y p e r n y m s id and synonyms\n List<IWord> words;\n for (ISynsetID sid : hypernyms) {\n words = dictionary.getSynset(sid).getWords();\n System.out.print(sid + \" {\");\n for (Iterator<IWord> i = words.iterator(); i.hasNext(); ) {\n System.out.print(i.next().getLemma());\n if (i.hasNext())\n System.out.print(\", \");\n }\n System.out.println(\"}\");\n }\n }\n }", "public Vector mapDocument(MultiSet<String> bow) {\n //logger.info(\"lsm.mapDocument\");\n SparseVector vector = new SparseVector();\n\n Iterator<String> it = bow.iterator();\n String term = null;\n int index = 0;\n int tf = 0;\n float tfIdf;\n for (int i = 0; it.hasNext(); i++) {\n //logger.info(i + \" \" + t[i]);\n term = it.next();\n index = termIndex.get(term);\n\n if (index != -1) {\n tf = bow.getFrequency(term);\n tfIdf = (float) (log2(tf)) * Iidf[index];\n\n //logger.info(term + \" ==> \" + index + \", tf.idf = \" + tf + \"(\" + (log2(tf)) + \") * \" + Iidf[index] + \" = \" + tfIdf);\n vector.add(index, tfIdf);\n\n }\n } // end for\n\n return vector;\n }", "public static void writeArchivedVocab(Vocab vocab) {\n String userId = FirebaseAuth.getInstance().getUid();\n Log.d(\"000\", \"writeVocab: \"+userId);\n mDatabase.child(\"user\").child(userId).child(\"archive\").child(vocab.Id).setValue(vocab);\n }", "public List<Term> getAllTerms() {\n\t\tsession.beginTransaction();\n\t\tList<Term> lis = session.createQuery(\"from Term\").list();\n\n\t\tfor (Term tm : lis) {\n\t\t\tSystem.out.println(tm.getId() + \" \" + tm.getTermName());\n\t\t}\n\t\treturn lis;\n\t}", "public WordsWrapper getVocabulariesWrapper() {\n\t\tWordsWrapper wrapper = new WordsWrapper();\n\t\twrapper.mainvocabs = m__vocabs;\n\t\twrapper.referenes = m__referencedwords;\n\t\treturn wrapper;\n\t}", "public interface DictionaryDao<Type extends DictionaryProperty<Id>, Id extends Serializable> {\r\n\t/** \r\n\t * <!-- begin-UML-doc -->\r\n\t * Zwraca wszystkie mozliwe wartosci slownika.\r\n\t * <!-- end-UML-doc -->\r\n\t * @return\r\n\t * @generated \"UML to Java (com.ibm.xtools.transform.uml2.java5.internal.UML2JavaTransform)\"\r\n\t */\r\n\tpublic List<Type> getAll();\r\n}", "@Override\n public Builder limitVocabularySize(int limit) {\n super.limitVocabularySize(limit);\n return this;\n }", "@Override\n public List<DefinitionDTO> findAllWords() {\n List<Word> words = wordRepository.findAll();\n return DTOMapper.mapWordListToDefinitionDTOList(words);\n }", "public interface ArchetypeLevelsSchema {\n\tString TABLE_NAME = \"creature_archetype_levels\";\n\n\tString COLUMN_ARCHETYPE_ID = \"archetypeId\";\n\tString COLUMN_LEVEL = \"level\";\n\tString COLUMN_ATTACK = \"attack\";\n\tString COLUMN_ATTACK2 = \"attack2\";\n\tString COLUMN_DEF_BONUS = \"defensiveBonus\";\n\tString COLUMN_BODY_DEV = \"bodyDevelopment\";\n\tString COLUMN_PRIME_SKILL = \"primeSkill\";\n\tString COLUMN_SECONDARY_SKILL = \"secondarySkill\";\n\tString COLUMN_POWER_DEV = \"powerDevelopment\";\n\tString COLUMN_SPELLS = \"spells\";\n\tString COLUMN_TALENT_DP = \"talentDP\";\n\tString COLUMN_AGILITY = \"agility\";\n\tString COLUMN_CONS_STAT = \"constitutionStat\";\n\tString COLUMN_CONSTITUTION = \"constitution\";\n\tString COLUMN_EMPATHY = \"empathy\";\n\tString COLUMN_INTUITION = \"intuition\";\n\tString COLUMN_MEMORY = \"memory\";\n\tString COLUMN_PRESENCE = \"presence\";\n\tString COLUMN_QUICKNESS = \"quickness\";\n\tString COLUMN_REASONING = \"reasoning\";\n\tString COLUMN_SELF_DISC = \"selfDiscipline\";\n\tString COLUMN_STRENGTH = \"strength\";\n\n\tString TABLE_CREATE = \"CREATE TABLE IF NOT EXISTS \"\n\t\t\t+ TABLE_NAME\n\t\t\t+ \" (\"\n\t\t\t+ COLUMN_ARCHETYPE_ID + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_LEVEL + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_ATTACK + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_ATTACK2 + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_DEF_BONUS + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_BODY_DEV + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_PRIME_SKILL + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_SECONDARY_SKILL + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_POWER_DEV + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_SPELLS + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_TALENT_DP + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_AGILITY + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_CONS_STAT + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_CONSTITUTION + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_EMPATHY + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_INTUITION + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_MEMORY + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_PRESENCE + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_QUICKNESS + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_REASONING + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_SELF_DISC + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_STRENGTH + \" INTEGER NOT NULL, \"\n\t\t\t+ \"PRIMARY KEY(\" + COLUMN_ARCHETYPE_ID + \",\" + COLUMN_LEVEL + \")\"\n\t\t\t+ \")\";\n\n\tString[] COLUMNS = new String[] { COLUMN_ARCHETYPE_ID, COLUMN_LEVEL, COLUMN_ATTACK, COLUMN_ATTACK2, COLUMN_DEF_BONUS,\n\t\t\tCOLUMN_BODY_DEV, COLUMN_PRIME_SKILL, COLUMN_SECONDARY_SKILL, COLUMN_POWER_DEV, COLUMN_SPELLS, COLUMN_TALENT_DP,\n\t\t\tCOLUMN_AGILITY, COLUMN_CONS_STAT, COLUMN_CONSTITUTION, COLUMN_EMPATHY, COLUMN_INTUITION, COLUMN_MEMORY,\n\t\t\tCOLUMN_PRESENCE, COLUMN_QUICKNESS, COLUMN_REASONING, COLUMN_SELF_DISC, COLUMN_STRENGTH};\n}", "public static void moveCorrectToArchive(Vocab vocab){\n\n DatabaseReference vocabRef=FirebaseDatabase.getInstance().getReference().child(\"user\").child(FirebaseAuth.getInstance().getUid()).child(\"vocab\").child(vocab.Id);\n vocabRef.removeValue();\n archiveVocabs.add(vocab);\n writeArchivedVocab(vocab);\n\n }", "Terms selectByPrimaryKey(Integer id);", "public Iterator words() {\n return index.keySet().iterator();\n }", "public Word getWord(int id);", "public List search() {\n\t\tSessionFactory sf = new Configuration().configure()\n\t\t\t\t.buildSessionFactory();\n\t\tSession s = sf.openSession();\n\t\tQuery q = s.createQuery(\"from cat_vo\");\n\t\tList ls = q.list();\n\t\treturn ls;\n\t}", "public List<Term> getAllTermsByDictionary(String table, String dictionary) {\n List<Term> termList = new ArrayList<Term>();\n\n // Select All Query\n String selectQuery = \"SELECT * FROM \" + table + \" WHERE \" + KEY_DICTIONARY + \" = '\" + dictionary + \"' ORDER BY \" + KEY_TERM;\n\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor cursor = db.rawQuery(selectQuery, null);\n\n // looping through all rows and adding to list\n if (cursor.moveToFirst()) {\n do {\n if (!cursor.getString(2).isEmpty()) {\n /*\n Term term = new Term();\n term.setId(Integer.parseInt(cursor.getString(0)));\n term.setDictionary(cursor.getString(1));\n term.setTerm(cursor.getString(2));\n term.setSubject(cursor.getString(3));\n term.setDefinition(cursor.getString(4));\n term.setSynonyms(cursor.getString(5));\n */\n Term term = new Term(Integer.parseInt(cursor.getString(0)),cursor.getString(1), cursor.getString(2), cursor.getString(3),\n cursor.getString(4), cursor.getString(5), Integer.parseInt(cursor.getString(6)));\n // Adding term to list\n termList.add(term);\n }\n } while (cursor.moveToNext());\n }\n\n // return term list\n return termList;\n }", "Integer getSkillCount( String key ){\n return developer.skills.size();\n }", "public List<Skill> findAll(){\n return (List<Skill>) skillRepository.findAll();\n }", "public Courses getCourseTable();", "@Override\n protected Builder useExistingWordVectors(@NonNull WordVectors vec) {\n return this;\n }", "private void indexRelations(String inputFile, FlagConfig flagConfig) throws IOException {\n this.elementalVectors = VectorStoreRAM.readFromFile(\n flagConfig, \"C:\\\\Users\\\\dwiddows\\\\Data\\\\QI\\\\Gutterman\\\\termtermvectors.bin\");\n this.flagConfig = flagConfig;\n this.proportionVectors = new ProportionVectors(flagConfig);\n this.luceneUtils = new LuceneUtils(flagConfig);\n VectorStoreWriter writer = new VectorStoreWriter();\n\n // Turn all the text lines into parsed records.\n this.parseInputFile(inputFile);\n\n // Now the various indexing techniques.\n VectorStoreRAM triplesVectors = new VectorStoreRAM(flagConfig);\n VectorStoreRAM triplesPositionsVectors = new VectorStoreRAM(flagConfig);\n VectorStoreRAM dyadsVectors = new VectorStoreRAM(flagConfig);\n VectorStoreRAM dyadsPositionsVectors = new VectorStoreRAM(flagConfig);\n VectorStoreRAM verbsVectors = new VectorStoreRAM(flagConfig);\n VectorStoreRAM verbsPositionsVectors = new VectorStoreRAM(flagConfig);\n\n for (String docName : this.parsedRecords.keySet()) {\n Vector tripleDocVector = VectorFactory.createZeroVector(flagConfig.vectortype(), flagConfig.dimension());\n Vector tripleDocPositionVector = VectorFactory.createZeroVector(flagConfig.vectortype(), flagConfig.dimension());\n Vector dyadDocVector = VectorFactory.createZeroVector(flagConfig.vectortype(), flagConfig.dimension());\n Vector dyadDocPositionVector = VectorFactory.createZeroVector(flagConfig.vectortype(), flagConfig.dimension());\n Vector verbDocVector = VectorFactory.createZeroVector(flagConfig.vectortype(), flagConfig.dimension());\n Vector verbDocPositionVector = VectorFactory.createZeroVector(flagConfig.vectortype(), flagConfig.dimension());\n\n for (ParsedRecord record : this.parsedRecords.get(docName)) {\n Vector tripleVector = this.getPsiTripleVector(record);\n tripleDocVector.superpose(tripleVector, 1, null);\n\n this.bindWithPosition(record, tripleVector);\n tripleDocPositionVector.superpose(tripleVector, 1, null);\n\n Vector dyadVector = this.getPsiDyadVector(record);\n dyadDocVector.superpose(dyadVector, 1, null);\n this.bindWithPosition(record, dyadVector);\n dyadDocPositionVector.superpose(dyadVector, 1, null);\n\n Vector verbVector = this.vectorForString(record.predicate);\n verbDocVector.superpose(verbVector, 1, null);\n this.bindWithPosition(record, verbVector);\n verbDocPositionVector.superpose(verbVector, 1, null);\n }\n\n triplesVectors.putVector(docName, tripleDocVector);\n triplesPositionsVectors.putVector(docName, tripleDocPositionVector);\n dyadsVectors.putVector(docName, dyadDocVector);\n dyadsPositionsVectors.putVector(docName, dyadDocPositionVector);\n verbsVectors.putVector(docName, verbDocVector);\n verbsPositionsVectors.putVector(docName, verbDocPositionVector);\n }\n\n for (VectorStore vectorStore : new VectorStore[] {\n triplesVectors, triplesPositionsVectors, dyadsVectors, dyadsPositionsVectors, verbsVectors, verbsPositionsVectors }) {\n Enumeration<ObjectVector> vectorEnumeration = vectorStore.getAllVectors();\n while (vectorEnumeration.hasMoreElements())\n vectorEnumeration.nextElement().getVector().normalize();\n }\n\n writer.writeVectors(TRIPLES_OUTPUT_FILE, flagConfig, triplesVectors);\n writer.writeVectors(TRIPLES_POSITIONS_OUTPUT_FILE, flagConfig, triplesPositionsVectors);\n\n writer.writeVectors(DYADS_OUTPUT_FILE, flagConfig, dyadsVectors);\n writer.writeVectors(DYADS_POSITIONS_OUTPUT_FILE, flagConfig, dyadsPositionsVectors);\n\n writer.writeVectors(VERBS_OUTPUT_FILE, flagConfig, verbsVectors);\n writer.writeVectors(VERBS_POSITIONS_OUTPUT_FILE, flagConfig, verbsPositionsVectors);\n }", "int getConceptLanguagesCount();", "@Override\n public Builder lookupTable(@NonNull WeightLookupTable<VocabWord> lookupTable) {\n super.lookupTable(lookupTable);\n return this;\n }", "WordBean getWord(String word);", "public List<Product> search(String word, String codigo) {\n\t\tSession session = getSessionFactory().openSession();\n\t\treturn null;\n\t}", "private void invertedToDatabase(){\r\n cleFreq = new HashMap<>();\r\n System.out.println(\"Strat collecting\");\r\n Map<String,List<Invertedindex>> collects = collecting();\r\n System.out.println(\"Ending collecting\");\r\n Database.getInstance().invertedIndex(collects);\r\n Database.getInstance().addPoids(cleFreq);\r\n }", "@SuppressWarnings({ \"deprecation\", \"unchecked\", \"rawtypes\" })\n\tpublic String generateWordlists(Corpus co) {\n\t\tlong startTime = System.currentTimeMillis();\n\t\t// Set up weka word vector\n\t\tFastVector attributes;\n\t\tInstances dataSet;\n\t\tattributes = new FastVector();\n\n\t\tattributes.addElement(new Attribute(\"aspect_id\", (FastVector) null));\n\t\tattributes.addElement(new Attribute(\"tokens\", (FastVector) null));\n\n\t\tdataSet = new Instances(\"BeerAspects\", attributes, 0);\n\n\t\tCorpus topReviews;\n\t\tCorpus lowReviews;\n\n\t\t// Do top and low for all aspects\n\t\tfor (Aspect aspect : Aspect.values()) {\n\n\t\t\t// Only for actual aspects\n\t\t\tif (aspect.equals(Aspect.NONE) || aspect.equals(Aspect.OVERALL))\n\t\t\t\tcontinue;\n\n\t\t\ttopReviews = co.getTopReviews(aspect);\n\t\t\ttopReviews.analyze();\n\t\t\tString tokens = topReviews.getTokenConcatenation(aspect);\n\n\t\t\tInstance instance = new SparseInstance(2);\n\t\t\tinstance.setValue((Attribute) attributes.elementAt(0), aspect.name() + \"_TOP\");\n\t\t\tinstance.setValue((Attribute) attributes.elementAt(1), tokens);\n\n\t\t\tdataSet.add(instance);\n\n\t\t\tlowReviews = co.getLowReviews(aspect);\n\t\t\tlowReviews.analyze();\n\t\t\ttokens = lowReviews.getTokenConcatenation(aspect);\n\t\t\t// System.out.println(tokens);\n\n\t\t\tinstance = new SparseInstance(2);\n\t\t\tinstance.setValue((Attribute) attributes.elementAt(0), aspect.name() + \"_LOW\");\n\t\t\tinstance.setValue((Attribute) attributes.elementAt(1), tokens);\n\n\t\t\tdataSet.add(instance);\n\t\t}\n\n\t\t// System.out.println(dataSet.toString());\n\t\tInstances dataFiltered = transformToWordVector(dataSet, co.getProps());\n\n\t\t// System.out.println(dataFiltered.toString());\n\t\tString pathsToLists = writeWordlists(dataFiltered);\n\n\t\twriteArffFile(dataFiltered, this.outputDir+\"wordvector.arff\");\n\n\t\tlong stopTime = System.currentTimeMillis();\n\t\tlong elapsedTime = stopTime - startTime;\n\t\tSystem.out.println(\"Generated wordlists in: \" + elapsedTime / 1000 + \" s\");\n\t\treturn pathsToLists;\n\t}", "boolean putWord(WordBean wordBean);", "public Table<Integer, Integer, String> getAnonymizedData();", "public static void caso12(){\n\n FilterManager fm= new FilterManager(\"resources/stopWordsList.txt\",\"resources/useCaseWeight.properties\");\n\t\tQualityAttributeBelongable qualityAttributeBelongable = new OntologyManager(\"file:resources/caso1.owl\",\"file:resources/caso1.repository\",fm);\n\t\tMap<QualityAttributeInterface,Double> map = qualityAttributeBelongable.getWordPertenence(\"pan\");\n\t\tif(map==null){\n\t\t\tSystem.out.println(\"El map es null\");\n\t\t}\n\t}", "public void addToJurisdictions(entity.AppCritJurisdiction element);", "public static void caso11(){\n\t\t\n FilterManager fm= new FilterManager(\"resources/stopWordsList.txt\",\"resources/useCaseWeight.properties\");\n\t\tQualityAttributeBelongable qualityAttributeBelongable = new OntologyManager(\"file:resources/caso1.owl\",\"file:resources/caso1.repository\",fm);\n\t\tMap<QualityAttributeInterface,Double> map = qualityAttributeBelongable.getWordPertenence(\"response\");\n\t\tMapUtils.imprimirMap(map);\n\t}", "public String getNomTable();", "public void init() {\n File file=new File(\"D:\\\\lucene\\\\index\");\n if(file.isDirectory())\n { //否则如果它是一个目录\n File files[] = file.listFiles(); //声明目录下所有的文件 files[];\n for(int i=0;i<files.length;i++)\n { //遍历目录下所有的文件\n files[i].delete(); //把每个文件 用这个方法进行迭代\n }\n }\n String indexPath = \"D:\\\\lucene\\\\index\";\n //String docsPath = \"D:\\\\lucene\\\\data\";\n boolean create = true;\n try\n {\n Session session=factory.openSession();\n String hql = \"from Book\";\n org.hibernate.Query query = session.createQuery(hql);\n List<Book> list=query.list();\n Directory indexDir = FSDirectory.open(Paths.get(\"D:\\\\lucene\\\\index\"));\n Analyzer luceneAnalyzer = new StandardAnalyzer(); //新建一个分词器实例 \n IndexWriterConfig config = new IndexWriterConfig(luceneAnalyzer); \n IndexWriter indexWriter = new IndexWriter(indexDir,config);\n for(int i=0;i<list.size();i++)\n {\n Document document = new Document();\n Field field1 = new StringField(\"id\",list.get(i).getBookid().toString(),Field.Store.YES); \n Field field2 = new StringField(\"bookname\",list.get(i).getBookname(),Field.Store.YES); \n Field field3 = new StringField(\"author\",list.get(i).getAuthor(),Field.Store.YES); \n Field field4 = new StringField(\"category\",list.get(i).getCategory(),Field.Store.YES); \n Field field5 = new StringField(\"price\", Double.toString(list.get(i).getPrice()),Field.Store.YES); \n document.add(field1); \n document.add(field2); \n document.add(field3); \n document.add(field4);\n document.add(field5);\n indexWriter.addDocument(document);\n }\n indexWriter.close();\n }\n catch(IOException e)\n {\n System.out.println(\"error\");\n return;\n }\n }", "hr.domain.ResumeDBOuterClass.Education getEducations(int index);", "hr.domain.ResumeDBOuterClass.Experience getExperiences(int index);", "public void fillNounTbl(String sentenceID){\n\t\t// implement me!\n\t}", "void createOrUpdateVocabulary(final VocabularyPE vocabularyPE);", "@Override\n public Builder iterate(@NonNull SequenceIterator<VocabWord> iterator) {\n super.iterate(iterator);\n return this;\n }", "private void createFreqVector(Path file) {\r\n\t\t\tVector vector = new Vector(vocabulary.size());\r\n\t\t\tList<String> lines;\r\n\t\t\ttry {\r\n\t\t\t\tlines = Files.readAllLines(file);\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tSet<String> words = new HashSet<>();\r\n\t\t\t//create frequency vector of words in single document -> tf(w,d)\r\n\t\t\tfor (String line : lines) {\r\n\t\t\t\tif (line.isEmpty()) continue;\r\n\t\t\t\tString[] values = p.split(line);\r\n\t\t\t\tfor (String value : values) { \r\n\t\t\t\t\tif (value.isEmpty()) continue;\r\n\t\t\t\t\tString lowWord = value.toLowerCase().trim();\r\n\t\t\t\t\t\r\n\t\t\t\t\tInteger[] arr = vocabulary.get(lowWord);\r\n\t\t\t\t\tif (arr == null) continue;\r\n\t\t\t\t\tvector.incrementValueAt(arr[0]);\r\n\t\t\t\t\tif (words.add(lowWord)) {\r\n\t\t\t\t\t\t arr[1] += 1;\t//first time occurrence of this word in document\r\n\t\t\t\t\t\tvocabulary.put(lowWord, arr);\t//increment number of documents for this word\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\tfreqVectors.put(file, vector);\t\t\r\n\t\t}", "private String[][] getMoodsTableValues() {\n String soso = DBTypesKeys.SO_SO_MOOD.getTypeValue();\n String sad = DBTypesKeys.SAD_MOOD.getTypeValue();\n String angry = DBTypesKeys.ANGRY_MOOD.getTypeValue();\n String happy = DBTypesKeys.HAPPY_MOOD.getTypeValue();\n // moods table\n return new String[][]{\n //moods hi answers by answers // id_ (enum index + 1)\n { soso, \"hey\", \"by\"}, // 1\n { sad, \"welcome to sad world\", \"so, you too ...\"}, // 2\n { angry, \"get out!\", \"thanks god, you away\"}, // 3\n { happy, \"hi! glad to see you =)\", \"good luck, buddy\"} // 4\n };\n }", "private VocabularyTerms getVocabularyTerms(Collection<CMAContentType> vocabularies) {\n VocabularyTerms vocabularyTerms = new VocabularyTerms();\n vocabularies\n .forEach(contentType -> {\n //Keeps the country vocabulary ID for future use\n if (contentType.getName().equals(configuration.getCountryVocabulary())) {\n vocabularyTerms.loadCountryVocabulary(contentType);\n } else {\n //Loads vocabulary into memory\n vocabularyTerms.loadVocabulary(contentType);\n }\n });\n return vocabularyTerms;\n }", "public static String getTokenVocabFromGrammar(String text) {\n\t\t// TODO: unneeded. use antlr Tool. Kill?\n//\t\tParsingResult r = parseANTLRGrammar(text);\n//\t\tif ( r.tree!=null ) { //&& r.syntaxErrorListener.getSyntaxErrors().size()==0 ) {\n//\t\t\t// option : id ASSIGN optionValue ;\n//\t\t\tCollection<ParseTree> options = XPath.findAll(r.tree, \"//option\", r.parser);\n//\t\t\tfor (Iterator<ParseTree> it = options.iterator(); it.hasNext(); ) {\n//\t\t\t\tANTLRv4Parser.OptionContext option = (ANTLRv4Parser.OptionContext)it.next();\n//\t\t\t\tif ( option.id().getText().equals(\"tokenVocab\") ) {\n//\t\t\t\t\t/*\n//\t\t\t\t\toptionValue\n//\t\t\t\t\t\t:\tid (DOT id)*\n//\t\t\t\t\t\t|\tSTRING_LITERAL\n//\t\t\t\t\t\t|\tACTION\n//\t\t\t\t\t\t|\tINT\n//\t\t\t\t\t\t;\n//\t\t\t\t\t */\n//\t\t\t\t\tANTLRv4Parser.OptionValueContext optionValue = option.optionValue();\n//\t\t\t\t\tif ( optionValue.STRING_LITERAL()!=null ) {\n//\t\t\t\t\t\tString s = optionValue.STRING_LITERAL().getText();\n//\t\t\t\t\t\treturn RefactorUtils.getLexerRuleNameFromLiteral(s);\n//\t\t\t\t\t}\n//\t\t\t\t\tif ( optionValue.id(0)!=null ) {\n//\t\t\t\t\t\treturn optionValue.id(0).getText();\n//\t\t\t\t\t}\n//\t\t\t\t}\n//\t\t\t}\n//\t\t}\n\t\treturn null;\n\t}", "private Resolution getVocabularyConceptResolution() {\r\n HttpServletRequest httpRequest = getContext().getRequest();\r\n String url = httpRequest.getRequestURL().toString();\r\n // String query = httpRequest.getQueryString();\r\n \r\n String[] parameters = StringUtils.split(StringUtils.substringAfter(url, \"/vocabulary/\"), \"/\");\r\n \r\n if (parameters.length >= 2) {\r\n if (!RESERVED_VOCABULARY_EVENTS.contains(parameters[1])) {\r\n RedirectResolution resolution = new RedirectResolution(VocabularyConceptActionBean.class, \"view\");\r\n resolution.addParameter(\"vocabularyFolder.identifier\", parameters[0]);\r\n resolution.addParameter(\"vocabularyConcept.identifier\", parameters[1]);\r\n resolution.addParameter(\"vocabularyFolder.workingCopy\", vocabularyFolder.isWorkingCopy());\r\n \r\n return resolution;\r\n }\r\n }\r\n \r\n return null;\r\n }", "public SPARQL() {\n initComponents();\n \n model = ModelFactory.createOntologyModel(OntModelSpec.OWL_LITE_MEM_RDFS_INF);\n model.setDynamicImports(true);\n model.read(\"file:\"+\"data/ontologies/Papers_Ready.owl\", \"http://www.l3g.pl/ontologies/OntoBeef/Papers.owl\", \"N-TRIPLE\");\n model.loadImports();\n \n for (Individual i : model.listIndividuals(model.getOntClass(\"http://www.l3g.pl/ontologies/OntoBeef/Conceptualisation.owl#Category\")).toSet())\n {\n System.out.println(i.listLabels(null).toSet());\n }\n }", "@Override\n public AutoBuffer write_impl(AutoBuffer ab) {\n if (_vocabHM == null) return ab.put1(1); // killed\n\n int strLen = 0;\n for (ValueStringCount val : VOCABHM.values())\n strLen += val.length();\n ab.put1(0); // not killed\n ab.put4(strLen); //length of string buffer\n for (ValueStringCount val : VOCABHM.values())\n ab.put2((char) val.length()).putA1(val.getBuffer(), val.getOffset(), val.getOffset() + val.length()).put8(val._cnt);\n return ab.put2((char) 65535); // End of map marker\n }", "@SuppressWarnings(\"unchecked\")\r\n\tpublic static void main(String[] args) throws IOException {\n\t\tSchema s = new Schema(\"Estudiantes\",\"C:\\\\Users\\\\morazan\\\\Desktop\\\\com\\\\idk\\\\ac\\\\cr\");\r\n\n\t\tSchemaJoin j = new SchemaJoin(\"Notas\",\"C:\\\\Users\\\\morazan\\\\Desktop\\\\com\\\\idk\\\\ac\\\\cr\");\r\n\r\n\t\t//Creates an index in the regular schema\r\n\t\ts.createIndex(\"bts\", \"string\", \"Nombre\", 10);\r\n\t\ts.createIndex(\"avl\", \"number\", \"aņo\", 4);\r\n\t\ts.createIndex(\"avl\", \"image\", \"Imagen\", 0);\r\n\t\tj.joinSchema(s);\r\n\t\tj.createJoinedIndex(\"avl\", \"number\", \"Notas\", 2);\r\n\t\t\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"Inserting I \");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\ts.insertToIndex(1, \"JP\");\r\n\t\ts.insertToIndex(1, \"Randy\");\r\n\t\ts.insertToIndex(1, \"Alejandra\");\r\n//\t\ts.insertToIndex(1, \"Xcreed\");\r\n\t\ts.insertToIndex(2, 1996);\r\n\t\ts.insertToIndex(2, 1995);\r\n\t\ts.insertToIndex(2, 1997);\n\t\ts.insertToIndex(3, \"SchemaExtraFiles/2.jpg\");\n\t\ts.insertToIndex(3, \"SchemaExtraFiles/8.jpg\");\n\t\ts.insertToIndex(3, \"SchemaExtraFiles/4.jpg\");\n\t\t\n\t\tIndexBTS index = (IndexBTS) s.schema.getItem(1);\r\n\t\tBinarySearchTree t = (BinarySearchTree) index.tree;\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"Traversal I\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tt.inOrderTraversal();\r\n\t\t\n\t\tIndexAVL index2 = (IndexAVL) s.schema.getItem(2);\r\n\t\tAVLTree t2 = (AVLTree) index2.getTree();\r\n\t\tSystem.out.println(\"avl order\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"Traversal II\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\n\t\tt2.inorder();\n\t\t\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"Inserting II \");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tj.insertToIndex(1, 80);\r\n\t\tj.insertToIndex(1, 82);\r\n\t\tj.insertToIndex(1, 78);\t\t\t\r\n\t\t\r\n//\t\tSystem.out.println(s.search(\"JP\"));\r\n//\t\tSystem.out.println(s.deleteInIndex(1,\"JP\"));\r\n//\t\tSystem.out.println(s.search(\"JP\"));\r\n\t\t\r\n\t\tSystem.out.println(\"Getting line 1\");\r\n\t\ts.getLine(1);\r\n//\t\ts.deleteLine(1);\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"Searching 82 \");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tj.joinedSearch(82);\r\n\r\n\t\t//Deletes an index in the schema\r\n//\t\ts.schema.print();\r\n//\t\ts.deleteIndex(1);\r\n//\t\ts.schema.print();\r\n\t\t\r\n// ***********Activate Separately**********\r\n\t\t\r\n//\t\ts.createIndex(\"bts\", \"video\", \"Videos\", 0);\r\n//\t\ts.insertToIndex(1, \"SchemaExtraFiles/Trike Drifting.mp4\");\r\n\t\t\r\n//\t***************************************\r\n\t\t\r\n\t\tJSONProtocol json = new JSONProtocol();\r\n\t\tjson.writeSchema(s);\r\n\t\t\t\t\r\n\t\t\r\n\t}", "TableId table();", "public boolean buildVocab() {\n readStopWords();\n\n if(cache.vocabExists()) {\n log.info(\"Loading vocab...\");\n cache.loadVocab();\n cache.resetWeights();\n return true;\n }\n\n //vectorizer will handle setting up vocab meta data\n if(vectorizer == null)\n vectorizer = new TfidfVectorizer.Builder()\n .cache(cache).iterate(docIter).iterate(sentenceIter)\n .minWords(minWordFrequency).stopWords(stopWords)\n .tokenize(tokenizerFactory).build();\n vectorizer.fit();\n\n setup();\n\n return false;\n }", "public List<Kateggorija> getSviGlumci() {\n List<Kateggorija> glumci=null;\n try {\n glumci= getDaoKateggorija().queryForAll();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n return glumci;\n }", "@VTID(10)\n int getIndex();", "Skill getSkill(Long skillId) throws DbException;", "public List<String> GetKeywords()\n\t{\n\t\tList<String> words = new ArrayList<String>(); \n\t\ttry\n\t\t{\n\t\t\tConnector con = new Connector();\n\t \n\t String query = \"SELECT keyword_kid FROM HasKeywords WHERE keyword_hid = '\"+hid+\"'\"; \n\t ResultSet rs = con.stmt.executeQuery(query); \n\t \n\t List<Integer> k_ids = new ArrayList<Integer>(); \n\t while(rs.next())\n\t {\n\t \tint new_id = rs.getInt(\"keyword_kid\"); \n\t \tk_ids.add(new_id); \n\t }\n\t \n\t for(int i = 0; i < k_ids.size(); i++)\n\t {\n\t \tquery = \"SELECT word FROM Keywords WHERE k_id = '\"+k_ids.get(i)+\"'\"; \n\t \trs = con.stmt.executeQuery(query); \n\t \twhile(rs.next())\n\t \t{\n\t \t\tString kw = rs.getString(\"word\"); \n\t \t\twords.add(kw); \n\t \t}\n\t }\n\t \n\t con.closeConnection();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\tkeywords = words; \n\t\treturn keywords; \n\t}", "java.lang.String getSemanticLangidModelName();", "public interface DBSDictionary\n{\n /**\n * Checks that this constrain supports key enumerations.\n * Usually it depends on constraint type (enumerations makes sense only for unique constraints).\n * @return true or false\n */\n boolean supportsDictionaryEnumeration();\n\n /**\n * Gets enumeration values\n *\n * @param monitor session\n * @param keyColumn enumeration column.\n * @param keyPattern pattern for enumeration values. If null or empty then returns full enumration set\n * @param searchText\n * @param preceedingKeys other constrain key values. May be null.\n * @param caseInsensitiveSearch use case-insensitive search for {@code keyPattern}\n * @param sortAsc ascending sorting (irrelevant is {@code sortByValue} is false)\n * @param sortByValue sort results by value\n * @param offset enumeration values offset in result set\n * @param maxResults maximum enumeration values in result set\n * @return statement with result set which contains valid enumeration values.\n */\n @NotNull\n List<DBDLabelValuePair> getDictionaryEnumeration(\n @NotNull DBRProgressMonitor monitor,\n @NotNull DBSEntityAttribute keyColumn,\n @Nullable Object keyPattern,\n @Nullable String searchText,\n @Nullable List<DBDAttributeValue> preceedingKeys,\n boolean caseInsensitiveSearch,\n boolean sortAsc,\n boolean sortByValue,\n int offset,\n int maxResults\n ) throws DBException;\n\n @NotNull\n List<DBDLabelValuePair> getDictionaryValues(\n @NotNull DBRProgressMonitor monitor,\n @NotNull DBSEntityAttribute keyColumn,\n @NotNull List<Object> keyValues,\n @Nullable List<DBDAttributeValue> preceedingKeys,\n boolean sortByValue,\n boolean sortAsc\n ) throws DBException;\n\n @NotNull\n DBSDictionaryAccessor getDictionaryAccessor(\n @NotNull DBRProgressMonitor monitor,\n @Nullable List<DBDAttributeValue> precedingKeys,\n @NotNull DBSEntityAttribute keyColumn,\n boolean sortAsc,\n boolean sortByDesc\n ) throws DBException;\n}", "@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)\n\tpublic List<AssetVocabulary> getAttachedVocabularies(long groupId);", "public static List<Book> getBookCategory() throws HibernateException{\r\n \r\n session = sessionFactory.openSession();\r\n session.beginTransaction();\r\n \r\n Query query=session.getNamedQuery(\"INVENTORY_getBookCategory\");\r\n List<Book> bookLocationList=query.list();\r\n \r\n session.getTransaction().commit();\r\n session.close();\r\n \r\n return bookLocationList;\r\n}", "public void train(Corpus[] trainingData) {\n\t\tSet<String> vocabulary = super.mergeVocabulary(trainingData);\n\t\ttrainingData[0].setVocabulary(vocabulary);\n\t\ttrainingData[1].setVocabulary(vocabulary);\n\t\tposMatrix = new TransitionMatrix(trainingData[0]);\n\t\tnegMatrix = new TransitionMatrix(trainingData[1]);\n\t}", "public void AddInDB(Word newWord) throws SQLException {\n String insertQuery = \"INSERT INTO tbltest(word,pronunciation,define) VALUES(?,?,?)\";\r\n ps = con.prepareStatement(insertQuery);\r\n ps.setString(1, newWord.getWord());\r\n ps.setString(2, newWord.getPronunciation());\r\n ps.setString(3, newWord.getDefine());\r\n\r\n ps.executeUpdate();\r\n }", "public static void caso41(){\n FilterManager fm= new FilterManager(\"resources/stopWordsList.txt\",\"resources/useCaseWeight.properties\");\n\t\tQualityAttributeBelongable qualityAttributeBelongable = new OntologyManager(\"file:resources/caso4.owl\",\"file:resources/caso4.repository\",fm);\n\t\tMap<QualityAttributeInterface,Double> map = qualityAttributeBelongable.getWordPertenence(\"response1\");\n\t\tif(map==null){\n\t\t\tSystem.out.println(\"El map es null\");\n\t\t}else{\n\t\t\tMapUtils.imprimirMap(map);\n\t\t}\n\t}", "@Select(\"select id,item from dicts where id in (23,24,25,26,27)\")\n\tList<Dict> findLevels();", "public interface IJavaDocAttributDao\n{\n List<JavaDocAttribut> getJavaDocAttributs(int idJavaDocMethode);\n}" ]
[ "0.5714772", "0.5634642", "0.54471385", "0.5296146", "0.5199113", "0.49331725", "0.49329886", "0.4925552", "0.49073565", "0.48575464", "0.4840506", "0.48176134", "0.47540638", "0.4731969", "0.47130308", "0.46997505", "0.46928567", "0.46592632", "0.46315858", "0.46308562", "0.4628427", "0.4613438", "0.4607982", "0.46033806", "0.45581195", "0.45454577", "0.45442265", "0.45386803", "0.45275065", "0.452028", "0.4503016", "0.4500965", "0.44867927", "0.44754398", "0.44700065", "0.4461962", "0.44616178", "0.44392928", "0.44261026", "0.43990988", "0.43955937", "0.43947372", "0.4391834", "0.43790415", "0.4373947", "0.43707538", "0.43700558", "0.43560442", "0.43444037", "0.43359932", "0.4334978", "0.4331108", "0.43275934", "0.43246162", "0.4323478", "0.432252", "0.43204546", "0.43167415", "0.4313692", "0.43123078", "0.43018934", "0.42899582", "0.42859036", "0.4279804", "0.42734304", "0.42709267", "0.42542967", "0.4249365", "0.4246521", "0.42383584", "0.42374423", "0.42311075", "0.42302102", "0.4229986", "0.4227258", "0.42229605", "0.42228934", "0.422011", "0.42189792", "0.42158115", "0.42145696", "0.42105144", "0.4207044", "0.42064056", "0.41962886", "0.4194155", "0.41941473", "0.41919973", "0.41892615", "0.41883606", "0.41852176", "0.4182343", "0.41803232", "0.41759124", "0.41734546", "0.41732693", "0.41713014", "0.41704375", "0.416942", "0.41672277" ]
0.49100333
8
This method was generated by MyBatis Generator. This method corresponds to the database table wd_vocab
public void setOrderByClause(String orderByClause) { this.orderByClause = orderByClause; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<VocabWord> document(int index);", "int[] documents(VocabWord vocabWord);", "public static void writeVocab(Vocab vocab) {\n String userId = FirebaseAuth.getInstance().getUid();\n Log.d(\"000\", \"writeVocab: \"+userId);\n mDatabase.child(\"user\").child(userId).child(\"vocab\").child(vocab.Id).setValue(vocab);\n }", "void addWordsToDoc(int doc,List<VocabWord> words);", "void addWordToDoc(int doc,VocabWord word);", "public VocabularyTerms() {}", "public Vector mapDocument(BOW bow) {\n //logger.info(\"lsm.mapDocument\");\n SparseVector vector = new SparseVector();\n\n Iterator<String> it = bow.termSet().iterator();\n String term = null;\n int index = 0;\n //int tf = 0;\n float tfIdf;\n for (int i = 0; it.hasNext(); i++) {\n //logger.info(i + \" \" + t[i]);\n term = it.next();\n index = termIndex.get(term);\n\n if (index != -1) {\n //tf = bow.getFrequency(term);\n //tfIdf = (float) (log2(tf)) * Iidf[index];\n //tfIdf = (float) bow.augmentedFrequency(term) * Iidf[index];\n tfIdf = (float) bow.tf(term) * Iidf[index];\n //logger.info(term + \" ==> \" + index + \", tf.idf = \" + tf + \"(\" + (log2(tf)) + \") * \" + Iidf[index] + \" = \" + tfIdf);\n vector.add(index, tfIdf);\n\n }\n } // end for\n\n return vector;\n }", "@Id\n @Column(name=\"term_key\")\n public int getTermKey() {\n\treturn termKey;\n }", "public WdVocabExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "private static void setWordPosition() {\n\t\tSet setKeys = Utility.vocabHM.keySet();\n\t\tIterator i = setKeys.iterator();\n\t\tint position = 0;\n\t\twhile (i.hasNext()) {\n\t\t\tString w = (String) i.next();\n\t\t\tInteger rows[] = new Integer[2];\n\t\t\trows[0] = new Integer(position); /* word position */\n\t\t\trows[1] = (Integer) Utility.vocabHM.get(w); /* df */\n\n\t\t\tUtility.vocabHM.put(w, rows);\n\t\t\tposition++;\n\t\t}\n\t}", "public Vector<Word> allKeyValue(){\n\n\tVector<Word> words = new Vector<Word>();\n\tfor(int w = 0; w < theTable.length; w++){\n\t // System.out.println(\"w: \" + w);\n\t // System.out.println(\"theTable[w]: \" + theTable[w]);\n\t if(theTable[w] != null){\n\t\twords.addElement(theTable[w]);\n\t }\n\t}\n\treturn words;\n }", "public static void deleteVocab(Context context){\n Toast.makeText(context, \"deleted\", Toast.LENGTH_SHORT).show();\n DatabaseReference vocabRef=FirebaseDatabase.getInstance().getReference().child(\"user\").child(FirebaseAuth.getInstance().getUid()).child(\"vocab\").child(currentVocabId);\n vocabRef.removeValue();\n }", "public Controlador(boolean newTable){\n if(newTable){\n vocabulario = new TSB_OAHashtable<>();\n }\n }", "public static void initVocabData() {\n FirebaseDatabase.getInstance().getReference().child(\"user\").child(FirebaseAuth.getInstance().getUid()).child(\"vocab\")\n .addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n staticVocabs.clear();\n for(DataSnapshot snapshot: dataSnapshot.getChildren() ){\n Vocab vocab = snapshot.getValue(Vocab.class);\n staticVocabs.add(vocab);\n size=1;\n }\n vocabsAdapter.notifyDataSetChanged();\n if (staticVocabs.size()==0){\n vocabsRecyclerView.setVisibility(View.INVISIBLE);\n isFirst.setVisibility(View.VISIBLE);\n notFirst.setVisibility(View.INVISIBLE);\n\n }else {\n vocabsRecyclerView.setVisibility(View.VISIBLE);\n isFirst.setVisibility(View.INVISIBLE);\n notFirst.setVisibility(View.VISIBLE);\n }\n }\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n }\n });\n }", "List<WdWordDict> selectByExample(WdWordDictExample example);", "@Query(\"SELECT * from english_word ORDER BY word ASC limit 300\")\n List<StoredEnglishWord> findAllWords();", "public void saveVocab (Vocabulary v, String vocabFilePath) throws IOException {\n\t\tFile file = new File(vocabFilePath);\n\t\t//if (file.exists()) file.delete();\n\t\t//file.createNewFile();\n\t\tBufferedWriter bw = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(file)));\n\t\tfor (int i = 0; i < v.vocabSize; i++) {\n\t\t\tbw.write(v.vocab.get(i).word + \" \" + v.vocab.get(i).cn + \"\\n\");\n\t\t}\n\t\tbw.close();\n\t}", "public void setVocubalaryId(long vocubalaryId);", "private void setVocabulary(int vocSize) {\n\t\tArrayList<String> chosen = new ArrayList<String>();\n\t\twhile (chosen.size() < vocSize) {\n\t\t\tint max = 0;\n\t\t\tString best = \"\";\n\t\t\tfor (String t : df.keySet()) {\n\t\t\t\tif (df.get(t) > max && !chosen.contains(t)) {\n\t\t\t\t\tmax = df.get(t);\n\t\t\t\t\tbest = t;\n\t\t\t\t}\n\t\t\t}\n\t\t\tchosen.add(best);\n\t\t}\n\t\tvocab = chosen;\n\t}", "public void constructOntologyVocabulary() {\n ontologyOwlClassVocabulary = new HashMap<>();\n ontologyOWLDataPropertyVocabulary = new HashMap<>();\n ontologyOWLNamedIndividualVocabulary = new HashMap<>();\n ontologyOWLObjectPropertylVocabulary = new HashMap<>();\n\n Set<OWLClass> classes = domainOntology.getClassesInSignature();\n Set<OWLNamedIndividual> individualPropertyAtom = domainOntology.getIndividualsInSignature();\n Set<OWLDataProperty> dataProperty = domainOntology.getDataPropertiesInSignature();\n Set<OWLObjectProperty> OWLObjectPropertyAtom = domainOntology.getObjectPropertiesInSignature();\n String tempName = null;\n\n for (OWLClass c : classes) {\n tempName = c.toString();\n tempName = tempName.substring(tempName.lastIndexOf(\"/\") + 1);\n tempName = TextUtil.formatName(tempName);\n ontologyOwlClassVocabulary.put(tempName, c);\n }\n for (OWLDataProperty d : dataProperty) {\n tempName = d.toString();\n tempName = tempName.substring(tempName.lastIndexOf(\"/\") + 1);\n tempName = TextUtil.formatName(tempName);\n ontologyOWLDataPropertyVocabulary.put(tempName, d);\n }\n for (OWLNamedIndividual i : individualPropertyAtom) {\n tempName = i.toString();\n tempName = tempName.substring(tempName.lastIndexOf(\"/\") + 1);\n tempName = TextUtil.formatName(tempName);\n ontologyOWLNamedIndividualVocabulary.put(tempName, i);\n }\n for (OWLObjectProperty o : OWLObjectPropertyAtom) {\n tempName = o.toString();\n tempName = tempName.substring(tempName.lastIndexOf(\"/\") + 1);\n tempName = TextUtil.formatName(tempName);\n ontologyOWLObjectPropertylVocabulary.put(tempName, o);\n }\n }", "public void getVector() throws IOException {\n\t\tint i=1;\r\n\t\tfor(String key:keyword){\r\n\t\t\tWord w=new Word();\r\n\t\t\tdouble tf=calTF(key);\r\n\t\t\tdouble idf=calIDF(key);\r\n\t\t\tdouble tfidf=tf*idf;\r\n\t\t\tw.setId(i);\r\n\t\t\ti++;\r\n\t\t\tw.setName(key);\r\n\t\t\tw.setTfidf(tfidf);\r\n\t\t\tif(word.containsKey(key)){\r\n\t\t\t\tw.setCount((Integer) word.get(key));\r\n\t\t\t}\r\n\t\t\tkeymap.add(w);\r\n\t\t}\r\n\t\tFileHelper.writeTrainFile(keymap);\r\n\t\tFileHelper.writeTestFile(keymap);\r\n\t}", "public int getTermIndex() {return termIndex;}", "public String getKeyWordTableName() {\r\n\t\treturn keyWordTableName;\r\n\t}", "@Override\n public String getTableName() {\n return getFreeTextDocTablename(conf);\n }", "private Vocabulary() {\n }", "public Vector mapDocument(BOW bow, boolean b) {\n //logger.info(\"lsm.mapDocument \" + b);\n SparseVector vector = new SparseVector();\n\n Iterator<String> it = bow.termSet().iterator();\n for (int i = 0; it.hasNext(); i++) {\n //logger.info(i + \" \" + t[i]);\n String term = it.next();\n int index = termIndex.get(term);\n\n if (index != -1) {\n int tf = bow.getFrequency(term);\n float tfIdf = (float) (log2(tf));\n if (b) {\n tfIdf *= Iidf[index];\n }\n\n //logger.info(term + \" ==> \" + index + \", tf.idf = \" + tf + \"(\" + (log2(tf)) + \") * \" + Iidf[index] + \" = \" + tfIdf);\n vector.add(index, tfIdf);\n\n }\n } // end for\n\n return vector;\n }", "void skillsFound( String key ) {\n developer.skills = new ArrayList<>();\n }", "@Override\n\tpublic List<Skill> getSkills() {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\t\n\t\t//create a query\n\t\tQuery<Skill> theQuery = currentSession.createQuery(\"from Skill\", Skill.class);\n\t\t\n\t\t//execute query and get result list\n\t\tList<Skill> skills = theQuery.getResultList();\n\t\t\n\t\t//return the results\n\t\treturn skills;\n\t}", "RepStuLearning selectByPrimaryKey(RepStuLearningKey key);", "public void fillVerbTbl(String sentenceID){\n\t\t// implement me!\n\t}", "WdWordDict selectByPrimaryKey(Long dictId);", "List<WordSchool> selectByExample(WordSchoolExample example);", "public OWLModel getKnowledgeBase();", "@Transactional\r\n\tpublic List<CmVocabularyCategory> getCmVocabularyCategorys() {\r\n\t\treturn dao.findAllWithOrder(CmVocabularyCategory.class, \"modifyTimestamp\", false);\r\n\t}", "public static void caso31(){\n\t FilterManager fm= new FilterManager(\"resources/stopWordsList.txt\",\"resources/useCaseWeight.properties\");\n\t\t\tQualityAttributeBelongable qualityAttributeBelongable = new OntologyManager(\"file:resources/caso3.owl\",\"file:resources/caso3.repository\",fm);\n\t\t\tMap<QualityAttributeInterface,Double> map = qualityAttributeBelongable.getWordPertenence(\"response1\");\n\t\t\tif(map==null){\n\t\t\t\tSystem.out.println(\"El map es null\");\n\t\t\t}else{\n\t\t\t\tMapUtils.imprimirMap(map);\n\t\t\t}\n\t}", "public void setKeyWordTableName(String keyWordTableName) {\r\n\t\tthis.keyWordTableName = keyWordTableName;\r\n\t}", "public static void caso32(){\n\t FilterManager fm= new FilterManager(\"resources/stopWordsList.txt\",\"resources/useCaseWeight.properties\");\n\t\t\tQualityAttributeBelongable qualityAttributeBelongable = new OntologyManager(\"file:resources/caso3.owl\",\"file:resources/caso3.repository\",fm);\n\t\t\tMap<QualityAttributeInterface,Double> map = qualityAttributeBelongable.getWordPertenence(\"response2\");\n\t\t\tif(map==null){\n\t\t\t\tSystem.out.println(\"El map es null\");\n\t\t\t}else{\n\t\t\t\tMapUtils.imprimirMap(map);\n\t\t\t}\n\t}", "WordSchool selectByPrimaryKey(Long id);", "public void AddKeywords()\n\t{\n\t\ttry\n\t\t{\n\t\t\tConnector con = new Connector();\n\t\t\tString query; \n\t\t\t\n\t\t\tfor(int i = 0; i < keywords.size(); i++)\n\t\t\t{\n\t\t\t\tString keyword = keywords.get(i); \n\t\t\t\t\n\t\t\t\tint kid = GetKIDFromWord(keyword); \n\t\t\t\t\n\t\t\t\t//word is not already in table\n\t\t\t\tif(kid == -1)\n\t\t\t\t{\n\t\t\t\t\t//insert word into Keywords \n\t\t\t\t\tSystem.out.println(\"test\"); \n\t\t\t\t\tquery = \"INSERT INTO Keywords(word) VALUE ('\"+keyword+\"')\"; \n\t\t\t \tint intoTable = con.stmt.executeUpdate(query); \n\t\t\t \t\n\t\t\t \t//able to put it in the table\n\t\t\t \tif(intoTable > 0)\n\t\t\t \t{\n\t\t\t \t\t//insert into HasKeywords\n\t\t\t\t \tkid = GetKIDFromWord(keyword); \n\t\t\t\t\t\tquery = \"INSERT INTO HasKeywords(keyword_hid, keyword_kid) VALUE('\"+hid+\"', '\"+kid+\"')\";\n\t\t\t\t \tint hasKey = con.stmt.executeUpdate(query); \n\t\t\t \t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//word is already in table\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tList<Integer> hkCheck = GetHIDSFromKID(kid);\n\t\t\t\t\t\n\t\t\t\t\tboolean inHKTable = false; \n\t\t\t\t\tfor(int j = 0; j < hkCheck.size(); j++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(hkCheck.get(j) == hid)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tinHKTable = true; \n\t\t\t\t\t\t\tbreak; \n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif(inHKTable == false)\n\t\t\t\t\t{\n\t\t\t\t\t\tquery = \"INSERT INTO HasKeywords(keyword_hid, keyword_kid) VALUE('\"+hid+\"', '\"+kid+\"')\";\n\t\t\t\t \tint hasKey = con.stmt.executeUpdate(query); \n\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tcon.closeConnection();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t}", "public final void mRULE_TOKEN_VOCAB() throws RecognitionException {\n try {\n int _type = RULE_TOKEN_VOCAB;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalUniMapperGenerator.g:5095:18: ( 'tokenVocab' )\n // InternalUniMapperGenerator.g:5095:20: 'tokenVocab'\n {\n match(\"tokenVocab\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public static void testDictionary() throws IOException {\n String wnhome=\"c:\\\\Users\\\\Katherine\\\\Documents\\\\2nd sem\\\\IR\\\\project\\\\WordNet_3.1\";\n String path = wnhome + File.separator + \"dict\";\n\n\n URL url = new URL(\"file\", null, path);\n\n IDictionary dictionary = new Dictionary(url);\n dictionary.open();\n // /Users/Ward/Downloads\n IIndexWord indexWord = dictionary.getIndexWord(\"use\", POS.VERB);\n\n for (IWordID wordID : indexWord.getWordIDs()) {\n\n IWord word = dictionary.getWord(wordID);\n for (IWord word1 : word.getSynset().getWords()) {\n System.out.println(word1.getLemma());\n }\n// System.out.println(\"Id = \" + wordID);\n// System.out.println(\" Lemma = \" + word.getLemma());\n// System.out.println(\" Gloss = \" + word.getSynset().getGloss());\n\n List<ISynsetID> hypernyms =\n word.getSynset().getRelatedSynsets(Pointer.HYPERNYM);\n // print out each h y p e r n y m s id and synonyms\n List<IWord> words;\n for (ISynsetID sid : hypernyms) {\n words = dictionary.getSynset(sid).getWords();\n System.out.print(sid + \" {\");\n for (Iterator<IWord> i = words.iterator(); i.hasNext(); ) {\n System.out.print(i.next().getLemma());\n if (i.hasNext())\n System.out.print(\", \");\n }\n System.out.println(\"}\");\n }\n }\n }", "public Vector mapDocument(MultiSet<String> bow) {\n //logger.info(\"lsm.mapDocument\");\n SparseVector vector = new SparseVector();\n\n Iterator<String> it = bow.iterator();\n String term = null;\n int index = 0;\n int tf = 0;\n float tfIdf;\n for (int i = 0; it.hasNext(); i++) {\n //logger.info(i + \" \" + t[i]);\n term = it.next();\n index = termIndex.get(term);\n\n if (index != -1) {\n tf = bow.getFrequency(term);\n tfIdf = (float) (log2(tf)) * Iidf[index];\n\n //logger.info(term + \" ==> \" + index + \", tf.idf = \" + tf + \"(\" + (log2(tf)) + \") * \" + Iidf[index] + \" = \" + tfIdf);\n vector.add(index, tfIdf);\n\n }\n } // end for\n\n return vector;\n }", "public static void writeArchivedVocab(Vocab vocab) {\n String userId = FirebaseAuth.getInstance().getUid();\n Log.d(\"000\", \"writeVocab: \"+userId);\n mDatabase.child(\"user\").child(userId).child(\"archive\").child(vocab.Id).setValue(vocab);\n }", "public List<Term> getAllTerms() {\n\t\tsession.beginTransaction();\n\t\tList<Term> lis = session.createQuery(\"from Term\").list();\n\n\t\tfor (Term tm : lis) {\n\t\t\tSystem.out.println(tm.getId() + \" \" + tm.getTermName());\n\t\t}\n\t\treturn lis;\n\t}", "public WordsWrapper getVocabulariesWrapper() {\n\t\tWordsWrapper wrapper = new WordsWrapper();\n\t\twrapper.mainvocabs = m__vocabs;\n\t\twrapper.referenes = m__referencedwords;\n\t\treturn wrapper;\n\t}", "public interface DictionaryDao<Type extends DictionaryProperty<Id>, Id extends Serializable> {\r\n\t/** \r\n\t * <!-- begin-UML-doc -->\r\n\t * Zwraca wszystkie mozliwe wartosci slownika.\r\n\t * <!-- end-UML-doc -->\r\n\t * @return\r\n\t * @generated \"UML to Java (com.ibm.xtools.transform.uml2.java5.internal.UML2JavaTransform)\"\r\n\t */\r\n\tpublic List<Type> getAll();\r\n}", "@Override\n public Builder limitVocabularySize(int limit) {\n super.limitVocabularySize(limit);\n return this;\n }", "@Override\n public List<DefinitionDTO> findAllWords() {\n List<Word> words = wordRepository.findAll();\n return DTOMapper.mapWordListToDefinitionDTOList(words);\n }", "public interface ArchetypeLevelsSchema {\n\tString TABLE_NAME = \"creature_archetype_levels\";\n\n\tString COLUMN_ARCHETYPE_ID = \"archetypeId\";\n\tString COLUMN_LEVEL = \"level\";\n\tString COLUMN_ATTACK = \"attack\";\n\tString COLUMN_ATTACK2 = \"attack2\";\n\tString COLUMN_DEF_BONUS = \"defensiveBonus\";\n\tString COLUMN_BODY_DEV = \"bodyDevelopment\";\n\tString COLUMN_PRIME_SKILL = \"primeSkill\";\n\tString COLUMN_SECONDARY_SKILL = \"secondarySkill\";\n\tString COLUMN_POWER_DEV = \"powerDevelopment\";\n\tString COLUMN_SPELLS = \"spells\";\n\tString COLUMN_TALENT_DP = \"talentDP\";\n\tString COLUMN_AGILITY = \"agility\";\n\tString COLUMN_CONS_STAT = \"constitutionStat\";\n\tString COLUMN_CONSTITUTION = \"constitution\";\n\tString COLUMN_EMPATHY = \"empathy\";\n\tString COLUMN_INTUITION = \"intuition\";\n\tString COLUMN_MEMORY = \"memory\";\n\tString COLUMN_PRESENCE = \"presence\";\n\tString COLUMN_QUICKNESS = \"quickness\";\n\tString COLUMN_REASONING = \"reasoning\";\n\tString COLUMN_SELF_DISC = \"selfDiscipline\";\n\tString COLUMN_STRENGTH = \"strength\";\n\n\tString TABLE_CREATE = \"CREATE TABLE IF NOT EXISTS \"\n\t\t\t+ TABLE_NAME\n\t\t\t+ \" (\"\n\t\t\t+ COLUMN_ARCHETYPE_ID + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_LEVEL + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_ATTACK + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_ATTACK2 + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_DEF_BONUS + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_BODY_DEV + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_PRIME_SKILL + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_SECONDARY_SKILL + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_POWER_DEV + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_SPELLS + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_TALENT_DP + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_AGILITY + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_CONS_STAT + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_CONSTITUTION + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_EMPATHY + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_INTUITION + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_MEMORY + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_PRESENCE + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_QUICKNESS + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_REASONING + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_SELF_DISC + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_STRENGTH + \" INTEGER NOT NULL, \"\n\t\t\t+ \"PRIMARY KEY(\" + COLUMN_ARCHETYPE_ID + \",\" + COLUMN_LEVEL + \")\"\n\t\t\t+ \")\";\n\n\tString[] COLUMNS = new String[] { COLUMN_ARCHETYPE_ID, COLUMN_LEVEL, COLUMN_ATTACK, COLUMN_ATTACK2, COLUMN_DEF_BONUS,\n\t\t\tCOLUMN_BODY_DEV, COLUMN_PRIME_SKILL, COLUMN_SECONDARY_SKILL, COLUMN_POWER_DEV, COLUMN_SPELLS, COLUMN_TALENT_DP,\n\t\t\tCOLUMN_AGILITY, COLUMN_CONS_STAT, COLUMN_CONSTITUTION, COLUMN_EMPATHY, COLUMN_INTUITION, COLUMN_MEMORY,\n\t\t\tCOLUMN_PRESENCE, COLUMN_QUICKNESS, COLUMN_REASONING, COLUMN_SELF_DISC, COLUMN_STRENGTH};\n}", "public static void moveCorrectToArchive(Vocab vocab){\n\n DatabaseReference vocabRef=FirebaseDatabase.getInstance().getReference().child(\"user\").child(FirebaseAuth.getInstance().getUid()).child(\"vocab\").child(vocab.Id);\n vocabRef.removeValue();\n archiveVocabs.add(vocab);\n writeArchivedVocab(vocab);\n\n }", "Terms selectByPrimaryKey(Integer id);", "public Iterator words() {\n return index.keySet().iterator();\n }", "public Word getWord(int id);", "public List search() {\n\t\tSessionFactory sf = new Configuration().configure()\n\t\t\t\t.buildSessionFactory();\n\t\tSession s = sf.openSession();\n\t\tQuery q = s.createQuery(\"from cat_vo\");\n\t\tList ls = q.list();\n\t\treturn ls;\n\t}", "public List<Term> getAllTermsByDictionary(String table, String dictionary) {\n List<Term> termList = new ArrayList<Term>();\n\n // Select All Query\n String selectQuery = \"SELECT * FROM \" + table + \" WHERE \" + KEY_DICTIONARY + \" = '\" + dictionary + \"' ORDER BY \" + KEY_TERM;\n\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor cursor = db.rawQuery(selectQuery, null);\n\n // looping through all rows and adding to list\n if (cursor.moveToFirst()) {\n do {\n if (!cursor.getString(2).isEmpty()) {\n /*\n Term term = new Term();\n term.setId(Integer.parseInt(cursor.getString(0)));\n term.setDictionary(cursor.getString(1));\n term.setTerm(cursor.getString(2));\n term.setSubject(cursor.getString(3));\n term.setDefinition(cursor.getString(4));\n term.setSynonyms(cursor.getString(5));\n */\n Term term = new Term(Integer.parseInt(cursor.getString(0)),cursor.getString(1), cursor.getString(2), cursor.getString(3),\n cursor.getString(4), cursor.getString(5), Integer.parseInt(cursor.getString(6)));\n // Adding term to list\n termList.add(term);\n }\n } while (cursor.moveToNext());\n }\n\n // return term list\n return termList;\n }", "Integer getSkillCount( String key ){\n return developer.skills.size();\n }", "public List<Skill> findAll(){\n return (List<Skill>) skillRepository.findAll();\n }", "public Courses getCourseTable();", "@Override\n protected Builder useExistingWordVectors(@NonNull WordVectors vec) {\n return this;\n }", "private void indexRelations(String inputFile, FlagConfig flagConfig) throws IOException {\n this.elementalVectors = VectorStoreRAM.readFromFile(\n flagConfig, \"C:\\\\Users\\\\dwiddows\\\\Data\\\\QI\\\\Gutterman\\\\termtermvectors.bin\");\n this.flagConfig = flagConfig;\n this.proportionVectors = new ProportionVectors(flagConfig);\n this.luceneUtils = new LuceneUtils(flagConfig);\n VectorStoreWriter writer = new VectorStoreWriter();\n\n // Turn all the text lines into parsed records.\n this.parseInputFile(inputFile);\n\n // Now the various indexing techniques.\n VectorStoreRAM triplesVectors = new VectorStoreRAM(flagConfig);\n VectorStoreRAM triplesPositionsVectors = new VectorStoreRAM(flagConfig);\n VectorStoreRAM dyadsVectors = new VectorStoreRAM(flagConfig);\n VectorStoreRAM dyadsPositionsVectors = new VectorStoreRAM(flagConfig);\n VectorStoreRAM verbsVectors = new VectorStoreRAM(flagConfig);\n VectorStoreRAM verbsPositionsVectors = new VectorStoreRAM(flagConfig);\n\n for (String docName : this.parsedRecords.keySet()) {\n Vector tripleDocVector = VectorFactory.createZeroVector(flagConfig.vectortype(), flagConfig.dimension());\n Vector tripleDocPositionVector = VectorFactory.createZeroVector(flagConfig.vectortype(), flagConfig.dimension());\n Vector dyadDocVector = VectorFactory.createZeroVector(flagConfig.vectortype(), flagConfig.dimension());\n Vector dyadDocPositionVector = VectorFactory.createZeroVector(flagConfig.vectortype(), flagConfig.dimension());\n Vector verbDocVector = VectorFactory.createZeroVector(flagConfig.vectortype(), flagConfig.dimension());\n Vector verbDocPositionVector = VectorFactory.createZeroVector(flagConfig.vectortype(), flagConfig.dimension());\n\n for (ParsedRecord record : this.parsedRecords.get(docName)) {\n Vector tripleVector = this.getPsiTripleVector(record);\n tripleDocVector.superpose(tripleVector, 1, null);\n\n this.bindWithPosition(record, tripleVector);\n tripleDocPositionVector.superpose(tripleVector, 1, null);\n\n Vector dyadVector = this.getPsiDyadVector(record);\n dyadDocVector.superpose(dyadVector, 1, null);\n this.bindWithPosition(record, dyadVector);\n dyadDocPositionVector.superpose(dyadVector, 1, null);\n\n Vector verbVector = this.vectorForString(record.predicate);\n verbDocVector.superpose(verbVector, 1, null);\n this.bindWithPosition(record, verbVector);\n verbDocPositionVector.superpose(verbVector, 1, null);\n }\n\n triplesVectors.putVector(docName, tripleDocVector);\n triplesPositionsVectors.putVector(docName, tripleDocPositionVector);\n dyadsVectors.putVector(docName, dyadDocVector);\n dyadsPositionsVectors.putVector(docName, dyadDocPositionVector);\n verbsVectors.putVector(docName, verbDocVector);\n verbsPositionsVectors.putVector(docName, verbDocPositionVector);\n }\n\n for (VectorStore vectorStore : new VectorStore[] {\n triplesVectors, triplesPositionsVectors, dyadsVectors, dyadsPositionsVectors, verbsVectors, verbsPositionsVectors }) {\n Enumeration<ObjectVector> vectorEnumeration = vectorStore.getAllVectors();\n while (vectorEnumeration.hasMoreElements())\n vectorEnumeration.nextElement().getVector().normalize();\n }\n\n writer.writeVectors(TRIPLES_OUTPUT_FILE, flagConfig, triplesVectors);\n writer.writeVectors(TRIPLES_POSITIONS_OUTPUT_FILE, flagConfig, triplesPositionsVectors);\n\n writer.writeVectors(DYADS_OUTPUT_FILE, flagConfig, dyadsVectors);\n writer.writeVectors(DYADS_POSITIONS_OUTPUT_FILE, flagConfig, dyadsPositionsVectors);\n\n writer.writeVectors(VERBS_OUTPUT_FILE, flagConfig, verbsVectors);\n writer.writeVectors(VERBS_POSITIONS_OUTPUT_FILE, flagConfig, verbsPositionsVectors);\n }", "int getConceptLanguagesCount();", "@Override\n public Builder lookupTable(@NonNull WeightLookupTable<VocabWord> lookupTable) {\n super.lookupTable(lookupTable);\n return this;\n }", "WordBean getWord(String word);", "public List<Product> search(String word, String codigo) {\n\t\tSession session = getSessionFactory().openSession();\n\t\treturn null;\n\t}", "private void invertedToDatabase(){\r\n cleFreq = new HashMap<>();\r\n System.out.println(\"Strat collecting\");\r\n Map<String,List<Invertedindex>> collects = collecting();\r\n System.out.println(\"Ending collecting\");\r\n Database.getInstance().invertedIndex(collects);\r\n Database.getInstance().addPoids(cleFreq);\r\n }", "@SuppressWarnings({ \"deprecation\", \"unchecked\", \"rawtypes\" })\n\tpublic String generateWordlists(Corpus co) {\n\t\tlong startTime = System.currentTimeMillis();\n\t\t// Set up weka word vector\n\t\tFastVector attributes;\n\t\tInstances dataSet;\n\t\tattributes = new FastVector();\n\n\t\tattributes.addElement(new Attribute(\"aspect_id\", (FastVector) null));\n\t\tattributes.addElement(new Attribute(\"tokens\", (FastVector) null));\n\n\t\tdataSet = new Instances(\"BeerAspects\", attributes, 0);\n\n\t\tCorpus topReviews;\n\t\tCorpus lowReviews;\n\n\t\t// Do top and low for all aspects\n\t\tfor (Aspect aspect : Aspect.values()) {\n\n\t\t\t// Only for actual aspects\n\t\t\tif (aspect.equals(Aspect.NONE) || aspect.equals(Aspect.OVERALL))\n\t\t\t\tcontinue;\n\n\t\t\ttopReviews = co.getTopReviews(aspect);\n\t\t\ttopReviews.analyze();\n\t\t\tString tokens = topReviews.getTokenConcatenation(aspect);\n\n\t\t\tInstance instance = new SparseInstance(2);\n\t\t\tinstance.setValue((Attribute) attributes.elementAt(0), aspect.name() + \"_TOP\");\n\t\t\tinstance.setValue((Attribute) attributes.elementAt(1), tokens);\n\n\t\t\tdataSet.add(instance);\n\n\t\t\tlowReviews = co.getLowReviews(aspect);\n\t\t\tlowReviews.analyze();\n\t\t\ttokens = lowReviews.getTokenConcatenation(aspect);\n\t\t\t// System.out.println(tokens);\n\n\t\t\tinstance = new SparseInstance(2);\n\t\t\tinstance.setValue((Attribute) attributes.elementAt(0), aspect.name() + \"_LOW\");\n\t\t\tinstance.setValue((Attribute) attributes.elementAt(1), tokens);\n\n\t\t\tdataSet.add(instance);\n\t\t}\n\n\t\t// System.out.println(dataSet.toString());\n\t\tInstances dataFiltered = transformToWordVector(dataSet, co.getProps());\n\n\t\t// System.out.println(dataFiltered.toString());\n\t\tString pathsToLists = writeWordlists(dataFiltered);\n\n\t\twriteArffFile(dataFiltered, this.outputDir+\"wordvector.arff\");\n\n\t\tlong stopTime = System.currentTimeMillis();\n\t\tlong elapsedTime = stopTime - startTime;\n\t\tSystem.out.println(\"Generated wordlists in: \" + elapsedTime / 1000 + \" s\");\n\t\treturn pathsToLists;\n\t}", "boolean putWord(WordBean wordBean);", "public Table<Integer, Integer, String> getAnonymizedData();", "public static void caso12(){\n\n FilterManager fm= new FilterManager(\"resources/stopWordsList.txt\",\"resources/useCaseWeight.properties\");\n\t\tQualityAttributeBelongable qualityAttributeBelongable = new OntologyManager(\"file:resources/caso1.owl\",\"file:resources/caso1.repository\",fm);\n\t\tMap<QualityAttributeInterface,Double> map = qualityAttributeBelongable.getWordPertenence(\"pan\");\n\t\tif(map==null){\n\t\t\tSystem.out.println(\"El map es null\");\n\t\t}\n\t}", "public void addToJurisdictions(entity.AppCritJurisdiction element);", "public static void caso11(){\n\t\t\n FilterManager fm= new FilterManager(\"resources/stopWordsList.txt\",\"resources/useCaseWeight.properties\");\n\t\tQualityAttributeBelongable qualityAttributeBelongable = new OntologyManager(\"file:resources/caso1.owl\",\"file:resources/caso1.repository\",fm);\n\t\tMap<QualityAttributeInterface,Double> map = qualityAttributeBelongable.getWordPertenence(\"response\");\n\t\tMapUtils.imprimirMap(map);\n\t}", "public String getNomTable();", "public void init() {\n File file=new File(\"D:\\\\lucene\\\\index\");\n if(file.isDirectory())\n { //否则如果它是一个目录\n File files[] = file.listFiles(); //声明目录下所有的文件 files[];\n for(int i=0;i<files.length;i++)\n { //遍历目录下所有的文件\n files[i].delete(); //把每个文件 用这个方法进行迭代\n }\n }\n String indexPath = \"D:\\\\lucene\\\\index\";\n //String docsPath = \"D:\\\\lucene\\\\data\";\n boolean create = true;\n try\n {\n Session session=factory.openSession();\n String hql = \"from Book\";\n org.hibernate.Query query = session.createQuery(hql);\n List<Book> list=query.list();\n Directory indexDir = FSDirectory.open(Paths.get(\"D:\\\\lucene\\\\index\"));\n Analyzer luceneAnalyzer = new StandardAnalyzer(); //新建一个分词器实例 \n IndexWriterConfig config = new IndexWriterConfig(luceneAnalyzer); \n IndexWriter indexWriter = new IndexWriter(indexDir,config);\n for(int i=0;i<list.size();i++)\n {\n Document document = new Document();\n Field field1 = new StringField(\"id\",list.get(i).getBookid().toString(),Field.Store.YES); \n Field field2 = new StringField(\"bookname\",list.get(i).getBookname(),Field.Store.YES); \n Field field3 = new StringField(\"author\",list.get(i).getAuthor(),Field.Store.YES); \n Field field4 = new StringField(\"category\",list.get(i).getCategory(),Field.Store.YES); \n Field field5 = new StringField(\"price\", Double.toString(list.get(i).getPrice()),Field.Store.YES); \n document.add(field1); \n document.add(field2); \n document.add(field3); \n document.add(field4);\n document.add(field5);\n indexWriter.addDocument(document);\n }\n indexWriter.close();\n }\n catch(IOException e)\n {\n System.out.println(\"error\");\n return;\n }\n }", "hr.domain.ResumeDBOuterClass.Education getEducations(int index);", "hr.domain.ResumeDBOuterClass.Experience getExperiences(int index);", "public void fillNounTbl(String sentenceID){\n\t\t// implement me!\n\t}", "void createOrUpdateVocabulary(final VocabularyPE vocabularyPE);", "@Override\n public Builder iterate(@NonNull SequenceIterator<VocabWord> iterator) {\n super.iterate(iterator);\n return this;\n }", "private void createFreqVector(Path file) {\r\n\t\t\tVector vector = new Vector(vocabulary.size());\r\n\t\t\tList<String> lines;\r\n\t\t\ttry {\r\n\t\t\t\tlines = Files.readAllLines(file);\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tSet<String> words = new HashSet<>();\r\n\t\t\t//create frequency vector of words in single document -> tf(w,d)\r\n\t\t\tfor (String line : lines) {\r\n\t\t\t\tif (line.isEmpty()) continue;\r\n\t\t\t\tString[] values = p.split(line);\r\n\t\t\t\tfor (String value : values) { \r\n\t\t\t\t\tif (value.isEmpty()) continue;\r\n\t\t\t\t\tString lowWord = value.toLowerCase().trim();\r\n\t\t\t\t\t\r\n\t\t\t\t\tInteger[] arr = vocabulary.get(lowWord);\r\n\t\t\t\t\tif (arr == null) continue;\r\n\t\t\t\t\tvector.incrementValueAt(arr[0]);\r\n\t\t\t\t\tif (words.add(lowWord)) {\r\n\t\t\t\t\t\t arr[1] += 1;\t//first time occurrence of this word in document\r\n\t\t\t\t\t\tvocabulary.put(lowWord, arr);\t//increment number of documents for this word\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\tfreqVectors.put(file, vector);\t\t\r\n\t\t}", "private String[][] getMoodsTableValues() {\n String soso = DBTypesKeys.SO_SO_MOOD.getTypeValue();\n String sad = DBTypesKeys.SAD_MOOD.getTypeValue();\n String angry = DBTypesKeys.ANGRY_MOOD.getTypeValue();\n String happy = DBTypesKeys.HAPPY_MOOD.getTypeValue();\n // moods table\n return new String[][]{\n //moods hi answers by answers // id_ (enum index + 1)\n { soso, \"hey\", \"by\"}, // 1\n { sad, \"welcome to sad world\", \"so, you too ...\"}, // 2\n { angry, \"get out!\", \"thanks god, you away\"}, // 3\n { happy, \"hi! glad to see you =)\", \"good luck, buddy\"} // 4\n };\n }", "private VocabularyTerms getVocabularyTerms(Collection<CMAContentType> vocabularies) {\n VocabularyTerms vocabularyTerms = new VocabularyTerms();\n vocabularies\n .forEach(contentType -> {\n //Keeps the country vocabulary ID for future use\n if (contentType.getName().equals(configuration.getCountryVocabulary())) {\n vocabularyTerms.loadCountryVocabulary(contentType);\n } else {\n //Loads vocabulary into memory\n vocabularyTerms.loadVocabulary(contentType);\n }\n });\n return vocabularyTerms;\n }", "public static String getTokenVocabFromGrammar(String text) {\n\t\t// TODO: unneeded. use antlr Tool. Kill?\n//\t\tParsingResult r = parseANTLRGrammar(text);\n//\t\tif ( r.tree!=null ) { //&& r.syntaxErrorListener.getSyntaxErrors().size()==0 ) {\n//\t\t\t// option : id ASSIGN optionValue ;\n//\t\t\tCollection<ParseTree> options = XPath.findAll(r.tree, \"//option\", r.parser);\n//\t\t\tfor (Iterator<ParseTree> it = options.iterator(); it.hasNext(); ) {\n//\t\t\t\tANTLRv4Parser.OptionContext option = (ANTLRv4Parser.OptionContext)it.next();\n//\t\t\t\tif ( option.id().getText().equals(\"tokenVocab\") ) {\n//\t\t\t\t\t/*\n//\t\t\t\t\toptionValue\n//\t\t\t\t\t\t:\tid (DOT id)*\n//\t\t\t\t\t\t|\tSTRING_LITERAL\n//\t\t\t\t\t\t|\tACTION\n//\t\t\t\t\t\t|\tINT\n//\t\t\t\t\t\t;\n//\t\t\t\t\t */\n//\t\t\t\t\tANTLRv4Parser.OptionValueContext optionValue = option.optionValue();\n//\t\t\t\t\tif ( optionValue.STRING_LITERAL()!=null ) {\n//\t\t\t\t\t\tString s = optionValue.STRING_LITERAL().getText();\n//\t\t\t\t\t\treturn RefactorUtils.getLexerRuleNameFromLiteral(s);\n//\t\t\t\t\t}\n//\t\t\t\t\tif ( optionValue.id(0)!=null ) {\n//\t\t\t\t\t\treturn optionValue.id(0).getText();\n//\t\t\t\t\t}\n//\t\t\t\t}\n//\t\t\t}\n//\t\t}\n\t\treturn null;\n\t}", "private Resolution getVocabularyConceptResolution() {\r\n HttpServletRequest httpRequest = getContext().getRequest();\r\n String url = httpRequest.getRequestURL().toString();\r\n // String query = httpRequest.getQueryString();\r\n \r\n String[] parameters = StringUtils.split(StringUtils.substringAfter(url, \"/vocabulary/\"), \"/\");\r\n \r\n if (parameters.length >= 2) {\r\n if (!RESERVED_VOCABULARY_EVENTS.contains(parameters[1])) {\r\n RedirectResolution resolution = new RedirectResolution(VocabularyConceptActionBean.class, \"view\");\r\n resolution.addParameter(\"vocabularyFolder.identifier\", parameters[0]);\r\n resolution.addParameter(\"vocabularyConcept.identifier\", parameters[1]);\r\n resolution.addParameter(\"vocabularyFolder.workingCopy\", vocabularyFolder.isWorkingCopy());\r\n \r\n return resolution;\r\n }\r\n }\r\n \r\n return null;\r\n }", "public SPARQL() {\n initComponents();\n \n model = ModelFactory.createOntologyModel(OntModelSpec.OWL_LITE_MEM_RDFS_INF);\n model.setDynamicImports(true);\n model.read(\"file:\"+\"data/ontologies/Papers_Ready.owl\", \"http://www.l3g.pl/ontologies/OntoBeef/Papers.owl\", \"N-TRIPLE\");\n model.loadImports();\n \n for (Individual i : model.listIndividuals(model.getOntClass(\"http://www.l3g.pl/ontologies/OntoBeef/Conceptualisation.owl#Category\")).toSet())\n {\n System.out.println(i.listLabels(null).toSet());\n }\n }", "@Override\n public AutoBuffer write_impl(AutoBuffer ab) {\n if (_vocabHM == null) return ab.put1(1); // killed\n\n int strLen = 0;\n for (ValueStringCount val : VOCABHM.values())\n strLen += val.length();\n ab.put1(0); // not killed\n ab.put4(strLen); //length of string buffer\n for (ValueStringCount val : VOCABHM.values())\n ab.put2((char) val.length()).putA1(val.getBuffer(), val.getOffset(), val.getOffset() + val.length()).put8(val._cnt);\n return ab.put2((char) 65535); // End of map marker\n }", "@SuppressWarnings(\"unchecked\")\r\n\tpublic static void main(String[] args) throws IOException {\n\t\tSchema s = new Schema(\"Estudiantes\",\"C:\\\\Users\\\\morazan\\\\Desktop\\\\com\\\\idk\\\\ac\\\\cr\");\r\n\n\t\tSchemaJoin j = new SchemaJoin(\"Notas\",\"C:\\\\Users\\\\morazan\\\\Desktop\\\\com\\\\idk\\\\ac\\\\cr\");\r\n\r\n\t\t//Creates an index in the regular schema\r\n\t\ts.createIndex(\"bts\", \"string\", \"Nombre\", 10);\r\n\t\ts.createIndex(\"avl\", \"number\", \"aņo\", 4);\r\n\t\ts.createIndex(\"avl\", \"image\", \"Imagen\", 0);\r\n\t\tj.joinSchema(s);\r\n\t\tj.createJoinedIndex(\"avl\", \"number\", \"Notas\", 2);\r\n\t\t\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"Inserting I \");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\ts.insertToIndex(1, \"JP\");\r\n\t\ts.insertToIndex(1, \"Randy\");\r\n\t\ts.insertToIndex(1, \"Alejandra\");\r\n//\t\ts.insertToIndex(1, \"Xcreed\");\r\n\t\ts.insertToIndex(2, 1996);\r\n\t\ts.insertToIndex(2, 1995);\r\n\t\ts.insertToIndex(2, 1997);\n\t\ts.insertToIndex(3, \"SchemaExtraFiles/2.jpg\");\n\t\ts.insertToIndex(3, \"SchemaExtraFiles/8.jpg\");\n\t\ts.insertToIndex(3, \"SchemaExtraFiles/4.jpg\");\n\t\t\n\t\tIndexBTS index = (IndexBTS) s.schema.getItem(1);\r\n\t\tBinarySearchTree t = (BinarySearchTree) index.tree;\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"Traversal I\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tt.inOrderTraversal();\r\n\t\t\n\t\tIndexAVL index2 = (IndexAVL) s.schema.getItem(2);\r\n\t\tAVLTree t2 = (AVLTree) index2.getTree();\r\n\t\tSystem.out.println(\"avl order\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"Traversal II\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\n\t\tt2.inorder();\n\t\t\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"Inserting II \");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tj.insertToIndex(1, 80);\r\n\t\tj.insertToIndex(1, 82);\r\n\t\tj.insertToIndex(1, 78);\t\t\t\r\n\t\t\r\n//\t\tSystem.out.println(s.search(\"JP\"));\r\n//\t\tSystem.out.println(s.deleteInIndex(1,\"JP\"));\r\n//\t\tSystem.out.println(s.search(\"JP\"));\r\n\t\t\r\n\t\tSystem.out.println(\"Getting line 1\");\r\n\t\ts.getLine(1);\r\n//\t\ts.deleteLine(1);\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"Searching 82 \");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tj.joinedSearch(82);\r\n\r\n\t\t//Deletes an index in the schema\r\n//\t\ts.schema.print();\r\n//\t\ts.deleteIndex(1);\r\n//\t\ts.schema.print();\r\n\t\t\r\n// ***********Activate Separately**********\r\n\t\t\r\n//\t\ts.createIndex(\"bts\", \"video\", \"Videos\", 0);\r\n//\t\ts.insertToIndex(1, \"SchemaExtraFiles/Trike Drifting.mp4\");\r\n\t\t\r\n//\t***************************************\r\n\t\t\r\n\t\tJSONProtocol json = new JSONProtocol();\r\n\t\tjson.writeSchema(s);\r\n\t\t\t\t\r\n\t\t\r\n\t}", "TableId table();", "public boolean buildVocab() {\n readStopWords();\n\n if(cache.vocabExists()) {\n log.info(\"Loading vocab...\");\n cache.loadVocab();\n cache.resetWeights();\n return true;\n }\n\n //vectorizer will handle setting up vocab meta data\n if(vectorizer == null)\n vectorizer = new TfidfVectorizer.Builder()\n .cache(cache).iterate(docIter).iterate(sentenceIter)\n .minWords(minWordFrequency).stopWords(stopWords)\n .tokenize(tokenizerFactory).build();\n vectorizer.fit();\n\n setup();\n\n return false;\n }", "public List<Kateggorija> getSviGlumci() {\n List<Kateggorija> glumci=null;\n try {\n glumci= getDaoKateggorija().queryForAll();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n return glumci;\n }", "@VTID(10)\n int getIndex();", "Skill getSkill(Long skillId) throws DbException;", "public List<String> GetKeywords()\n\t{\n\t\tList<String> words = new ArrayList<String>(); \n\t\ttry\n\t\t{\n\t\t\tConnector con = new Connector();\n\t \n\t String query = \"SELECT keyword_kid FROM HasKeywords WHERE keyword_hid = '\"+hid+\"'\"; \n\t ResultSet rs = con.stmt.executeQuery(query); \n\t \n\t List<Integer> k_ids = new ArrayList<Integer>(); \n\t while(rs.next())\n\t {\n\t \tint new_id = rs.getInt(\"keyword_kid\"); \n\t \tk_ids.add(new_id); \n\t }\n\t \n\t for(int i = 0; i < k_ids.size(); i++)\n\t {\n\t \tquery = \"SELECT word FROM Keywords WHERE k_id = '\"+k_ids.get(i)+\"'\"; \n\t \trs = con.stmt.executeQuery(query); \n\t \twhile(rs.next())\n\t \t{\n\t \t\tString kw = rs.getString(\"word\"); \n\t \t\twords.add(kw); \n\t \t}\n\t }\n\t \n\t con.closeConnection();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\tkeywords = words; \n\t\treturn keywords; \n\t}", "java.lang.String getSemanticLangidModelName();", "public interface DBSDictionary\n{\n /**\n * Checks that this constrain supports key enumerations.\n * Usually it depends on constraint type (enumerations makes sense only for unique constraints).\n * @return true or false\n */\n boolean supportsDictionaryEnumeration();\n\n /**\n * Gets enumeration values\n *\n * @param monitor session\n * @param keyColumn enumeration column.\n * @param keyPattern pattern for enumeration values. If null or empty then returns full enumration set\n * @param searchText\n * @param preceedingKeys other constrain key values. May be null.\n * @param caseInsensitiveSearch use case-insensitive search for {@code keyPattern}\n * @param sortAsc ascending sorting (irrelevant is {@code sortByValue} is false)\n * @param sortByValue sort results by value\n * @param offset enumeration values offset in result set\n * @param maxResults maximum enumeration values in result set\n * @return statement with result set which contains valid enumeration values.\n */\n @NotNull\n List<DBDLabelValuePair> getDictionaryEnumeration(\n @NotNull DBRProgressMonitor monitor,\n @NotNull DBSEntityAttribute keyColumn,\n @Nullable Object keyPattern,\n @Nullable String searchText,\n @Nullable List<DBDAttributeValue> preceedingKeys,\n boolean caseInsensitiveSearch,\n boolean sortAsc,\n boolean sortByValue,\n int offset,\n int maxResults\n ) throws DBException;\n\n @NotNull\n List<DBDLabelValuePair> getDictionaryValues(\n @NotNull DBRProgressMonitor monitor,\n @NotNull DBSEntityAttribute keyColumn,\n @NotNull List<Object> keyValues,\n @Nullable List<DBDAttributeValue> preceedingKeys,\n boolean sortByValue,\n boolean sortAsc\n ) throws DBException;\n\n @NotNull\n DBSDictionaryAccessor getDictionaryAccessor(\n @NotNull DBRProgressMonitor monitor,\n @Nullable List<DBDAttributeValue> precedingKeys,\n @NotNull DBSEntityAttribute keyColumn,\n boolean sortAsc,\n boolean sortByDesc\n ) throws DBException;\n}", "@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)\n\tpublic List<AssetVocabulary> getAttachedVocabularies(long groupId);", "public static List<Book> getBookCategory() throws HibernateException{\r\n \r\n session = sessionFactory.openSession();\r\n session.beginTransaction();\r\n \r\n Query query=session.getNamedQuery(\"INVENTORY_getBookCategory\");\r\n List<Book> bookLocationList=query.list();\r\n \r\n session.getTransaction().commit();\r\n session.close();\r\n \r\n return bookLocationList;\r\n}", "public void train(Corpus[] trainingData) {\n\t\tSet<String> vocabulary = super.mergeVocabulary(trainingData);\n\t\ttrainingData[0].setVocabulary(vocabulary);\n\t\ttrainingData[1].setVocabulary(vocabulary);\n\t\tposMatrix = new TransitionMatrix(trainingData[0]);\n\t\tnegMatrix = new TransitionMatrix(trainingData[1]);\n\t}", "public void AddInDB(Word newWord) throws SQLException {\n String insertQuery = \"INSERT INTO tbltest(word,pronunciation,define) VALUES(?,?,?)\";\r\n ps = con.prepareStatement(insertQuery);\r\n ps.setString(1, newWord.getWord());\r\n ps.setString(2, newWord.getPronunciation());\r\n ps.setString(3, newWord.getDefine());\r\n\r\n ps.executeUpdate();\r\n }", "public static void caso41(){\n FilterManager fm= new FilterManager(\"resources/stopWordsList.txt\",\"resources/useCaseWeight.properties\");\n\t\tQualityAttributeBelongable qualityAttributeBelongable = new OntologyManager(\"file:resources/caso4.owl\",\"file:resources/caso4.repository\",fm);\n\t\tMap<QualityAttributeInterface,Double> map = qualityAttributeBelongable.getWordPertenence(\"response1\");\n\t\tif(map==null){\n\t\t\tSystem.out.println(\"El map es null\");\n\t\t}else{\n\t\t\tMapUtils.imprimirMap(map);\n\t\t}\n\t}", "@Select(\"select id,item from dicts where id in (23,24,25,26,27)\")\n\tList<Dict> findLevels();", "public interface IJavaDocAttributDao\n{\n List<JavaDocAttribut> getJavaDocAttributs(int idJavaDocMethode);\n}" ]
[ "0.5714772", "0.5634642", "0.54471385", "0.5296146", "0.5199113", "0.49331725", "0.49329886", "0.4925552", "0.49100333", "0.49073565", "0.48575464", "0.4840506", "0.48176134", "0.47540638", "0.4731969", "0.47130308", "0.46997505", "0.46928567", "0.46592632", "0.46315858", "0.46308562", "0.4628427", "0.4613438", "0.4607982", "0.46033806", "0.45581195", "0.45454577", "0.45442265", "0.45386803", "0.45275065", "0.452028", "0.4503016", "0.4500965", "0.44867927", "0.44754398", "0.44700065", "0.4461962", "0.44616178", "0.44392928", "0.44261026", "0.43990988", "0.43955937", "0.43947372", "0.4391834", "0.43790415", "0.4373947", "0.43707538", "0.43700558", "0.43560442", "0.43444037", "0.43359932", "0.4334978", "0.4331108", "0.43275934", "0.43246162", "0.4323478", "0.432252", "0.43204546", "0.43167415", "0.4313692", "0.43123078", "0.43018934", "0.42899582", "0.42859036", "0.4279804", "0.42734304", "0.42709267", "0.42542967", "0.4249365", "0.4246521", "0.42383584", "0.42374423", "0.42311075", "0.42302102", "0.4229986", "0.4227258", "0.42229605", "0.42228934", "0.422011", "0.42189792", "0.42158115", "0.42145696", "0.42105144", "0.4207044", "0.42064056", "0.41962886", "0.4194155", "0.41941473", "0.41919973", "0.41892615", "0.41883606", "0.41852176", "0.4182343", "0.41803232", "0.41759124", "0.41734546", "0.41732693", "0.41713014", "0.41704375", "0.416942", "0.41672277" ]
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table wd_vocab
public String getOrderByClause() { return orderByClause; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<VocabWord> document(int index);", "int[] documents(VocabWord vocabWord);", "public static void writeVocab(Vocab vocab) {\n String userId = FirebaseAuth.getInstance().getUid();\n Log.d(\"000\", \"writeVocab: \"+userId);\n mDatabase.child(\"user\").child(userId).child(\"vocab\").child(vocab.Id).setValue(vocab);\n }", "void addWordsToDoc(int doc,List<VocabWord> words);", "void addWordToDoc(int doc,VocabWord word);", "public VocabularyTerms() {}", "public Vector mapDocument(BOW bow) {\n //logger.info(\"lsm.mapDocument\");\n SparseVector vector = new SparseVector();\n\n Iterator<String> it = bow.termSet().iterator();\n String term = null;\n int index = 0;\n //int tf = 0;\n float tfIdf;\n for (int i = 0; it.hasNext(); i++) {\n //logger.info(i + \" \" + t[i]);\n term = it.next();\n index = termIndex.get(term);\n\n if (index != -1) {\n //tf = bow.getFrequency(term);\n //tfIdf = (float) (log2(tf)) * Iidf[index];\n //tfIdf = (float) bow.augmentedFrequency(term) * Iidf[index];\n tfIdf = (float) bow.tf(term) * Iidf[index];\n //logger.info(term + \" ==> \" + index + \", tf.idf = \" + tf + \"(\" + (log2(tf)) + \") * \" + Iidf[index] + \" = \" + tfIdf);\n vector.add(index, tfIdf);\n\n }\n } // end for\n\n return vector;\n }", "@Id\n @Column(name=\"term_key\")\n public int getTermKey() {\n\treturn termKey;\n }", "public WdVocabExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "private static void setWordPosition() {\n\t\tSet setKeys = Utility.vocabHM.keySet();\n\t\tIterator i = setKeys.iterator();\n\t\tint position = 0;\n\t\twhile (i.hasNext()) {\n\t\t\tString w = (String) i.next();\n\t\t\tInteger rows[] = new Integer[2];\n\t\t\trows[0] = new Integer(position); /* word position */\n\t\t\trows[1] = (Integer) Utility.vocabHM.get(w); /* df */\n\n\t\t\tUtility.vocabHM.put(w, rows);\n\t\t\tposition++;\n\t\t}\n\t}", "public Vector<Word> allKeyValue(){\n\n\tVector<Word> words = new Vector<Word>();\n\tfor(int w = 0; w < theTable.length; w++){\n\t // System.out.println(\"w: \" + w);\n\t // System.out.println(\"theTable[w]: \" + theTable[w]);\n\t if(theTable[w] != null){\n\t\twords.addElement(theTable[w]);\n\t }\n\t}\n\treturn words;\n }", "public static void deleteVocab(Context context){\n Toast.makeText(context, \"deleted\", Toast.LENGTH_SHORT).show();\n DatabaseReference vocabRef=FirebaseDatabase.getInstance().getReference().child(\"user\").child(FirebaseAuth.getInstance().getUid()).child(\"vocab\").child(currentVocabId);\n vocabRef.removeValue();\n }", "public Controlador(boolean newTable){\n if(newTable){\n vocabulario = new TSB_OAHashtable<>();\n }\n }", "public static void initVocabData() {\n FirebaseDatabase.getInstance().getReference().child(\"user\").child(FirebaseAuth.getInstance().getUid()).child(\"vocab\")\n .addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n staticVocabs.clear();\n for(DataSnapshot snapshot: dataSnapshot.getChildren() ){\n Vocab vocab = snapshot.getValue(Vocab.class);\n staticVocabs.add(vocab);\n size=1;\n }\n vocabsAdapter.notifyDataSetChanged();\n if (staticVocabs.size()==0){\n vocabsRecyclerView.setVisibility(View.INVISIBLE);\n isFirst.setVisibility(View.VISIBLE);\n notFirst.setVisibility(View.INVISIBLE);\n\n }else {\n vocabsRecyclerView.setVisibility(View.VISIBLE);\n isFirst.setVisibility(View.INVISIBLE);\n notFirst.setVisibility(View.VISIBLE);\n }\n }\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n }\n });\n }", "List<WdWordDict> selectByExample(WdWordDictExample example);", "@Query(\"SELECT * from english_word ORDER BY word ASC limit 300\")\n List<StoredEnglishWord> findAllWords();", "public void saveVocab (Vocabulary v, String vocabFilePath) throws IOException {\n\t\tFile file = new File(vocabFilePath);\n\t\t//if (file.exists()) file.delete();\n\t\t//file.createNewFile();\n\t\tBufferedWriter bw = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(file)));\n\t\tfor (int i = 0; i < v.vocabSize; i++) {\n\t\t\tbw.write(v.vocab.get(i).word + \" \" + v.vocab.get(i).cn + \"\\n\");\n\t\t}\n\t\tbw.close();\n\t}", "public void setVocubalaryId(long vocubalaryId);", "private void setVocabulary(int vocSize) {\n\t\tArrayList<String> chosen = new ArrayList<String>();\n\t\twhile (chosen.size() < vocSize) {\n\t\t\tint max = 0;\n\t\t\tString best = \"\";\n\t\t\tfor (String t : df.keySet()) {\n\t\t\t\tif (df.get(t) > max && !chosen.contains(t)) {\n\t\t\t\t\tmax = df.get(t);\n\t\t\t\t\tbest = t;\n\t\t\t\t}\n\t\t\t}\n\t\t\tchosen.add(best);\n\t\t}\n\t\tvocab = chosen;\n\t}", "public void constructOntologyVocabulary() {\n ontologyOwlClassVocabulary = new HashMap<>();\n ontologyOWLDataPropertyVocabulary = new HashMap<>();\n ontologyOWLNamedIndividualVocabulary = new HashMap<>();\n ontologyOWLObjectPropertylVocabulary = new HashMap<>();\n\n Set<OWLClass> classes = domainOntology.getClassesInSignature();\n Set<OWLNamedIndividual> individualPropertyAtom = domainOntology.getIndividualsInSignature();\n Set<OWLDataProperty> dataProperty = domainOntology.getDataPropertiesInSignature();\n Set<OWLObjectProperty> OWLObjectPropertyAtom = domainOntology.getObjectPropertiesInSignature();\n String tempName = null;\n\n for (OWLClass c : classes) {\n tempName = c.toString();\n tempName = tempName.substring(tempName.lastIndexOf(\"/\") + 1);\n tempName = TextUtil.formatName(tempName);\n ontologyOwlClassVocabulary.put(tempName, c);\n }\n for (OWLDataProperty d : dataProperty) {\n tempName = d.toString();\n tempName = tempName.substring(tempName.lastIndexOf(\"/\") + 1);\n tempName = TextUtil.formatName(tempName);\n ontologyOWLDataPropertyVocabulary.put(tempName, d);\n }\n for (OWLNamedIndividual i : individualPropertyAtom) {\n tempName = i.toString();\n tempName = tempName.substring(tempName.lastIndexOf(\"/\") + 1);\n tempName = TextUtil.formatName(tempName);\n ontologyOWLNamedIndividualVocabulary.put(tempName, i);\n }\n for (OWLObjectProperty o : OWLObjectPropertyAtom) {\n tempName = o.toString();\n tempName = tempName.substring(tempName.lastIndexOf(\"/\") + 1);\n tempName = TextUtil.formatName(tempName);\n ontologyOWLObjectPropertylVocabulary.put(tempName, o);\n }\n }", "public void getVector() throws IOException {\n\t\tint i=1;\r\n\t\tfor(String key:keyword){\r\n\t\t\tWord w=new Word();\r\n\t\t\tdouble tf=calTF(key);\r\n\t\t\tdouble idf=calIDF(key);\r\n\t\t\tdouble tfidf=tf*idf;\r\n\t\t\tw.setId(i);\r\n\t\t\ti++;\r\n\t\t\tw.setName(key);\r\n\t\t\tw.setTfidf(tfidf);\r\n\t\t\tif(word.containsKey(key)){\r\n\t\t\t\tw.setCount((Integer) word.get(key));\r\n\t\t\t}\r\n\t\t\tkeymap.add(w);\r\n\t\t}\r\n\t\tFileHelper.writeTrainFile(keymap);\r\n\t\tFileHelper.writeTestFile(keymap);\r\n\t}", "public int getTermIndex() {return termIndex;}", "public String getKeyWordTableName() {\r\n\t\treturn keyWordTableName;\r\n\t}", "@Override\n public String getTableName() {\n return getFreeTextDocTablename(conf);\n }", "private Vocabulary() {\n }", "public Vector mapDocument(BOW bow, boolean b) {\n //logger.info(\"lsm.mapDocument \" + b);\n SparseVector vector = new SparseVector();\n\n Iterator<String> it = bow.termSet().iterator();\n for (int i = 0; it.hasNext(); i++) {\n //logger.info(i + \" \" + t[i]);\n String term = it.next();\n int index = termIndex.get(term);\n\n if (index != -1) {\n int tf = bow.getFrequency(term);\n float tfIdf = (float) (log2(tf));\n if (b) {\n tfIdf *= Iidf[index];\n }\n\n //logger.info(term + \" ==> \" + index + \", tf.idf = \" + tf + \"(\" + (log2(tf)) + \") * \" + Iidf[index] + \" = \" + tfIdf);\n vector.add(index, tfIdf);\n\n }\n } // end for\n\n return vector;\n }", "void skillsFound( String key ) {\n developer.skills = new ArrayList<>();\n }", "@Override\n\tpublic List<Skill> getSkills() {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\t\n\t\t//create a query\n\t\tQuery<Skill> theQuery = currentSession.createQuery(\"from Skill\", Skill.class);\n\t\t\n\t\t//execute query and get result list\n\t\tList<Skill> skills = theQuery.getResultList();\n\t\t\n\t\t//return the results\n\t\treturn skills;\n\t}", "RepStuLearning selectByPrimaryKey(RepStuLearningKey key);", "public void fillVerbTbl(String sentenceID){\n\t\t// implement me!\n\t}", "WdWordDict selectByPrimaryKey(Long dictId);", "List<WordSchool> selectByExample(WordSchoolExample example);", "public OWLModel getKnowledgeBase();", "@Transactional\r\n\tpublic List<CmVocabularyCategory> getCmVocabularyCategorys() {\r\n\t\treturn dao.findAllWithOrder(CmVocabularyCategory.class, \"modifyTimestamp\", false);\r\n\t}", "public static void caso31(){\n\t FilterManager fm= new FilterManager(\"resources/stopWordsList.txt\",\"resources/useCaseWeight.properties\");\n\t\t\tQualityAttributeBelongable qualityAttributeBelongable = new OntologyManager(\"file:resources/caso3.owl\",\"file:resources/caso3.repository\",fm);\n\t\t\tMap<QualityAttributeInterface,Double> map = qualityAttributeBelongable.getWordPertenence(\"response1\");\n\t\t\tif(map==null){\n\t\t\t\tSystem.out.println(\"El map es null\");\n\t\t\t}else{\n\t\t\t\tMapUtils.imprimirMap(map);\n\t\t\t}\n\t}", "public void setKeyWordTableName(String keyWordTableName) {\r\n\t\tthis.keyWordTableName = keyWordTableName;\r\n\t}", "public static void caso32(){\n\t FilterManager fm= new FilterManager(\"resources/stopWordsList.txt\",\"resources/useCaseWeight.properties\");\n\t\t\tQualityAttributeBelongable qualityAttributeBelongable = new OntologyManager(\"file:resources/caso3.owl\",\"file:resources/caso3.repository\",fm);\n\t\t\tMap<QualityAttributeInterface,Double> map = qualityAttributeBelongable.getWordPertenence(\"response2\");\n\t\t\tif(map==null){\n\t\t\t\tSystem.out.println(\"El map es null\");\n\t\t\t}else{\n\t\t\t\tMapUtils.imprimirMap(map);\n\t\t\t}\n\t}", "WordSchool selectByPrimaryKey(Long id);", "public void AddKeywords()\n\t{\n\t\ttry\n\t\t{\n\t\t\tConnector con = new Connector();\n\t\t\tString query; \n\t\t\t\n\t\t\tfor(int i = 0; i < keywords.size(); i++)\n\t\t\t{\n\t\t\t\tString keyword = keywords.get(i); \n\t\t\t\t\n\t\t\t\tint kid = GetKIDFromWord(keyword); \n\t\t\t\t\n\t\t\t\t//word is not already in table\n\t\t\t\tif(kid == -1)\n\t\t\t\t{\n\t\t\t\t\t//insert word into Keywords \n\t\t\t\t\tSystem.out.println(\"test\"); \n\t\t\t\t\tquery = \"INSERT INTO Keywords(word) VALUE ('\"+keyword+\"')\"; \n\t\t\t \tint intoTable = con.stmt.executeUpdate(query); \n\t\t\t \t\n\t\t\t \t//able to put it in the table\n\t\t\t \tif(intoTable > 0)\n\t\t\t \t{\n\t\t\t \t\t//insert into HasKeywords\n\t\t\t\t \tkid = GetKIDFromWord(keyword); \n\t\t\t\t\t\tquery = \"INSERT INTO HasKeywords(keyword_hid, keyword_kid) VALUE('\"+hid+\"', '\"+kid+\"')\";\n\t\t\t\t \tint hasKey = con.stmt.executeUpdate(query); \n\t\t\t \t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//word is already in table\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tList<Integer> hkCheck = GetHIDSFromKID(kid);\n\t\t\t\t\t\n\t\t\t\t\tboolean inHKTable = false; \n\t\t\t\t\tfor(int j = 0; j < hkCheck.size(); j++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(hkCheck.get(j) == hid)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tinHKTable = true; \n\t\t\t\t\t\t\tbreak; \n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif(inHKTable == false)\n\t\t\t\t\t{\n\t\t\t\t\t\tquery = \"INSERT INTO HasKeywords(keyword_hid, keyword_kid) VALUE('\"+hid+\"', '\"+kid+\"')\";\n\t\t\t\t \tint hasKey = con.stmt.executeUpdate(query); \n\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tcon.closeConnection();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t}", "public final void mRULE_TOKEN_VOCAB() throws RecognitionException {\n try {\n int _type = RULE_TOKEN_VOCAB;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalUniMapperGenerator.g:5095:18: ( 'tokenVocab' )\n // InternalUniMapperGenerator.g:5095:20: 'tokenVocab'\n {\n match(\"tokenVocab\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public static void testDictionary() throws IOException {\n String wnhome=\"c:\\\\Users\\\\Katherine\\\\Documents\\\\2nd sem\\\\IR\\\\project\\\\WordNet_3.1\";\n String path = wnhome + File.separator + \"dict\";\n\n\n URL url = new URL(\"file\", null, path);\n\n IDictionary dictionary = new Dictionary(url);\n dictionary.open();\n // /Users/Ward/Downloads\n IIndexWord indexWord = dictionary.getIndexWord(\"use\", POS.VERB);\n\n for (IWordID wordID : indexWord.getWordIDs()) {\n\n IWord word = dictionary.getWord(wordID);\n for (IWord word1 : word.getSynset().getWords()) {\n System.out.println(word1.getLemma());\n }\n// System.out.println(\"Id = \" + wordID);\n// System.out.println(\" Lemma = \" + word.getLemma());\n// System.out.println(\" Gloss = \" + word.getSynset().getGloss());\n\n List<ISynsetID> hypernyms =\n word.getSynset().getRelatedSynsets(Pointer.HYPERNYM);\n // print out each h y p e r n y m s id and synonyms\n List<IWord> words;\n for (ISynsetID sid : hypernyms) {\n words = dictionary.getSynset(sid).getWords();\n System.out.print(sid + \" {\");\n for (Iterator<IWord> i = words.iterator(); i.hasNext(); ) {\n System.out.print(i.next().getLemma());\n if (i.hasNext())\n System.out.print(\", \");\n }\n System.out.println(\"}\");\n }\n }\n }", "public Vector mapDocument(MultiSet<String> bow) {\n //logger.info(\"lsm.mapDocument\");\n SparseVector vector = new SparseVector();\n\n Iterator<String> it = bow.iterator();\n String term = null;\n int index = 0;\n int tf = 0;\n float tfIdf;\n for (int i = 0; it.hasNext(); i++) {\n //logger.info(i + \" \" + t[i]);\n term = it.next();\n index = termIndex.get(term);\n\n if (index != -1) {\n tf = bow.getFrequency(term);\n tfIdf = (float) (log2(tf)) * Iidf[index];\n\n //logger.info(term + \" ==> \" + index + \", tf.idf = \" + tf + \"(\" + (log2(tf)) + \") * \" + Iidf[index] + \" = \" + tfIdf);\n vector.add(index, tfIdf);\n\n }\n } // end for\n\n return vector;\n }", "public static void writeArchivedVocab(Vocab vocab) {\n String userId = FirebaseAuth.getInstance().getUid();\n Log.d(\"000\", \"writeVocab: \"+userId);\n mDatabase.child(\"user\").child(userId).child(\"archive\").child(vocab.Id).setValue(vocab);\n }", "public List<Term> getAllTerms() {\n\t\tsession.beginTransaction();\n\t\tList<Term> lis = session.createQuery(\"from Term\").list();\n\n\t\tfor (Term tm : lis) {\n\t\t\tSystem.out.println(tm.getId() + \" \" + tm.getTermName());\n\t\t}\n\t\treturn lis;\n\t}", "public WordsWrapper getVocabulariesWrapper() {\n\t\tWordsWrapper wrapper = new WordsWrapper();\n\t\twrapper.mainvocabs = m__vocabs;\n\t\twrapper.referenes = m__referencedwords;\n\t\treturn wrapper;\n\t}", "public interface DictionaryDao<Type extends DictionaryProperty<Id>, Id extends Serializable> {\r\n\t/** \r\n\t * <!-- begin-UML-doc -->\r\n\t * Zwraca wszystkie mozliwe wartosci slownika.\r\n\t * <!-- end-UML-doc -->\r\n\t * @return\r\n\t * @generated \"UML to Java (com.ibm.xtools.transform.uml2.java5.internal.UML2JavaTransform)\"\r\n\t */\r\n\tpublic List<Type> getAll();\r\n}", "@Override\n public Builder limitVocabularySize(int limit) {\n super.limitVocabularySize(limit);\n return this;\n }", "@Override\n public List<DefinitionDTO> findAllWords() {\n List<Word> words = wordRepository.findAll();\n return DTOMapper.mapWordListToDefinitionDTOList(words);\n }", "public interface ArchetypeLevelsSchema {\n\tString TABLE_NAME = \"creature_archetype_levels\";\n\n\tString COLUMN_ARCHETYPE_ID = \"archetypeId\";\n\tString COLUMN_LEVEL = \"level\";\n\tString COLUMN_ATTACK = \"attack\";\n\tString COLUMN_ATTACK2 = \"attack2\";\n\tString COLUMN_DEF_BONUS = \"defensiveBonus\";\n\tString COLUMN_BODY_DEV = \"bodyDevelopment\";\n\tString COLUMN_PRIME_SKILL = \"primeSkill\";\n\tString COLUMN_SECONDARY_SKILL = \"secondarySkill\";\n\tString COLUMN_POWER_DEV = \"powerDevelopment\";\n\tString COLUMN_SPELLS = \"spells\";\n\tString COLUMN_TALENT_DP = \"talentDP\";\n\tString COLUMN_AGILITY = \"agility\";\n\tString COLUMN_CONS_STAT = \"constitutionStat\";\n\tString COLUMN_CONSTITUTION = \"constitution\";\n\tString COLUMN_EMPATHY = \"empathy\";\n\tString COLUMN_INTUITION = \"intuition\";\n\tString COLUMN_MEMORY = \"memory\";\n\tString COLUMN_PRESENCE = \"presence\";\n\tString COLUMN_QUICKNESS = \"quickness\";\n\tString COLUMN_REASONING = \"reasoning\";\n\tString COLUMN_SELF_DISC = \"selfDiscipline\";\n\tString COLUMN_STRENGTH = \"strength\";\n\n\tString TABLE_CREATE = \"CREATE TABLE IF NOT EXISTS \"\n\t\t\t+ TABLE_NAME\n\t\t\t+ \" (\"\n\t\t\t+ COLUMN_ARCHETYPE_ID + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_LEVEL + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_ATTACK + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_ATTACK2 + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_DEF_BONUS + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_BODY_DEV + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_PRIME_SKILL + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_SECONDARY_SKILL + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_POWER_DEV + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_SPELLS + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_TALENT_DP + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_AGILITY + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_CONS_STAT + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_CONSTITUTION + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_EMPATHY + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_INTUITION + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_MEMORY + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_PRESENCE + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_QUICKNESS + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_REASONING + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_SELF_DISC + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_STRENGTH + \" INTEGER NOT NULL, \"\n\t\t\t+ \"PRIMARY KEY(\" + COLUMN_ARCHETYPE_ID + \",\" + COLUMN_LEVEL + \")\"\n\t\t\t+ \")\";\n\n\tString[] COLUMNS = new String[] { COLUMN_ARCHETYPE_ID, COLUMN_LEVEL, COLUMN_ATTACK, COLUMN_ATTACK2, COLUMN_DEF_BONUS,\n\t\t\tCOLUMN_BODY_DEV, COLUMN_PRIME_SKILL, COLUMN_SECONDARY_SKILL, COLUMN_POWER_DEV, COLUMN_SPELLS, COLUMN_TALENT_DP,\n\t\t\tCOLUMN_AGILITY, COLUMN_CONS_STAT, COLUMN_CONSTITUTION, COLUMN_EMPATHY, COLUMN_INTUITION, COLUMN_MEMORY,\n\t\t\tCOLUMN_PRESENCE, COLUMN_QUICKNESS, COLUMN_REASONING, COLUMN_SELF_DISC, COLUMN_STRENGTH};\n}", "public static void moveCorrectToArchive(Vocab vocab){\n\n DatabaseReference vocabRef=FirebaseDatabase.getInstance().getReference().child(\"user\").child(FirebaseAuth.getInstance().getUid()).child(\"vocab\").child(vocab.Id);\n vocabRef.removeValue();\n archiveVocabs.add(vocab);\n writeArchivedVocab(vocab);\n\n }", "Terms selectByPrimaryKey(Integer id);", "public Iterator words() {\n return index.keySet().iterator();\n }", "public Word getWord(int id);", "public List search() {\n\t\tSessionFactory sf = new Configuration().configure()\n\t\t\t\t.buildSessionFactory();\n\t\tSession s = sf.openSession();\n\t\tQuery q = s.createQuery(\"from cat_vo\");\n\t\tList ls = q.list();\n\t\treturn ls;\n\t}", "public List<Term> getAllTermsByDictionary(String table, String dictionary) {\n List<Term> termList = new ArrayList<Term>();\n\n // Select All Query\n String selectQuery = \"SELECT * FROM \" + table + \" WHERE \" + KEY_DICTIONARY + \" = '\" + dictionary + \"' ORDER BY \" + KEY_TERM;\n\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor cursor = db.rawQuery(selectQuery, null);\n\n // looping through all rows and adding to list\n if (cursor.moveToFirst()) {\n do {\n if (!cursor.getString(2).isEmpty()) {\n /*\n Term term = new Term();\n term.setId(Integer.parseInt(cursor.getString(0)));\n term.setDictionary(cursor.getString(1));\n term.setTerm(cursor.getString(2));\n term.setSubject(cursor.getString(3));\n term.setDefinition(cursor.getString(4));\n term.setSynonyms(cursor.getString(5));\n */\n Term term = new Term(Integer.parseInt(cursor.getString(0)),cursor.getString(1), cursor.getString(2), cursor.getString(3),\n cursor.getString(4), cursor.getString(5), Integer.parseInt(cursor.getString(6)));\n // Adding term to list\n termList.add(term);\n }\n } while (cursor.moveToNext());\n }\n\n // return term list\n return termList;\n }", "Integer getSkillCount( String key ){\n return developer.skills.size();\n }", "public List<Skill> findAll(){\n return (List<Skill>) skillRepository.findAll();\n }", "public Courses getCourseTable();", "@Override\n protected Builder useExistingWordVectors(@NonNull WordVectors vec) {\n return this;\n }", "private void indexRelations(String inputFile, FlagConfig flagConfig) throws IOException {\n this.elementalVectors = VectorStoreRAM.readFromFile(\n flagConfig, \"C:\\\\Users\\\\dwiddows\\\\Data\\\\QI\\\\Gutterman\\\\termtermvectors.bin\");\n this.flagConfig = flagConfig;\n this.proportionVectors = new ProportionVectors(flagConfig);\n this.luceneUtils = new LuceneUtils(flagConfig);\n VectorStoreWriter writer = new VectorStoreWriter();\n\n // Turn all the text lines into parsed records.\n this.parseInputFile(inputFile);\n\n // Now the various indexing techniques.\n VectorStoreRAM triplesVectors = new VectorStoreRAM(flagConfig);\n VectorStoreRAM triplesPositionsVectors = new VectorStoreRAM(flagConfig);\n VectorStoreRAM dyadsVectors = new VectorStoreRAM(flagConfig);\n VectorStoreRAM dyadsPositionsVectors = new VectorStoreRAM(flagConfig);\n VectorStoreRAM verbsVectors = new VectorStoreRAM(flagConfig);\n VectorStoreRAM verbsPositionsVectors = new VectorStoreRAM(flagConfig);\n\n for (String docName : this.parsedRecords.keySet()) {\n Vector tripleDocVector = VectorFactory.createZeroVector(flagConfig.vectortype(), flagConfig.dimension());\n Vector tripleDocPositionVector = VectorFactory.createZeroVector(flagConfig.vectortype(), flagConfig.dimension());\n Vector dyadDocVector = VectorFactory.createZeroVector(flagConfig.vectortype(), flagConfig.dimension());\n Vector dyadDocPositionVector = VectorFactory.createZeroVector(flagConfig.vectortype(), flagConfig.dimension());\n Vector verbDocVector = VectorFactory.createZeroVector(flagConfig.vectortype(), flagConfig.dimension());\n Vector verbDocPositionVector = VectorFactory.createZeroVector(flagConfig.vectortype(), flagConfig.dimension());\n\n for (ParsedRecord record : this.parsedRecords.get(docName)) {\n Vector tripleVector = this.getPsiTripleVector(record);\n tripleDocVector.superpose(tripleVector, 1, null);\n\n this.bindWithPosition(record, tripleVector);\n tripleDocPositionVector.superpose(tripleVector, 1, null);\n\n Vector dyadVector = this.getPsiDyadVector(record);\n dyadDocVector.superpose(dyadVector, 1, null);\n this.bindWithPosition(record, dyadVector);\n dyadDocPositionVector.superpose(dyadVector, 1, null);\n\n Vector verbVector = this.vectorForString(record.predicate);\n verbDocVector.superpose(verbVector, 1, null);\n this.bindWithPosition(record, verbVector);\n verbDocPositionVector.superpose(verbVector, 1, null);\n }\n\n triplesVectors.putVector(docName, tripleDocVector);\n triplesPositionsVectors.putVector(docName, tripleDocPositionVector);\n dyadsVectors.putVector(docName, dyadDocVector);\n dyadsPositionsVectors.putVector(docName, dyadDocPositionVector);\n verbsVectors.putVector(docName, verbDocVector);\n verbsPositionsVectors.putVector(docName, verbDocPositionVector);\n }\n\n for (VectorStore vectorStore : new VectorStore[] {\n triplesVectors, triplesPositionsVectors, dyadsVectors, dyadsPositionsVectors, verbsVectors, verbsPositionsVectors }) {\n Enumeration<ObjectVector> vectorEnumeration = vectorStore.getAllVectors();\n while (vectorEnumeration.hasMoreElements())\n vectorEnumeration.nextElement().getVector().normalize();\n }\n\n writer.writeVectors(TRIPLES_OUTPUT_FILE, flagConfig, triplesVectors);\n writer.writeVectors(TRIPLES_POSITIONS_OUTPUT_FILE, flagConfig, triplesPositionsVectors);\n\n writer.writeVectors(DYADS_OUTPUT_FILE, flagConfig, dyadsVectors);\n writer.writeVectors(DYADS_POSITIONS_OUTPUT_FILE, flagConfig, dyadsPositionsVectors);\n\n writer.writeVectors(VERBS_OUTPUT_FILE, flagConfig, verbsVectors);\n writer.writeVectors(VERBS_POSITIONS_OUTPUT_FILE, flagConfig, verbsPositionsVectors);\n }", "int getConceptLanguagesCount();", "@Override\n public Builder lookupTable(@NonNull WeightLookupTable<VocabWord> lookupTable) {\n super.lookupTable(lookupTable);\n return this;\n }", "WordBean getWord(String word);", "public List<Product> search(String word, String codigo) {\n\t\tSession session = getSessionFactory().openSession();\n\t\treturn null;\n\t}", "private void invertedToDatabase(){\r\n cleFreq = new HashMap<>();\r\n System.out.println(\"Strat collecting\");\r\n Map<String,List<Invertedindex>> collects = collecting();\r\n System.out.println(\"Ending collecting\");\r\n Database.getInstance().invertedIndex(collects);\r\n Database.getInstance().addPoids(cleFreq);\r\n }", "@SuppressWarnings({ \"deprecation\", \"unchecked\", \"rawtypes\" })\n\tpublic String generateWordlists(Corpus co) {\n\t\tlong startTime = System.currentTimeMillis();\n\t\t// Set up weka word vector\n\t\tFastVector attributes;\n\t\tInstances dataSet;\n\t\tattributes = new FastVector();\n\n\t\tattributes.addElement(new Attribute(\"aspect_id\", (FastVector) null));\n\t\tattributes.addElement(new Attribute(\"tokens\", (FastVector) null));\n\n\t\tdataSet = new Instances(\"BeerAspects\", attributes, 0);\n\n\t\tCorpus topReviews;\n\t\tCorpus lowReviews;\n\n\t\t// Do top and low for all aspects\n\t\tfor (Aspect aspect : Aspect.values()) {\n\n\t\t\t// Only for actual aspects\n\t\t\tif (aspect.equals(Aspect.NONE) || aspect.equals(Aspect.OVERALL))\n\t\t\t\tcontinue;\n\n\t\t\ttopReviews = co.getTopReviews(aspect);\n\t\t\ttopReviews.analyze();\n\t\t\tString tokens = topReviews.getTokenConcatenation(aspect);\n\n\t\t\tInstance instance = new SparseInstance(2);\n\t\t\tinstance.setValue((Attribute) attributes.elementAt(0), aspect.name() + \"_TOP\");\n\t\t\tinstance.setValue((Attribute) attributes.elementAt(1), tokens);\n\n\t\t\tdataSet.add(instance);\n\n\t\t\tlowReviews = co.getLowReviews(aspect);\n\t\t\tlowReviews.analyze();\n\t\t\ttokens = lowReviews.getTokenConcatenation(aspect);\n\t\t\t// System.out.println(tokens);\n\n\t\t\tinstance = new SparseInstance(2);\n\t\t\tinstance.setValue((Attribute) attributes.elementAt(0), aspect.name() + \"_LOW\");\n\t\t\tinstance.setValue((Attribute) attributes.elementAt(1), tokens);\n\n\t\t\tdataSet.add(instance);\n\t\t}\n\n\t\t// System.out.println(dataSet.toString());\n\t\tInstances dataFiltered = transformToWordVector(dataSet, co.getProps());\n\n\t\t// System.out.println(dataFiltered.toString());\n\t\tString pathsToLists = writeWordlists(dataFiltered);\n\n\t\twriteArffFile(dataFiltered, this.outputDir+\"wordvector.arff\");\n\n\t\tlong stopTime = System.currentTimeMillis();\n\t\tlong elapsedTime = stopTime - startTime;\n\t\tSystem.out.println(\"Generated wordlists in: \" + elapsedTime / 1000 + \" s\");\n\t\treturn pathsToLists;\n\t}", "boolean putWord(WordBean wordBean);", "public Table<Integer, Integer, String> getAnonymizedData();", "public static void caso12(){\n\n FilterManager fm= new FilterManager(\"resources/stopWordsList.txt\",\"resources/useCaseWeight.properties\");\n\t\tQualityAttributeBelongable qualityAttributeBelongable = new OntologyManager(\"file:resources/caso1.owl\",\"file:resources/caso1.repository\",fm);\n\t\tMap<QualityAttributeInterface,Double> map = qualityAttributeBelongable.getWordPertenence(\"pan\");\n\t\tif(map==null){\n\t\t\tSystem.out.println(\"El map es null\");\n\t\t}\n\t}", "public void addToJurisdictions(entity.AppCritJurisdiction element);", "public static void caso11(){\n\t\t\n FilterManager fm= new FilterManager(\"resources/stopWordsList.txt\",\"resources/useCaseWeight.properties\");\n\t\tQualityAttributeBelongable qualityAttributeBelongable = new OntologyManager(\"file:resources/caso1.owl\",\"file:resources/caso1.repository\",fm);\n\t\tMap<QualityAttributeInterface,Double> map = qualityAttributeBelongable.getWordPertenence(\"response\");\n\t\tMapUtils.imprimirMap(map);\n\t}", "public String getNomTable();", "public void init() {\n File file=new File(\"D:\\\\lucene\\\\index\");\n if(file.isDirectory())\n { //否则如果它是一个目录\n File files[] = file.listFiles(); //声明目录下所有的文件 files[];\n for(int i=0;i<files.length;i++)\n { //遍历目录下所有的文件\n files[i].delete(); //把每个文件 用这个方法进行迭代\n }\n }\n String indexPath = \"D:\\\\lucene\\\\index\";\n //String docsPath = \"D:\\\\lucene\\\\data\";\n boolean create = true;\n try\n {\n Session session=factory.openSession();\n String hql = \"from Book\";\n org.hibernate.Query query = session.createQuery(hql);\n List<Book> list=query.list();\n Directory indexDir = FSDirectory.open(Paths.get(\"D:\\\\lucene\\\\index\"));\n Analyzer luceneAnalyzer = new StandardAnalyzer(); //新建一个分词器实例 \n IndexWriterConfig config = new IndexWriterConfig(luceneAnalyzer); \n IndexWriter indexWriter = new IndexWriter(indexDir,config);\n for(int i=0;i<list.size();i++)\n {\n Document document = new Document();\n Field field1 = new StringField(\"id\",list.get(i).getBookid().toString(),Field.Store.YES); \n Field field2 = new StringField(\"bookname\",list.get(i).getBookname(),Field.Store.YES); \n Field field3 = new StringField(\"author\",list.get(i).getAuthor(),Field.Store.YES); \n Field field4 = new StringField(\"category\",list.get(i).getCategory(),Field.Store.YES); \n Field field5 = new StringField(\"price\", Double.toString(list.get(i).getPrice()),Field.Store.YES); \n document.add(field1); \n document.add(field2); \n document.add(field3); \n document.add(field4);\n document.add(field5);\n indexWriter.addDocument(document);\n }\n indexWriter.close();\n }\n catch(IOException e)\n {\n System.out.println(\"error\");\n return;\n }\n }", "hr.domain.ResumeDBOuterClass.Education getEducations(int index);", "hr.domain.ResumeDBOuterClass.Experience getExperiences(int index);", "public void fillNounTbl(String sentenceID){\n\t\t// implement me!\n\t}", "void createOrUpdateVocabulary(final VocabularyPE vocabularyPE);", "@Override\n public Builder iterate(@NonNull SequenceIterator<VocabWord> iterator) {\n super.iterate(iterator);\n return this;\n }", "private void createFreqVector(Path file) {\r\n\t\t\tVector vector = new Vector(vocabulary.size());\r\n\t\t\tList<String> lines;\r\n\t\t\ttry {\r\n\t\t\t\tlines = Files.readAllLines(file);\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tSet<String> words = new HashSet<>();\r\n\t\t\t//create frequency vector of words in single document -> tf(w,d)\r\n\t\t\tfor (String line : lines) {\r\n\t\t\t\tif (line.isEmpty()) continue;\r\n\t\t\t\tString[] values = p.split(line);\r\n\t\t\t\tfor (String value : values) { \r\n\t\t\t\t\tif (value.isEmpty()) continue;\r\n\t\t\t\t\tString lowWord = value.toLowerCase().trim();\r\n\t\t\t\t\t\r\n\t\t\t\t\tInteger[] arr = vocabulary.get(lowWord);\r\n\t\t\t\t\tif (arr == null) continue;\r\n\t\t\t\t\tvector.incrementValueAt(arr[0]);\r\n\t\t\t\t\tif (words.add(lowWord)) {\r\n\t\t\t\t\t\t arr[1] += 1;\t//first time occurrence of this word in document\r\n\t\t\t\t\t\tvocabulary.put(lowWord, arr);\t//increment number of documents for this word\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\tfreqVectors.put(file, vector);\t\t\r\n\t\t}", "private String[][] getMoodsTableValues() {\n String soso = DBTypesKeys.SO_SO_MOOD.getTypeValue();\n String sad = DBTypesKeys.SAD_MOOD.getTypeValue();\n String angry = DBTypesKeys.ANGRY_MOOD.getTypeValue();\n String happy = DBTypesKeys.HAPPY_MOOD.getTypeValue();\n // moods table\n return new String[][]{\n //moods hi answers by answers // id_ (enum index + 1)\n { soso, \"hey\", \"by\"}, // 1\n { sad, \"welcome to sad world\", \"so, you too ...\"}, // 2\n { angry, \"get out!\", \"thanks god, you away\"}, // 3\n { happy, \"hi! glad to see you =)\", \"good luck, buddy\"} // 4\n };\n }", "private VocabularyTerms getVocabularyTerms(Collection<CMAContentType> vocabularies) {\n VocabularyTerms vocabularyTerms = new VocabularyTerms();\n vocabularies\n .forEach(contentType -> {\n //Keeps the country vocabulary ID for future use\n if (contentType.getName().equals(configuration.getCountryVocabulary())) {\n vocabularyTerms.loadCountryVocabulary(contentType);\n } else {\n //Loads vocabulary into memory\n vocabularyTerms.loadVocabulary(contentType);\n }\n });\n return vocabularyTerms;\n }", "public static String getTokenVocabFromGrammar(String text) {\n\t\t// TODO: unneeded. use antlr Tool. Kill?\n//\t\tParsingResult r = parseANTLRGrammar(text);\n//\t\tif ( r.tree!=null ) { //&& r.syntaxErrorListener.getSyntaxErrors().size()==0 ) {\n//\t\t\t// option : id ASSIGN optionValue ;\n//\t\t\tCollection<ParseTree> options = XPath.findAll(r.tree, \"//option\", r.parser);\n//\t\t\tfor (Iterator<ParseTree> it = options.iterator(); it.hasNext(); ) {\n//\t\t\t\tANTLRv4Parser.OptionContext option = (ANTLRv4Parser.OptionContext)it.next();\n//\t\t\t\tif ( option.id().getText().equals(\"tokenVocab\") ) {\n//\t\t\t\t\t/*\n//\t\t\t\t\toptionValue\n//\t\t\t\t\t\t:\tid (DOT id)*\n//\t\t\t\t\t\t|\tSTRING_LITERAL\n//\t\t\t\t\t\t|\tACTION\n//\t\t\t\t\t\t|\tINT\n//\t\t\t\t\t\t;\n//\t\t\t\t\t */\n//\t\t\t\t\tANTLRv4Parser.OptionValueContext optionValue = option.optionValue();\n//\t\t\t\t\tif ( optionValue.STRING_LITERAL()!=null ) {\n//\t\t\t\t\t\tString s = optionValue.STRING_LITERAL().getText();\n//\t\t\t\t\t\treturn RefactorUtils.getLexerRuleNameFromLiteral(s);\n//\t\t\t\t\t}\n//\t\t\t\t\tif ( optionValue.id(0)!=null ) {\n//\t\t\t\t\t\treturn optionValue.id(0).getText();\n//\t\t\t\t\t}\n//\t\t\t\t}\n//\t\t\t}\n//\t\t}\n\t\treturn null;\n\t}", "private Resolution getVocabularyConceptResolution() {\r\n HttpServletRequest httpRequest = getContext().getRequest();\r\n String url = httpRequest.getRequestURL().toString();\r\n // String query = httpRequest.getQueryString();\r\n \r\n String[] parameters = StringUtils.split(StringUtils.substringAfter(url, \"/vocabulary/\"), \"/\");\r\n \r\n if (parameters.length >= 2) {\r\n if (!RESERVED_VOCABULARY_EVENTS.contains(parameters[1])) {\r\n RedirectResolution resolution = new RedirectResolution(VocabularyConceptActionBean.class, \"view\");\r\n resolution.addParameter(\"vocabularyFolder.identifier\", parameters[0]);\r\n resolution.addParameter(\"vocabularyConcept.identifier\", parameters[1]);\r\n resolution.addParameter(\"vocabularyFolder.workingCopy\", vocabularyFolder.isWorkingCopy());\r\n \r\n return resolution;\r\n }\r\n }\r\n \r\n return null;\r\n }", "public SPARQL() {\n initComponents();\n \n model = ModelFactory.createOntologyModel(OntModelSpec.OWL_LITE_MEM_RDFS_INF);\n model.setDynamicImports(true);\n model.read(\"file:\"+\"data/ontologies/Papers_Ready.owl\", \"http://www.l3g.pl/ontologies/OntoBeef/Papers.owl\", \"N-TRIPLE\");\n model.loadImports();\n \n for (Individual i : model.listIndividuals(model.getOntClass(\"http://www.l3g.pl/ontologies/OntoBeef/Conceptualisation.owl#Category\")).toSet())\n {\n System.out.println(i.listLabels(null).toSet());\n }\n }", "@Override\n public AutoBuffer write_impl(AutoBuffer ab) {\n if (_vocabHM == null) return ab.put1(1); // killed\n\n int strLen = 0;\n for (ValueStringCount val : VOCABHM.values())\n strLen += val.length();\n ab.put1(0); // not killed\n ab.put4(strLen); //length of string buffer\n for (ValueStringCount val : VOCABHM.values())\n ab.put2((char) val.length()).putA1(val.getBuffer(), val.getOffset(), val.getOffset() + val.length()).put8(val._cnt);\n return ab.put2((char) 65535); // End of map marker\n }", "@SuppressWarnings(\"unchecked\")\r\n\tpublic static void main(String[] args) throws IOException {\n\t\tSchema s = new Schema(\"Estudiantes\",\"C:\\\\Users\\\\morazan\\\\Desktop\\\\com\\\\idk\\\\ac\\\\cr\");\r\n\n\t\tSchemaJoin j = new SchemaJoin(\"Notas\",\"C:\\\\Users\\\\morazan\\\\Desktop\\\\com\\\\idk\\\\ac\\\\cr\");\r\n\r\n\t\t//Creates an index in the regular schema\r\n\t\ts.createIndex(\"bts\", \"string\", \"Nombre\", 10);\r\n\t\ts.createIndex(\"avl\", \"number\", \"aņo\", 4);\r\n\t\ts.createIndex(\"avl\", \"image\", \"Imagen\", 0);\r\n\t\tj.joinSchema(s);\r\n\t\tj.createJoinedIndex(\"avl\", \"number\", \"Notas\", 2);\r\n\t\t\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"Inserting I \");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\ts.insertToIndex(1, \"JP\");\r\n\t\ts.insertToIndex(1, \"Randy\");\r\n\t\ts.insertToIndex(1, \"Alejandra\");\r\n//\t\ts.insertToIndex(1, \"Xcreed\");\r\n\t\ts.insertToIndex(2, 1996);\r\n\t\ts.insertToIndex(2, 1995);\r\n\t\ts.insertToIndex(2, 1997);\n\t\ts.insertToIndex(3, \"SchemaExtraFiles/2.jpg\");\n\t\ts.insertToIndex(3, \"SchemaExtraFiles/8.jpg\");\n\t\ts.insertToIndex(3, \"SchemaExtraFiles/4.jpg\");\n\t\t\n\t\tIndexBTS index = (IndexBTS) s.schema.getItem(1);\r\n\t\tBinarySearchTree t = (BinarySearchTree) index.tree;\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"Traversal I\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tt.inOrderTraversal();\r\n\t\t\n\t\tIndexAVL index2 = (IndexAVL) s.schema.getItem(2);\r\n\t\tAVLTree t2 = (AVLTree) index2.getTree();\r\n\t\tSystem.out.println(\"avl order\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"Traversal II\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\n\t\tt2.inorder();\n\t\t\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"Inserting II \");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tj.insertToIndex(1, 80);\r\n\t\tj.insertToIndex(1, 82);\r\n\t\tj.insertToIndex(1, 78);\t\t\t\r\n\t\t\r\n//\t\tSystem.out.println(s.search(\"JP\"));\r\n//\t\tSystem.out.println(s.deleteInIndex(1,\"JP\"));\r\n//\t\tSystem.out.println(s.search(\"JP\"));\r\n\t\t\r\n\t\tSystem.out.println(\"Getting line 1\");\r\n\t\ts.getLine(1);\r\n//\t\ts.deleteLine(1);\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"Searching 82 \");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tj.joinedSearch(82);\r\n\r\n\t\t//Deletes an index in the schema\r\n//\t\ts.schema.print();\r\n//\t\ts.deleteIndex(1);\r\n//\t\ts.schema.print();\r\n\t\t\r\n// ***********Activate Separately**********\r\n\t\t\r\n//\t\ts.createIndex(\"bts\", \"video\", \"Videos\", 0);\r\n//\t\ts.insertToIndex(1, \"SchemaExtraFiles/Trike Drifting.mp4\");\r\n\t\t\r\n//\t***************************************\r\n\t\t\r\n\t\tJSONProtocol json = new JSONProtocol();\r\n\t\tjson.writeSchema(s);\r\n\t\t\t\t\r\n\t\t\r\n\t}", "TableId table();", "public boolean buildVocab() {\n readStopWords();\n\n if(cache.vocabExists()) {\n log.info(\"Loading vocab...\");\n cache.loadVocab();\n cache.resetWeights();\n return true;\n }\n\n //vectorizer will handle setting up vocab meta data\n if(vectorizer == null)\n vectorizer = new TfidfVectorizer.Builder()\n .cache(cache).iterate(docIter).iterate(sentenceIter)\n .minWords(minWordFrequency).stopWords(stopWords)\n .tokenize(tokenizerFactory).build();\n vectorizer.fit();\n\n setup();\n\n return false;\n }", "public List<Kateggorija> getSviGlumci() {\n List<Kateggorija> glumci=null;\n try {\n glumci= getDaoKateggorija().queryForAll();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n return glumci;\n }", "@VTID(10)\n int getIndex();", "Skill getSkill(Long skillId) throws DbException;", "public List<String> GetKeywords()\n\t{\n\t\tList<String> words = new ArrayList<String>(); \n\t\ttry\n\t\t{\n\t\t\tConnector con = new Connector();\n\t \n\t String query = \"SELECT keyword_kid FROM HasKeywords WHERE keyword_hid = '\"+hid+\"'\"; \n\t ResultSet rs = con.stmt.executeQuery(query); \n\t \n\t List<Integer> k_ids = new ArrayList<Integer>(); \n\t while(rs.next())\n\t {\n\t \tint new_id = rs.getInt(\"keyword_kid\"); \n\t \tk_ids.add(new_id); \n\t }\n\t \n\t for(int i = 0; i < k_ids.size(); i++)\n\t {\n\t \tquery = \"SELECT word FROM Keywords WHERE k_id = '\"+k_ids.get(i)+\"'\"; \n\t \trs = con.stmt.executeQuery(query); \n\t \twhile(rs.next())\n\t \t{\n\t \t\tString kw = rs.getString(\"word\"); \n\t \t\twords.add(kw); \n\t \t}\n\t }\n\t \n\t con.closeConnection();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\tkeywords = words; \n\t\treturn keywords; \n\t}", "java.lang.String getSemanticLangidModelName();", "public interface DBSDictionary\n{\n /**\n * Checks that this constrain supports key enumerations.\n * Usually it depends on constraint type (enumerations makes sense only for unique constraints).\n * @return true or false\n */\n boolean supportsDictionaryEnumeration();\n\n /**\n * Gets enumeration values\n *\n * @param monitor session\n * @param keyColumn enumeration column.\n * @param keyPattern pattern for enumeration values. If null or empty then returns full enumration set\n * @param searchText\n * @param preceedingKeys other constrain key values. May be null.\n * @param caseInsensitiveSearch use case-insensitive search for {@code keyPattern}\n * @param sortAsc ascending sorting (irrelevant is {@code sortByValue} is false)\n * @param sortByValue sort results by value\n * @param offset enumeration values offset in result set\n * @param maxResults maximum enumeration values in result set\n * @return statement with result set which contains valid enumeration values.\n */\n @NotNull\n List<DBDLabelValuePair> getDictionaryEnumeration(\n @NotNull DBRProgressMonitor monitor,\n @NotNull DBSEntityAttribute keyColumn,\n @Nullable Object keyPattern,\n @Nullable String searchText,\n @Nullable List<DBDAttributeValue> preceedingKeys,\n boolean caseInsensitiveSearch,\n boolean sortAsc,\n boolean sortByValue,\n int offset,\n int maxResults\n ) throws DBException;\n\n @NotNull\n List<DBDLabelValuePair> getDictionaryValues(\n @NotNull DBRProgressMonitor monitor,\n @NotNull DBSEntityAttribute keyColumn,\n @NotNull List<Object> keyValues,\n @Nullable List<DBDAttributeValue> preceedingKeys,\n boolean sortByValue,\n boolean sortAsc\n ) throws DBException;\n\n @NotNull\n DBSDictionaryAccessor getDictionaryAccessor(\n @NotNull DBRProgressMonitor monitor,\n @Nullable List<DBDAttributeValue> precedingKeys,\n @NotNull DBSEntityAttribute keyColumn,\n boolean sortAsc,\n boolean sortByDesc\n ) throws DBException;\n}", "@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)\n\tpublic List<AssetVocabulary> getAttachedVocabularies(long groupId);", "public static List<Book> getBookCategory() throws HibernateException{\r\n \r\n session = sessionFactory.openSession();\r\n session.beginTransaction();\r\n \r\n Query query=session.getNamedQuery(\"INVENTORY_getBookCategory\");\r\n List<Book> bookLocationList=query.list();\r\n \r\n session.getTransaction().commit();\r\n session.close();\r\n \r\n return bookLocationList;\r\n}", "public void train(Corpus[] trainingData) {\n\t\tSet<String> vocabulary = super.mergeVocabulary(trainingData);\n\t\ttrainingData[0].setVocabulary(vocabulary);\n\t\ttrainingData[1].setVocabulary(vocabulary);\n\t\tposMatrix = new TransitionMatrix(trainingData[0]);\n\t\tnegMatrix = new TransitionMatrix(trainingData[1]);\n\t}", "public void AddInDB(Word newWord) throws SQLException {\n String insertQuery = \"INSERT INTO tbltest(word,pronunciation,define) VALUES(?,?,?)\";\r\n ps = con.prepareStatement(insertQuery);\r\n ps.setString(1, newWord.getWord());\r\n ps.setString(2, newWord.getPronunciation());\r\n ps.setString(3, newWord.getDefine());\r\n\r\n ps.executeUpdate();\r\n }", "public static void caso41(){\n FilterManager fm= new FilterManager(\"resources/stopWordsList.txt\",\"resources/useCaseWeight.properties\");\n\t\tQualityAttributeBelongable qualityAttributeBelongable = new OntologyManager(\"file:resources/caso4.owl\",\"file:resources/caso4.repository\",fm);\n\t\tMap<QualityAttributeInterface,Double> map = qualityAttributeBelongable.getWordPertenence(\"response1\");\n\t\tif(map==null){\n\t\t\tSystem.out.println(\"El map es null\");\n\t\t}else{\n\t\t\tMapUtils.imprimirMap(map);\n\t\t}\n\t}", "@Select(\"select id,item from dicts where id in (23,24,25,26,27)\")\n\tList<Dict> findLevels();", "public interface IJavaDocAttributDao\n{\n List<JavaDocAttribut> getJavaDocAttributs(int idJavaDocMethode);\n}" ]
[ "0.5714772", "0.5634642", "0.54471385", "0.5296146", "0.5199113", "0.49331725", "0.49329886", "0.4925552", "0.49100333", "0.49073565", "0.48575464", "0.4840506", "0.48176134", "0.47540638", "0.4731969", "0.47130308", "0.46997505", "0.46928567", "0.46592632", "0.46315858", "0.46308562", "0.4628427", "0.4613438", "0.4607982", "0.46033806", "0.45581195", "0.45454577", "0.45442265", "0.45386803", "0.45275065", "0.452028", "0.4503016", "0.4500965", "0.44867927", "0.44754398", "0.44700065", "0.4461962", "0.44616178", "0.44392928", "0.44261026", "0.43990988", "0.43955937", "0.43947372", "0.4391834", "0.43790415", "0.4373947", "0.43707538", "0.43700558", "0.43560442", "0.43444037", "0.43359932", "0.4334978", "0.4331108", "0.43275934", "0.43246162", "0.4323478", "0.432252", "0.43204546", "0.43167415", "0.4313692", "0.43123078", "0.43018934", "0.42899582", "0.42859036", "0.4279804", "0.42734304", "0.42709267", "0.42542967", "0.4249365", "0.4246521", "0.42383584", "0.42374423", "0.42311075", "0.42302102", "0.4229986", "0.4227258", "0.42229605", "0.42228934", "0.422011", "0.42189792", "0.42158115", "0.42145696", "0.42105144", "0.4207044", "0.42064056", "0.41962886", "0.4194155", "0.41941473", "0.41919973", "0.41892615", "0.41883606", "0.41852176", "0.4182343", "0.41803232", "0.41759124", "0.41734546", "0.41732693", "0.41713014", "0.41704375", "0.416942", "0.41672277" ]
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table wd_vocab
public void setDistinct(boolean distinct) { this.distinct = distinct; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<VocabWord> document(int index);", "int[] documents(VocabWord vocabWord);", "public static void writeVocab(Vocab vocab) {\n String userId = FirebaseAuth.getInstance().getUid();\n Log.d(\"000\", \"writeVocab: \"+userId);\n mDatabase.child(\"user\").child(userId).child(\"vocab\").child(vocab.Id).setValue(vocab);\n }", "void addWordsToDoc(int doc,List<VocabWord> words);", "void addWordToDoc(int doc,VocabWord word);", "public VocabularyTerms() {}", "public Vector mapDocument(BOW bow) {\n //logger.info(\"lsm.mapDocument\");\n SparseVector vector = new SparseVector();\n\n Iterator<String> it = bow.termSet().iterator();\n String term = null;\n int index = 0;\n //int tf = 0;\n float tfIdf;\n for (int i = 0; it.hasNext(); i++) {\n //logger.info(i + \" \" + t[i]);\n term = it.next();\n index = termIndex.get(term);\n\n if (index != -1) {\n //tf = bow.getFrequency(term);\n //tfIdf = (float) (log2(tf)) * Iidf[index];\n //tfIdf = (float) bow.augmentedFrequency(term) * Iidf[index];\n tfIdf = (float) bow.tf(term) * Iidf[index];\n //logger.info(term + \" ==> \" + index + \", tf.idf = \" + tf + \"(\" + (log2(tf)) + \") * \" + Iidf[index] + \" = \" + tfIdf);\n vector.add(index, tfIdf);\n\n }\n } // end for\n\n return vector;\n }", "@Id\n @Column(name=\"term_key\")\n public int getTermKey() {\n\treturn termKey;\n }", "public WdVocabExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "private static void setWordPosition() {\n\t\tSet setKeys = Utility.vocabHM.keySet();\n\t\tIterator i = setKeys.iterator();\n\t\tint position = 0;\n\t\twhile (i.hasNext()) {\n\t\t\tString w = (String) i.next();\n\t\t\tInteger rows[] = new Integer[2];\n\t\t\trows[0] = new Integer(position); /* word position */\n\t\t\trows[1] = (Integer) Utility.vocabHM.get(w); /* df */\n\n\t\t\tUtility.vocabHM.put(w, rows);\n\t\t\tposition++;\n\t\t}\n\t}", "public Vector<Word> allKeyValue(){\n\n\tVector<Word> words = new Vector<Word>();\n\tfor(int w = 0; w < theTable.length; w++){\n\t // System.out.println(\"w: \" + w);\n\t // System.out.println(\"theTable[w]: \" + theTable[w]);\n\t if(theTable[w] != null){\n\t\twords.addElement(theTable[w]);\n\t }\n\t}\n\treturn words;\n }", "public static void deleteVocab(Context context){\n Toast.makeText(context, \"deleted\", Toast.LENGTH_SHORT).show();\n DatabaseReference vocabRef=FirebaseDatabase.getInstance().getReference().child(\"user\").child(FirebaseAuth.getInstance().getUid()).child(\"vocab\").child(currentVocabId);\n vocabRef.removeValue();\n }", "public Controlador(boolean newTable){\n if(newTable){\n vocabulario = new TSB_OAHashtable<>();\n }\n }", "public static void initVocabData() {\n FirebaseDatabase.getInstance().getReference().child(\"user\").child(FirebaseAuth.getInstance().getUid()).child(\"vocab\")\n .addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n staticVocabs.clear();\n for(DataSnapshot snapshot: dataSnapshot.getChildren() ){\n Vocab vocab = snapshot.getValue(Vocab.class);\n staticVocabs.add(vocab);\n size=1;\n }\n vocabsAdapter.notifyDataSetChanged();\n if (staticVocabs.size()==0){\n vocabsRecyclerView.setVisibility(View.INVISIBLE);\n isFirst.setVisibility(View.VISIBLE);\n notFirst.setVisibility(View.INVISIBLE);\n\n }else {\n vocabsRecyclerView.setVisibility(View.VISIBLE);\n isFirst.setVisibility(View.INVISIBLE);\n notFirst.setVisibility(View.VISIBLE);\n }\n }\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n }\n });\n }", "List<WdWordDict> selectByExample(WdWordDictExample example);", "@Query(\"SELECT * from english_word ORDER BY word ASC limit 300\")\n List<StoredEnglishWord> findAllWords();", "public void saveVocab (Vocabulary v, String vocabFilePath) throws IOException {\n\t\tFile file = new File(vocabFilePath);\n\t\t//if (file.exists()) file.delete();\n\t\t//file.createNewFile();\n\t\tBufferedWriter bw = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(file)));\n\t\tfor (int i = 0; i < v.vocabSize; i++) {\n\t\t\tbw.write(v.vocab.get(i).word + \" \" + v.vocab.get(i).cn + \"\\n\");\n\t\t}\n\t\tbw.close();\n\t}", "public void setVocubalaryId(long vocubalaryId);", "private void setVocabulary(int vocSize) {\n\t\tArrayList<String> chosen = new ArrayList<String>();\n\t\twhile (chosen.size() < vocSize) {\n\t\t\tint max = 0;\n\t\t\tString best = \"\";\n\t\t\tfor (String t : df.keySet()) {\n\t\t\t\tif (df.get(t) > max && !chosen.contains(t)) {\n\t\t\t\t\tmax = df.get(t);\n\t\t\t\t\tbest = t;\n\t\t\t\t}\n\t\t\t}\n\t\t\tchosen.add(best);\n\t\t}\n\t\tvocab = chosen;\n\t}", "public void constructOntologyVocabulary() {\n ontologyOwlClassVocabulary = new HashMap<>();\n ontologyOWLDataPropertyVocabulary = new HashMap<>();\n ontologyOWLNamedIndividualVocabulary = new HashMap<>();\n ontologyOWLObjectPropertylVocabulary = new HashMap<>();\n\n Set<OWLClass> classes = domainOntology.getClassesInSignature();\n Set<OWLNamedIndividual> individualPropertyAtom = domainOntology.getIndividualsInSignature();\n Set<OWLDataProperty> dataProperty = domainOntology.getDataPropertiesInSignature();\n Set<OWLObjectProperty> OWLObjectPropertyAtom = domainOntology.getObjectPropertiesInSignature();\n String tempName = null;\n\n for (OWLClass c : classes) {\n tempName = c.toString();\n tempName = tempName.substring(tempName.lastIndexOf(\"/\") + 1);\n tempName = TextUtil.formatName(tempName);\n ontologyOwlClassVocabulary.put(tempName, c);\n }\n for (OWLDataProperty d : dataProperty) {\n tempName = d.toString();\n tempName = tempName.substring(tempName.lastIndexOf(\"/\") + 1);\n tempName = TextUtil.formatName(tempName);\n ontologyOWLDataPropertyVocabulary.put(tempName, d);\n }\n for (OWLNamedIndividual i : individualPropertyAtom) {\n tempName = i.toString();\n tempName = tempName.substring(tempName.lastIndexOf(\"/\") + 1);\n tempName = TextUtil.formatName(tempName);\n ontologyOWLNamedIndividualVocabulary.put(tempName, i);\n }\n for (OWLObjectProperty o : OWLObjectPropertyAtom) {\n tempName = o.toString();\n tempName = tempName.substring(tempName.lastIndexOf(\"/\") + 1);\n tempName = TextUtil.formatName(tempName);\n ontologyOWLObjectPropertylVocabulary.put(tempName, o);\n }\n }", "public void getVector() throws IOException {\n\t\tint i=1;\r\n\t\tfor(String key:keyword){\r\n\t\t\tWord w=new Word();\r\n\t\t\tdouble tf=calTF(key);\r\n\t\t\tdouble idf=calIDF(key);\r\n\t\t\tdouble tfidf=tf*idf;\r\n\t\t\tw.setId(i);\r\n\t\t\ti++;\r\n\t\t\tw.setName(key);\r\n\t\t\tw.setTfidf(tfidf);\r\n\t\t\tif(word.containsKey(key)){\r\n\t\t\t\tw.setCount((Integer) word.get(key));\r\n\t\t\t}\r\n\t\t\tkeymap.add(w);\r\n\t\t}\r\n\t\tFileHelper.writeTrainFile(keymap);\r\n\t\tFileHelper.writeTestFile(keymap);\r\n\t}", "public int getTermIndex() {return termIndex;}", "public String getKeyWordTableName() {\r\n\t\treturn keyWordTableName;\r\n\t}", "@Override\n public String getTableName() {\n return getFreeTextDocTablename(conf);\n }", "private Vocabulary() {\n }", "public Vector mapDocument(BOW bow, boolean b) {\n //logger.info(\"lsm.mapDocument \" + b);\n SparseVector vector = new SparseVector();\n\n Iterator<String> it = bow.termSet().iterator();\n for (int i = 0; it.hasNext(); i++) {\n //logger.info(i + \" \" + t[i]);\n String term = it.next();\n int index = termIndex.get(term);\n\n if (index != -1) {\n int tf = bow.getFrequency(term);\n float tfIdf = (float) (log2(tf));\n if (b) {\n tfIdf *= Iidf[index];\n }\n\n //logger.info(term + \" ==> \" + index + \", tf.idf = \" + tf + \"(\" + (log2(tf)) + \") * \" + Iidf[index] + \" = \" + tfIdf);\n vector.add(index, tfIdf);\n\n }\n } // end for\n\n return vector;\n }", "void skillsFound( String key ) {\n developer.skills = new ArrayList<>();\n }", "@Override\n\tpublic List<Skill> getSkills() {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\t\n\t\t//create a query\n\t\tQuery<Skill> theQuery = currentSession.createQuery(\"from Skill\", Skill.class);\n\t\t\n\t\t//execute query and get result list\n\t\tList<Skill> skills = theQuery.getResultList();\n\t\t\n\t\t//return the results\n\t\treturn skills;\n\t}", "RepStuLearning selectByPrimaryKey(RepStuLearningKey key);", "public void fillVerbTbl(String sentenceID){\n\t\t// implement me!\n\t}", "WdWordDict selectByPrimaryKey(Long dictId);", "List<WordSchool> selectByExample(WordSchoolExample example);", "public OWLModel getKnowledgeBase();", "@Transactional\r\n\tpublic List<CmVocabularyCategory> getCmVocabularyCategorys() {\r\n\t\treturn dao.findAllWithOrder(CmVocabularyCategory.class, \"modifyTimestamp\", false);\r\n\t}", "public static void caso31(){\n\t FilterManager fm= new FilterManager(\"resources/stopWordsList.txt\",\"resources/useCaseWeight.properties\");\n\t\t\tQualityAttributeBelongable qualityAttributeBelongable = new OntologyManager(\"file:resources/caso3.owl\",\"file:resources/caso3.repository\",fm);\n\t\t\tMap<QualityAttributeInterface,Double> map = qualityAttributeBelongable.getWordPertenence(\"response1\");\n\t\t\tif(map==null){\n\t\t\t\tSystem.out.println(\"El map es null\");\n\t\t\t}else{\n\t\t\t\tMapUtils.imprimirMap(map);\n\t\t\t}\n\t}", "public void setKeyWordTableName(String keyWordTableName) {\r\n\t\tthis.keyWordTableName = keyWordTableName;\r\n\t}", "public static void caso32(){\n\t FilterManager fm= new FilterManager(\"resources/stopWordsList.txt\",\"resources/useCaseWeight.properties\");\n\t\t\tQualityAttributeBelongable qualityAttributeBelongable = new OntologyManager(\"file:resources/caso3.owl\",\"file:resources/caso3.repository\",fm);\n\t\t\tMap<QualityAttributeInterface,Double> map = qualityAttributeBelongable.getWordPertenence(\"response2\");\n\t\t\tif(map==null){\n\t\t\t\tSystem.out.println(\"El map es null\");\n\t\t\t}else{\n\t\t\t\tMapUtils.imprimirMap(map);\n\t\t\t}\n\t}", "WordSchool selectByPrimaryKey(Long id);", "public void AddKeywords()\n\t{\n\t\ttry\n\t\t{\n\t\t\tConnector con = new Connector();\n\t\t\tString query; \n\t\t\t\n\t\t\tfor(int i = 0; i < keywords.size(); i++)\n\t\t\t{\n\t\t\t\tString keyword = keywords.get(i); \n\t\t\t\t\n\t\t\t\tint kid = GetKIDFromWord(keyword); \n\t\t\t\t\n\t\t\t\t//word is not already in table\n\t\t\t\tif(kid == -1)\n\t\t\t\t{\n\t\t\t\t\t//insert word into Keywords \n\t\t\t\t\tSystem.out.println(\"test\"); \n\t\t\t\t\tquery = \"INSERT INTO Keywords(word) VALUE ('\"+keyword+\"')\"; \n\t\t\t \tint intoTable = con.stmt.executeUpdate(query); \n\t\t\t \t\n\t\t\t \t//able to put it in the table\n\t\t\t \tif(intoTable > 0)\n\t\t\t \t{\n\t\t\t \t\t//insert into HasKeywords\n\t\t\t\t \tkid = GetKIDFromWord(keyword); \n\t\t\t\t\t\tquery = \"INSERT INTO HasKeywords(keyword_hid, keyword_kid) VALUE('\"+hid+\"', '\"+kid+\"')\";\n\t\t\t\t \tint hasKey = con.stmt.executeUpdate(query); \n\t\t\t \t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//word is already in table\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tList<Integer> hkCheck = GetHIDSFromKID(kid);\n\t\t\t\t\t\n\t\t\t\t\tboolean inHKTable = false; \n\t\t\t\t\tfor(int j = 0; j < hkCheck.size(); j++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(hkCheck.get(j) == hid)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tinHKTable = true; \n\t\t\t\t\t\t\tbreak; \n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif(inHKTable == false)\n\t\t\t\t\t{\n\t\t\t\t\t\tquery = \"INSERT INTO HasKeywords(keyword_hid, keyword_kid) VALUE('\"+hid+\"', '\"+kid+\"')\";\n\t\t\t\t \tint hasKey = con.stmt.executeUpdate(query); \n\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tcon.closeConnection();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t}", "public final void mRULE_TOKEN_VOCAB() throws RecognitionException {\n try {\n int _type = RULE_TOKEN_VOCAB;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalUniMapperGenerator.g:5095:18: ( 'tokenVocab' )\n // InternalUniMapperGenerator.g:5095:20: 'tokenVocab'\n {\n match(\"tokenVocab\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public static void testDictionary() throws IOException {\n String wnhome=\"c:\\\\Users\\\\Katherine\\\\Documents\\\\2nd sem\\\\IR\\\\project\\\\WordNet_3.1\";\n String path = wnhome + File.separator + \"dict\";\n\n\n URL url = new URL(\"file\", null, path);\n\n IDictionary dictionary = new Dictionary(url);\n dictionary.open();\n // /Users/Ward/Downloads\n IIndexWord indexWord = dictionary.getIndexWord(\"use\", POS.VERB);\n\n for (IWordID wordID : indexWord.getWordIDs()) {\n\n IWord word = dictionary.getWord(wordID);\n for (IWord word1 : word.getSynset().getWords()) {\n System.out.println(word1.getLemma());\n }\n// System.out.println(\"Id = \" + wordID);\n// System.out.println(\" Lemma = \" + word.getLemma());\n// System.out.println(\" Gloss = \" + word.getSynset().getGloss());\n\n List<ISynsetID> hypernyms =\n word.getSynset().getRelatedSynsets(Pointer.HYPERNYM);\n // print out each h y p e r n y m s id and synonyms\n List<IWord> words;\n for (ISynsetID sid : hypernyms) {\n words = dictionary.getSynset(sid).getWords();\n System.out.print(sid + \" {\");\n for (Iterator<IWord> i = words.iterator(); i.hasNext(); ) {\n System.out.print(i.next().getLemma());\n if (i.hasNext())\n System.out.print(\", \");\n }\n System.out.println(\"}\");\n }\n }\n }", "public Vector mapDocument(MultiSet<String> bow) {\n //logger.info(\"lsm.mapDocument\");\n SparseVector vector = new SparseVector();\n\n Iterator<String> it = bow.iterator();\n String term = null;\n int index = 0;\n int tf = 0;\n float tfIdf;\n for (int i = 0; it.hasNext(); i++) {\n //logger.info(i + \" \" + t[i]);\n term = it.next();\n index = termIndex.get(term);\n\n if (index != -1) {\n tf = bow.getFrequency(term);\n tfIdf = (float) (log2(tf)) * Iidf[index];\n\n //logger.info(term + \" ==> \" + index + \", tf.idf = \" + tf + \"(\" + (log2(tf)) + \") * \" + Iidf[index] + \" = \" + tfIdf);\n vector.add(index, tfIdf);\n\n }\n } // end for\n\n return vector;\n }", "public static void writeArchivedVocab(Vocab vocab) {\n String userId = FirebaseAuth.getInstance().getUid();\n Log.d(\"000\", \"writeVocab: \"+userId);\n mDatabase.child(\"user\").child(userId).child(\"archive\").child(vocab.Id).setValue(vocab);\n }", "public List<Term> getAllTerms() {\n\t\tsession.beginTransaction();\n\t\tList<Term> lis = session.createQuery(\"from Term\").list();\n\n\t\tfor (Term tm : lis) {\n\t\t\tSystem.out.println(tm.getId() + \" \" + tm.getTermName());\n\t\t}\n\t\treturn lis;\n\t}", "public WordsWrapper getVocabulariesWrapper() {\n\t\tWordsWrapper wrapper = new WordsWrapper();\n\t\twrapper.mainvocabs = m__vocabs;\n\t\twrapper.referenes = m__referencedwords;\n\t\treturn wrapper;\n\t}", "public interface DictionaryDao<Type extends DictionaryProperty<Id>, Id extends Serializable> {\r\n\t/** \r\n\t * <!-- begin-UML-doc -->\r\n\t * Zwraca wszystkie mozliwe wartosci slownika.\r\n\t * <!-- end-UML-doc -->\r\n\t * @return\r\n\t * @generated \"UML to Java (com.ibm.xtools.transform.uml2.java5.internal.UML2JavaTransform)\"\r\n\t */\r\n\tpublic List<Type> getAll();\r\n}", "@Override\n public Builder limitVocabularySize(int limit) {\n super.limitVocabularySize(limit);\n return this;\n }", "@Override\n public List<DefinitionDTO> findAllWords() {\n List<Word> words = wordRepository.findAll();\n return DTOMapper.mapWordListToDefinitionDTOList(words);\n }", "public interface ArchetypeLevelsSchema {\n\tString TABLE_NAME = \"creature_archetype_levels\";\n\n\tString COLUMN_ARCHETYPE_ID = \"archetypeId\";\n\tString COLUMN_LEVEL = \"level\";\n\tString COLUMN_ATTACK = \"attack\";\n\tString COLUMN_ATTACK2 = \"attack2\";\n\tString COLUMN_DEF_BONUS = \"defensiveBonus\";\n\tString COLUMN_BODY_DEV = \"bodyDevelopment\";\n\tString COLUMN_PRIME_SKILL = \"primeSkill\";\n\tString COLUMN_SECONDARY_SKILL = \"secondarySkill\";\n\tString COLUMN_POWER_DEV = \"powerDevelopment\";\n\tString COLUMN_SPELLS = \"spells\";\n\tString COLUMN_TALENT_DP = \"talentDP\";\n\tString COLUMN_AGILITY = \"agility\";\n\tString COLUMN_CONS_STAT = \"constitutionStat\";\n\tString COLUMN_CONSTITUTION = \"constitution\";\n\tString COLUMN_EMPATHY = \"empathy\";\n\tString COLUMN_INTUITION = \"intuition\";\n\tString COLUMN_MEMORY = \"memory\";\n\tString COLUMN_PRESENCE = \"presence\";\n\tString COLUMN_QUICKNESS = \"quickness\";\n\tString COLUMN_REASONING = \"reasoning\";\n\tString COLUMN_SELF_DISC = \"selfDiscipline\";\n\tString COLUMN_STRENGTH = \"strength\";\n\n\tString TABLE_CREATE = \"CREATE TABLE IF NOT EXISTS \"\n\t\t\t+ TABLE_NAME\n\t\t\t+ \" (\"\n\t\t\t+ COLUMN_ARCHETYPE_ID + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_LEVEL + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_ATTACK + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_ATTACK2 + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_DEF_BONUS + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_BODY_DEV + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_PRIME_SKILL + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_SECONDARY_SKILL + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_POWER_DEV + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_SPELLS + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_TALENT_DP + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_AGILITY + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_CONS_STAT + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_CONSTITUTION + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_EMPATHY + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_INTUITION + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_MEMORY + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_PRESENCE + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_QUICKNESS + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_REASONING + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_SELF_DISC + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_STRENGTH + \" INTEGER NOT NULL, \"\n\t\t\t+ \"PRIMARY KEY(\" + COLUMN_ARCHETYPE_ID + \",\" + COLUMN_LEVEL + \")\"\n\t\t\t+ \")\";\n\n\tString[] COLUMNS = new String[] { COLUMN_ARCHETYPE_ID, COLUMN_LEVEL, COLUMN_ATTACK, COLUMN_ATTACK2, COLUMN_DEF_BONUS,\n\t\t\tCOLUMN_BODY_DEV, COLUMN_PRIME_SKILL, COLUMN_SECONDARY_SKILL, COLUMN_POWER_DEV, COLUMN_SPELLS, COLUMN_TALENT_DP,\n\t\t\tCOLUMN_AGILITY, COLUMN_CONS_STAT, COLUMN_CONSTITUTION, COLUMN_EMPATHY, COLUMN_INTUITION, COLUMN_MEMORY,\n\t\t\tCOLUMN_PRESENCE, COLUMN_QUICKNESS, COLUMN_REASONING, COLUMN_SELF_DISC, COLUMN_STRENGTH};\n}", "public static void moveCorrectToArchive(Vocab vocab){\n\n DatabaseReference vocabRef=FirebaseDatabase.getInstance().getReference().child(\"user\").child(FirebaseAuth.getInstance().getUid()).child(\"vocab\").child(vocab.Id);\n vocabRef.removeValue();\n archiveVocabs.add(vocab);\n writeArchivedVocab(vocab);\n\n }", "Terms selectByPrimaryKey(Integer id);", "public Iterator words() {\n return index.keySet().iterator();\n }", "public Word getWord(int id);", "public List search() {\n\t\tSessionFactory sf = new Configuration().configure()\n\t\t\t\t.buildSessionFactory();\n\t\tSession s = sf.openSession();\n\t\tQuery q = s.createQuery(\"from cat_vo\");\n\t\tList ls = q.list();\n\t\treturn ls;\n\t}", "public List<Term> getAllTermsByDictionary(String table, String dictionary) {\n List<Term> termList = new ArrayList<Term>();\n\n // Select All Query\n String selectQuery = \"SELECT * FROM \" + table + \" WHERE \" + KEY_DICTIONARY + \" = '\" + dictionary + \"' ORDER BY \" + KEY_TERM;\n\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor cursor = db.rawQuery(selectQuery, null);\n\n // looping through all rows and adding to list\n if (cursor.moveToFirst()) {\n do {\n if (!cursor.getString(2).isEmpty()) {\n /*\n Term term = new Term();\n term.setId(Integer.parseInt(cursor.getString(0)));\n term.setDictionary(cursor.getString(1));\n term.setTerm(cursor.getString(2));\n term.setSubject(cursor.getString(3));\n term.setDefinition(cursor.getString(4));\n term.setSynonyms(cursor.getString(5));\n */\n Term term = new Term(Integer.parseInt(cursor.getString(0)),cursor.getString(1), cursor.getString(2), cursor.getString(3),\n cursor.getString(4), cursor.getString(5), Integer.parseInt(cursor.getString(6)));\n // Adding term to list\n termList.add(term);\n }\n } while (cursor.moveToNext());\n }\n\n // return term list\n return termList;\n }", "Integer getSkillCount( String key ){\n return developer.skills.size();\n }", "public List<Skill> findAll(){\n return (List<Skill>) skillRepository.findAll();\n }", "public Courses getCourseTable();", "@Override\n protected Builder useExistingWordVectors(@NonNull WordVectors vec) {\n return this;\n }", "private void indexRelations(String inputFile, FlagConfig flagConfig) throws IOException {\n this.elementalVectors = VectorStoreRAM.readFromFile(\n flagConfig, \"C:\\\\Users\\\\dwiddows\\\\Data\\\\QI\\\\Gutterman\\\\termtermvectors.bin\");\n this.flagConfig = flagConfig;\n this.proportionVectors = new ProportionVectors(flagConfig);\n this.luceneUtils = new LuceneUtils(flagConfig);\n VectorStoreWriter writer = new VectorStoreWriter();\n\n // Turn all the text lines into parsed records.\n this.parseInputFile(inputFile);\n\n // Now the various indexing techniques.\n VectorStoreRAM triplesVectors = new VectorStoreRAM(flagConfig);\n VectorStoreRAM triplesPositionsVectors = new VectorStoreRAM(flagConfig);\n VectorStoreRAM dyadsVectors = new VectorStoreRAM(flagConfig);\n VectorStoreRAM dyadsPositionsVectors = new VectorStoreRAM(flagConfig);\n VectorStoreRAM verbsVectors = new VectorStoreRAM(flagConfig);\n VectorStoreRAM verbsPositionsVectors = new VectorStoreRAM(flagConfig);\n\n for (String docName : this.parsedRecords.keySet()) {\n Vector tripleDocVector = VectorFactory.createZeroVector(flagConfig.vectortype(), flagConfig.dimension());\n Vector tripleDocPositionVector = VectorFactory.createZeroVector(flagConfig.vectortype(), flagConfig.dimension());\n Vector dyadDocVector = VectorFactory.createZeroVector(flagConfig.vectortype(), flagConfig.dimension());\n Vector dyadDocPositionVector = VectorFactory.createZeroVector(flagConfig.vectortype(), flagConfig.dimension());\n Vector verbDocVector = VectorFactory.createZeroVector(flagConfig.vectortype(), flagConfig.dimension());\n Vector verbDocPositionVector = VectorFactory.createZeroVector(flagConfig.vectortype(), flagConfig.dimension());\n\n for (ParsedRecord record : this.parsedRecords.get(docName)) {\n Vector tripleVector = this.getPsiTripleVector(record);\n tripleDocVector.superpose(tripleVector, 1, null);\n\n this.bindWithPosition(record, tripleVector);\n tripleDocPositionVector.superpose(tripleVector, 1, null);\n\n Vector dyadVector = this.getPsiDyadVector(record);\n dyadDocVector.superpose(dyadVector, 1, null);\n this.bindWithPosition(record, dyadVector);\n dyadDocPositionVector.superpose(dyadVector, 1, null);\n\n Vector verbVector = this.vectorForString(record.predicate);\n verbDocVector.superpose(verbVector, 1, null);\n this.bindWithPosition(record, verbVector);\n verbDocPositionVector.superpose(verbVector, 1, null);\n }\n\n triplesVectors.putVector(docName, tripleDocVector);\n triplesPositionsVectors.putVector(docName, tripleDocPositionVector);\n dyadsVectors.putVector(docName, dyadDocVector);\n dyadsPositionsVectors.putVector(docName, dyadDocPositionVector);\n verbsVectors.putVector(docName, verbDocVector);\n verbsPositionsVectors.putVector(docName, verbDocPositionVector);\n }\n\n for (VectorStore vectorStore : new VectorStore[] {\n triplesVectors, triplesPositionsVectors, dyadsVectors, dyadsPositionsVectors, verbsVectors, verbsPositionsVectors }) {\n Enumeration<ObjectVector> vectorEnumeration = vectorStore.getAllVectors();\n while (vectorEnumeration.hasMoreElements())\n vectorEnumeration.nextElement().getVector().normalize();\n }\n\n writer.writeVectors(TRIPLES_OUTPUT_FILE, flagConfig, triplesVectors);\n writer.writeVectors(TRIPLES_POSITIONS_OUTPUT_FILE, flagConfig, triplesPositionsVectors);\n\n writer.writeVectors(DYADS_OUTPUT_FILE, flagConfig, dyadsVectors);\n writer.writeVectors(DYADS_POSITIONS_OUTPUT_FILE, flagConfig, dyadsPositionsVectors);\n\n writer.writeVectors(VERBS_OUTPUT_FILE, flagConfig, verbsVectors);\n writer.writeVectors(VERBS_POSITIONS_OUTPUT_FILE, flagConfig, verbsPositionsVectors);\n }", "int getConceptLanguagesCount();", "@Override\n public Builder lookupTable(@NonNull WeightLookupTable<VocabWord> lookupTable) {\n super.lookupTable(lookupTable);\n return this;\n }", "WordBean getWord(String word);", "public List<Product> search(String word, String codigo) {\n\t\tSession session = getSessionFactory().openSession();\n\t\treturn null;\n\t}", "private void invertedToDatabase(){\r\n cleFreq = new HashMap<>();\r\n System.out.println(\"Strat collecting\");\r\n Map<String,List<Invertedindex>> collects = collecting();\r\n System.out.println(\"Ending collecting\");\r\n Database.getInstance().invertedIndex(collects);\r\n Database.getInstance().addPoids(cleFreq);\r\n }", "@SuppressWarnings({ \"deprecation\", \"unchecked\", \"rawtypes\" })\n\tpublic String generateWordlists(Corpus co) {\n\t\tlong startTime = System.currentTimeMillis();\n\t\t// Set up weka word vector\n\t\tFastVector attributes;\n\t\tInstances dataSet;\n\t\tattributes = new FastVector();\n\n\t\tattributes.addElement(new Attribute(\"aspect_id\", (FastVector) null));\n\t\tattributes.addElement(new Attribute(\"tokens\", (FastVector) null));\n\n\t\tdataSet = new Instances(\"BeerAspects\", attributes, 0);\n\n\t\tCorpus topReviews;\n\t\tCorpus lowReviews;\n\n\t\t// Do top and low for all aspects\n\t\tfor (Aspect aspect : Aspect.values()) {\n\n\t\t\t// Only for actual aspects\n\t\t\tif (aspect.equals(Aspect.NONE) || aspect.equals(Aspect.OVERALL))\n\t\t\t\tcontinue;\n\n\t\t\ttopReviews = co.getTopReviews(aspect);\n\t\t\ttopReviews.analyze();\n\t\t\tString tokens = topReviews.getTokenConcatenation(aspect);\n\n\t\t\tInstance instance = new SparseInstance(2);\n\t\t\tinstance.setValue((Attribute) attributes.elementAt(0), aspect.name() + \"_TOP\");\n\t\t\tinstance.setValue((Attribute) attributes.elementAt(1), tokens);\n\n\t\t\tdataSet.add(instance);\n\n\t\t\tlowReviews = co.getLowReviews(aspect);\n\t\t\tlowReviews.analyze();\n\t\t\ttokens = lowReviews.getTokenConcatenation(aspect);\n\t\t\t// System.out.println(tokens);\n\n\t\t\tinstance = new SparseInstance(2);\n\t\t\tinstance.setValue((Attribute) attributes.elementAt(0), aspect.name() + \"_LOW\");\n\t\t\tinstance.setValue((Attribute) attributes.elementAt(1), tokens);\n\n\t\t\tdataSet.add(instance);\n\t\t}\n\n\t\t// System.out.println(dataSet.toString());\n\t\tInstances dataFiltered = transformToWordVector(dataSet, co.getProps());\n\n\t\t// System.out.println(dataFiltered.toString());\n\t\tString pathsToLists = writeWordlists(dataFiltered);\n\n\t\twriteArffFile(dataFiltered, this.outputDir+\"wordvector.arff\");\n\n\t\tlong stopTime = System.currentTimeMillis();\n\t\tlong elapsedTime = stopTime - startTime;\n\t\tSystem.out.println(\"Generated wordlists in: \" + elapsedTime / 1000 + \" s\");\n\t\treturn pathsToLists;\n\t}", "boolean putWord(WordBean wordBean);", "public Table<Integer, Integer, String> getAnonymizedData();", "public static void caso12(){\n\n FilterManager fm= new FilterManager(\"resources/stopWordsList.txt\",\"resources/useCaseWeight.properties\");\n\t\tQualityAttributeBelongable qualityAttributeBelongable = new OntologyManager(\"file:resources/caso1.owl\",\"file:resources/caso1.repository\",fm);\n\t\tMap<QualityAttributeInterface,Double> map = qualityAttributeBelongable.getWordPertenence(\"pan\");\n\t\tif(map==null){\n\t\t\tSystem.out.println(\"El map es null\");\n\t\t}\n\t}", "public void addToJurisdictions(entity.AppCritJurisdiction element);", "public static void caso11(){\n\t\t\n FilterManager fm= new FilterManager(\"resources/stopWordsList.txt\",\"resources/useCaseWeight.properties\");\n\t\tQualityAttributeBelongable qualityAttributeBelongable = new OntologyManager(\"file:resources/caso1.owl\",\"file:resources/caso1.repository\",fm);\n\t\tMap<QualityAttributeInterface,Double> map = qualityAttributeBelongable.getWordPertenence(\"response\");\n\t\tMapUtils.imprimirMap(map);\n\t}", "public String getNomTable();", "public void init() {\n File file=new File(\"D:\\\\lucene\\\\index\");\n if(file.isDirectory())\n { //否则如果它是一个目录\n File files[] = file.listFiles(); //声明目录下所有的文件 files[];\n for(int i=0;i<files.length;i++)\n { //遍历目录下所有的文件\n files[i].delete(); //把每个文件 用这个方法进行迭代\n }\n }\n String indexPath = \"D:\\\\lucene\\\\index\";\n //String docsPath = \"D:\\\\lucene\\\\data\";\n boolean create = true;\n try\n {\n Session session=factory.openSession();\n String hql = \"from Book\";\n org.hibernate.Query query = session.createQuery(hql);\n List<Book> list=query.list();\n Directory indexDir = FSDirectory.open(Paths.get(\"D:\\\\lucene\\\\index\"));\n Analyzer luceneAnalyzer = new StandardAnalyzer(); //新建一个分词器实例 \n IndexWriterConfig config = new IndexWriterConfig(luceneAnalyzer); \n IndexWriter indexWriter = new IndexWriter(indexDir,config);\n for(int i=0;i<list.size();i++)\n {\n Document document = new Document();\n Field field1 = new StringField(\"id\",list.get(i).getBookid().toString(),Field.Store.YES); \n Field field2 = new StringField(\"bookname\",list.get(i).getBookname(),Field.Store.YES); \n Field field3 = new StringField(\"author\",list.get(i).getAuthor(),Field.Store.YES); \n Field field4 = new StringField(\"category\",list.get(i).getCategory(),Field.Store.YES); \n Field field5 = new StringField(\"price\", Double.toString(list.get(i).getPrice()),Field.Store.YES); \n document.add(field1); \n document.add(field2); \n document.add(field3); \n document.add(field4);\n document.add(field5);\n indexWriter.addDocument(document);\n }\n indexWriter.close();\n }\n catch(IOException e)\n {\n System.out.println(\"error\");\n return;\n }\n }", "hr.domain.ResumeDBOuterClass.Education getEducations(int index);", "hr.domain.ResumeDBOuterClass.Experience getExperiences(int index);", "public void fillNounTbl(String sentenceID){\n\t\t// implement me!\n\t}", "void createOrUpdateVocabulary(final VocabularyPE vocabularyPE);", "@Override\n public Builder iterate(@NonNull SequenceIterator<VocabWord> iterator) {\n super.iterate(iterator);\n return this;\n }", "private void createFreqVector(Path file) {\r\n\t\t\tVector vector = new Vector(vocabulary.size());\r\n\t\t\tList<String> lines;\r\n\t\t\ttry {\r\n\t\t\t\tlines = Files.readAllLines(file);\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tSet<String> words = new HashSet<>();\r\n\t\t\t//create frequency vector of words in single document -> tf(w,d)\r\n\t\t\tfor (String line : lines) {\r\n\t\t\t\tif (line.isEmpty()) continue;\r\n\t\t\t\tString[] values = p.split(line);\r\n\t\t\t\tfor (String value : values) { \r\n\t\t\t\t\tif (value.isEmpty()) continue;\r\n\t\t\t\t\tString lowWord = value.toLowerCase().trim();\r\n\t\t\t\t\t\r\n\t\t\t\t\tInteger[] arr = vocabulary.get(lowWord);\r\n\t\t\t\t\tif (arr == null) continue;\r\n\t\t\t\t\tvector.incrementValueAt(arr[0]);\r\n\t\t\t\t\tif (words.add(lowWord)) {\r\n\t\t\t\t\t\t arr[1] += 1;\t//first time occurrence of this word in document\r\n\t\t\t\t\t\tvocabulary.put(lowWord, arr);\t//increment number of documents for this word\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\tfreqVectors.put(file, vector);\t\t\r\n\t\t}", "private String[][] getMoodsTableValues() {\n String soso = DBTypesKeys.SO_SO_MOOD.getTypeValue();\n String sad = DBTypesKeys.SAD_MOOD.getTypeValue();\n String angry = DBTypesKeys.ANGRY_MOOD.getTypeValue();\n String happy = DBTypesKeys.HAPPY_MOOD.getTypeValue();\n // moods table\n return new String[][]{\n //moods hi answers by answers // id_ (enum index + 1)\n { soso, \"hey\", \"by\"}, // 1\n { sad, \"welcome to sad world\", \"so, you too ...\"}, // 2\n { angry, \"get out!\", \"thanks god, you away\"}, // 3\n { happy, \"hi! glad to see you =)\", \"good luck, buddy\"} // 4\n };\n }", "private VocabularyTerms getVocabularyTerms(Collection<CMAContentType> vocabularies) {\n VocabularyTerms vocabularyTerms = new VocabularyTerms();\n vocabularies\n .forEach(contentType -> {\n //Keeps the country vocabulary ID for future use\n if (contentType.getName().equals(configuration.getCountryVocabulary())) {\n vocabularyTerms.loadCountryVocabulary(contentType);\n } else {\n //Loads vocabulary into memory\n vocabularyTerms.loadVocabulary(contentType);\n }\n });\n return vocabularyTerms;\n }", "public static String getTokenVocabFromGrammar(String text) {\n\t\t// TODO: unneeded. use antlr Tool. Kill?\n//\t\tParsingResult r = parseANTLRGrammar(text);\n//\t\tif ( r.tree!=null ) { //&& r.syntaxErrorListener.getSyntaxErrors().size()==0 ) {\n//\t\t\t// option : id ASSIGN optionValue ;\n//\t\t\tCollection<ParseTree> options = XPath.findAll(r.tree, \"//option\", r.parser);\n//\t\t\tfor (Iterator<ParseTree> it = options.iterator(); it.hasNext(); ) {\n//\t\t\t\tANTLRv4Parser.OptionContext option = (ANTLRv4Parser.OptionContext)it.next();\n//\t\t\t\tif ( option.id().getText().equals(\"tokenVocab\") ) {\n//\t\t\t\t\t/*\n//\t\t\t\t\toptionValue\n//\t\t\t\t\t\t:\tid (DOT id)*\n//\t\t\t\t\t\t|\tSTRING_LITERAL\n//\t\t\t\t\t\t|\tACTION\n//\t\t\t\t\t\t|\tINT\n//\t\t\t\t\t\t;\n//\t\t\t\t\t */\n//\t\t\t\t\tANTLRv4Parser.OptionValueContext optionValue = option.optionValue();\n//\t\t\t\t\tif ( optionValue.STRING_LITERAL()!=null ) {\n//\t\t\t\t\t\tString s = optionValue.STRING_LITERAL().getText();\n//\t\t\t\t\t\treturn RefactorUtils.getLexerRuleNameFromLiteral(s);\n//\t\t\t\t\t}\n//\t\t\t\t\tif ( optionValue.id(0)!=null ) {\n//\t\t\t\t\t\treturn optionValue.id(0).getText();\n//\t\t\t\t\t}\n//\t\t\t\t}\n//\t\t\t}\n//\t\t}\n\t\treturn null;\n\t}", "private Resolution getVocabularyConceptResolution() {\r\n HttpServletRequest httpRequest = getContext().getRequest();\r\n String url = httpRequest.getRequestURL().toString();\r\n // String query = httpRequest.getQueryString();\r\n \r\n String[] parameters = StringUtils.split(StringUtils.substringAfter(url, \"/vocabulary/\"), \"/\");\r\n \r\n if (parameters.length >= 2) {\r\n if (!RESERVED_VOCABULARY_EVENTS.contains(parameters[1])) {\r\n RedirectResolution resolution = new RedirectResolution(VocabularyConceptActionBean.class, \"view\");\r\n resolution.addParameter(\"vocabularyFolder.identifier\", parameters[0]);\r\n resolution.addParameter(\"vocabularyConcept.identifier\", parameters[1]);\r\n resolution.addParameter(\"vocabularyFolder.workingCopy\", vocabularyFolder.isWorkingCopy());\r\n \r\n return resolution;\r\n }\r\n }\r\n \r\n return null;\r\n }", "public SPARQL() {\n initComponents();\n \n model = ModelFactory.createOntologyModel(OntModelSpec.OWL_LITE_MEM_RDFS_INF);\n model.setDynamicImports(true);\n model.read(\"file:\"+\"data/ontologies/Papers_Ready.owl\", \"http://www.l3g.pl/ontologies/OntoBeef/Papers.owl\", \"N-TRIPLE\");\n model.loadImports();\n \n for (Individual i : model.listIndividuals(model.getOntClass(\"http://www.l3g.pl/ontologies/OntoBeef/Conceptualisation.owl#Category\")).toSet())\n {\n System.out.println(i.listLabels(null).toSet());\n }\n }", "@Override\n public AutoBuffer write_impl(AutoBuffer ab) {\n if (_vocabHM == null) return ab.put1(1); // killed\n\n int strLen = 0;\n for (ValueStringCount val : VOCABHM.values())\n strLen += val.length();\n ab.put1(0); // not killed\n ab.put4(strLen); //length of string buffer\n for (ValueStringCount val : VOCABHM.values())\n ab.put2((char) val.length()).putA1(val.getBuffer(), val.getOffset(), val.getOffset() + val.length()).put8(val._cnt);\n return ab.put2((char) 65535); // End of map marker\n }", "@SuppressWarnings(\"unchecked\")\r\n\tpublic static void main(String[] args) throws IOException {\n\t\tSchema s = new Schema(\"Estudiantes\",\"C:\\\\Users\\\\morazan\\\\Desktop\\\\com\\\\idk\\\\ac\\\\cr\");\r\n\n\t\tSchemaJoin j = new SchemaJoin(\"Notas\",\"C:\\\\Users\\\\morazan\\\\Desktop\\\\com\\\\idk\\\\ac\\\\cr\");\r\n\r\n\t\t//Creates an index in the regular schema\r\n\t\ts.createIndex(\"bts\", \"string\", \"Nombre\", 10);\r\n\t\ts.createIndex(\"avl\", \"number\", \"aņo\", 4);\r\n\t\ts.createIndex(\"avl\", \"image\", \"Imagen\", 0);\r\n\t\tj.joinSchema(s);\r\n\t\tj.createJoinedIndex(\"avl\", \"number\", \"Notas\", 2);\r\n\t\t\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"Inserting I \");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\ts.insertToIndex(1, \"JP\");\r\n\t\ts.insertToIndex(1, \"Randy\");\r\n\t\ts.insertToIndex(1, \"Alejandra\");\r\n//\t\ts.insertToIndex(1, \"Xcreed\");\r\n\t\ts.insertToIndex(2, 1996);\r\n\t\ts.insertToIndex(2, 1995);\r\n\t\ts.insertToIndex(2, 1997);\n\t\ts.insertToIndex(3, \"SchemaExtraFiles/2.jpg\");\n\t\ts.insertToIndex(3, \"SchemaExtraFiles/8.jpg\");\n\t\ts.insertToIndex(3, \"SchemaExtraFiles/4.jpg\");\n\t\t\n\t\tIndexBTS index = (IndexBTS) s.schema.getItem(1);\r\n\t\tBinarySearchTree t = (BinarySearchTree) index.tree;\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"Traversal I\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tt.inOrderTraversal();\r\n\t\t\n\t\tIndexAVL index2 = (IndexAVL) s.schema.getItem(2);\r\n\t\tAVLTree t2 = (AVLTree) index2.getTree();\r\n\t\tSystem.out.println(\"avl order\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"Traversal II\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\n\t\tt2.inorder();\n\t\t\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"Inserting II \");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tj.insertToIndex(1, 80);\r\n\t\tj.insertToIndex(1, 82);\r\n\t\tj.insertToIndex(1, 78);\t\t\t\r\n\t\t\r\n//\t\tSystem.out.println(s.search(\"JP\"));\r\n//\t\tSystem.out.println(s.deleteInIndex(1,\"JP\"));\r\n//\t\tSystem.out.println(s.search(\"JP\"));\r\n\t\t\r\n\t\tSystem.out.println(\"Getting line 1\");\r\n\t\ts.getLine(1);\r\n//\t\ts.deleteLine(1);\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"Searching 82 \");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tj.joinedSearch(82);\r\n\r\n\t\t//Deletes an index in the schema\r\n//\t\ts.schema.print();\r\n//\t\ts.deleteIndex(1);\r\n//\t\ts.schema.print();\r\n\t\t\r\n// ***********Activate Separately**********\r\n\t\t\r\n//\t\ts.createIndex(\"bts\", \"video\", \"Videos\", 0);\r\n//\t\ts.insertToIndex(1, \"SchemaExtraFiles/Trike Drifting.mp4\");\r\n\t\t\r\n//\t***************************************\r\n\t\t\r\n\t\tJSONProtocol json = new JSONProtocol();\r\n\t\tjson.writeSchema(s);\r\n\t\t\t\t\r\n\t\t\r\n\t}", "TableId table();", "public boolean buildVocab() {\n readStopWords();\n\n if(cache.vocabExists()) {\n log.info(\"Loading vocab...\");\n cache.loadVocab();\n cache.resetWeights();\n return true;\n }\n\n //vectorizer will handle setting up vocab meta data\n if(vectorizer == null)\n vectorizer = new TfidfVectorizer.Builder()\n .cache(cache).iterate(docIter).iterate(sentenceIter)\n .minWords(minWordFrequency).stopWords(stopWords)\n .tokenize(tokenizerFactory).build();\n vectorizer.fit();\n\n setup();\n\n return false;\n }", "public List<Kateggorija> getSviGlumci() {\n List<Kateggorija> glumci=null;\n try {\n glumci= getDaoKateggorija().queryForAll();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n return glumci;\n }", "@VTID(10)\n int getIndex();", "Skill getSkill(Long skillId) throws DbException;", "public List<String> GetKeywords()\n\t{\n\t\tList<String> words = new ArrayList<String>(); \n\t\ttry\n\t\t{\n\t\t\tConnector con = new Connector();\n\t \n\t String query = \"SELECT keyword_kid FROM HasKeywords WHERE keyword_hid = '\"+hid+\"'\"; \n\t ResultSet rs = con.stmt.executeQuery(query); \n\t \n\t List<Integer> k_ids = new ArrayList<Integer>(); \n\t while(rs.next())\n\t {\n\t \tint new_id = rs.getInt(\"keyword_kid\"); \n\t \tk_ids.add(new_id); \n\t }\n\t \n\t for(int i = 0; i < k_ids.size(); i++)\n\t {\n\t \tquery = \"SELECT word FROM Keywords WHERE k_id = '\"+k_ids.get(i)+\"'\"; \n\t \trs = con.stmt.executeQuery(query); \n\t \twhile(rs.next())\n\t \t{\n\t \t\tString kw = rs.getString(\"word\"); \n\t \t\twords.add(kw); \n\t \t}\n\t }\n\t \n\t con.closeConnection();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\tkeywords = words; \n\t\treturn keywords; \n\t}", "java.lang.String getSemanticLangidModelName();", "public interface DBSDictionary\n{\n /**\n * Checks that this constrain supports key enumerations.\n * Usually it depends on constraint type (enumerations makes sense only for unique constraints).\n * @return true or false\n */\n boolean supportsDictionaryEnumeration();\n\n /**\n * Gets enumeration values\n *\n * @param monitor session\n * @param keyColumn enumeration column.\n * @param keyPattern pattern for enumeration values. If null or empty then returns full enumration set\n * @param searchText\n * @param preceedingKeys other constrain key values. May be null.\n * @param caseInsensitiveSearch use case-insensitive search for {@code keyPattern}\n * @param sortAsc ascending sorting (irrelevant is {@code sortByValue} is false)\n * @param sortByValue sort results by value\n * @param offset enumeration values offset in result set\n * @param maxResults maximum enumeration values in result set\n * @return statement with result set which contains valid enumeration values.\n */\n @NotNull\n List<DBDLabelValuePair> getDictionaryEnumeration(\n @NotNull DBRProgressMonitor monitor,\n @NotNull DBSEntityAttribute keyColumn,\n @Nullable Object keyPattern,\n @Nullable String searchText,\n @Nullable List<DBDAttributeValue> preceedingKeys,\n boolean caseInsensitiveSearch,\n boolean sortAsc,\n boolean sortByValue,\n int offset,\n int maxResults\n ) throws DBException;\n\n @NotNull\n List<DBDLabelValuePair> getDictionaryValues(\n @NotNull DBRProgressMonitor monitor,\n @NotNull DBSEntityAttribute keyColumn,\n @NotNull List<Object> keyValues,\n @Nullable List<DBDAttributeValue> preceedingKeys,\n boolean sortByValue,\n boolean sortAsc\n ) throws DBException;\n\n @NotNull\n DBSDictionaryAccessor getDictionaryAccessor(\n @NotNull DBRProgressMonitor monitor,\n @Nullable List<DBDAttributeValue> precedingKeys,\n @NotNull DBSEntityAttribute keyColumn,\n boolean sortAsc,\n boolean sortByDesc\n ) throws DBException;\n}", "@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)\n\tpublic List<AssetVocabulary> getAttachedVocabularies(long groupId);", "public static List<Book> getBookCategory() throws HibernateException{\r\n \r\n session = sessionFactory.openSession();\r\n session.beginTransaction();\r\n \r\n Query query=session.getNamedQuery(\"INVENTORY_getBookCategory\");\r\n List<Book> bookLocationList=query.list();\r\n \r\n session.getTransaction().commit();\r\n session.close();\r\n \r\n return bookLocationList;\r\n}", "public void train(Corpus[] trainingData) {\n\t\tSet<String> vocabulary = super.mergeVocabulary(trainingData);\n\t\ttrainingData[0].setVocabulary(vocabulary);\n\t\ttrainingData[1].setVocabulary(vocabulary);\n\t\tposMatrix = new TransitionMatrix(trainingData[0]);\n\t\tnegMatrix = new TransitionMatrix(trainingData[1]);\n\t}", "public void AddInDB(Word newWord) throws SQLException {\n String insertQuery = \"INSERT INTO tbltest(word,pronunciation,define) VALUES(?,?,?)\";\r\n ps = con.prepareStatement(insertQuery);\r\n ps.setString(1, newWord.getWord());\r\n ps.setString(2, newWord.getPronunciation());\r\n ps.setString(3, newWord.getDefine());\r\n\r\n ps.executeUpdate();\r\n }", "public static void caso41(){\n FilterManager fm= new FilterManager(\"resources/stopWordsList.txt\",\"resources/useCaseWeight.properties\");\n\t\tQualityAttributeBelongable qualityAttributeBelongable = new OntologyManager(\"file:resources/caso4.owl\",\"file:resources/caso4.repository\",fm);\n\t\tMap<QualityAttributeInterface,Double> map = qualityAttributeBelongable.getWordPertenence(\"response1\");\n\t\tif(map==null){\n\t\t\tSystem.out.println(\"El map es null\");\n\t\t}else{\n\t\t\tMapUtils.imprimirMap(map);\n\t\t}\n\t}", "@Select(\"select id,item from dicts where id in (23,24,25,26,27)\")\n\tList<Dict> findLevels();", "public interface IJavaDocAttributDao\n{\n List<JavaDocAttribut> getJavaDocAttributs(int idJavaDocMethode);\n}" ]
[ "0.5714772", "0.5634642", "0.54471385", "0.5296146", "0.5199113", "0.49331725", "0.49329886", "0.4925552", "0.49100333", "0.49073565", "0.48575464", "0.4840506", "0.48176134", "0.47540638", "0.4731969", "0.47130308", "0.46997505", "0.46928567", "0.46592632", "0.46315858", "0.46308562", "0.4628427", "0.4613438", "0.4607982", "0.46033806", "0.45581195", "0.45454577", "0.45442265", "0.45386803", "0.45275065", "0.452028", "0.4503016", "0.4500965", "0.44867927", "0.44754398", "0.44700065", "0.4461962", "0.44616178", "0.44392928", "0.44261026", "0.43990988", "0.43955937", "0.43947372", "0.4391834", "0.43790415", "0.4373947", "0.43707538", "0.43700558", "0.43560442", "0.43444037", "0.43359932", "0.4334978", "0.4331108", "0.43275934", "0.43246162", "0.4323478", "0.432252", "0.43204546", "0.43167415", "0.4313692", "0.43123078", "0.43018934", "0.42899582", "0.42859036", "0.4279804", "0.42734304", "0.42709267", "0.42542967", "0.4249365", "0.4246521", "0.42383584", "0.42374423", "0.42311075", "0.42302102", "0.4229986", "0.4227258", "0.42229605", "0.42228934", "0.422011", "0.42189792", "0.42158115", "0.42145696", "0.42105144", "0.4207044", "0.42064056", "0.41962886", "0.4194155", "0.41941473", "0.41919973", "0.41892615", "0.41883606", "0.41852176", "0.4182343", "0.41803232", "0.41759124", "0.41734546", "0.41732693", "0.41713014", "0.41704375", "0.416942", "0.41672277" ]
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table wd_vocab
public boolean isDistinct() { return distinct; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<VocabWord> document(int index);", "int[] documents(VocabWord vocabWord);", "public static void writeVocab(Vocab vocab) {\n String userId = FirebaseAuth.getInstance().getUid();\n Log.d(\"000\", \"writeVocab: \"+userId);\n mDatabase.child(\"user\").child(userId).child(\"vocab\").child(vocab.Id).setValue(vocab);\n }", "void addWordsToDoc(int doc,List<VocabWord> words);", "void addWordToDoc(int doc,VocabWord word);", "public VocabularyTerms() {}", "public Vector mapDocument(BOW bow) {\n //logger.info(\"lsm.mapDocument\");\n SparseVector vector = new SparseVector();\n\n Iterator<String> it = bow.termSet().iterator();\n String term = null;\n int index = 0;\n //int tf = 0;\n float tfIdf;\n for (int i = 0; it.hasNext(); i++) {\n //logger.info(i + \" \" + t[i]);\n term = it.next();\n index = termIndex.get(term);\n\n if (index != -1) {\n //tf = bow.getFrequency(term);\n //tfIdf = (float) (log2(tf)) * Iidf[index];\n //tfIdf = (float) bow.augmentedFrequency(term) * Iidf[index];\n tfIdf = (float) bow.tf(term) * Iidf[index];\n //logger.info(term + \" ==> \" + index + \", tf.idf = \" + tf + \"(\" + (log2(tf)) + \") * \" + Iidf[index] + \" = \" + tfIdf);\n vector.add(index, tfIdf);\n\n }\n } // end for\n\n return vector;\n }", "@Id\n @Column(name=\"term_key\")\n public int getTermKey() {\n\treturn termKey;\n }", "public WdVocabExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "private static void setWordPosition() {\n\t\tSet setKeys = Utility.vocabHM.keySet();\n\t\tIterator i = setKeys.iterator();\n\t\tint position = 0;\n\t\twhile (i.hasNext()) {\n\t\t\tString w = (String) i.next();\n\t\t\tInteger rows[] = new Integer[2];\n\t\t\trows[0] = new Integer(position); /* word position */\n\t\t\trows[1] = (Integer) Utility.vocabHM.get(w); /* df */\n\n\t\t\tUtility.vocabHM.put(w, rows);\n\t\t\tposition++;\n\t\t}\n\t}", "public Vector<Word> allKeyValue(){\n\n\tVector<Word> words = new Vector<Word>();\n\tfor(int w = 0; w < theTable.length; w++){\n\t // System.out.println(\"w: \" + w);\n\t // System.out.println(\"theTable[w]: \" + theTable[w]);\n\t if(theTable[w] != null){\n\t\twords.addElement(theTable[w]);\n\t }\n\t}\n\treturn words;\n }", "public static void deleteVocab(Context context){\n Toast.makeText(context, \"deleted\", Toast.LENGTH_SHORT).show();\n DatabaseReference vocabRef=FirebaseDatabase.getInstance().getReference().child(\"user\").child(FirebaseAuth.getInstance().getUid()).child(\"vocab\").child(currentVocabId);\n vocabRef.removeValue();\n }", "public Controlador(boolean newTable){\n if(newTable){\n vocabulario = new TSB_OAHashtable<>();\n }\n }", "public static void initVocabData() {\n FirebaseDatabase.getInstance().getReference().child(\"user\").child(FirebaseAuth.getInstance().getUid()).child(\"vocab\")\n .addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n staticVocabs.clear();\n for(DataSnapshot snapshot: dataSnapshot.getChildren() ){\n Vocab vocab = snapshot.getValue(Vocab.class);\n staticVocabs.add(vocab);\n size=1;\n }\n vocabsAdapter.notifyDataSetChanged();\n if (staticVocabs.size()==0){\n vocabsRecyclerView.setVisibility(View.INVISIBLE);\n isFirst.setVisibility(View.VISIBLE);\n notFirst.setVisibility(View.INVISIBLE);\n\n }else {\n vocabsRecyclerView.setVisibility(View.VISIBLE);\n isFirst.setVisibility(View.INVISIBLE);\n notFirst.setVisibility(View.VISIBLE);\n }\n }\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n }\n });\n }", "List<WdWordDict> selectByExample(WdWordDictExample example);", "@Query(\"SELECT * from english_word ORDER BY word ASC limit 300\")\n List<StoredEnglishWord> findAllWords();", "public void saveVocab (Vocabulary v, String vocabFilePath) throws IOException {\n\t\tFile file = new File(vocabFilePath);\n\t\t//if (file.exists()) file.delete();\n\t\t//file.createNewFile();\n\t\tBufferedWriter bw = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(file)));\n\t\tfor (int i = 0; i < v.vocabSize; i++) {\n\t\t\tbw.write(v.vocab.get(i).word + \" \" + v.vocab.get(i).cn + \"\\n\");\n\t\t}\n\t\tbw.close();\n\t}", "public void setVocubalaryId(long vocubalaryId);", "private void setVocabulary(int vocSize) {\n\t\tArrayList<String> chosen = new ArrayList<String>();\n\t\twhile (chosen.size() < vocSize) {\n\t\t\tint max = 0;\n\t\t\tString best = \"\";\n\t\t\tfor (String t : df.keySet()) {\n\t\t\t\tif (df.get(t) > max && !chosen.contains(t)) {\n\t\t\t\t\tmax = df.get(t);\n\t\t\t\t\tbest = t;\n\t\t\t\t}\n\t\t\t}\n\t\t\tchosen.add(best);\n\t\t}\n\t\tvocab = chosen;\n\t}", "public void constructOntologyVocabulary() {\n ontologyOwlClassVocabulary = new HashMap<>();\n ontologyOWLDataPropertyVocabulary = new HashMap<>();\n ontologyOWLNamedIndividualVocabulary = new HashMap<>();\n ontologyOWLObjectPropertylVocabulary = new HashMap<>();\n\n Set<OWLClass> classes = domainOntology.getClassesInSignature();\n Set<OWLNamedIndividual> individualPropertyAtom = domainOntology.getIndividualsInSignature();\n Set<OWLDataProperty> dataProperty = domainOntology.getDataPropertiesInSignature();\n Set<OWLObjectProperty> OWLObjectPropertyAtom = domainOntology.getObjectPropertiesInSignature();\n String tempName = null;\n\n for (OWLClass c : classes) {\n tempName = c.toString();\n tempName = tempName.substring(tempName.lastIndexOf(\"/\") + 1);\n tempName = TextUtil.formatName(tempName);\n ontologyOwlClassVocabulary.put(tempName, c);\n }\n for (OWLDataProperty d : dataProperty) {\n tempName = d.toString();\n tempName = tempName.substring(tempName.lastIndexOf(\"/\") + 1);\n tempName = TextUtil.formatName(tempName);\n ontologyOWLDataPropertyVocabulary.put(tempName, d);\n }\n for (OWLNamedIndividual i : individualPropertyAtom) {\n tempName = i.toString();\n tempName = tempName.substring(tempName.lastIndexOf(\"/\") + 1);\n tempName = TextUtil.formatName(tempName);\n ontologyOWLNamedIndividualVocabulary.put(tempName, i);\n }\n for (OWLObjectProperty o : OWLObjectPropertyAtom) {\n tempName = o.toString();\n tempName = tempName.substring(tempName.lastIndexOf(\"/\") + 1);\n tempName = TextUtil.formatName(tempName);\n ontologyOWLObjectPropertylVocabulary.put(tempName, o);\n }\n }", "public void getVector() throws IOException {\n\t\tint i=1;\r\n\t\tfor(String key:keyword){\r\n\t\t\tWord w=new Word();\r\n\t\t\tdouble tf=calTF(key);\r\n\t\t\tdouble idf=calIDF(key);\r\n\t\t\tdouble tfidf=tf*idf;\r\n\t\t\tw.setId(i);\r\n\t\t\ti++;\r\n\t\t\tw.setName(key);\r\n\t\t\tw.setTfidf(tfidf);\r\n\t\t\tif(word.containsKey(key)){\r\n\t\t\t\tw.setCount((Integer) word.get(key));\r\n\t\t\t}\r\n\t\t\tkeymap.add(w);\r\n\t\t}\r\n\t\tFileHelper.writeTrainFile(keymap);\r\n\t\tFileHelper.writeTestFile(keymap);\r\n\t}", "public int getTermIndex() {return termIndex;}", "public String getKeyWordTableName() {\r\n\t\treturn keyWordTableName;\r\n\t}", "@Override\n public String getTableName() {\n return getFreeTextDocTablename(conf);\n }", "private Vocabulary() {\n }", "public Vector mapDocument(BOW bow, boolean b) {\n //logger.info(\"lsm.mapDocument \" + b);\n SparseVector vector = new SparseVector();\n\n Iterator<String> it = bow.termSet().iterator();\n for (int i = 0; it.hasNext(); i++) {\n //logger.info(i + \" \" + t[i]);\n String term = it.next();\n int index = termIndex.get(term);\n\n if (index != -1) {\n int tf = bow.getFrequency(term);\n float tfIdf = (float) (log2(tf));\n if (b) {\n tfIdf *= Iidf[index];\n }\n\n //logger.info(term + \" ==> \" + index + \", tf.idf = \" + tf + \"(\" + (log2(tf)) + \") * \" + Iidf[index] + \" = \" + tfIdf);\n vector.add(index, tfIdf);\n\n }\n } // end for\n\n return vector;\n }", "void skillsFound( String key ) {\n developer.skills = new ArrayList<>();\n }", "@Override\n\tpublic List<Skill> getSkills() {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\t\n\t\t//create a query\n\t\tQuery<Skill> theQuery = currentSession.createQuery(\"from Skill\", Skill.class);\n\t\t\n\t\t//execute query and get result list\n\t\tList<Skill> skills = theQuery.getResultList();\n\t\t\n\t\t//return the results\n\t\treturn skills;\n\t}", "RepStuLearning selectByPrimaryKey(RepStuLearningKey key);", "public void fillVerbTbl(String sentenceID){\n\t\t// implement me!\n\t}", "WdWordDict selectByPrimaryKey(Long dictId);", "List<WordSchool> selectByExample(WordSchoolExample example);", "public OWLModel getKnowledgeBase();", "@Transactional\r\n\tpublic List<CmVocabularyCategory> getCmVocabularyCategorys() {\r\n\t\treturn dao.findAllWithOrder(CmVocabularyCategory.class, \"modifyTimestamp\", false);\r\n\t}", "public static void caso31(){\n\t FilterManager fm= new FilterManager(\"resources/stopWordsList.txt\",\"resources/useCaseWeight.properties\");\n\t\t\tQualityAttributeBelongable qualityAttributeBelongable = new OntologyManager(\"file:resources/caso3.owl\",\"file:resources/caso3.repository\",fm);\n\t\t\tMap<QualityAttributeInterface,Double> map = qualityAttributeBelongable.getWordPertenence(\"response1\");\n\t\t\tif(map==null){\n\t\t\t\tSystem.out.println(\"El map es null\");\n\t\t\t}else{\n\t\t\t\tMapUtils.imprimirMap(map);\n\t\t\t}\n\t}", "public void setKeyWordTableName(String keyWordTableName) {\r\n\t\tthis.keyWordTableName = keyWordTableName;\r\n\t}", "public static void caso32(){\n\t FilterManager fm= new FilterManager(\"resources/stopWordsList.txt\",\"resources/useCaseWeight.properties\");\n\t\t\tQualityAttributeBelongable qualityAttributeBelongable = new OntologyManager(\"file:resources/caso3.owl\",\"file:resources/caso3.repository\",fm);\n\t\t\tMap<QualityAttributeInterface,Double> map = qualityAttributeBelongable.getWordPertenence(\"response2\");\n\t\t\tif(map==null){\n\t\t\t\tSystem.out.println(\"El map es null\");\n\t\t\t}else{\n\t\t\t\tMapUtils.imprimirMap(map);\n\t\t\t}\n\t}", "WordSchool selectByPrimaryKey(Long id);", "public void AddKeywords()\n\t{\n\t\ttry\n\t\t{\n\t\t\tConnector con = new Connector();\n\t\t\tString query; \n\t\t\t\n\t\t\tfor(int i = 0; i < keywords.size(); i++)\n\t\t\t{\n\t\t\t\tString keyword = keywords.get(i); \n\t\t\t\t\n\t\t\t\tint kid = GetKIDFromWord(keyword); \n\t\t\t\t\n\t\t\t\t//word is not already in table\n\t\t\t\tif(kid == -1)\n\t\t\t\t{\n\t\t\t\t\t//insert word into Keywords \n\t\t\t\t\tSystem.out.println(\"test\"); \n\t\t\t\t\tquery = \"INSERT INTO Keywords(word) VALUE ('\"+keyword+\"')\"; \n\t\t\t \tint intoTable = con.stmt.executeUpdate(query); \n\t\t\t \t\n\t\t\t \t//able to put it in the table\n\t\t\t \tif(intoTable > 0)\n\t\t\t \t{\n\t\t\t \t\t//insert into HasKeywords\n\t\t\t\t \tkid = GetKIDFromWord(keyword); \n\t\t\t\t\t\tquery = \"INSERT INTO HasKeywords(keyword_hid, keyword_kid) VALUE('\"+hid+\"', '\"+kid+\"')\";\n\t\t\t\t \tint hasKey = con.stmt.executeUpdate(query); \n\t\t\t \t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//word is already in table\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tList<Integer> hkCheck = GetHIDSFromKID(kid);\n\t\t\t\t\t\n\t\t\t\t\tboolean inHKTable = false; \n\t\t\t\t\tfor(int j = 0; j < hkCheck.size(); j++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(hkCheck.get(j) == hid)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tinHKTable = true; \n\t\t\t\t\t\t\tbreak; \n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif(inHKTable == false)\n\t\t\t\t\t{\n\t\t\t\t\t\tquery = \"INSERT INTO HasKeywords(keyword_hid, keyword_kid) VALUE('\"+hid+\"', '\"+kid+\"')\";\n\t\t\t\t \tint hasKey = con.stmt.executeUpdate(query); \n\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tcon.closeConnection();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t}", "public final void mRULE_TOKEN_VOCAB() throws RecognitionException {\n try {\n int _type = RULE_TOKEN_VOCAB;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalUniMapperGenerator.g:5095:18: ( 'tokenVocab' )\n // InternalUniMapperGenerator.g:5095:20: 'tokenVocab'\n {\n match(\"tokenVocab\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public static void testDictionary() throws IOException {\n String wnhome=\"c:\\\\Users\\\\Katherine\\\\Documents\\\\2nd sem\\\\IR\\\\project\\\\WordNet_3.1\";\n String path = wnhome + File.separator + \"dict\";\n\n\n URL url = new URL(\"file\", null, path);\n\n IDictionary dictionary = new Dictionary(url);\n dictionary.open();\n // /Users/Ward/Downloads\n IIndexWord indexWord = dictionary.getIndexWord(\"use\", POS.VERB);\n\n for (IWordID wordID : indexWord.getWordIDs()) {\n\n IWord word = dictionary.getWord(wordID);\n for (IWord word1 : word.getSynset().getWords()) {\n System.out.println(word1.getLemma());\n }\n// System.out.println(\"Id = \" + wordID);\n// System.out.println(\" Lemma = \" + word.getLemma());\n// System.out.println(\" Gloss = \" + word.getSynset().getGloss());\n\n List<ISynsetID> hypernyms =\n word.getSynset().getRelatedSynsets(Pointer.HYPERNYM);\n // print out each h y p e r n y m s id and synonyms\n List<IWord> words;\n for (ISynsetID sid : hypernyms) {\n words = dictionary.getSynset(sid).getWords();\n System.out.print(sid + \" {\");\n for (Iterator<IWord> i = words.iterator(); i.hasNext(); ) {\n System.out.print(i.next().getLemma());\n if (i.hasNext())\n System.out.print(\", \");\n }\n System.out.println(\"}\");\n }\n }\n }", "public Vector mapDocument(MultiSet<String> bow) {\n //logger.info(\"lsm.mapDocument\");\n SparseVector vector = new SparseVector();\n\n Iterator<String> it = bow.iterator();\n String term = null;\n int index = 0;\n int tf = 0;\n float tfIdf;\n for (int i = 0; it.hasNext(); i++) {\n //logger.info(i + \" \" + t[i]);\n term = it.next();\n index = termIndex.get(term);\n\n if (index != -1) {\n tf = bow.getFrequency(term);\n tfIdf = (float) (log2(tf)) * Iidf[index];\n\n //logger.info(term + \" ==> \" + index + \", tf.idf = \" + tf + \"(\" + (log2(tf)) + \") * \" + Iidf[index] + \" = \" + tfIdf);\n vector.add(index, tfIdf);\n\n }\n } // end for\n\n return vector;\n }", "public static void writeArchivedVocab(Vocab vocab) {\n String userId = FirebaseAuth.getInstance().getUid();\n Log.d(\"000\", \"writeVocab: \"+userId);\n mDatabase.child(\"user\").child(userId).child(\"archive\").child(vocab.Id).setValue(vocab);\n }", "public List<Term> getAllTerms() {\n\t\tsession.beginTransaction();\n\t\tList<Term> lis = session.createQuery(\"from Term\").list();\n\n\t\tfor (Term tm : lis) {\n\t\t\tSystem.out.println(tm.getId() + \" \" + tm.getTermName());\n\t\t}\n\t\treturn lis;\n\t}", "public WordsWrapper getVocabulariesWrapper() {\n\t\tWordsWrapper wrapper = new WordsWrapper();\n\t\twrapper.mainvocabs = m__vocabs;\n\t\twrapper.referenes = m__referencedwords;\n\t\treturn wrapper;\n\t}", "public interface DictionaryDao<Type extends DictionaryProperty<Id>, Id extends Serializable> {\r\n\t/** \r\n\t * <!-- begin-UML-doc -->\r\n\t * Zwraca wszystkie mozliwe wartosci slownika.\r\n\t * <!-- end-UML-doc -->\r\n\t * @return\r\n\t * @generated \"UML to Java (com.ibm.xtools.transform.uml2.java5.internal.UML2JavaTransform)\"\r\n\t */\r\n\tpublic List<Type> getAll();\r\n}", "@Override\n public Builder limitVocabularySize(int limit) {\n super.limitVocabularySize(limit);\n return this;\n }", "@Override\n public List<DefinitionDTO> findAllWords() {\n List<Word> words = wordRepository.findAll();\n return DTOMapper.mapWordListToDefinitionDTOList(words);\n }", "public interface ArchetypeLevelsSchema {\n\tString TABLE_NAME = \"creature_archetype_levels\";\n\n\tString COLUMN_ARCHETYPE_ID = \"archetypeId\";\n\tString COLUMN_LEVEL = \"level\";\n\tString COLUMN_ATTACK = \"attack\";\n\tString COLUMN_ATTACK2 = \"attack2\";\n\tString COLUMN_DEF_BONUS = \"defensiveBonus\";\n\tString COLUMN_BODY_DEV = \"bodyDevelopment\";\n\tString COLUMN_PRIME_SKILL = \"primeSkill\";\n\tString COLUMN_SECONDARY_SKILL = \"secondarySkill\";\n\tString COLUMN_POWER_DEV = \"powerDevelopment\";\n\tString COLUMN_SPELLS = \"spells\";\n\tString COLUMN_TALENT_DP = \"talentDP\";\n\tString COLUMN_AGILITY = \"agility\";\n\tString COLUMN_CONS_STAT = \"constitutionStat\";\n\tString COLUMN_CONSTITUTION = \"constitution\";\n\tString COLUMN_EMPATHY = \"empathy\";\n\tString COLUMN_INTUITION = \"intuition\";\n\tString COLUMN_MEMORY = \"memory\";\n\tString COLUMN_PRESENCE = \"presence\";\n\tString COLUMN_QUICKNESS = \"quickness\";\n\tString COLUMN_REASONING = \"reasoning\";\n\tString COLUMN_SELF_DISC = \"selfDiscipline\";\n\tString COLUMN_STRENGTH = \"strength\";\n\n\tString TABLE_CREATE = \"CREATE TABLE IF NOT EXISTS \"\n\t\t\t+ TABLE_NAME\n\t\t\t+ \" (\"\n\t\t\t+ COLUMN_ARCHETYPE_ID + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_LEVEL + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_ATTACK + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_ATTACK2 + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_DEF_BONUS + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_BODY_DEV + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_PRIME_SKILL + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_SECONDARY_SKILL + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_POWER_DEV + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_SPELLS + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_TALENT_DP + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_AGILITY + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_CONS_STAT + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_CONSTITUTION + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_EMPATHY + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_INTUITION + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_MEMORY + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_PRESENCE + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_QUICKNESS + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_REASONING + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_SELF_DISC + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_STRENGTH + \" INTEGER NOT NULL, \"\n\t\t\t+ \"PRIMARY KEY(\" + COLUMN_ARCHETYPE_ID + \",\" + COLUMN_LEVEL + \")\"\n\t\t\t+ \")\";\n\n\tString[] COLUMNS = new String[] { COLUMN_ARCHETYPE_ID, COLUMN_LEVEL, COLUMN_ATTACK, COLUMN_ATTACK2, COLUMN_DEF_BONUS,\n\t\t\tCOLUMN_BODY_DEV, COLUMN_PRIME_SKILL, COLUMN_SECONDARY_SKILL, COLUMN_POWER_DEV, COLUMN_SPELLS, COLUMN_TALENT_DP,\n\t\t\tCOLUMN_AGILITY, COLUMN_CONS_STAT, COLUMN_CONSTITUTION, COLUMN_EMPATHY, COLUMN_INTUITION, COLUMN_MEMORY,\n\t\t\tCOLUMN_PRESENCE, COLUMN_QUICKNESS, COLUMN_REASONING, COLUMN_SELF_DISC, COLUMN_STRENGTH};\n}", "public static void moveCorrectToArchive(Vocab vocab){\n\n DatabaseReference vocabRef=FirebaseDatabase.getInstance().getReference().child(\"user\").child(FirebaseAuth.getInstance().getUid()).child(\"vocab\").child(vocab.Id);\n vocabRef.removeValue();\n archiveVocabs.add(vocab);\n writeArchivedVocab(vocab);\n\n }", "Terms selectByPrimaryKey(Integer id);", "public Iterator words() {\n return index.keySet().iterator();\n }", "public Word getWord(int id);", "public List search() {\n\t\tSessionFactory sf = new Configuration().configure()\n\t\t\t\t.buildSessionFactory();\n\t\tSession s = sf.openSession();\n\t\tQuery q = s.createQuery(\"from cat_vo\");\n\t\tList ls = q.list();\n\t\treturn ls;\n\t}", "public List<Term> getAllTermsByDictionary(String table, String dictionary) {\n List<Term> termList = new ArrayList<Term>();\n\n // Select All Query\n String selectQuery = \"SELECT * FROM \" + table + \" WHERE \" + KEY_DICTIONARY + \" = '\" + dictionary + \"' ORDER BY \" + KEY_TERM;\n\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor cursor = db.rawQuery(selectQuery, null);\n\n // looping through all rows and adding to list\n if (cursor.moveToFirst()) {\n do {\n if (!cursor.getString(2).isEmpty()) {\n /*\n Term term = new Term();\n term.setId(Integer.parseInt(cursor.getString(0)));\n term.setDictionary(cursor.getString(1));\n term.setTerm(cursor.getString(2));\n term.setSubject(cursor.getString(3));\n term.setDefinition(cursor.getString(4));\n term.setSynonyms(cursor.getString(5));\n */\n Term term = new Term(Integer.parseInt(cursor.getString(0)),cursor.getString(1), cursor.getString(2), cursor.getString(3),\n cursor.getString(4), cursor.getString(5), Integer.parseInt(cursor.getString(6)));\n // Adding term to list\n termList.add(term);\n }\n } while (cursor.moveToNext());\n }\n\n // return term list\n return termList;\n }", "Integer getSkillCount( String key ){\n return developer.skills.size();\n }", "public List<Skill> findAll(){\n return (List<Skill>) skillRepository.findAll();\n }", "public Courses getCourseTable();", "@Override\n protected Builder useExistingWordVectors(@NonNull WordVectors vec) {\n return this;\n }", "private void indexRelations(String inputFile, FlagConfig flagConfig) throws IOException {\n this.elementalVectors = VectorStoreRAM.readFromFile(\n flagConfig, \"C:\\\\Users\\\\dwiddows\\\\Data\\\\QI\\\\Gutterman\\\\termtermvectors.bin\");\n this.flagConfig = flagConfig;\n this.proportionVectors = new ProportionVectors(flagConfig);\n this.luceneUtils = new LuceneUtils(flagConfig);\n VectorStoreWriter writer = new VectorStoreWriter();\n\n // Turn all the text lines into parsed records.\n this.parseInputFile(inputFile);\n\n // Now the various indexing techniques.\n VectorStoreRAM triplesVectors = new VectorStoreRAM(flagConfig);\n VectorStoreRAM triplesPositionsVectors = new VectorStoreRAM(flagConfig);\n VectorStoreRAM dyadsVectors = new VectorStoreRAM(flagConfig);\n VectorStoreRAM dyadsPositionsVectors = new VectorStoreRAM(flagConfig);\n VectorStoreRAM verbsVectors = new VectorStoreRAM(flagConfig);\n VectorStoreRAM verbsPositionsVectors = new VectorStoreRAM(flagConfig);\n\n for (String docName : this.parsedRecords.keySet()) {\n Vector tripleDocVector = VectorFactory.createZeroVector(flagConfig.vectortype(), flagConfig.dimension());\n Vector tripleDocPositionVector = VectorFactory.createZeroVector(flagConfig.vectortype(), flagConfig.dimension());\n Vector dyadDocVector = VectorFactory.createZeroVector(flagConfig.vectortype(), flagConfig.dimension());\n Vector dyadDocPositionVector = VectorFactory.createZeroVector(flagConfig.vectortype(), flagConfig.dimension());\n Vector verbDocVector = VectorFactory.createZeroVector(flagConfig.vectortype(), flagConfig.dimension());\n Vector verbDocPositionVector = VectorFactory.createZeroVector(flagConfig.vectortype(), flagConfig.dimension());\n\n for (ParsedRecord record : this.parsedRecords.get(docName)) {\n Vector tripleVector = this.getPsiTripleVector(record);\n tripleDocVector.superpose(tripleVector, 1, null);\n\n this.bindWithPosition(record, tripleVector);\n tripleDocPositionVector.superpose(tripleVector, 1, null);\n\n Vector dyadVector = this.getPsiDyadVector(record);\n dyadDocVector.superpose(dyadVector, 1, null);\n this.bindWithPosition(record, dyadVector);\n dyadDocPositionVector.superpose(dyadVector, 1, null);\n\n Vector verbVector = this.vectorForString(record.predicate);\n verbDocVector.superpose(verbVector, 1, null);\n this.bindWithPosition(record, verbVector);\n verbDocPositionVector.superpose(verbVector, 1, null);\n }\n\n triplesVectors.putVector(docName, tripleDocVector);\n triplesPositionsVectors.putVector(docName, tripleDocPositionVector);\n dyadsVectors.putVector(docName, dyadDocVector);\n dyadsPositionsVectors.putVector(docName, dyadDocPositionVector);\n verbsVectors.putVector(docName, verbDocVector);\n verbsPositionsVectors.putVector(docName, verbDocPositionVector);\n }\n\n for (VectorStore vectorStore : new VectorStore[] {\n triplesVectors, triplesPositionsVectors, dyadsVectors, dyadsPositionsVectors, verbsVectors, verbsPositionsVectors }) {\n Enumeration<ObjectVector> vectorEnumeration = vectorStore.getAllVectors();\n while (vectorEnumeration.hasMoreElements())\n vectorEnumeration.nextElement().getVector().normalize();\n }\n\n writer.writeVectors(TRIPLES_OUTPUT_FILE, flagConfig, triplesVectors);\n writer.writeVectors(TRIPLES_POSITIONS_OUTPUT_FILE, flagConfig, triplesPositionsVectors);\n\n writer.writeVectors(DYADS_OUTPUT_FILE, flagConfig, dyadsVectors);\n writer.writeVectors(DYADS_POSITIONS_OUTPUT_FILE, flagConfig, dyadsPositionsVectors);\n\n writer.writeVectors(VERBS_OUTPUT_FILE, flagConfig, verbsVectors);\n writer.writeVectors(VERBS_POSITIONS_OUTPUT_FILE, flagConfig, verbsPositionsVectors);\n }", "int getConceptLanguagesCount();", "@Override\n public Builder lookupTable(@NonNull WeightLookupTable<VocabWord> lookupTable) {\n super.lookupTable(lookupTable);\n return this;\n }", "WordBean getWord(String word);", "public List<Product> search(String word, String codigo) {\n\t\tSession session = getSessionFactory().openSession();\n\t\treturn null;\n\t}", "private void invertedToDatabase(){\r\n cleFreq = new HashMap<>();\r\n System.out.println(\"Strat collecting\");\r\n Map<String,List<Invertedindex>> collects = collecting();\r\n System.out.println(\"Ending collecting\");\r\n Database.getInstance().invertedIndex(collects);\r\n Database.getInstance().addPoids(cleFreq);\r\n }", "@SuppressWarnings({ \"deprecation\", \"unchecked\", \"rawtypes\" })\n\tpublic String generateWordlists(Corpus co) {\n\t\tlong startTime = System.currentTimeMillis();\n\t\t// Set up weka word vector\n\t\tFastVector attributes;\n\t\tInstances dataSet;\n\t\tattributes = new FastVector();\n\n\t\tattributes.addElement(new Attribute(\"aspect_id\", (FastVector) null));\n\t\tattributes.addElement(new Attribute(\"tokens\", (FastVector) null));\n\n\t\tdataSet = new Instances(\"BeerAspects\", attributes, 0);\n\n\t\tCorpus topReviews;\n\t\tCorpus lowReviews;\n\n\t\t// Do top and low for all aspects\n\t\tfor (Aspect aspect : Aspect.values()) {\n\n\t\t\t// Only for actual aspects\n\t\t\tif (aspect.equals(Aspect.NONE) || aspect.equals(Aspect.OVERALL))\n\t\t\t\tcontinue;\n\n\t\t\ttopReviews = co.getTopReviews(aspect);\n\t\t\ttopReviews.analyze();\n\t\t\tString tokens = topReviews.getTokenConcatenation(aspect);\n\n\t\t\tInstance instance = new SparseInstance(2);\n\t\t\tinstance.setValue((Attribute) attributes.elementAt(0), aspect.name() + \"_TOP\");\n\t\t\tinstance.setValue((Attribute) attributes.elementAt(1), tokens);\n\n\t\t\tdataSet.add(instance);\n\n\t\t\tlowReviews = co.getLowReviews(aspect);\n\t\t\tlowReviews.analyze();\n\t\t\ttokens = lowReviews.getTokenConcatenation(aspect);\n\t\t\t// System.out.println(tokens);\n\n\t\t\tinstance = new SparseInstance(2);\n\t\t\tinstance.setValue((Attribute) attributes.elementAt(0), aspect.name() + \"_LOW\");\n\t\t\tinstance.setValue((Attribute) attributes.elementAt(1), tokens);\n\n\t\t\tdataSet.add(instance);\n\t\t}\n\n\t\t// System.out.println(dataSet.toString());\n\t\tInstances dataFiltered = transformToWordVector(dataSet, co.getProps());\n\n\t\t// System.out.println(dataFiltered.toString());\n\t\tString pathsToLists = writeWordlists(dataFiltered);\n\n\t\twriteArffFile(dataFiltered, this.outputDir+\"wordvector.arff\");\n\n\t\tlong stopTime = System.currentTimeMillis();\n\t\tlong elapsedTime = stopTime - startTime;\n\t\tSystem.out.println(\"Generated wordlists in: \" + elapsedTime / 1000 + \" s\");\n\t\treturn pathsToLists;\n\t}", "boolean putWord(WordBean wordBean);", "public Table<Integer, Integer, String> getAnonymizedData();", "public static void caso12(){\n\n FilterManager fm= new FilterManager(\"resources/stopWordsList.txt\",\"resources/useCaseWeight.properties\");\n\t\tQualityAttributeBelongable qualityAttributeBelongable = new OntologyManager(\"file:resources/caso1.owl\",\"file:resources/caso1.repository\",fm);\n\t\tMap<QualityAttributeInterface,Double> map = qualityAttributeBelongable.getWordPertenence(\"pan\");\n\t\tif(map==null){\n\t\t\tSystem.out.println(\"El map es null\");\n\t\t}\n\t}", "public void addToJurisdictions(entity.AppCritJurisdiction element);", "public static void caso11(){\n\t\t\n FilterManager fm= new FilterManager(\"resources/stopWordsList.txt\",\"resources/useCaseWeight.properties\");\n\t\tQualityAttributeBelongable qualityAttributeBelongable = new OntologyManager(\"file:resources/caso1.owl\",\"file:resources/caso1.repository\",fm);\n\t\tMap<QualityAttributeInterface,Double> map = qualityAttributeBelongable.getWordPertenence(\"response\");\n\t\tMapUtils.imprimirMap(map);\n\t}", "public String getNomTable();", "public void init() {\n File file=new File(\"D:\\\\lucene\\\\index\");\n if(file.isDirectory())\n { //否则如果它是一个目录\n File files[] = file.listFiles(); //声明目录下所有的文件 files[];\n for(int i=0;i<files.length;i++)\n { //遍历目录下所有的文件\n files[i].delete(); //把每个文件 用这个方法进行迭代\n }\n }\n String indexPath = \"D:\\\\lucene\\\\index\";\n //String docsPath = \"D:\\\\lucene\\\\data\";\n boolean create = true;\n try\n {\n Session session=factory.openSession();\n String hql = \"from Book\";\n org.hibernate.Query query = session.createQuery(hql);\n List<Book> list=query.list();\n Directory indexDir = FSDirectory.open(Paths.get(\"D:\\\\lucene\\\\index\"));\n Analyzer luceneAnalyzer = new StandardAnalyzer(); //新建一个分词器实例 \n IndexWriterConfig config = new IndexWriterConfig(luceneAnalyzer); \n IndexWriter indexWriter = new IndexWriter(indexDir,config);\n for(int i=0;i<list.size();i++)\n {\n Document document = new Document();\n Field field1 = new StringField(\"id\",list.get(i).getBookid().toString(),Field.Store.YES); \n Field field2 = new StringField(\"bookname\",list.get(i).getBookname(),Field.Store.YES); \n Field field3 = new StringField(\"author\",list.get(i).getAuthor(),Field.Store.YES); \n Field field4 = new StringField(\"category\",list.get(i).getCategory(),Field.Store.YES); \n Field field5 = new StringField(\"price\", Double.toString(list.get(i).getPrice()),Field.Store.YES); \n document.add(field1); \n document.add(field2); \n document.add(field3); \n document.add(field4);\n document.add(field5);\n indexWriter.addDocument(document);\n }\n indexWriter.close();\n }\n catch(IOException e)\n {\n System.out.println(\"error\");\n return;\n }\n }", "hr.domain.ResumeDBOuterClass.Education getEducations(int index);", "hr.domain.ResumeDBOuterClass.Experience getExperiences(int index);", "public void fillNounTbl(String sentenceID){\n\t\t// implement me!\n\t}", "void createOrUpdateVocabulary(final VocabularyPE vocabularyPE);", "@Override\n public Builder iterate(@NonNull SequenceIterator<VocabWord> iterator) {\n super.iterate(iterator);\n return this;\n }", "private void createFreqVector(Path file) {\r\n\t\t\tVector vector = new Vector(vocabulary.size());\r\n\t\t\tList<String> lines;\r\n\t\t\ttry {\r\n\t\t\t\tlines = Files.readAllLines(file);\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tSet<String> words = new HashSet<>();\r\n\t\t\t//create frequency vector of words in single document -> tf(w,d)\r\n\t\t\tfor (String line : lines) {\r\n\t\t\t\tif (line.isEmpty()) continue;\r\n\t\t\t\tString[] values = p.split(line);\r\n\t\t\t\tfor (String value : values) { \r\n\t\t\t\t\tif (value.isEmpty()) continue;\r\n\t\t\t\t\tString lowWord = value.toLowerCase().trim();\r\n\t\t\t\t\t\r\n\t\t\t\t\tInteger[] arr = vocabulary.get(lowWord);\r\n\t\t\t\t\tif (arr == null) continue;\r\n\t\t\t\t\tvector.incrementValueAt(arr[0]);\r\n\t\t\t\t\tif (words.add(lowWord)) {\r\n\t\t\t\t\t\t arr[1] += 1;\t//first time occurrence of this word in document\r\n\t\t\t\t\t\tvocabulary.put(lowWord, arr);\t//increment number of documents for this word\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\tfreqVectors.put(file, vector);\t\t\r\n\t\t}", "private String[][] getMoodsTableValues() {\n String soso = DBTypesKeys.SO_SO_MOOD.getTypeValue();\n String sad = DBTypesKeys.SAD_MOOD.getTypeValue();\n String angry = DBTypesKeys.ANGRY_MOOD.getTypeValue();\n String happy = DBTypesKeys.HAPPY_MOOD.getTypeValue();\n // moods table\n return new String[][]{\n //moods hi answers by answers // id_ (enum index + 1)\n { soso, \"hey\", \"by\"}, // 1\n { sad, \"welcome to sad world\", \"so, you too ...\"}, // 2\n { angry, \"get out!\", \"thanks god, you away\"}, // 3\n { happy, \"hi! glad to see you =)\", \"good luck, buddy\"} // 4\n };\n }", "private VocabularyTerms getVocabularyTerms(Collection<CMAContentType> vocabularies) {\n VocabularyTerms vocabularyTerms = new VocabularyTerms();\n vocabularies\n .forEach(contentType -> {\n //Keeps the country vocabulary ID for future use\n if (contentType.getName().equals(configuration.getCountryVocabulary())) {\n vocabularyTerms.loadCountryVocabulary(contentType);\n } else {\n //Loads vocabulary into memory\n vocabularyTerms.loadVocabulary(contentType);\n }\n });\n return vocabularyTerms;\n }", "public static String getTokenVocabFromGrammar(String text) {\n\t\t// TODO: unneeded. use antlr Tool. Kill?\n//\t\tParsingResult r = parseANTLRGrammar(text);\n//\t\tif ( r.tree!=null ) { //&& r.syntaxErrorListener.getSyntaxErrors().size()==0 ) {\n//\t\t\t// option : id ASSIGN optionValue ;\n//\t\t\tCollection<ParseTree> options = XPath.findAll(r.tree, \"//option\", r.parser);\n//\t\t\tfor (Iterator<ParseTree> it = options.iterator(); it.hasNext(); ) {\n//\t\t\t\tANTLRv4Parser.OptionContext option = (ANTLRv4Parser.OptionContext)it.next();\n//\t\t\t\tif ( option.id().getText().equals(\"tokenVocab\") ) {\n//\t\t\t\t\t/*\n//\t\t\t\t\toptionValue\n//\t\t\t\t\t\t:\tid (DOT id)*\n//\t\t\t\t\t\t|\tSTRING_LITERAL\n//\t\t\t\t\t\t|\tACTION\n//\t\t\t\t\t\t|\tINT\n//\t\t\t\t\t\t;\n//\t\t\t\t\t */\n//\t\t\t\t\tANTLRv4Parser.OptionValueContext optionValue = option.optionValue();\n//\t\t\t\t\tif ( optionValue.STRING_LITERAL()!=null ) {\n//\t\t\t\t\t\tString s = optionValue.STRING_LITERAL().getText();\n//\t\t\t\t\t\treturn RefactorUtils.getLexerRuleNameFromLiteral(s);\n//\t\t\t\t\t}\n//\t\t\t\t\tif ( optionValue.id(0)!=null ) {\n//\t\t\t\t\t\treturn optionValue.id(0).getText();\n//\t\t\t\t\t}\n//\t\t\t\t}\n//\t\t\t}\n//\t\t}\n\t\treturn null;\n\t}", "private Resolution getVocabularyConceptResolution() {\r\n HttpServletRequest httpRequest = getContext().getRequest();\r\n String url = httpRequest.getRequestURL().toString();\r\n // String query = httpRequest.getQueryString();\r\n \r\n String[] parameters = StringUtils.split(StringUtils.substringAfter(url, \"/vocabulary/\"), \"/\");\r\n \r\n if (parameters.length >= 2) {\r\n if (!RESERVED_VOCABULARY_EVENTS.contains(parameters[1])) {\r\n RedirectResolution resolution = new RedirectResolution(VocabularyConceptActionBean.class, \"view\");\r\n resolution.addParameter(\"vocabularyFolder.identifier\", parameters[0]);\r\n resolution.addParameter(\"vocabularyConcept.identifier\", parameters[1]);\r\n resolution.addParameter(\"vocabularyFolder.workingCopy\", vocabularyFolder.isWorkingCopy());\r\n \r\n return resolution;\r\n }\r\n }\r\n \r\n return null;\r\n }", "public SPARQL() {\n initComponents();\n \n model = ModelFactory.createOntologyModel(OntModelSpec.OWL_LITE_MEM_RDFS_INF);\n model.setDynamicImports(true);\n model.read(\"file:\"+\"data/ontologies/Papers_Ready.owl\", \"http://www.l3g.pl/ontologies/OntoBeef/Papers.owl\", \"N-TRIPLE\");\n model.loadImports();\n \n for (Individual i : model.listIndividuals(model.getOntClass(\"http://www.l3g.pl/ontologies/OntoBeef/Conceptualisation.owl#Category\")).toSet())\n {\n System.out.println(i.listLabels(null).toSet());\n }\n }", "@Override\n public AutoBuffer write_impl(AutoBuffer ab) {\n if (_vocabHM == null) return ab.put1(1); // killed\n\n int strLen = 0;\n for (ValueStringCount val : VOCABHM.values())\n strLen += val.length();\n ab.put1(0); // not killed\n ab.put4(strLen); //length of string buffer\n for (ValueStringCount val : VOCABHM.values())\n ab.put2((char) val.length()).putA1(val.getBuffer(), val.getOffset(), val.getOffset() + val.length()).put8(val._cnt);\n return ab.put2((char) 65535); // End of map marker\n }", "@SuppressWarnings(\"unchecked\")\r\n\tpublic static void main(String[] args) throws IOException {\n\t\tSchema s = new Schema(\"Estudiantes\",\"C:\\\\Users\\\\morazan\\\\Desktop\\\\com\\\\idk\\\\ac\\\\cr\");\r\n\n\t\tSchemaJoin j = new SchemaJoin(\"Notas\",\"C:\\\\Users\\\\morazan\\\\Desktop\\\\com\\\\idk\\\\ac\\\\cr\");\r\n\r\n\t\t//Creates an index in the regular schema\r\n\t\ts.createIndex(\"bts\", \"string\", \"Nombre\", 10);\r\n\t\ts.createIndex(\"avl\", \"number\", \"aņo\", 4);\r\n\t\ts.createIndex(\"avl\", \"image\", \"Imagen\", 0);\r\n\t\tj.joinSchema(s);\r\n\t\tj.createJoinedIndex(\"avl\", \"number\", \"Notas\", 2);\r\n\t\t\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"Inserting I \");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\ts.insertToIndex(1, \"JP\");\r\n\t\ts.insertToIndex(1, \"Randy\");\r\n\t\ts.insertToIndex(1, \"Alejandra\");\r\n//\t\ts.insertToIndex(1, \"Xcreed\");\r\n\t\ts.insertToIndex(2, 1996);\r\n\t\ts.insertToIndex(2, 1995);\r\n\t\ts.insertToIndex(2, 1997);\n\t\ts.insertToIndex(3, \"SchemaExtraFiles/2.jpg\");\n\t\ts.insertToIndex(3, \"SchemaExtraFiles/8.jpg\");\n\t\ts.insertToIndex(3, \"SchemaExtraFiles/4.jpg\");\n\t\t\n\t\tIndexBTS index = (IndexBTS) s.schema.getItem(1);\r\n\t\tBinarySearchTree t = (BinarySearchTree) index.tree;\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"Traversal I\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tt.inOrderTraversal();\r\n\t\t\n\t\tIndexAVL index2 = (IndexAVL) s.schema.getItem(2);\r\n\t\tAVLTree t2 = (AVLTree) index2.getTree();\r\n\t\tSystem.out.println(\"avl order\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"Traversal II\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\n\t\tt2.inorder();\n\t\t\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"Inserting II \");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tj.insertToIndex(1, 80);\r\n\t\tj.insertToIndex(1, 82);\r\n\t\tj.insertToIndex(1, 78);\t\t\t\r\n\t\t\r\n//\t\tSystem.out.println(s.search(\"JP\"));\r\n//\t\tSystem.out.println(s.deleteInIndex(1,\"JP\"));\r\n//\t\tSystem.out.println(s.search(\"JP\"));\r\n\t\t\r\n\t\tSystem.out.println(\"Getting line 1\");\r\n\t\ts.getLine(1);\r\n//\t\ts.deleteLine(1);\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"Searching 82 \");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tj.joinedSearch(82);\r\n\r\n\t\t//Deletes an index in the schema\r\n//\t\ts.schema.print();\r\n//\t\ts.deleteIndex(1);\r\n//\t\ts.schema.print();\r\n\t\t\r\n// ***********Activate Separately**********\r\n\t\t\r\n//\t\ts.createIndex(\"bts\", \"video\", \"Videos\", 0);\r\n//\t\ts.insertToIndex(1, \"SchemaExtraFiles/Trike Drifting.mp4\");\r\n\t\t\r\n//\t***************************************\r\n\t\t\r\n\t\tJSONProtocol json = new JSONProtocol();\r\n\t\tjson.writeSchema(s);\r\n\t\t\t\t\r\n\t\t\r\n\t}", "TableId table();", "public boolean buildVocab() {\n readStopWords();\n\n if(cache.vocabExists()) {\n log.info(\"Loading vocab...\");\n cache.loadVocab();\n cache.resetWeights();\n return true;\n }\n\n //vectorizer will handle setting up vocab meta data\n if(vectorizer == null)\n vectorizer = new TfidfVectorizer.Builder()\n .cache(cache).iterate(docIter).iterate(sentenceIter)\n .minWords(minWordFrequency).stopWords(stopWords)\n .tokenize(tokenizerFactory).build();\n vectorizer.fit();\n\n setup();\n\n return false;\n }", "public List<Kateggorija> getSviGlumci() {\n List<Kateggorija> glumci=null;\n try {\n glumci= getDaoKateggorija().queryForAll();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n return glumci;\n }", "@VTID(10)\n int getIndex();", "Skill getSkill(Long skillId) throws DbException;", "public List<String> GetKeywords()\n\t{\n\t\tList<String> words = new ArrayList<String>(); \n\t\ttry\n\t\t{\n\t\t\tConnector con = new Connector();\n\t \n\t String query = \"SELECT keyword_kid FROM HasKeywords WHERE keyword_hid = '\"+hid+\"'\"; \n\t ResultSet rs = con.stmt.executeQuery(query); \n\t \n\t List<Integer> k_ids = new ArrayList<Integer>(); \n\t while(rs.next())\n\t {\n\t \tint new_id = rs.getInt(\"keyword_kid\"); \n\t \tk_ids.add(new_id); \n\t }\n\t \n\t for(int i = 0; i < k_ids.size(); i++)\n\t {\n\t \tquery = \"SELECT word FROM Keywords WHERE k_id = '\"+k_ids.get(i)+\"'\"; \n\t \trs = con.stmt.executeQuery(query); \n\t \twhile(rs.next())\n\t \t{\n\t \t\tString kw = rs.getString(\"word\"); \n\t \t\twords.add(kw); \n\t \t}\n\t }\n\t \n\t con.closeConnection();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\tkeywords = words; \n\t\treturn keywords; \n\t}", "java.lang.String getSemanticLangidModelName();", "public interface DBSDictionary\n{\n /**\n * Checks that this constrain supports key enumerations.\n * Usually it depends on constraint type (enumerations makes sense only for unique constraints).\n * @return true or false\n */\n boolean supportsDictionaryEnumeration();\n\n /**\n * Gets enumeration values\n *\n * @param monitor session\n * @param keyColumn enumeration column.\n * @param keyPattern pattern for enumeration values. If null or empty then returns full enumration set\n * @param searchText\n * @param preceedingKeys other constrain key values. May be null.\n * @param caseInsensitiveSearch use case-insensitive search for {@code keyPattern}\n * @param sortAsc ascending sorting (irrelevant is {@code sortByValue} is false)\n * @param sortByValue sort results by value\n * @param offset enumeration values offset in result set\n * @param maxResults maximum enumeration values in result set\n * @return statement with result set which contains valid enumeration values.\n */\n @NotNull\n List<DBDLabelValuePair> getDictionaryEnumeration(\n @NotNull DBRProgressMonitor monitor,\n @NotNull DBSEntityAttribute keyColumn,\n @Nullable Object keyPattern,\n @Nullable String searchText,\n @Nullable List<DBDAttributeValue> preceedingKeys,\n boolean caseInsensitiveSearch,\n boolean sortAsc,\n boolean sortByValue,\n int offset,\n int maxResults\n ) throws DBException;\n\n @NotNull\n List<DBDLabelValuePair> getDictionaryValues(\n @NotNull DBRProgressMonitor monitor,\n @NotNull DBSEntityAttribute keyColumn,\n @NotNull List<Object> keyValues,\n @Nullable List<DBDAttributeValue> preceedingKeys,\n boolean sortByValue,\n boolean sortAsc\n ) throws DBException;\n\n @NotNull\n DBSDictionaryAccessor getDictionaryAccessor(\n @NotNull DBRProgressMonitor monitor,\n @Nullable List<DBDAttributeValue> precedingKeys,\n @NotNull DBSEntityAttribute keyColumn,\n boolean sortAsc,\n boolean sortByDesc\n ) throws DBException;\n}", "@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)\n\tpublic List<AssetVocabulary> getAttachedVocabularies(long groupId);", "public static List<Book> getBookCategory() throws HibernateException{\r\n \r\n session = sessionFactory.openSession();\r\n session.beginTransaction();\r\n \r\n Query query=session.getNamedQuery(\"INVENTORY_getBookCategory\");\r\n List<Book> bookLocationList=query.list();\r\n \r\n session.getTransaction().commit();\r\n session.close();\r\n \r\n return bookLocationList;\r\n}", "public void train(Corpus[] trainingData) {\n\t\tSet<String> vocabulary = super.mergeVocabulary(trainingData);\n\t\ttrainingData[0].setVocabulary(vocabulary);\n\t\ttrainingData[1].setVocabulary(vocabulary);\n\t\tposMatrix = new TransitionMatrix(trainingData[0]);\n\t\tnegMatrix = new TransitionMatrix(trainingData[1]);\n\t}", "public void AddInDB(Word newWord) throws SQLException {\n String insertQuery = \"INSERT INTO tbltest(word,pronunciation,define) VALUES(?,?,?)\";\r\n ps = con.prepareStatement(insertQuery);\r\n ps.setString(1, newWord.getWord());\r\n ps.setString(2, newWord.getPronunciation());\r\n ps.setString(3, newWord.getDefine());\r\n\r\n ps.executeUpdate();\r\n }", "public static void caso41(){\n FilterManager fm= new FilterManager(\"resources/stopWordsList.txt\",\"resources/useCaseWeight.properties\");\n\t\tQualityAttributeBelongable qualityAttributeBelongable = new OntologyManager(\"file:resources/caso4.owl\",\"file:resources/caso4.repository\",fm);\n\t\tMap<QualityAttributeInterface,Double> map = qualityAttributeBelongable.getWordPertenence(\"response1\");\n\t\tif(map==null){\n\t\t\tSystem.out.println(\"El map es null\");\n\t\t}else{\n\t\t\tMapUtils.imprimirMap(map);\n\t\t}\n\t}", "@Select(\"select id,item from dicts where id in (23,24,25,26,27)\")\n\tList<Dict> findLevels();", "public interface IJavaDocAttributDao\n{\n List<JavaDocAttribut> getJavaDocAttributs(int idJavaDocMethode);\n}" ]
[ "0.5714772", "0.5634642", "0.54471385", "0.5296146", "0.5199113", "0.49331725", "0.49329886", "0.4925552", "0.49100333", "0.49073565", "0.48575464", "0.4840506", "0.48176134", "0.47540638", "0.4731969", "0.47130308", "0.46997505", "0.46928567", "0.46592632", "0.46315858", "0.46308562", "0.4628427", "0.4613438", "0.4607982", "0.46033806", "0.45581195", "0.45454577", "0.45442265", "0.45386803", "0.45275065", "0.452028", "0.4503016", "0.4500965", "0.44867927", "0.44754398", "0.44700065", "0.4461962", "0.44616178", "0.44392928", "0.44261026", "0.43990988", "0.43955937", "0.43947372", "0.4391834", "0.43790415", "0.4373947", "0.43707538", "0.43700558", "0.43560442", "0.43444037", "0.43359932", "0.4334978", "0.4331108", "0.43275934", "0.43246162", "0.4323478", "0.432252", "0.43204546", "0.43167415", "0.4313692", "0.43123078", "0.43018934", "0.42899582", "0.42859036", "0.4279804", "0.42734304", "0.42709267", "0.42542967", "0.4249365", "0.4246521", "0.42383584", "0.42374423", "0.42311075", "0.42302102", "0.4229986", "0.4227258", "0.42229605", "0.42228934", "0.422011", "0.42189792", "0.42158115", "0.42145696", "0.42105144", "0.4207044", "0.42064056", "0.41962886", "0.4194155", "0.41941473", "0.41919973", "0.41892615", "0.41883606", "0.41852176", "0.4182343", "0.41803232", "0.41759124", "0.41734546", "0.41732693", "0.41713014", "0.41704375", "0.416942", "0.41672277" ]
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table wd_vocab
public List<Criteria> getOredCriteria() { return oredCriteria; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<VocabWord> document(int index);", "int[] documents(VocabWord vocabWord);", "public static void writeVocab(Vocab vocab) {\n String userId = FirebaseAuth.getInstance().getUid();\n Log.d(\"000\", \"writeVocab: \"+userId);\n mDatabase.child(\"user\").child(userId).child(\"vocab\").child(vocab.Id).setValue(vocab);\n }", "void addWordsToDoc(int doc,List<VocabWord> words);", "void addWordToDoc(int doc,VocabWord word);", "public VocabularyTerms() {}", "public Vector mapDocument(BOW bow) {\n //logger.info(\"lsm.mapDocument\");\n SparseVector vector = new SparseVector();\n\n Iterator<String> it = bow.termSet().iterator();\n String term = null;\n int index = 0;\n //int tf = 0;\n float tfIdf;\n for (int i = 0; it.hasNext(); i++) {\n //logger.info(i + \" \" + t[i]);\n term = it.next();\n index = termIndex.get(term);\n\n if (index != -1) {\n //tf = bow.getFrequency(term);\n //tfIdf = (float) (log2(tf)) * Iidf[index];\n //tfIdf = (float) bow.augmentedFrequency(term) * Iidf[index];\n tfIdf = (float) bow.tf(term) * Iidf[index];\n //logger.info(term + \" ==> \" + index + \", tf.idf = \" + tf + \"(\" + (log2(tf)) + \") * \" + Iidf[index] + \" = \" + tfIdf);\n vector.add(index, tfIdf);\n\n }\n } // end for\n\n return vector;\n }", "@Id\n @Column(name=\"term_key\")\n public int getTermKey() {\n\treturn termKey;\n }", "public WdVocabExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "private static void setWordPosition() {\n\t\tSet setKeys = Utility.vocabHM.keySet();\n\t\tIterator i = setKeys.iterator();\n\t\tint position = 0;\n\t\twhile (i.hasNext()) {\n\t\t\tString w = (String) i.next();\n\t\t\tInteger rows[] = new Integer[2];\n\t\t\trows[0] = new Integer(position); /* word position */\n\t\t\trows[1] = (Integer) Utility.vocabHM.get(w); /* df */\n\n\t\t\tUtility.vocabHM.put(w, rows);\n\t\t\tposition++;\n\t\t}\n\t}", "public Vector<Word> allKeyValue(){\n\n\tVector<Word> words = new Vector<Word>();\n\tfor(int w = 0; w < theTable.length; w++){\n\t // System.out.println(\"w: \" + w);\n\t // System.out.println(\"theTable[w]: \" + theTable[w]);\n\t if(theTable[w] != null){\n\t\twords.addElement(theTable[w]);\n\t }\n\t}\n\treturn words;\n }", "public static void deleteVocab(Context context){\n Toast.makeText(context, \"deleted\", Toast.LENGTH_SHORT).show();\n DatabaseReference vocabRef=FirebaseDatabase.getInstance().getReference().child(\"user\").child(FirebaseAuth.getInstance().getUid()).child(\"vocab\").child(currentVocabId);\n vocabRef.removeValue();\n }", "public Controlador(boolean newTable){\n if(newTable){\n vocabulario = new TSB_OAHashtable<>();\n }\n }", "public static void initVocabData() {\n FirebaseDatabase.getInstance().getReference().child(\"user\").child(FirebaseAuth.getInstance().getUid()).child(\"vocab\")\n .addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n staticVocabs.clear();\n for(DataSnapshot snapshot: dataSnapshot.getChildren() ){\n Vocab vocab = snapshot.getValue(Vocab.class);\n staticVocabs.add(vocab);\n size=1;\n }\n vocabsAdapter.notifyDataSetChanged();\n if (staticVocabs.size()==0){\n vocabsRecyclerView.setVisibility(View.INVISIBLE);\n isFirst.setVisibility(View.VISIBLE);\n notFirst.setVisibility(View.INVISIBLE);\n\n }else {\n vocabsRecyclerView.setVisibility(View.VISIBLE);\n isFirst.setVisibility(View.INVISIBLE);\n notFirst.setVisibility(View.VISIBLE);\n }\n }\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n }\n });\n }", "List<WdWordDict> selectByExample(WdWordDictExample example);", "@Query(\"SELECT * from english_word ORDER BY word ASC limit 300\")\n List<StoredEnglishWord> findAllWords();", "public void saveVocab (Vocabulary v, String vocabFilePath) throws IOException {\n\t\tFile file = new File(vocabFilePath);\n\t\t//if (file.exists()) file.delete();\n\t\t//file.createNewFile();\n\t\tBufferedWriter bw = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(file)));\n\t\tfor (int i = 0; i < v.vocabSize; i++) {\n\t\t\tbw.write(v.vocab.get(i).word + \" \" + v.vocab.get(i).cn + \"\\n\");\n\t\t}\n\t\tbw.close();\n\t}", "public void setVocubalaryId(long vocubalaryId);", "private void setVocabulary(int vocSize) {\n\t\tArrayList<String> chosen = new ArrayList<String>();\n\t\twhile (chosen.size() < vocSize) {\n\t\t\tint max = 0;\n\t\t\tString best = \"\";\n\t\t\tfor (String t : df.keySet()) {\n\t\t\t\tif (df.get(t) > max && !chosen.contains(t)) {\n\t\t\t\t\tmax = df.get(t);\n\t\t\t\t\tbest = t;\n\t\t\t\t}\n\t\t\t}\n\t\t\tchosen.add(best);\n\t\t}\n\t\tvocab = chosen;\n\t}", "public void constructOntologyVocabulary() {\n ontologyOwlClassVocabulary = new HashMap<>();\n ontologyOWLDataPropertyVocabulary = new HashMap<>();\n ontologyOWLNamedIndividualVocabulary = new HashMap<>();\n ontologyOWLObjectPropertylVocabulary = new HashMap<>();\n\n Set<OWLClass> classes = domainOntology.getClassesInSignature();\n Set<OWLNamedIndividual> individualPropertyAtom = domainOntology.getIndividualsInSignature();\n Set<OWLDataProperty> dataProperty = domainOntology.getDataPropertiesInSignature();\n Set<OWLObjectProperty> OWLObjectPropertyAtom = domainOntology.getObjectPropertiesInSignature();\n String tempName = null;\n\n for (OWLClass c : classes) {\n tempName = c.toString();\n tempName = tempName.substring(tempName.lastIndexOf(\"/\") + 1);\n tempName = TextUtil.formatName(tempName);\n ontologyOwlClassVocabulary.put(tempName, c);\n }\n for (OWLDataProperty d : dataProperty) {\n tempName = d.toString();\n tempName = tempName.substring(tempName.lastIndexOf(\"/\") + 1);\n tempName = TextUtil.formatName(tempName);\n ontologyOWLDataPropertyVocabulary.put(tempName, d);\n }\n for (OWLNamedIndividual i : individualPropertyAtom) {\n tempName = i.toString();\n tempName = tempName.substring(tempName.lastIndexOf(\"/\") + 1);\n tempName = TextUtil.formatName(tempName);\n ontologyOWLNamedIndividualVocabulary.put(tempName, i);\n }\n for (OWLObjectProperty o : OWLObjectPropertyAtom) {\n tempName = o.toString();\n tempName = tempName.substring(tempName.lastIndexOf(\"/\") + 1);\n tempName = TextUtil.formatName(tempName);\n ontologyOWLObjectPropertylVocabulary.put(tempName, o);\n }\n }", "public void getVector() throws IOException {\n\t\tint i=1;\r\n\t\tfor(String key:keyword){\r\n\t\t\tWord w=new Word();\r\n\t\t\tdouble tf=calTF(key);\r\n\t\t\tdouble idf=calIDF(key);\r\n\t\t\tdouble tfidf=tf*idf;\r\n\t\t\tw.setId(i);\r\n\t\t\ti++;\r\n\t\t\tw.setName(key);\r\n\t\t\tw.setTfidf(tfidf);\r\n\t\t\tif(word.containsKey(key)){\r\n\t\t\t\tw.setCount((Integer) word.get(key));\r\n\t\t\t}\r\n\t\t\tkeymap.add(w);\r\n\t\t}\r\n\t\tFileHelper.writeTrainFile(keymap);\r\n\t\tFileHelper.writeTestFile(keymap);\r\n\t}", "public int getTermIndex() {return termIndex;}", "public String getKeyWordTableName() {\r\n\t\treturn keyWordTableName;\r\n\t}", "@Override\n public String getTableName() {\n return getFreeTextDocTablename(conf);\n }", "private Vocabulary() {\n }", "public Vector mapDocument(BOW bow, boolean b) {\n //logger.info(\"lsm.mapDocument \" + b);\n SparseVector vector = new SparseVector();\n\n Iterator<String> it = bow.termSet().iterator();\n for (int i = 0; it.hasNext(); i++) {\n //logger.info(i + \" \" + t[i]);\n String term = it.next();\n int index = termIndex.get(term);\n\n if (index != -1) {\n int tf = bow.getFrequency(term);\n float tfIdf = (float) (log2(tf));\n if (b) {\n tfIdf *= Iidf[index];\n }\n\n //logger.info(term + \" ==> \" + index + \", tf.idf = \" + tf + \"(\" + (log2(tf)) + \") * \" + Iidf[index] + \" = \" + tfIdf);\n vector.add(index, tfIdf);\n\n }\n } // end for\n\n return vector;\n }", "void skillsFound( String key ) {\n developer.skills = new ArrayList<>();\n }", "@Override\n\tpublic List<Skill> getSkills() {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\t\n\t\t//create a query\n\t\tQuery<Skill> theQuery = currentSession.createQuery(\"from Skill\", Skill.class);\n\t\t\n\t\t//execute query and get result list\n\t\tList<Skill> skills = theQuery.getResultList();\n\t\t\n\t\t//return the results\n\t\treturn skills;\n\t}", "RepStuLearning selectByPrimaryKey(RepStuLearningKey key);", "public void fillVerbTbl(String sentenceID){\n\t\t// implement me!\n\t}", "WdWordDict selectByPrimaryKey(Long dictId);", "List<WordSchool> selectByExample(WordSchoolExample example);", "public OWLModel getKnowledgeBase();", "@Transactional\r\n\tpublic List<CmVocabularyCategory> getCmVocabularyCategorys() {\r\n\t\treturn dao.findAllWithOrder(CmVocabularyCategory.class, \"modifyTimestamp\", false);\r\n\t}", "public static void caso31(){\n\t FilterManager fm= new FilterManager(\"resources/stopWordsList.txt\",\"resources/useCaseWeight.properties\");\n\t\t\tQualityAttributeBelongable qualityAttributeBelongable = new OntologyManager(\"file:resources/caso3.owl\",\"file:resources/caso3.repository\",fm);\n\t\t\tMap<QualityAttributeInterface,Double> map = qualityAttributeBelongable.getWordPertenence(\"response1\");\n\t\t\tif(map==null){\n\t\t\t\tSystem.out.println(\"El map es null\");\n\t\t\t}else{\n\t\t\t\tMapUtils.imprimirMap(map);\n\t\t\t}\n\t}", "public void setKeyWordTableName(String keyWordTableName) {\r\n\t\tthis.keyWordTableName = keyWordTableName;\r\n\t}", "public static void caso32(){\n\t FilterManager fm= new FilterManager(\"resources/stopWordsList.txt\",\"resources/useCaseWeight.properties\");\n\t\t\tQualityAttributeBelongable qualityAttributeBelongable = new OntologyManager(\"file:resources/caso3.owl\",\"file:resources/caso3.repository\",fm);\n\t\t\tMap<QualityAttributeInterface,Double> map = qualityAttributeBelongable.getWordPertenence(\"response2\");\n\t\t\tif(map==null){\n\t\t\t\tSystem.out.println(\"El map es null\");\n\t\t\t}else{\n\t\t\t\tMapUtils.imprimirMap(map);\n\t\t\t}\n\t}", "WordSchool selectByPrimaryKey(Long id);", "public void AddKeywords()\n\t{\n\t\ttry\n\t\t{\n\t\t\tConnector con = new Connector();\n\t\t\tString query; \n\t\t\t\n\t\t\tfor(int i = 0; i < keywords.size(); i++)\n\t\t\t{\n\t\t\t\tString keyword = keywords.get(i); \n\t\t\t\t\n\t\t\t\tint kid = GetKIDFromWord(keyword); \n\t\t\t\t\n\t\t\t\t//word is not already in table\n\t\t\t\tif(kid == -1)\n\t\t\t\t{\n\t\t\t\t\t//insert word into Keywords \n\t\t\t\t\tSystem.out.println(\"test\"); \n\t\t\t\t\tquery = \"INSERT INTO Keywords(word) VALUE ('\"+keyword+\"')\"; \n\t\t\t \tint intoTable = con.stmt.executeUpdate(query); \n\t\t\t \t\n\t\t\t \t//able to put it in the table\n\t\t\t \tif(intoTable > 0)\n\t\t\t \t{\n\t\t\t \t\t//insert into HasKeywords\n\t\t\t\t \tkid = GetKIDFromWord(keyword); \n\t\t\t\t\t\tquery = \"INSERT INTO HasKeywords(keyword_hid, keyword_kid) VALUE('\"+hid+\"', '\"+kid+\"')\";\n\t\t\t\t \tint hasKey = con.stmt.executeUpdate(query); \n\t\t\t \t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//word is already in table\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tList<Integer> hkCheck = GetHIDSFromKID(kid);\n\t\t\t\t\t\n\t\t\t\t\tboolean inHKTable = false; \n\t\t\t\t\tfor(int j = 0; j < hkCheck.size(); j++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(hkCheck.get(j) == hid)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tinHKTable = true; \n\t\t\t\t\t\t\tbreak; \n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif(inHKTable == false)\n\t\t\t\t\t{\n\t\t\t\t\t\tquery = \"INSERT INTO HasKeywords(keyword_hid, keyword_kid) VALUE('\"+hid+\"', '\"+kid+\"')\";\n\t\t\t\t \tint hasKey = con.stmt.executeUpdate(query); \n\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tcon.closeConnection();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t}", "public final void mRULE_TOKEN_VOCAB() throws RecognitionException {\n try {\n int _type = RULE_TOKEN_VOCAB;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalUniMapperGenerator.g:5095:18: ( 'tokenVocab' )\n // InternalUniMapperGenerator.g:5095:20: 'tokenVocab'\n {\n match(\"tokenVocab\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public static void testDictionary() throws IOException {\n String wnhome=\"c:\\\\Users\\\\Katherine\\\\Documents\\\\2nd sem\\\\IR\\\\project\\\\WordNet_3.1\";\n String path = wnhome + File.separator + \"dict\";\n\n\n URL url = new URL(\"file\", null, path);\n\n IDictionary dictionary = new Dictionary(url);\n dictionary.open();\n // /Users/Ward/Downloads\n IIndexWord indexWord = dictionary.getIndexWord(\"use\", POS.VERB);\n\n for (IWordID wordID : indexWord.getWordIDs()) {\n\n IWord word = dictionary.getWord(wordID);\n for (IWord word1 : word.getSynset().getWords()) {\n System.out.println(word1.getLemma());\n }\n// System.out.println(\"Id = \" + wordID);\n// System.out.println(\" Lemma = \" + word.getLemma());\n// System.out.println(\" Gloss = \" + word.getSynset().getGloss());\n\n List<ISynsetID> hypernyms =\n word.getSynset().getRelatedSynsets(Pointer.HYPERNYM);\n // print out each h y p e r n y m s id and synonyms\n List<IWord> words;\n for (ISynsetID sid : hypernyms) {\n words = dictionary.getSynset(sid).getWords();\n System.out.print(sid + \" {\");\n for (Iterator<IWord> i = words.iterator(); i.hasNext(); ) {\n System.out.print(i.next().getLemma());\n if (i.hasNext())\n System.out.print(\", \");\n }\n System.out.println(\"}\");\n }\n }\n }", "public Vector mapDocument(MultiSet<String> bow) {\n //logger.info(\"lsm.mapDocument\");\n SparseVector vector = new SparseVector();\n\n Iterator<String> it = bow.iterator();\n String term = null;\n int index = 0;\n int tf = 0;\n float tfIdf;\n for (int i = 0; it.hasNext(); i++) {\n //logger.info(i + \" \" + t[i]);\n term = it.next();\n index = termIndex.get(term);\n\n if (index != -1) {\n tf = bow.getFrequency(term);\n tfIdf = (float) (log2(tf)) * Iidf[index];\n\n //logger.info(term + \" ==> \" + index + \", tf.idf = \" + tf + \"(\" + (log2(tf)) + \") * \" + Iidf[index] + \" = \" + tfIdf);\n vector.add(index, tfIdf);\n\n }\n } // end for\n\n return vector;\n }", "public static void writeArchivedVocab(Vocab vocab) {\n String userId = FirebaseAuth.getInstance().getUid();\n Log.d(\"000\", \"writeVocab: \"+userId);\n mDatabase.child(\"user\").child(userId).child(\"archive\").child(vocab.Id).setValue(vocab);\n }", "public List<Term> getAllTerms() {\n\t\tsession.beginTransaction();\n\t\tList<Term> lis = session.createQuery(\"from Term\").list();\n\n\t\tfor (Term tm : lis) {\n\t\t\tSystem.out.println(tm.getId() + \" \" + tm.getTermName());\n\t\t}\n\t\treturn lis;\n\t}", "public WordsWrapper getVocabulariesWrapper() {\n\t\tWordsWrapper wrapper = new WordsWrapper();\n\t\twrapper.mainvocabs = m__vocabs;\n\t\twrapper.referenes = m__referencedwords;\n\t\treturn wrapper;\n\t}", "public interface DictionaryDao<Type extends DictionaryProperty<Id>, Id extends Serializable> {\r\n\t/** \r\n\t * <!-- begin-UML-doc -->\r\n\t * Zwraca wszystkie mozliwe wartosci slownika.\r\n\t * <!-- end-UML-doc -->\r\n\t * @return\r\n\t * @generated \"UML to Java (com.ibm.xtools.transform.uml2.java5.internal.UML2JavaTransform)\"\r\n\t */\r\n\tpublic List<Type> getAll();\r\n}", "@Override\n public Builder limitVocabularySize(int limit) {\n super.limitVocabularySize(limit);\n return this;\n }", "@Override\n public List<DefinitionDTO> findAllWords() {\n List<Word> words = wordRepository.findAll();\n return DTOMapper.mapWordListToDefinitionDTOList(words);\n }", "public interface ArchetypeLevelsSchema {\n\tString TABLE_NAME = \"creature_archetype_levels\";\n\n\tString COLUMN_ARCHETYPE_ID = \"archetypeId\";\n\tString COLUMN_LEVEL = \"level\";\n\tString COLUMN_ATTACK = \"attack\";\n\tString COLUMN_ATTACK2 = \"attack2\";\n\tString COLUMN_DEF_BONUS = \"defensiveBonus\";\n\tString COLUMN_BODY_DEV = \"bodyDevelopment\";\n\tString COLUMN_PRIME_SKILL = \"primeSkill\";\n\tString COLUMN_SECONDARY_SKILL = \"secondarySkill\";\n\tString COLUMN_POWER_DEV = \"powerDevelopment\";\n\tString COLUMN_SPELLS = \"spells\";\n\tString COLUMN_TALENT_DP = \"talentDP\";\n\tString COLUMN_AGILITY = \"agility\";\n\tString COLUMN_CONS_STAT = \"constitutionStat\";\n\tString COLUMN_CONSTITUTION = \"constitution\";\n\tString COLUMN_EMPATHY = \"empathy\";\n\tString COLUMN_INTUITION = \"intuition\";\n\tString COLUMN_MEMORY = \"memory\";\n\tString COLUMN_PRESENCE = \"presence\";\n\tString COLUMN_QUICKNESS = \"quickness\";\n\tString COLUMN_REASONING = \"reasoning\";\n\tString COLUMN_SELF_DISC = \"selfDiscipline\";\n\tString COLUMN_STRENGTH = \"strength\";\n\n\tString TABLE_CREATE = \"CREATE TABLE IF NOT EXISTS \"\n\t\t\t+ TABLE_NAME\n\t\t\t+ \" (\"\n\t\t\t+ COLUMN_ARCHETYPE_ID + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_LEVEL + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_ATTACK + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_ATTACK2 + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_DEF_BONUS + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_BODY_DEV + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_PRIME_SKILL + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_SECONDARY_SKILL + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_POWER_DEV + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_SPELLS + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_TALENT_DP + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_AGILITY + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_CONS_STAT + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_CONSTITUTION + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_EMPATHY + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_INTUITION + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_MEMORY + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_PRESENCE + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_QUICKNESS + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_REASONING + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_SELF_DISC + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_STRENGTH + \" INTEGER NOT NULL, \"\n\t\t\t+ \"PRIMARY KEY(\" + COLUMN_ARCHETYPE_ID + \",\" + COLUMN_LEVEL + \")\"\n\t\t\t+ \")\";\n\n\tString[] COLUMNS = new String[] { COLUMN_ARCHETYPE_ID, COLUMN_LEVEL, COLUMN_ATTACK, COLUMN_ATTACK2, COLUMN_DEF_BONUS,\n\t\t\tCOLUMN_BODY_DEV, COLUMN_PRIME_SKILL, COLUMN_SECONDARY_SKILL, COLUMN_POWER_DEV, COLUMN_SPELLS, COLUMN_TALENT_DP,\n\t\t\tCOLUMN_AGILITY, COLUMN_CONS_STAT, COLUMN_CONSTITUTION, COLUMN_EMPATHY, COLUMN_INTUITION, COLUMN_MEMORY,\n\t\t\tCOLUMN_PRESENCE, COLUMN_QUICKNESS, COLUMN_REASONING, COLUMN_SELF_DISC, COLUMN_STRENGTH};\n}", "public static void moveCorrectToArchive(Vocab vocab){\n\n DatabaseReference vocabRef=FirebaseDatabase.getInstance().getReference().child(\"user\").child(FirebaseAuth.getInstance().getUid()).child(\"vocab\").child(vocab.Id);\n vocabRef.removeValue();\n archiveVocabs.add(vocab);\n writeArchivedVocab(vocab);\n\n }", "Terms selectByPrimaryKey(Integer id);", "public Iterator words() {\n return index.keySet().iterator();\n }", "public Word getWord(int id);", "public List search() {\n\t\tSessionFactory sf = new Configuration().configure()\n\t\t\t\t.buildSessionFactory();\n\t\tSession s = sf.openSession();\n\t\tQuery q = s.createQuery(\"from cat_vo\");\n\t\tList ls = q.list();\n\t\treturn ls;\n\t}", "public List<Term> getAllTermsByDictionary(String table, String dictionary) {\n List<Term> termList = new ArrayList<Term>();\n\n // Select All Query\n String selectQuery = \"SELECT * FROM \" + table + \" WHERE \" + KEY_DICTIONARY + \" = '\" + dictionary + \"' ORDER BY \" + KEY_TERM;\n\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor cursor = db.rawQuery(selectQuery, null);\n\n // looping through all rows and adding to list\n if (cursor.moveToFirst()) {\n do {\n if (!cursor.getString(2).isEmpty()) {\n /*\n Term term = new Term();\n term.setId(Integer.parseInt(cursor.getString(0)));\n term.setDictionary(cursor.getString(1));\n term.setTerm(cursor.getString(2));\n term.setSubject(cursor.getString(3));\n term.setDefinition(cursor.getString(4));\n term.setSynonyms(cursor.getString(5));\n */\n Term term = new Term(Integer.parseInt(cursor.getString(0)),cursor.getString(1), cursor.getString(2), cursor.getString(3),\n cursor.getString(4), cursor.getString(5), Integer.parseInt(cursor.getString(6)));\n // Adding term to list\n termList.add(term);\n }\n } while (cursor.moveToNext());\n }\n\n // return term list\n return termList;\n }", "Integer getSkillCount( String key ){\n return developer.skills.size();\n }", "public List<Skill> findAll(){\n return (List<Skill>) skillRepository.findAll();\n }", "public Courses getCourseTable();", "@Override\n protected Builder useExistingWordVectors(@NonNull WordVectors vec) {\n return this;\n }", "private void indexRelations(String inputFile, FlagConfig flagConfig) throws IOException {\n this.elementalVectors = VectorStoreRAM.readFromFile(\n flagConfig, \"C:\\\\Users\\\\dwiddows\\\\Data\\\\QI\\\\Gutterman\\\\termtermvectors.bin\");\n this.flagConfig = flagConfig;\n this.proportionVectors = new ProportionVectors(flagConfig);\n this.luceneUtils = new LuceneUtils(flagConfig);\n VectorStoreWriter writer = new VectorStoreWriter();\n\n // Turn all the text lines into parsed records.\n this.parseInputFile(inputFile);\n\n // Now the various indexing techniques.\n VectorStoreRAM triplesVectors = new VectorStoreRAM(flagConfig);\n VectorStoreRAM triplesPositionsVectors = new VectorStoreRAM(flagConfig);\n VectorStoreRAM dyadsVectors = new VectorStoreRAM(flagConfig);\n VectorStoreRAM dyadsPositionsVectors = new VectorStoreRAM(flagConfig);\n VectorStoreRAM verbsVectors = new VectorStoreRAM(flagConfig);\n VectorStoreRAM verbsPositionsVectors = new VectorStoreRAM(flagConfig);\n\n for (String docName : this.parsedRecords.keySet()) {\n Vector tripleDocVector = VectorFactory.createZeroVector(flagConfig.vectortype(), flagConfig.dimension());\n Vector tripleDocPositionVector = VectorFactory.createZeroVector(flagConfig.vectortype(), flagConfig.dimension());\n Vector dyadDocVector = VectorFactory.createZeroVector(flagConfig.vectortype(), flagConfig.dimension());\n Vector dyadDocPositionVector = VectorFactory.createZeroVector(flagConfig.vectortype(), flagConfig.dimension());\n Vector verbDocVector = VectorFactory.createZeroVector(flagConfig.vectortype(), flagConfig.dimension());\n Vector verbDocPositionVector = VectorFactory.createZeroVector(flagConfig.vectortype(), flagConfig.dimension());\n\n for (ParsedRecord record : this.parsedRecords.get(docName)) {\n Vector tripleVector = this.getPsiTripleVector(record);\n tripleDocVector.superpose(tripleVector, 1, null);\n\n this.bindWithPosition(record, tripleVector);\n tripleDocPositionVector.superpose(tripleVector, 1, null);\n\n Vector dyadVector = this.getPsiDyadVector(record);\n dyadDocVector.superpose(dyadVector, 1, null);\n this.bindWithPosition(record, dyadVector);\n dyadDocPositionVector.superpose(dyadVector, 1, null);\n\n Vector verbVector = this.vectorForString(record.predicate);\n verbDocVector.superpose(verbVector, 1, null);\n this.bindWithPosition(record, verbVector);\n verbDocPositionVector.superpose(verbVector, 1, null);\n }\n\n triplesVectors.putVector(docName, tripleDocVector);\n triplesPositionsVectors.putVector(docName, tripleDocPositionVector);\n dyadsVectors.putVector(docName, dyadDocVector);\n dyadsPositionsVectors.putVector(docName, dyadDocPositionVector);\n verbsVectors.putVector(docName, verbDocVector);\n verbsPositionsVectors.putVector(docName, verbDocPositionVector);\n }\n\n for (VectorStore vectorStore : new VectorStore[] {\n triplesVectors, triplesPositionsVectors, dyadsVectors, dyadsPositionsVectors, verbsVectors, verbsPositionsVectors }) {\n Enumeration<ObjectVector> vectorEnumeration = vectorStore.getAllVectors();\n while (vectorEnumeration.hasMoreElements())\n vectorEnumeration.nextElement().getVector().normalize();\n }\n\n writer.writeVectors(TRIPLES_OUTPUT_FILE, flagConfig, triplesVectors);\n writer.writeVectors(TRIPLES_POSITIONS_OUTPUT_FILE, flagConfig, triplesPositionsVectors);\n\n writer.writeVectors(DYADS_OUTPUT_FILE, flagConfig, dyadsVectors);\n writer.writeVectors(DYADS_POSITIONS_OUTPUT_FILE, flagConfig, dyadsPositionsVectors);\n\n writer.writeVectors(VERBS_OUTPUT_FILE, flagConfig, verbsVectors);\n writer.writeVectors(VERBS_POSITIONS_OUTPUT_FILE, flagConfig, verbsPositionsVectors);\n }", "int getConceptLanguagesCount();", "@Override\n public Builder lookupTable(@NonNull WeightLookupTable<VocabWord> lookupTable) {\n super.lookupTable(lookupTable);\n return this;\n }", "WordBean getWord(String word);", "public List<Product> search(String word, String codigo) {\n\t\tSession session = getSessionFactory().openSession();\n\t\treturn null;\n\t}", "private void invertedToDatabase(){\r\n cleFreq = new HashMap<>();\r\n System.out.println(\"Strat collecting\");\r\n Map<String,List<Invertedindex>> collects = collecting();\r\n System.out.println(\"Ending collecting\");\r\n Database.getInstance().invertedIndex(collects);\r\n Database.getInstance().addPoids(cleFreq);\r\n }", "@SuppressWarnings({ \"deprecation\", \"unchecked\", \"rawtypes\" })\n\tpublic String generateWordlists(Corpus co) {\n\t\tlong startTime = System.currentTimeMillis();\n\t\t// Set up weka word vector\n\t\tFastVector attributes;\n\t\tInstances dataSet;\n\t\tattributes = new FastVector();\n\n\t\tattributes.addElement(new Attribute(\"aspect_id\", (FastVector) null));\n\t\tattributes.addElement(new Attribute(\"tokens\", (FastVector) null));\n\n\t\tdataSet = new Instances(\"BeerAspects\", attributes, 0);\n\n\t\tCorpus topReviews;\n\t\tCorpus lowReviews;\n\n\t\t// Do top and low for all aspects\n\t\tfor (Aspect aspect : Aspect.values()) {\n\n\t\t\t// Only for actual aspects\n\t\t\tif (aspect.equals(Aspect.NONE) || aspect.equals(Aspect.OVERALL))\n\t\t\t\tcontinue;\n\n\t\t\ttopReviews = co.getTopReviews(aspect);\n\t\t\ttopReviews.analyze();\n\t\t\tString tokens = topReviews.getTokenConcatenation(aspect);\n\n\t\t\tInstance instance = new SparseInstance(2);\n\t\t\tinstance.setValue((Attribute) attributes.elementAt(0), aspect.name() + \"_TOP\");\n\t\t\tinstance.setValue((Attribute) attributes.elementAt(1), tokens);\n\n\t\t\tdataSet.add(instance);\n\n\t\t\tlowReviews = co.getLowReviews(aspect);\n\t\t\tlowReviews.analyze();\n\t\t\ttokens = lowReviews.getTokenConcatenation(aspect);\n\t\t\t// System.out.println(tokens);\n\n\t\t\tinstance = new SparseInstance(2);\n\t\t\tinstance.setValue((Attribute) attributes.elementAt(0), aspect.name() + \"_LOW\");\n\t\t\tinstance.setValue((Attribute) attributes.elementAt(1), tokens);\n\n\t\t\tdataSet.add(instance);\n\t\t}\n\n\t\t// System.out.println(dataSet.toString());\n\t\tInstances dataFiltered = transformToWordVector(dataSet, co.getProps());\n\n\t\t// System.out.println(dataFiltered.toString());\n\t\tString pathsToLists = writeWordlists(dataFiltered);\n\n\t\twriteArffFile(dataFiltered, this.outputDir+\"wordvector.arff\");\n\n\t\tlong stopTime = System.currentTimeMillis();\n\t\tlong elapsedTime = stopTime - startTime;\n\t\tSystem.out.println(\"Generated wordlists in: \" + elapsedTime / 1000 + \" s\");\n\t\treturn pathsToLists;\n\t}", "boolean putWord(WordBean wordBean);", "public Table<Integer, Integer, String> getAnonymizedData();", "public static void caso12(){\n\n FilterManager fm= new FilterManager(\"resources/stopWordsList.txt\",\"resources/useCaseWeight.properties\");\n\t\tQualityAttributeBelongable qualityAttributeBelongable = new OntologyManager(\"file:resources/caso1.owl\",\"file:resources/caso1.repository\",fm);\n\t\tMap<QualityAttributeInterface,Double> map = qualityAttributeBelongable.getWordPertenence(\"pan\");\n\t\tif(map==null){\n\t\t\tSystem.out.println(\"El map es null\");\n\t\t}\n\t}", "public void addToJurisdictions(entity.AppCritJurisdiction element);", "public static void caso11(){\n\t\t\n FilterManager fm= new FilterManager(\"resources/stopWordsList.txt\",\"resources/useCaseWeight.properties\");\n\t\tQualityAttributeBelongable qualityAttributeBelongable = new OntologyManager(\"file:resources/caso1.owl\",\"file:resources/caso1.repository\",fm);\n\t\tMap<QualityAttributeInterface,Double> map = qualityAttributeBelongable.getWordPertenence(\"response\");\n\t\tMapUtils.imprimirMap(map);\n\t}", "public String getNomTable();", "public void init() {\n File file=new File(\"D:\\\\lucene\\\\index\");\n if(file.isDirectory())\n { //否则如果它是一个目录\n File files[] = file.listFiles(); //声明目录下所有的文件 files[];\n for(int i=0;i<files.length;i++)\n { //遍历目录下所有的文件\n files[i].delete(); //把每个文件 用这个方法进行迭代\n }\n }\n String indexPath = \"D:\\\\lucene\\\\index\";\n //String docsPath = \"D:\\\\lucene\\\\data\";\n boolean create = true;\n try\n {\n Session session=factory.openSession();\n String hql = \"from Book\";\n org.hibernate.Query query = session.createQuery(hql);\n List<Book> list=query.list();\n Directory indexDir = FSDirectory.open(Paths.get(\"D:\\\\lucene\\\\index\"));\n Analyzer luceneAnalyzer = new StandardAnalyzer(); //新建一个分词器实例 \n IndexWriterConfig config = new IndexWriterConfig(luceneAnalyzer); \n IndexWriter indexWriter = new IndexWriter(indexDir,config);\n for(int i=0;i<list.size();i++)\n {\n Document document = new Document();\n Field field1 = new StringField(\"id\",list.get(i).getBookid().toString(),Field.Store.YES); \n Field field2 = new StringField(\"bookname\",list.get(i).getBookname(),Field.Store.YES); \n Field field3 = new StringField(\"author\",list.get(i).getAuthor(),Field.Store.YES); \n Field field4 = new StringField(\"category\",list.get(i).getCategory(),Field.Store.YES); \n Field field5 = new StringField(\"price\", Double.toString(list.get(i).getPrice()),Field.Store.YES); \n document.add(field1); \n document.add(field2); \n document.add(field3); \n document.add(field4);\n document.add(field5);\n indexWriter.addDocument(document);\n }\n indexWriter.close();\n }\n catch(IOException e)\n {\n System.out.println(\"error\");\n return;\n }\n }", "hr.domain.ResumeDBOuterClass.Education getEducations(int index);", "hr.domain.ResumeDBOuterClass.Experience getExperiences(int index);", "public void fillNounTbl(String sentenceID){\n\t\t// implement me!\n\t}", "void createOrUpdateVocabulary(final VocabularyPE vocabularyPE);", "@Override\n public Builder iterate(@NonNull SequenceIterator<VocabWord> iterator) {\n super.iterate(iterator);\n return this;\n }", "private void createFreqVector(Path file) {\r\n\t\t\tVector vector = new Vector(vocabulary.size());\r\n\t\t\tList<String> lines;\r\n\t\t\ttry {\r\n\t\t\t\tlines = Files.readAllLines(file);\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tSet<String> words = new HashSet<>();\r\n\t\t\t//create frequency vector of words in single document -> tf(w,d)\r\n\t\t\tfor (String line : lines) {\r\n\t\t\t\tif (line.isEmpty()) continue;\r\n\t\t\t\tString[] values = p.split(line);\r\n\t\t\t\tfor (String value : values) { \r\n\t\t\t\t\tif (value.isEmpty()) continue;\r\n\t\t\t\t\tString lowWord = value.toLowerCase().trim();\r\n\t\t\t\t\t\r\n\t\t\t\t\tInteger[] arr = vocabulary.get(lowWord);\r\n\t\t\t\t\tif (arr == null) continue;\r\n\t\t\t\t\tvector.incrementValueAt(arr[0]);\r\n\t\t\t\t\tif (words.add(lowWord)) {\r\n\t\t\t\t\t\t arr[1] += 1;\t//first time occurrence of this word in document\r\n\t\t\t\t\t\tvocabulary.put(lowWord, arr);\t//increment number of documents for this word\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\tfreqVectors.put(file, vector);\t\t\r\n\t\t}", "private String[][] getMoodsTableValues() {\n String soso = DBTypesKeys.SO_SO_MOOD.getTypeValue();\n String sad = DBTypesKeys.SAD_MOOD.getTypeValue();\n String angry = DBTypesKeys.ANGRY_MOOD.getTypeValue();\n String happy = DBTypesKeys.HAPPY_MOOD.getTypeValue();\n // moods table\n return new String[][]{\n //moods hi answers by answers // id_ (enum index + 1)\n { soso, \"hey\", \"by\"}, // 1\n { sad, \"welcome to sad world\", \"so, you too ...\"}, // 2\n { angry, \"get out!\", \"thanks god, you away\"}, // 3\n { happy, \"hi! glad to see you =)\", \"good luck, buddy\"} // 4\n };\n }", "private VocabularyTerms getVocabularyTerms(Collection<CMAContentType> vocabularies) {\n VocabularyTerms vocabularyTerms = new VocabularyTerms();\n vocabularies\n .forEach(contentType -> {\n //Keeps the country vocabulary ID for future use\n if (contentType.getName().equals(configuration.getCountryVocabulary())) {\n vocabularyTerms.loadCountryVocabulary(contentType);\n } else {\n //Loads vocabulary into memory\n vocabularyTerms.loadVocabulary(contentType);\n }\n });\n return vocabularyTerms;\n }", "public static String getTokenVocabFromGrammar(String text) {\n\t\t// TODO: unneeded. use antlr Tool. Kill?\n//\t\tParsingResult r = parseANTLRGrammar(text);\n//\t\tif ( r.tree!=null ) { //&& r.syntaxErrorListener.getSyntaxErrors().size()==0 ) {\n//\t\t\t// option : id ASSIGN optionValue ;\n//\t\t\tCollection<ParseTree> options = XPath.findAll(r.tree, \"//option\", r.parser);\n//\t\t\tfor (Iterator<ParseTree> it = options.iterator(); it.hasNext(); ) {\n//\t\t\t\tANTLRv4Parser.OptionContext option = (ANTLRv4Parser.OptionContext)it.next();\n//\t\t\t\tif ( option.id().getText().equals(\"tokenVocab\") ) {\n//\t\t\t\t\t/*\n//\t\t\t\t\toptionValue\n//\t\t\t\t\t\t:\tid (DOT id)*\n//\t\t\t\t\t\t|\tSTRING_LITERAL\n//\t\t\t\t\t\t|\tACTION\n//\t\t\t\t\t\t|\tINT\n//\t\t\t\t\t\t;\n//\t\t\t\t\t */\n//\t\t\t\t\tANTLRv4Parser.OptionValueContext optionValue = option.optionValue();\n//\t\t\t\t\tif ( optionValue.STRING_LITERAL()!=null ) {\n//\t\t\t\t\t\tString s = optionValue.STRING_LITERAL().getText();\n//\t\t\t\t\t\treturn RefactorUtils.getLexerRuleNameFromLiteral(s);\n//\t\t\t\t\t}\n//\t\t\t\t\tif ( optionValue.id(0)!=null ) {\n//\t\t\t\t\t\treturn optionValue.id(0).getText();\n//\t\t\t\t\t}\n//\t\t\t\t}\n//\t\t\t}\n//\t\t}\n\t\treturn null;\n\t}", "private Resolution getVocabularyConceptResolution() {\r\n HttpServletRequest httpRequest = getContext().getRequest();\r\n String url = httpRequest.getRequestURL().toString();\r\n // String query = httpRequest.getQueryString();\r\n \r\n String[] parameters = StringUtils.split(StringUtils.substringAfter(url, \"/vocabulary/\"), \"/\");\r\n \r\n if (parameters.length >= 2) {\r\n if (!RESERVED_VOCABULARY_EVENTS.contains(parameters[1])) {\r\n RedirectResolution resolution = new RedirectResolution(VocabularyConceptActionBean.class, \"view\");\r\n resolution.addParameter(\"vocabularyFolder.identifier\", parameters[0]);\r\n resolution.addParameter(\"vocabularyConcept.identifier\", parameters[1]);\r\n resolution.addParameter(\"vocabularyFolder.workingCopy\", vocabularyFolder.isWorkingCopy());\r\n \r\n return resolution;\r\n }\r\n }\r\n \r\n return null;\r\n }", "public SPARQL() {\n initComponents();\n \n model = ModelFactory.createOntologyModel(OntModelSpec.OWL_LITE_MEM_RDFS_INF);\n model.setDynamicImports(true);\n model.read(\"file:\"+\"data/ontologies/Papers_Ready.owl\", \"http://www.l3g.pl/ontologies/OntoBeef/Papers.owl\", \"N-TRIPLE\");\n model.loadImports();\n \n for (Individual i : model.listIndividuals(model.getOntClass(\"http://www.l3g.pl/ontologies/OntoBeef/Conceptualisation.owl#Category\")).toSet())\n {\n System.out.println(i.listLabels(null).toSet());\n }\n }", "@Override\n public AutoBuffer write_impl(AutoBuffer ab) {\n if (_vocabHM == null) return ab.put1(1); // killed\n\n int strLen = 0;\n for (ValueStringCount val : VOCABHM.values())\n strLen += val.length();\n ab.put1(0); // not killed\n ab.put4(strLen); //length of string buffer\n for (ValueStringCount val : VOCABHM.values())\n ab.put2((char) val.length()).putA1(val.getBuffer(), val.getOffset(), val.getOffset() + val.length()).put8(val._cnt);\n return ab.put2((char) 65535); // End of map marker\n }", "@SuppressWarnings(\"unchecked\")\r\n\tpublic static void main(String[] args) throws IOException {\n\t\tSchema s = new Schema(\"Estudiantes\",\"C:\\\\Users\\\\morazan\\\\Desktop\\\\com\\\\idk\\\\ac\\\\cr\");\r\n\n\t\tSchemaJoin j = new SchemaJoin(\"Notas\",\"C:\\\\Users\\\\morazan\\\\Desktop\\\\com\\\\idk\\\\ac\\\\cr\");\r\n\r\n\t\t//Creates an index in the regular schema\r\n\t\ts.createIndex(\"bts\", \"string\", \"Nombre\", 10);\r\n\t\ts.createIndex(\"avl\", \"number\", \"aņo\", 4);\r\n\t\ts.createIndex(\"avl\", \"image\", \"Imagen\", 0);\r\n\t\tj.joinSchema(s);\r\n\t\tj.createJoinedIndex(\"avl\", \"number\", \"Notas\", 2);\r\n\t\t\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"Inserting I \");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\ts.insertToIndex(1, \"JP\");\r\n\t\ts.insertToIndex(1, \"Randy\");\r\n\t\ts.insertToIndex(1, \"Alejandra\");\r\n//\t\ts.insertToIndex(1, \"Xcreed\");\r\n\t\ts.insertToIndex(2, 1996);\r\n\t\ts.insertToIndex(2, 1995);\r\n\t\ts.insertToIndex(2, 1997);\n\t\ts.insertToIndex(3, \"SchemaExtraFiles/2.jpg\");\n\t\ts.insertToIndex(3, \"SchemaExtraFiles/8.jpg\");\n\t\ts.insertToIndex(3, \"SchemaExtraFiles/4.jpg\");\n\t\t\n\t\tIndexBTS index = (IndexBTS) s.schema.getItem(1);\r\n\t\tBinarySearchTree t = (BinarySearchTree) index.tree;\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"Traversal I\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tt.inOrderTraversal();\r\n\t\t\n\t\tIndexAVL index2 = (IndexAVL) s.schema.getItem(2);\r\n\t\tAVLTree t2 = (AVLTree) index2.getTree();\r\n\t\tSystem.out.println(\"avl order\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"Traversal II\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\n\t\tt2.inorder();\n\t\t\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"Inserting II \");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tj.insertToIndex(1, 80);\r\n\t\tj.insertToIndex(1, 82);\r\n\t\tj.insertToIndex(1, 78);\t\t\t\r\n\t\t\r\n//\t\tSystem.out.println(s.search(\"JP\"));\r\n//\t\tSystem.out.println(s.deleteInIndex(1,\"JP\"));\r\n//\t\tSystem.out.println(s.search(\"JP\"));\r\n\t\t\r\n\t\tSystem.out.println(\"Getting line 1\");\r\n\t\ts.getLine(1);\r\n//\t\ts.deleteLine(1);\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"Searching 82 \");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tj.joinedSearch(82);\r\n\r\n\t\t//Deletes an index in the schema\r\n//\t\ts.schema.print();\r\n//\t\ts.deleteIndex(1);\r\n//\t\ts.schema.print();\r\n\t\t\r\n// ***********Activate Separately**********\r\n\t\t\r\n//\t\ts.createIndex(\"bts\", \"video\", \"Videos\", 0);\r\n//\t\ts.insertToIndex(1, \"SchemaExtraFiles/Trike Drifting.mp4\");\r\n\t\t\r\n//\t***************************************\r\n\t\t\r\n\t\tJSONProtocol json = new JSONProtocol();\r\n\t\tjson.writeSchema(s);\r\n\t\t\t\t\r\n\t\t\r\n\t}", "TableId table();", "public boolean buildVocab() {\n readStopWords();\n\n if(cache.vocabExists()) {\n log.info(\"Loading vocab...\");\n cache.loadVocab();\n cache.resetWeights();\n return true;\n }\n\n //vectorizer will handle setting up vocab meta data\n if(vectorizer == null)\n vectorizer = new TfidfVectorizer.Builder()\n .cache(cache).iterate(docIter).iterate(sentenceIter)\n .minWords(minWordFrequency).stopWords(stopWords)\n .tokenize(tokenizerFactory).build();\n vectorizer.fit();\n\n setup();\n\n return false;\n }", "public List<Kateggorija> getSviGlumci() {\n List<Kateggorija> glumci=null;\n try {\n glumci= getDaoKateggorija().queryForAll();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n return glumci;\n }", "@VTID(10)\n int getIndex();", "Skill getSkill(Long skillId) throws DbException;", "public List<String> GetKeywords()\n\t{\n\t\tList<String> words = new ArrayList<String>(); \n\t\ttry\n\t\t{\n\t\t\tConnector con = new Connector();\n\t \n\t String query = \"SELECT keyword_kid FROM HasKeywords WHERE keyword_hid = '\"+hid+\"'\"; \n\t ResultSet rs = con.stmt.executeQuery(query); \n\t \n\t List<Integer> k_ids = new ArrayList<Integer>(); \n\t while(rs.next())\n\t {\n\t \tint new_id = rs.getInt(\"keyword_kid\"); \n\t \tk_ids.add(new_id); \n\t }\n\t \n\t for(int i = 0; i < k_ids.size(); i++)\n\t {\n\t \tquery = \"SELECT word FROM Keywords WHERE k_id = '\"+k_ids.get(i)+\"'\"; \n\t \trs = con.stmt.executeQuery(query); \n\t \twhile(rs.next())\n\t \t{\n\t \t\tString kw = rs.getString(\"word\"); \n\t \t\twords.add(kw); \n\t \t}\n\t }\n\t \n\t con.closeConnection();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\tkeywords = words; \n\t\treturn keywords; \n\t}", "java.lang.String getSemanticLangidModelName();", "public interface DBSDictionary\n{\n /**\n * Checks that this constrain supports key enumerations.\n * Usually it depends on constraint type (enumerations makes sense only for unique constraints).\n * @return true or false\n */\n boolean supportsDictionaryEnumeration();\n\n /**\n * Gets enumeration values\n *\n * @param monitor session\n * @param keyColumn enumeration column.\n * @param keyPattern pattern for enumeration values. If null or empty then returns full enumration set\n * @param searchText\n * @param preceedingKeys other constrain key values. May be null.\n * @param caseInsensitiveSearch use case-insensitive search for {@code keyPattern}\n * @param sortAsc ascending sorting (irrelevant is {@code sortByValue} is false)\n * @param sortByValue sort results by value\n * @param offset enumeration values offset in result set\n * @param maxResults maximum enumeration values in result set\n * @return statement with result set which contains valid enumeration values.\n */\n @NotNull\n List<DBDLabelValuePair> getDictionaryEnumeration(\n @NotNull DBRProgressMonitor monitor,\n @NotNull DBSEntityAttribute keyColumn,\n @Nullable Object keyPattern,\n @Nullable String searchText,\n @Nullable List<DBDAttributeValue> preceedingKeys,\n boolean caseInsensitiveSearch,\n boolean sortAsc,\n boolean sortByValue,\n int offset,\n int maxResults\n ) throws DBException;\n\n @NotNull\n List<DBDLabelValuePair> getDictionaryValues(\n @NotNull DBRProgressMonitor monitor,\n @NotNull DBSEntityAttribute keyColumn,\n @NotNull List<Object> keyValues,\n @Nullable List<DBDAttributeValue> preceedingKeys,\n boolean sortByValue,\n boolean sortAsc\n ) throws DBException;\n\n @NotNull\n DBSDictionaryAccessor getDictionaryAccessor(\n @NotNull DBRProgressMonitor monitor,\n @Nullable List<DBDAttributeValue> precedingKeys,\n @NotNull DBSEntityAttribute keyColumn,\n boolean sortAsc,\n boolean sortByDesc\n ) throws DBException;\n}", "@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)\n\tpublic List<AssetVocabulary> getAttachedVocabularies(long groupId);", "public static List<Book> getBookCategory() throws HibernateException{\r\n \r\n session = sessionFactory.openSession();\r\n session.beginTransaction();\r\n \r\n Query query=session.getNamedQuery(\"INVENTORY_getBookCategory\");\r\n List<Book> bookLocationList=query.list();\r\n \r\n session.getTransaction().commit();\r\n session.close();\r\n \r\n return bookLocationList;\r\n}", "public void train(Corpus[] trainingData) {\n\t\tSet<String> vocabulary = super.mergeVocabulary(trainingData);\n\t\ttrainingData[0].setVocabulary(vocabulary);\n\t\ttrainingData[1].setVocabulary(vocabulary);\n\t\tposMatrix = new TransitionMatrix(trainingData[0]);\n\t\tnegMatrix = new TransitionMatrix(trainingData[1]);\n\t}", "public void AddInDB(Word newWord) throws SQLException {\n String insertQuery = \"INSERT INTO tbltest(word,pronunciation,define) VALUES(?,?,?)\";\r\n ps = con.prepareStatement(insertQuery);\r\n ps.setString(1, newWord.getWord());\r\n ps.setString(2, newWord.getPronunciation());\r\n ps.setString(3, newWord.getDefine());\r\n\r\n ps.executeUpdate();\r\n }", "public static void caso41(){\n FilterManager fm= new FilterManager(\"resources/stopWordsList.txt\",\"resources/useCaseWeight.properties\");\n\t\tQualityAttributeBelongable qualityAttributeBelongable = new OntologyManager(\"file:resources/caso4.owl\",\"file:resources/caso4.repository\",fm);\n\t\tMap<QualityAttributeInterface,Double> map = qualityAttributeBelongable.getWordPertenence(\"response1\");\n\t\tif(map==null){\n\t\t\tSystem.out.println(\"El map es null\");\n\t\t}else{\n\t\t\tMapUtils.imprimirMap(map);\n\t\t}\n\t}", "@Select(\"select id,item from dicts where id in (23,24,25,26,27)\")\n\tList<Dict> findLevels();", "public interface IJavaDocAttributDao\n{\n List<JavaDocAttribut> getJavaDocAttributs(int idJavaDocMethode);\n}" ]
[ "0.5714772", "0.5634642", "0.54471385", "0.5296146", "0.5199113", "0.49331725", "0.49329886", "0.4925552", "0.49100333", "0.49073565", "0.48575464", "0.4840506", "0.48176134", "0.47540638", "0.4731969", "0.47130308", "0.46997505", "0.46928567", "0.46592632", "0.46315858", "0.46308562", "0.4628427", "0.4613438", "0.4607982", "0.46033806", "0.45581195", "0.45454577", "0.45442265", "0.45386803", "0.45275065", "0.452028", "0.4503016", "0.4500965", "0.44867927", "0.44754398", "0.44700065", "0.4461962", "0.44616178", "0.44392928", "0.44261026", "0.43990988", "0.43955937", "0.43947372", "0.4391834", "0.43790415", "0.4373947", "0.43707538", "0.43700558", "0.43560442", "0.43444037", "0.43359932", "0.4334978", "0.4331108", "0.43275934", "0.43246162", "0.4323478", "0.432252", "0.43204546", "0.43167415", "0.4313692", "0.43123078", "0.43018934", "0.42899582", "0.42859036", "0.4279804", "0.42734304", "0.42709267", "0.42542967", "0.4249365", "0.4246521", "0.42383584", "0.42374423", "0.42311075", "0.42302102", "0.4229986", "0.4227258", "0.42229605", "0.42228934", "0.422011", "0.42189792", "0.42158115", "0.42145696", "0.42105144", "0.4207044", "0.42064056", "0.41962886", "0.4194155", "0.41941473", "0.41919973", "0.41892615", "0.41883606", "0.41852176", "0.4182343", "0.41803232", "0.41759124", "0.41734546", "0.41732693", "0.41713014", "0.41704375", "0.416942", "0.41672277" ]
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table wd_vocab
public void or(Criteria criteria) { oredCriteria.add(criteria); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<VocabWord> document(int index);", "int[] documents(VocabWord vocabWord);", "public static void writeVocab(Vocab vocab) {\n String userId = FirebaseAuth.getInstance().getUid();\n Log.d(\"000\", \"writeVocab: \"+userId);\n mDatabase.child(\"user\").child(userId).child(\"vocab\").child(vocab.Id).setValue(vocab);\n }", "void addWordsToDoc(int doc,List<VocabWord> words);", "void addWordToDoc(int doc,VocabWord word);", "public VocabularyTerms() {}", "public Vector mapDocument(BOW bow) {\n //logger.info(\"lsm.mapDocument\");\n SparseVector vector = new SparseVector();\n\n Iterator<String> it = bow.termSet().iterator();\n String term = null;\n int index = 0;\n //int tf = 0;\n float tfIdf;\n for (int i = 0; it.hasNext(); i++) {\n //logger.info(i + \" \" + t[i]);\n term = it.next();\n index = termIndex.get(term);\n\n if (index != -1) {\n //tf = bow.getFrequency(term);\n //tfIdf = (float) (log2(tf)) * Iidf[index];\n //tfIdf = (float) bow.augmentedFrequency(term) * Iidf[index];\n tfIdf = (float) bow.tf(term) * Iidf[index];\n //logger.info(term + \" ==> \" + index + \", tf.idf = \" + tf + \"(\" + (log2(tf)) + \") * \" + Iidf[index] + \" = \" + tfIdf);\n vector.add(index, tfIdf);\n\n }\n } // end for\n\n return vector;\n }", "@Id\n @Column(name=\"term_key\")\n public int getTermKey() {\n\treturn termKey;\n }", "public WdVocabExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "private static void setWordPosition() {\n\t\tSet setKeys = Utility.vocabHM.keySet();\n\t\tIterator i = setKeys.iterator();\n\t\tint position = 0;\n\t\twhile (i.hasNext()) {\n\t\t\tString w = (String) i.next();\n\t\t\tInteger rows[] = new Integer[2];\n\t\t\trows[0] = new Integer(position); /* word position */\n\t\t\trows[1] = (Integer) Utility.vocabHM.get(w); /* df */\n\n\t\t\tUtility.vocabHM.put(w, rows);\n\t\t\tposition++;\n\t\t}\n\t}", "public Vector<Word> allKeyValue(){\n\n\tVector<Word> words = new Vector<Word>();\n\tfor(int w = 0; w < theTable.length; w++){\n\t // System.out.println(\"w: \" + w);\n\t // System.out.println(\"theTable[w]: \" + theTable[w]);\n\t if(theTable[w] != null){\n\t\twords.addElement(theTable[w]);\n\t }\n\t}\n\treturn words;\n }", "public static void deleteVocab(Context context){\n Toast.makeText(context, \"deleted\", Toast.LENGTH_SHORT).show();\n DatabaseReference vocabRef=FirebaseDatabase.getInstance().getReference().child(\"user\").child(FirebaseAuth.getInstance().getUid()).child(\"vocab\").child(currentVocabId);\n vocabRef.removeValue();\n }", "public Controlador(boolean newTable){\n if(newTable){\n vocabulario = new TSB_OAHashtable<>();\n }\n }", "public static void initVocabData() {\n FirebaseDatabase.getInstance().getReference().child(\"user\").child(FirebaseAuth.getInstance().getUid()).child(\"vocab\")\n .addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n staticVocabs.clear();\n for(DataSnapshot snapshot: dataSnapshot.getChildren() ){\n Vocab vocab = snapshot.getValue(Vocab.class);\n staticVocabs.add(vocab);\n size=1;\n }\n vocabsAdapter.notifyDataSetChanged();\n if (staticVocabs.size()==0){\n vocabsRecyclerView.setVisibility(View.INVISIBLE);\n isFirst.setVisibility(View.VISIBLE);\n notFirst.setVisibility(View.INVISIBLE);\n\n }else {\n vocabsRecyclerView.setVisibility(View.VISIBLE);\n isFirst.setVisibility(View.INVISIBLE);\n notFirst.setVisibility(View.VISIBLE);\n }\n }\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n }\n });\n }", "List<WdWordDict> selectByExample(WdWordDictExample example);", "@Query(\"SELECT * from english_word ORDER BY word ASC limit 300\")\n List<StoredEnglishWord> findAllWords();", "public void saveVocab (Vocabulary v, String vocabFilePath) throws IOException {\n\t\tFile file = new File(vocabFilePath);\n\t\t//if (file.exists()) file.delete();\n\t\t//file.createNewFile();\n\t\tBufferedWriter bw = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(file)));\n\t\tfor (int i = 0; i < v.vocabSize; i++) {\n\t\t\tbw.write(v.vocab.get(i).word + \" \" + v.vocab.get(i).cn + \"\\n\");\n\t\t}\n\t\tbw.close();\n\t}", "public void setVocubalaryId(long vocubalaryId);", "private void setVocabulary(int vocSize) {\n\t\tArrayList<String> chosen = new ArrayList<String>();\n\t\twhile (chosen.size() < vocSize) {\n\t\t\tint max = 0;\n\t\t\tString best = \"\";\n\t\t\tfor (String t : df.keySet()) {\n\t\t\t\tif (df.get(t) > max && !chosen.contains(t)) {\n\t\t\t\t\tmax = df.get(t);\n\t\t\t\t\tbest = t;\n\t\t\t\t}\n\t\t\t}\n\t\t\tchosen.add(best);\n\t\t}\n\t\tvocab = chosen;\n\t}", "public void constructOntologyVocabulary() {\n ontologyOwlClassVocabulary = new HashMap<>();\n ontologyOWLDataPropertyVocabulary = new HashMap<>();\n ontologyOWLNamedIndividualVocabulary = new HashMap<>();\n ontologyOWLObjectPropertylVocabulary = new HashMap<>();\n\n Set<OWLClass> classes = domainOntology.getClassesInSignature();\n Set<OWLNamedIndividual> individualPropertyAtom = domainOntology.getIndividualsInSignature();\n Set<OWLDataProperty> dataProperty = domainOntology.getDataPropertiesInSignature();\n Set<OWLObjectProperty> OWLObjectPropertyAtom = domainOntology.getObjectPropertiesInSignature();\n String tempName = null;\n\n for (OWLClass c : classes) {\n tempName = c.toString();\n tempName = tempName.substring(tempName.lastIndexOf(\"/\") + 1);\n tempName = TextUtil.formatName(tempName);\n ontologyOwlClassVocabulary.put(tempName, c);\n }\n for (OWLDataProperty d : dataProperty) {\n tempName = d.toString();\n tempName = tempName.substring(tempName.lastIndexOf(\"/\") + 1);\n tempName = TextUtil.formatName(tempName);\n ontologyOWLDataPropertyVocabulary.put(tempName, d);\n }\n for (OWLNamedIndividual i : individualPropertyAtom) {\n tempName = i.toString();\n tempName = tempName.substring(tempName.lastIndexOf(\"/\") + 1);\n tempName = TextUtil.formatName(tempName);\n ontologyOWLNamedIndividualVocabulary.put(tempName, i);\n }\n for (OWLObjectProperty o : OWLObjectPropertyAtom) {\n tempName = o.toString();\n tempName = tempName.substring(tempName.lastIndexOf(\"/\") + 1);\n tempName = TextUtil.formatName(tempName);\n ontologyOWLObjectPropertylVocabulary.put(tempName, o);\n }\n }", "public void getVector() throws IOException {\n\t\tint i=1;\r\n\t\tfor(String key:keyword){\r\n\t\t\tWord w=new Word();\r\n\t\t\tdouble tf=calTF(key);\r\n\t\t\tdouble idf=calIDF(key);\r\n\t\t\tdouble tfidf=tf*idf;\r\n\t\t\tw.setId(i);\r\n\t\t\ti++;\r\n\t\t\tw.setName(key);\r\n\t\t\tw.setTfidf(tfidf);\r\n\t\t\tif(word.containsKey(key)){\r\n\t\t\t\tw.setCount((Integer) word.get(key));\r\n\t\t\t}\r\n\t\t\tkeymap.add(w);\r\n\t\t}\r\n\t\tFileHelper.writeTrainFile(keymap);\r\n\t\tFileHelper.writeTestFile(keymap);\r\n\t}", "public int getTermIndex() {return termIndex;}", "public String getKeyWordTableName() {\r\n\t\treturn keyWordTableName;\r\n\t}", "@Override\n public String getTableName() {\n return getFreeTextDocTablename(conf);\n }", "private Vocabulary() {\n }", "public Vector mapDocument(BOW bow, boolean b) {\n //logger.info(\"lsm.mapDocument \" + b);\n SparseVector vector = new SparseVector();\n\n Iterator<String> it = bow.termSet().iterator();\n for (int i = 0; it.hasNext(); i++) {\n //logger.info(i + \" \" + t[i]);\n String term = it.next();\n int index = termIndex.get(term);\n\n if (index != -1) {\n int tf = bow.getFrequency(term);\n float tfIdf = (float) (log2(tf));\n if (b) {\n tfIdf *= Iidf[index];\n }\n\n //logger.info(term + \" ==> \" + index + \", tf.idf = \" + tf + \"(\" + (log2(tf)) + \") * \" + Iidf[index] + \" = \" + tfIdf);\n vector.add(index, tfIdf);\n\n }\n } // end for\n\n return vector;\n }", "void skillsFound( String key ) {\n developer.skills = new ArrayList<>();\n }", "@Override\n\tpublic List<Skill> getSkills() {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\t\n\t\t//create a query\n\t\tQuery<Skill> theQuery = currentSession.createQuery(\"from Skill\", Skill.class);\n\t\t\n\t\t//execute query and get result list\n\t\tList<Skill> skills = theQuery.getResultList();\n\t\t\n\t\t//return the results\n\t\treturn skills;\n\t}", "RepStuLearning selectByPrimaryKey(RepStuLearningKey key);", "public void fillVerbTbl(String sentenceID){\n\t\t// implement me!\n\t}", "WdWordDict selectByPrimaryKey(Long dictId);", "List<WordSchool> selectByExample(WordSchoolExample example);", "public OWLModel getKnowledgeBase();", "@Transactional\r\n\tpublic List<CmVocabularyCategory> getCmVocabularyCategorys() {\r\n\t\treturn dao.findAllWithOrder(CmVocabularyCategory.class, \"modifyTimestamp\", false);\r\n\t}", "public static void caso31(){\n\t FilterManager fm= new FilterManager(\"resources/stopWordsList.txt\",\"resources/useCaseWeight.properties\");\n\t\t\tQualityAttributeBelongable qualityAttributeBelongable = new OntologyManager(\"file:resources/caso3.owl\",\"file:resources/caso3.repository\",fm);\n\t\t\tMap<QualityAttributeInterface,Double> map = qualityAttributeBelongable.getWordPertenence(\"response1\");\n\t\t\tif(map==null){\n\t\t\t\tSystem.out.println(\"El map es null\");\n\t\t\t}else{\n\t\t\t\tMapUtils.imprimirMap(map);\n\t\t\t}\n\t}", "public void setKeyWordTableName(String keyWordTableName) {\r\n\t\tthis.keyWordTableName = keyWordTableName;\r\n\t}", "public static void caso32(){\n\t FilterManager fm= new FilterManager(\"resources/stopWordsList.txt\",\"resources/useCaseWeight.properties\");\n\t\t\tQualityAttributeBelongable qualityAttributeBelongable = new OntologyManager(\"file:resources/caso3.owl\",\"file:resources/caso3.repository\",fm);\n\t\t\tMap<QualityAttributeInterface,Double> map = qualityAttributeBelongable.getWordPertenence(\"response2\");\n\t\t\tif(map==null){\n\t\t\t\tSystem.out.println(\"El map es null\");\n\t\t\t}else{\n\t\t\t\tMapUtils.imprimirMap(map);\n\t\t\t}\n\t}", "WordSchool selectByPrimaryKey(Long id);", "public void AddKeywords()\n\t{\n\t\ttry\n\t\t{\n\t\t\tConnector con = new Connector();\n\t\t\tString query; \n\t\t\t\n\t\t\tfor(int i = 0; i < keywords.size(); i++)\n\t\t\t{\n\t\t\t\tString keyword = keywords.get(i); \n\t\t\t\t\n\t\t\t\tint kid = GetKIDFromWord(keyword); \n\t\t\t\t\n\t\t\t\t//word is not already in table\n\t\t\t\tif(kid == -1)\n\t\t\t\t{\n\t\t\t\t\t//insert word into Keywords \n\t\t\t\t\tSystem.out.println(\"test\"); \n\t\t\t\t\tquery = \"INSERT INTO Keywords(word) VALUE ('\"+keyword+\"')\"; \n\t\t\t \tint intoTable = con.stmt.executeUpdate(query); \n\t\t\t \t\n\t\t\t \t//able to put it in the table\n\t\t\t \tif(intoTable > 0)\n\t\t\t \t{\n\t\t\t \t\t//insert into HasKeywords\n\t\t\t\t \tkid = GetKIDFromWord(keyword); \n\t\t\t\t\t\tquery = \"INSERT INTO HasKeywords(keyword_hid, keyword_kid) VALUE('\"+hid+\"', '\"+kid+\"')\";\n\t\t\t\t \tint hasKey = con.stmt.executeUpdate(query); \n\t\t\t \t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//word is already in table\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tList<Integer> hkCheck = GetHIDSFromKID(kid);\n\t\t\t\t\t\n\t\t\t\t\tboolean inHKTable = false; \n\t\t\t\t\tfor(int j = 0; j < hkCheck.size(); j++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(hkCheck.get(j) == hid)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tinHKTable = true; \n\t\t\t\t\t\t\tbreak; \n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif(inHKTable == false)\n\t\t\t\t\t{\n\t\t\t\t\t\tquery = \"INSERT INTO HasKeywords(keyword_hid, keyword_kid) VALUE('\"+hid+\"', '\"+kid+\"')\";\n\t\t\t\t \tint hasKey = con.stmt.executeUpdate(query); \n\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tcon.closeConnection();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t}", "public final void mRULE_TOKEN_VOCAB() throws RecognitionException {\n try {\n int _type = RULE_TOKEN_VOCAB;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalUniMapperGenerator.g:5095:18: ( 'tokenVocab' )\n // InternalUniMapperGenerator.g:5095:20: 'tokenVocab'\n {\n match(\"tokenVocab\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public static void testDictionary() throws IOException {\n String wnhome=\"c:\\\\Users\\\\Katherine\\\\Documents\\\\2nd sem\\\\IR\\\\project\\\\WordNet_3.1\";\n String path = wnhome + File.separator + \"dict\";\n\n\n URL url = new URL(\"file\", null, path);\n\n IDictionary dictionary = new Dictionary(url);\n dictionary.open();\n // /Users/Ward/Downloads\n IIndexWord indexWord = dictionary.getIndexWord(\"use\", POS.VERB);\n\n for (IWordID wordID : indexWord.getWordIDs()) {\n\n IWord word = dictionary.getWord(wordID);\n for (IWord word1 : word.getSynset().getWords()) {\n System.out.println(word1.getLemma());\n }\n// System.out.println(\"Id = \" + wordID);\n// System.out.println(\" Lemma = \" + word.getLemma());\n// System.out.println(\" Gloss = \" + word.getSynset().getGloss());\n\n List<ISynsetID> hypernyms =\n word.getSynset().getRelatedSynsets(Pointer.HYPERNYM);\n // print out each h y p e r n y m s id and synonyms\n List<IWord> words;\n for (ISynsetID sid : hypernyms) {\n words = dictionary.getSynset(sid).getWords();\n System.out.print(sid + \" {\");\n for (Iterator<IWord> i = words.iterator(); i.hasNext(); ) {\n System.out.print(i.next().getLemma());\n if (i.hasNext())\n System.out.print(\", \");\n }\n System.out.println(\"}\");\n }\n }\n }", "public Vector mapDocument(MultiSet<String> bow) {\n //logger.info(\"lsm.mapDocument\");\n SparseVector vector = new SparseVector();\n\n Iterator<String> it = bow.iterator();\n String term = null;\n int index = 0;\n int tf = 0;\n float tfIdf;\n for (int i = 0; it.hasNext(); i++) {\n //logger.info(i + \" \" + t[i]);\n term = it.next();\n index = termIndex.get(term);\n\n if (index != -1) {\n tf = bow.getFrequency(term);\n tfIdf = (float) (log2(tf)) * Iidf[index];\n\n //logger.info(term + \" ==> \" + index + \", tf.idf = \" + tf + \"(\" + (log2(tf)) + \") * \" + Iidf[index] + \" = \" + tfIdf);\n vector.add(index, tfIdf);\n\n }\n } // end for\n\n return vector;\n }", "public static void writeArchivedVocab(Vocab vocab) {\n String userId = FirebaseAuth.getInstance().getUid();\n Log.d(\"000\", \"writeVocab: \"+userId);\n mDatabase.child(\"user\").child(userId).child(\"archive\").child(vocab.Id).setValue(vocab);\n }", "public List<Term> getAllTerms() {\n\t\tsession.beginTransaction();\n\t\tList<Term> lis = session.createQuery(\"from Term\").list();\n\n\t\tfor (Term tm : lis) {\n\t\t\tSystem.out.println(tm.getId() + \" \" + tm.getTermName());\n\t\t}\n\t\treturn lis;\n\t}", "public WordsWrapper getVocabulariesWrapper() {\n\t\tWordsWrapper wrapper = new WordsWrapper();\n\t\twrapper.mainvocabs = m__vocabs;\n\t\twrapper.referenes = m__referencedwords;\n\t\treturn wrapper;\n\t}", "public interface DictionaryDao<Type extends DictionaryProperty<Id>, Id extends Serializable> {\r\n\t/** \r\n\t * <!-- begin-UML-doc -->\r\n\t * Zwraca wszystkie mozliwe wartosci slownika.\r\n\t * <!-- end-UML-doc -->\r\n\t * @return\r\n\t * @generated \"UML to Java (com.ibm.xtools.transform.uml2.java5.internal.UML2JavaTransform)\"\r\n\t */\r\n\tpublic List<Type> getAll();\r\n}", "@Override\n public Builder limitVocabularySize(int limit) {\n super.limitVocabularySize(limit);\n return this;\n }", "@Override\n public List<DefinitionDTO> findAllWords() {\n List<Word> words = wordRepository.findAll();\n return DTOMapper.mapWordListToDefinitionDTOList(words);\n }", "public interface ArchetypeLevelsSchema {\n\tString TABLE_NAME = \"creature_archetype_levels\";\n\n\tString COLUMN_ARCHETYPE_ID = \"archetypeId\";\n\tString COLUMN_LEVEL = \"level\";\n\tString COLUMN_ATTACK = \"attack\";\n\tString COLUMN_ATTACK2 = \"attack2\";\n\tString COLUMN_DEF_BONUS = \"defensiveBonus\";\n\tString COLUMN_BODY_DEV = \"bodyDevelopment\";\n\tString COLUMN_PRIME_SKILL = \"primeSkill\";\n\tString COLUMN_SECONDARY_SKILL = \"secondarySkill\";\n\tString COLUMN_POWER_DEV = \"powerDevelopment\";\n\tString COLUMN_SPELLS = \"spells\";\n\tString COLUMN_TALENT_DP = \"talentDP\";\n\tString COLUMN_AGILITY = \"agility\";\n\tString COLUMN_CONS_STAT = \"constitutionStat\";\n\tString COLUMN_CONSTITUTION = \"constitution\";\n\tString COLUMN_EMPATHY = \"empathy\";\n\tString COLUMN_INTUITION = \"intuition\";\n\tString COLUMN_MEMORY = \"memory\";\n\tString COLUMN_PRESENCE = \"presence\";\n\tString COLUMN_QUICKNESS = \"quickness\";\n\tString COLUMN_REASONING = \"reasoning\";\n\tString COLUMN_SELF_DISC = \"selfDiscipline\";\n\tString COLUMN_STRENGTH = \"strength\";\n\n\tString TABLE_CREATE = \"CREATE TABLE IF NOT EXISTS \"\n\t\t\t+ TABLE_NAME\n\t\t\t+ \" (\"\n\t\t\t+ COLUMN_ARCHETYPE_ID + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_LEVEL + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_ATTACK + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_ATTACK2 + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_DEF_BONUS + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_BODY_DEV + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_PRIME_SKILL + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_SECONDARY_SKILL + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_POWER_DEV + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_SPELLS + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_TALENT_DP + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_AGILITY + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_CONS_STAT + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_CONSTITUTION + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_EMPATHY + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_INTUITION + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_MEMORY + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_PRESENCE + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_QUICKNESS + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_REASONING + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_SELF_DISC + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_STRENGTH + \" INTEGER NOT NULL, \"\n\t\t\t+ \"PRIMARY KEY(\" + COLUMN_ARCHETYPE_ID + \",\" + COLUMN_LEVEL + \")\"\n\t\t\t+ \")\";\n\n\tString[] COLUMNS = new String[] { COLUMN_ARCHETYPE_ID, COLUMN_LEVEL, COLUMN_ATTACK, COLUMN_ATTACK2, COLUMN_DEF_BONUS,\n\t\t\tCOLUMN_BODY_DEV, COLUMN_PRIME_SKILL, COLUMN_SECONDARY_SKILL, COLUMN_POWER_DEV, COLUMN_SPELLS, COLUMN_TALENT_DP,\n\t\t\tCOLUMN_AGILITY, COLUMN_CONS_STAT, COLUMN_CONSTITUTION, COLUMN_EMPATHY, COLUMN_INTUITION, COLUMN_MEMORY,\n\t\t\tCOLUMN_PRESENCE, COLUMN_QUICKNESS, COLUMN_REASONING, COLUMN_SELF_DISC, COLUMN_STRENGTH};\n}", "public static void moveCorrectToArchive(Vocab vocab){\n\n DatabaseReference vocabRef=FirebaseDatabase.getInstance().getReference().child(\"user\").child(FirebaseAuth.getInstance().getUid()).child(\"vocab\").child(vocab.Id);\n vocabRef.removeValue();\n archiveVocabs.add(vocab);\n writeArchivedVocab(vocab);\n\n }", "Terms selectByPrimaryKey(Integer id);", "public Iterator words() {\n return index.keySet().iterator();\n }", "public Word getWord(int id);", "public List search() {\n\t\tSessionFactory sf = new Configuration().configure()\n\t\t\t\t.buildSessionFactory();\n\t\tSession s = sf.openSession();\n\t\tQuery q = s.createQuery(\"from cat_vo\");\n\t\tList ls = q.list();\n\t\treturn ls;\n\t}", "public List<Term> getAllTermsByDictionary(String table, String dictionary) {\n List<Term> termList = new ArrayList<Term>();\n\n // Select All Query\n String selectQuery = \"SELECT * FROM \" + table + \" WHERE \" + KEY_DICTIONARY + \" = '\" + dictionary + \"' ORDER BY \" + KEY_TERM;\n\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor cursor = db.rawQuery(selectQuery, null);\n\n // looping through all rows and adding to list\n if (cursor.moveToFirst()) {\n do {\n if (!cursor.getString(2).isEmpty()) {\n /*\n Term term = new Term();\n term.setId(Integer.parseInt(cursor.getString(0)));\n term.setDictionary(cursor.getString(1));\n term.setTerm(cursor.getString(2));\n term.setSubject(cursor.getString(3));\n term.setDefinition(cursor.getString(4));\n term.setSynonyms(cursor.getString(5));\n */\n Term term = new Term(Integer.parseInt(cursor.getString(0)),cursor.getString(1), cursor.getString(2), cursor.getString(3),\n cursor.getString(4), cursor.getString(5), Integer.parseInt(cursor.getString(6)));\n // Adding term to list\n termList.add(term);\n }\n } while (cursor.moveToNext());\n }\n\n // return term list\n return termList;\n }", "Integer getSkillCount( String key ){\n return developer.skills.size();\n }", "public List<Skill> findAll(){\n return (List<Skill>) skillRepository.findAll();\n }", "public Courses getCourseTable();", "@Override\n protected Builder useExistingWordVectors(@NonNull WordVectors vec) {\n return this;\n }", "private void indexRelations(String inputFile, FlagConfig flagConfig) throws IOException {\n this.elementalVectors = VectorStoreRAM.readFromFile(\n flagConfig, \"C:\\\\Users\\\\dwiddows\\\\Data\\\\QI\\\\Gutterman\\\\termtermvectors.bin\");\n this.flagConfig = flagConfig;\n this.proportionVectors = new ProportionVectors(flagConfig);\n this.luceneUtils = new LuceneUtils(flagConfig);\n VectorStoreWriter writer = new VectorStoreWriter();\n\n // Turn all the text lines into parsed records.\n this.parseInputFile(inputFile);\n\n // Now the various indexing techniques.\n VectorStoreRAM triplesVectors = new VectorStoreRAM(flagConfig);\n VectorStoreRAM triplesPositionsVectors = new VectorStoreRAM(flagConfig);\n VectorStoreRAM dyadsVectors = new VectorStoreRAM(flagConfig);\n VectorStoreRAM dyadsPositionsVectors = new VectorStoreRAM(flagConfig);\n VectorStoreRAM verbsVectors = new VectorStoreRAM(flagConfig);\n VectorStoreRAM verbsPositionsVectors = new VectorStoreRAM(flagConfig);\n\n for (String docName : this.parsedRecords.keySet()) {\n Vector tripleDocVector = VectorFactory.createZeroVector(flagConfig.vectortype(), flagConfig.dimension());\n Vector tripleDocPositionVector = VectorFactory.createZeroVector(flagConfig.vectortype(), flagConfig.dimension());\n Vector dyadDocVector = VectorFactory.createZeroVector(flagConfig.vectortype(), flagConfig.dimension());\n Vector dyadDocPositionVector = VectorFactory.createZeroVector(flagConfig.vectortype(), flagConfig.dimension());\n Vector verbDocVector = VectorFactory.createZeroVector(flagConfig.vectortype(), flagConfig.dimension());\n Vector verbDocPositionVector = VectorFactory.createZeroVector(flagConfig.vectortype(), flagConfig.dimension());\n\n for (ParsedRecord record : this.parsedRecords.get(docName)) {\n Vector tripleVector = this.getPsiTripleVector(record);\n tripleDocVector.superpose(tripleVector, 1, null);\n\n this.bindWithPosition(record, tripleVector);\n tripleDocPositionVector.superpose(tripleVector, 1, null);\n\n Vector dyadVector = this.getPsiDyadVector(record);\n dyadDocVector.superpose(dyadVector, 1, null);\n this.bindWithPosition(record, dyadVector);\n dyadDocPositionVector.superpose(dyadVector, 1, null);\n\n Vector verbVector = this.vectorForString(record.predicate);\n verbDocVector.superpose(verbVector, 1, null);\n this.bindWithPosition(record, verbVector);\n verbDocPositionVector.superpose(verbVector, 1, null);\n }\n\n triplesVectors.putVector(docName, tripleDocVector);\n triplesPositionsVectors.putVector(docName, tripleDocPositionVector);\n dyadsVectors.putVector(docName, dyadDocVector);\n dyadsPositionsVectors.putVector(docName, dyadDocPositionVector);\n verbsVectors.putVector(docName, verbDocVector);\n verbsPositionsVectors.putVector(docName, verbDocPositionVector);\n }\n\n for (VectorStore vectorStore : new VectorStore[] {\n triplesVectors, triplesPositionsVectors, dyadsVectors, dyadsPositionsVectors, verbsVectors, verbsPositionsVectors }) {\n Enumeration<ObjectVector> vectorEnumeration = vectorStore.getAllVectors();\n while (vectorEnumeration.hasMoreElements())\n vectorEnumeration.nextElement().getVector().normalize();\n }\n\n writer.writeVectors(TRIPLES_OUTPUT_FILE, flagConfig, triplesVectors);\n writer.writeVectors(TRIPLES_POSITIONS_OUTPUT_FILE, flagConfig, triplesPositionsVectors);\n\n writer.writeVectors(DYADS_OUTPUT_FILE, flagConfig, dyadsVectors);\n writer.writeVectors(DYADS_POSITIONS_OUTPUT_FILE, flagConfig, dyadsPositionsVectors);\n\n writer.writeVectors(VERBS_OUTPUT_FILE, flagConfig, verbsVectors);\n writer.writeVectors(VERBS_POSITIONS_OUTPUT_FILE, flagConfig, verbsPositionsVectors);\n }", "int getConceptLanguagesCount();", "@Override\n public Builder lookupTable(@NonNull WeightLookupTable<VocabWord> lookupTable) {\n super.lookupTable(lookupTable);\n return this;\n }", "WordBean getWord(String word);", "public List<Product> search(String word, String codigo) {\n\t\tSession session = getSessionFactory().openSession();\n\t\treturn null;\n\t}", "private void invertedToDatabase(){\r\n cleFreq = new HashMap<>();\r\n System.out.println(\"Strat collecting\");\r\n Map<String,List<Invertedindex>> collects = collecting();\r\n System.out.println(\"Ending collecting\");\r\n Database.getInstance().invertedIndex(collects);\r\n Database.getInstance().addPoids(cleFreq);\r\n }", "@SuppressWarnings({ \"deprecation\", \"unchecked\", \"rawtypes\" })\n\tpublic String generateWordlists(Corpus co) {\n\t\tlong startTime = System.currentTimeMillis();\n\t\t// Set up weka word vector\n\t\tFastVector attributes;\n\t\tInstances dataSet;\n\t\tattributes = new FastVector();\n\n\t\tattributes.addElement(new Attribute(\"aspect_id\", (FastVector) null));\n\t\tattributes.addElement(new Attribute(\"tokens\", (FastVector) null));\n\n\t\tdataSet = new Instances(\"BeerAspects\", attributes, 0);\n\n\t\tCorpus topReviews;\n\t\tCorpus lowReviews;\n\n\t\t// Do top and low for all aspects\n\t\tfor (Aspect aspect : Aspect.values()) {\n\n\t\t\t// Only for actual aspects\n\t\t\tif (aspect.equals(Aspect.NONE) || aspect.equals(Aspect.OVERALL))\n\t\t\t\tcontinue;\n\n\t\t\ttopReviews = co.getTopReviews(aspect);\n\t\t\ttopReviews.analyze();\n\t\t\tString tokens = topReviews.getTokenConcatenation(aspect);\n\n\t\t\tInstance instance = new SparseInstance(2);\n\t\t\tinstance.setValue((Attribute) attributes.elementAt(0), aspect.name() + \"_TOP\");\n\t\t\tinstance.setValue((Attribute) attributes.elementAt(1), tokens);\n\n\t\t\tdataSet.add(instance);\n\n\t\t\tlowReviews = co.getLowReviews(aspect);\n\t\t\tlowReviews.analyze();\n\t\t\ttokens = lowReviews.getTokenConcatenation(aspect);\n\t\t\t// System.out.println(tokens);\n\n\t\t\tinstance = new SparseInstance(2);\n\t\t\tinstance.setValue((Attribute) attributes.elementAt(0), aspect.name() + \"_LOW\");\n\t\t\tinstance.setValue((Attribute) attributes.elementAt(1), tokens);\n\n\t\t\tdataSet.add(instance);\n\t\t}\n\n\t\t// System.out.println(dataSet.toString());\n\t\tInstances dataFiltered = transformToWordVector(dataSet, co.getProps());\n\n\t\t// System.out.println(dataFiltered.toString());\n\t\tString pathsToLists = writeWordlists(dataFiltered);\n\n\t\twriteArffFile(dataFiltered, this.outputDir+\"wordvector.arff\");\n\n\t\tlong stopTime = System.currentTimeMillis();\n\t\tlong elapsedTime = stopTime - startTime;\n\t\tSystem.out.println(\"Generated wordlists in: \" + elapsedTime / 1000 + \" s\");\n\t\treturn pathsToLists;\n\t}", "boolean putWord(WordBean wordBean);", "public Table<Integer, Integer, String> getAnonymizedData();", "public static void caso12(){\n\n FilterManager fm= new FilterManager(\"resources/stopWordsList.txt\",\"resources/useCaseWeight.properties\");\n\t\tQualityAttributeBelongable qualityAttributeBelongable = new OntologyManager(\"file:resources/caso1.owl\",\"file:resources/caso1.repository\",fm);\n\t\tMap<QualityAttributeInterface,Double> map = qualityAttributeBelongable.getWordPertenence(\"pan\");\n\t\tif(map==null){\n\t\t\tSystem.out.println(\"El map es null\");\n\t\t}\n\t}", "public void addToJurisdictions(entity.AppCritJurisdiction element);", "public static void caso11(){\n\t\t\n FilterManager fm= new FilterManager(\"resources/stopWordsList.txt\",\"resources/useCaseWeight.properties\");\n\t\tQualityAttributeBelongable qualityAttributeBelongable = new OntologyManager(\"file:resources/caso1.owl\",\"file:resources/caso1.repository\",fm);\n\t\tMap<QualityAttributeInterface,Double> map = qualityAttributeBelongable.getWordPertenence(\"response\");\n\t\tMapUtils.imprimirMap(map);\n\t}", "public String getNomTable();", "public void init() {\n File file=new File(\"D:\\\\lucene\\\\index\");\n if(file.isDirectory())\n { //否则如果它是一个目录\n File files[] = file.listFiles(); //声明目录下所有的文件 files[];\n for(int i=0;i<files.length;i++)\n { //遍历目录下所有的文件\n files[i].delete(); //把每个文件 用这个方法进行迭代\n }\n }\n String indexPath = \"D:\\\\lucene\\\\index\";\n //String docsPath = \"D:\\\\lucene\\\\data\";\n boolean create = true;\n try\n {\n Session session=factory.openSession();\n String hql = \"from Book\";\n org.hibernate.Query query = session.createQuery(hql);\n List<Book> list=query.list();\n Directory indexDir = FSDirectory.open(Paths.get(\"D:\\\\lucene\\\\index\"));\n Analyzer luceneAnalyzer = new StandardAnalyzer(); //新建一个分词器实例 \n IndexWriterConfig config = new IndexWriterConfig(luceneAnalyzer); \n IndexWriter indexWriter = new IndexWriter(indexDir,config);\n for(int i=0;i<list.size();i++)\n {\n Document document = new Document();\n Field field1 = new StringField(\"id\",list.get(i).getBookid().toString(),Field.Store.YES); \n Field field2 = new StringField(\"bookname\",list.get(i).getBookname(),Field.Store.YES); \n Field field3 = new StringField(\"author\",list.get(i).getAuthor(),Field.Store.YES); \n Field field4 = new StringField(\"category\",list.get(i).getCategory(),Field.Store.YES); \n Field field5 = new StringField(\"price\", Double.toString(list.get(i).getPrice()),Field.Store.YES); \n document.add(field1); \n document.add(field2); \n document.add(field3); \n document.add(field4);\n document.add(field5);\n indexWriter.addDocument(document);\n }\n indexWriter.close();\n }\n catch(IOException e)\n {\n System.out.println(\"error\");\n return;\n }\n }", "hr.domain.ResumeDBOuterClass.Education getEducations(int index);", "hr.domain.ResumeDBOuterClass.Experience getExperiences(int index);", "public void fillNounTbl(String sentenceID){\n\t\t// implement me!\n\t}", "void createOrUpdateVocabulary(final VocabularyPE vocabularyPE);", "@Override\n public Builder iterate(@NonNull SequenceIterator<VocabWord> iterator) {\n super.iterate(iterator);\n return this;\n }", "private void createFreqVector(Path file) {\r\n\t\t\tVector vector = new Vector(vocabulary.size());\r\n\t\t\tList<String> lines;\r\n\t\t\ttry {\r\n\t\t\t\tlines = Files.readAllLines(file);\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tSet<String> words = new HashSet<>();\r\n\t\t\t//create frequency vector of words in single document -> tf(w,d)\r\n\t\t\tfor (String line : lines) {\r\n\t\t\t\tif (line.isEmpty()) continue;\r\n\t\t\t\tString[] values = p.split(line);\r\n\t\t\t\tfor (String value : values) { \r\n\t\t\t\t\tif (value.isEmpty()) continue;\r\n\t\t\t\t\tString lowWord = value.toLowerCase().trim();\r\n\t\t\t\t\t\r\n\t\t\t\t\tInteger[] arr = vocabulary.get(lowWord);\r\n\t\t\t\t\tif (arr == null) continue;\r\n\t\t\t\t\tvector.incrementValueAt(arr[0]);\r\n\t\t\t\t\tif (words.add(lowWord)) {\r\n\t\t\t\t\t\t arr[1] += 1;\t//first time occurrence of this word in document\r\n\t\t\t\t\t\tvocabulary.put(lowWord, arr);\t//increment number of documents for this word\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\tfreqVectors.put(file, vector);\t\t\r\n\t\t}", "private String[][] getMoodsTableValues() {\n String soso = DBTypesKeys.SO_SO_MOOD.getTypeValue();\n String sad = DBTypesKeys.SAD_MOOD.getTypeValue();\n String angry = DBTypesKeys.ANGRY_MOOD.getTypeValue();\n String happy = DBTypesKeys.HAPPY_MOOD.getTypeValue();\n // moods table\n return new String[][]{\n //moods hi answers by answers // id_ (enum index + 1)\n { soso, \"hey\", \"by\"}, // 1\n { sad, \"welcome to sad world\", \"so, you too ...\"}, // 2\n { angry, \"get out!\", \"thanks god, you away\"}, // 3\n { happy, \"hi! glad to see you =)\", \"good luck, buddy\"} // 4\n };\n }", "private VocabularyTerms getVocabularyTerms(Collection<CMAContentType> vocabularies) {\n VocabularyTerms vocabularyTerms = new VocabularyTerms();\n vocabularies\n .forEach(contentType -> {\n //Keeps the country vocabulary ID for future use\n if (contentType.getName().equals(configuration.getCountryVocabulary())) {\n vocabularyTerms.loadCountryVocabulary(contentType);\n } else {\n //Loads vocabulary into memory\n vocabularyTerms.loadVocabulary(contentType);\n }\n });\n return vocabularyTerms;\n }", "public static String getTokenVocabFromGrammar(String text) {\n\t\t// TODO: unneeded. use antlr Tool. Kill?\n//\t\tParsingResult r = parseANTLRGrammar(text);\n//\t\tif ( r.tree!=null ) { //&& r.syntaxErrorListener.getSyntaxErrors().size()==0 ) {\n//\t\t\t// option : id ASSIGN optionValue ;\n//\t\t\tCollection<ParseTree> options = XPath.findAll(r.tree, \"//option\", r.parser);\n//\t\t\tfor (Iterator<ParseTree> it = options.iterator(); it.hasNext(); ) {\n//\t\t\t\tANTLRv4Parser.OptionContext option = (ANTLRv4Parser.OptionContext)it.next();\n//\t\t\t\tif ( option.id().getText().equals(\"tokenVocab\") ) {\n//\t\t\t\t\t/*\n//\t\t\t\t\toptionValue\n//\t\t\t\t\t\t:\tid (DOT id)*\n//\t\t\t\t\t\t|\tSTRING_LITERAL\n//\t\t\t\t\t\t|\tACTION\n//\t\t\t\t\t\t|\tINT\n//\t\t\t\t\t\t;\n//\t\t\t\t\t */\n//\t\t\t\t\tANTLRv4Parser.OptionValueContext optionValue = option.optionValue();\n//\t\t\t\t\tif ( optionValue.STRING_LITERAL()!=null ) {\n//\t\t\t\t\t\tString s = optionValue.STRING_LITERAL().getText();\n//\t\t\t\t\t\treturn RefactorUtils.getLexerRuleNameFromLiteral(s);\n//\t\t\t\t\t}\n//\t\t\t\t\tif ( optionValue.id(0)!=null ) {\n//\t\t\t\t\t\treturn optionValue.id(0).getText();\n//\t\t\t\t\t}\n//\t\t\t\t}\n//\t\t\t}\n//\t\t}\n\t\treturn null;\n\t}", "private Resolution getVocabularyConceptResolution() {\r\n HttpServletRequest httpRequest = getContext().getRequest();\r\n String url = httpRequest.getRequestURL().toString();\r\n // String query = httpRequest.getQueryString();\r\n \r\n String[] parameters = StringUtils.split(StringUtils.substringAfter(url, \"/vocabulary/\"), \"/\");\r\n \r\n if (parameters.length >= 2) {\r\n if (!RESERVED_VOCABULARY_EVENTS.contains(parameters[1])) {\r\n RedirectResolution resolution = new RedirectResolution(VocabularyConceptActionBean.class, \"view\");\r\n resolution.addParameter(\"vocabularyFolder.identifier\", parameters[0]);\r\n resolution.addParameter(\"vocabularyConcept.identifier\", parameters[1]);\r\n resolution.addParameter(\"vocabularyFolder.workingCopy\", vocabularyFolder.isWorkingCopy());\r\n \r\n return resolution;\r\n }\r\n }\r\n \r\n return null;\r\n }", "public SPARQL() {\n initComponents();\n \n model = ModelFactory.createOntologyModel(OntModelSpec.OWL_LITE_MEM_RDFS_INF);\n model.setDynamicImports(true);\n model.read(\"file:\"+\"data/ontologies/Papers_Ready.owl\", \"http://www.l3g.pl/ontologies/OntoBeef/Papers.owl\", \"N-TRIPLE\");\n model.loadImports();\n \n for (Individual i : model.listIndividuals(model.getOntClass(\"http://www.l3g.pl/ontologies/OntoBeef/Conceptualisation.owl#Category\")).toSet())\n {\n System.out.println(i.listLabels(null).toSet());\n }\n }", "@Override\n public AutoBuffer write_impl(AutoBuffer ab) {\n if (_vocabHM == null) return ab.put1(1); // killed\n\n int strLen = 0;\n for (ValueStringCount val : VOCABHM.values())\n strLen += val.length();\n ab.put1(0); // not killed\n ab.put4(strLen); //length of string buffer\n for (ValueStringCount val : VOCABHM.values())\n ab.put2((char) val.length()).putA1(val.getBuffer(), val.getOffset(), val.getOffset() + val.length()).put8(val._cnt);\n return ab.put2((char) 65535); // End of map marker\n }", "@SuppressWarnings(\"unchecked\")\r\n\tpublic static void main(String[] args) throws IOException {\n\t\tSchema s = new Schema(\"Estudiantes\",\"C:\\\\Users\\\\morazan\\\\Desktop\\\\com\\\\idk\\\\ac\\\\cr\");\r\n\n\t\tSchemaJoin j = new SchemaJoin(\"Notas\",\"C:\\\\Users\\\\morazan\\\\Desktop\\\\com\\\\idk\\\\ac\\\\cr\");\r\n\r\n\t\t//Creates an index in the regular schema\r\n\t\ts.createIndex(\"bts\", \"string\", \"Nombre\", 10);\r\n\t\ts.createIndex(\"avl\", \"number\", \"aņo\", 4);\r\n\t\ts.createIndex(\"avl\", \"image\", \"Imagen\", 0);\r\n\t\tj.joinSchema(s);\r\n\t\tj.createJoinedIndex(\"avl\", \"number\", \"Notas\", 2);\r\n\t\t\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"Inserting I \");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\ts.insertToIndex(1, \"JP\");\r\n\t\ts.insertToIndex(1, \"Randy\");\r\n\t\ts.insertToIndex(1, \"Alejandra\");\r\n//\t\ts.insertToIndex(1, \"Xcreed\");\r\n\t\ts.insertToIndex(2, 1996);\r\n\t\ts.insertToIndex(2, 1995);\r\n\t\ts.insertToIndex(2, 1997);\n\t\ts.insertToIndex(3, \"SchemaExtraFiles/2.jpg\");\n\t\ts.insertToIndex(3, \"SchemaExtraFiles/8.jpg\");\n\t\ts.insertToIndex(3, \"SchemaExtraFiles/4.jpg\");\n\t\t\n\t\tIndexBTS index = (IndexBTS) s.schema.getItem(1);\r\n\t\tBinarySearchTree t = (BinarySearchTree) index.tree;\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"Traversal I\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tt.inOrderTraversal();\r\n\t\t\n\t\tIndexAVL index2 = (IndexAVL) s.schema.getItem(2);\r\n\t\tAVLTree t2 = (AVLTree) index2.getTree();\r\n\t\tSystem.out.println(\"avl order\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"Traversal II\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\n\t\tt2.inorder();\n\t\t\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"Inserting II \");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tj.insertToIndex(1, 80);\r\n\t\tj.insertToIndex(1, 82);\r\n\t\tj.insertToIndex(1, 78);\t\t\t\r\n\t\t\r\n//\t\tSystem.out.println(s.search(\"JP\"));\r\n//\t\tSystem.out.println(s.deleteInIndex(1,\"JP\"));\r\n//\t\tSystem.out.println(s.search(\"JP\"));\r\n\t\t\r\n\t\tSystem.out.println(\"Getting line 1\");\r\n\t\ts.getLine(1);\r\n//\t\ts.deleteLine(1);\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"Searching 82 \");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tj.joinedSearch(82);\r\n\r\n\t\t//Deletes an index in the schema\r\n//\t\ts.schema.print();\r\n//\t\ts.deleteIndex(1);\r\n//\t\ts.schema.print();\r\n\t\t\r\n// ***********Activate Separately**********\r\n\t\t\r\n//\t\ts.createIndex(\"bts\", \"video\", \"Videos\", 0);\r\n//\t\ts.insertToIndex(1, \"SchemaExtraFiles/Trike Drifting.mp4\");\r\n\t\t\r\n//\t***************************************\r\n\t\t\r\n\t\tJSONProtocol json = new JSONProtocol();\r\n\t\tjson.writeSchema(s);\r\n\t\t\t\t\r\n\t\t\r\n\t}", "TableId table();", "public boolean buildVocab() {\n readStopWords();\n\n if(cache.vocabExists()) {\n log.info(\"Loading vocab...\");\n cache.loadVocab();\n cache.resetWeights();\n return true;\n }\n\n //vectorizer will handle setting up vocab meta data\n if(vectorizer == null)\n vectorizer = new TfidfVectorizer.Builder()\n .cache(cache).iterate(docIter).iterate(sentenceIter)\n .minWords(minWordFrequency).stopWords(stopWords)\n .tokenize(tokenizerFactory).build();\n vectorizer.fit();\n\n setup();\n\n return false;\n }", "public List<Kateggorija> getSviGlumci() {\n List<Kateggorija> glumci=null;\n try {\n glumci= getDaoKateggorija().queryForAll();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n return glumci;\n }", "@VTID(10)\n int getIndex();", "Skill getSkill(Long skillId) throws DbException;", "public List<String> GetKeywords()\n\t{\n\t\tList<String> words = new ArrayList<String>(); \n\t\ttry\n\t\t{\n\t\t\tConnector con = new Connector();\n\t \n\t String query = \"SELECT keyword_kid FROM HasKeywords WHERE keyword_hid = '\"+hid+\"'\"; \n\t ResultSet rs = con.stmt.executeQuery(query); \n\t \n\t List<Integer> k_ids = new ArrayList<Integer>(); \n\t while(rs.next())\n\t {\n\t \tint new_id = rs.getInt(\"keyword_kid\"); \n\t \tk_ids.add(new_id); \n\t }\n\t \n\t for(int i = 0; i < k_ids.size(); i++)\n\t {\n\t \tquery = \"SELECT word FROM Keywords WHERE k_id = '\"+k_ids.get(i)+\"'\"; \n\t \trs = con.stmt.executeQuery(query); \n\t \twhile(rs.next())\n\t \t{\n\t \t\tString kw = rs.getString(\"word\"); \n\t \t\twords.add(kw); \n\t \t}\n\t }\n\t \n\t con.closeConnection();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\tkeywords = words; \n\t\treturn keywords; \n\t}", "java.lang.String getSemanticLangidModelName();", "public interface DBSDictionary\n{\n /**\n * Checks that this constrain supports key enumerations.\n * Usually it depends on constraint type (enumerations makes sense only for unique constraints).\n * @return true or false\n */\n boolean supportsDictionaryEnumeration();\n\n /**\n * Gets enumeration values\n *\n * @param monitor session\n * @param keyColumn enumeration column.\n * @param keyPattern pattern for enumeration values. If null or empty then returns full enumration set\n * @param searchText\n * @param preceedingKeys other constrain key values. May be null.\n * @param caseInsensitiveSearch use case-insensitive search for {@code keyPattern}\n * @param sortAsc ascending sorting (irrelevant is {@code sortByValue} is false)\n * @param sortByValue sort results by value\n * @param offset enumeration values offset in result set\n * @param maxResults maximum enumeration values in result set\n * @return statement with result set which contains valid enumeration values.\n */\n @NotNull\n List<DBDLabelValuePair> getDictionaryEnumeration(\n @NotNull DBRProgressMonitor monitor,\n @NotNull DBSEntityAttribute keyColumn,\n @Nullable Object keyPattern,\n @Nullable String searchText,\n @Nullable List<DBDAttributeValue> preceedingKeys,\n boolean caseInsensitiveSearch,\n boolean sortAsc,\n boolean sortByValue,\n int offset,\n int maxResults\n ) throws DBException;\n\n @NotNull\n List<DBDLabelValuePair> getDictionaryValues(\n @NotNull DBRProgressMonitor monitor,\n @NotNull DBSEntityAttribute keyColumn,\n @NotNull List<Object> keyValues,\n @Nullable List<DBDAttributeValue> preceedingKeys,\n boolean sortByValue,\n boolean sortAsc\n ) throws DBException;\n\n @NotNull\n DBSDictionaryAccessor getDictionaryAccessor(\n @NotNull DBRProgressMonitor monitor,\n @Nullable List<DBDAttributeValue> precedingKeys,\n @NotNull DBSEntityAttribute keyColumn,\n boolean sortAsc,\n boolean sortByDesc\n ) throws DBException;\n}", "@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)\n\tpublic List<AssetVocabulary> getAttachedVocabularies(long groupId);", "public static List<Book> getBookCategory() throws HibernateException{\r\n \r\n session = sessionFactory.openSession();\r\n session.beginTransaction();\r\n \r\n Query query=session.getNamedQuery(\"INVENTORY_getBookCategory\");\r\n List<Book> bookLocationList=query.list();\r\n \r\n session.getTransaction().commit();\r\n session.close();\r\n \r\n return bookLocationList;\r\n}", "public void train(Corpus[] trainingData) {\n\t\tSet<String> vocabulary = super.mergeVocabulary(trainingData);\n\t\ttrainingData[0].setVocabulary(vocabulary);\n\t\ttrainingData[1].setVocabulary(vocabulary);\n\t\tposMatrix = new TransitionMatrix(trainingData[0]);\n\t\tnegMatrix = new TransitionMatrix(trainingData[1]);\n\t}", "public void AddInDB(Word newWord) throws SQLException {\n String insertQuery = \"INSERT INTO tbltest(word,pronunciation,define) VALUES(?,?,?)\";\r\n ps = con.prepareStatement(insertQuery);\r\n ps.setString(1, newWord.getWord());\r\n ps.setString(2, newWord.getPronunciation());\r\n ps.setString(3, newWord.getDefine());\r\n\r\n ps.executeUpdate();\r\n }", "public static void caso41(){\n FilterManager fm= new FilterManager(\"resources/stopWordsList.txt\",\"resources/useCaseWeight.properties\");\n\t\tQualityAttributeBelongable qualityAttributeBelongable = new OntologyManager(\"file:resources/caso4.owl\",\"file:resources/caso4.repository\",fm);\n\t\tMap<QualityAttributeInterface,Double> map = qualityAttributeBelongable.getWordPertenence(\"response1\");\n\t\tif(map==null){\n\t\t\tSystem.out.println(\"El map es null\");\n\t\t}else{\n\t\t\tMapUtils.imprimirMap(map);\n\t\t}\n\t}", "@Select(\"select id,item from dicts where id in (23,24,25,26,27)\")\n\tList<Dict> findLevels();", "public interface IJavaDocAttributDao\n{\n List<JavaDocAttribut> getJavaDocAttributs(int idJavaDocMethode);\n}" ]
[ "0.5714772", "0.5634642", "0.54471385", "0.5296146", "0.5199113", "0.49331725", "0.49329886", "0.4925552", "0.49100333", "0.49073565", "0.48575464", "0.4840506", "0.48176134", "0.47540638", "0.4731969", "0.47130308", "0.46997505", "0.46928567", "0.46592632", "0.46315858", "0.46308562", "0.4628427", "0.4613438", "0.4607982", "0.46033806", "0.45581195", "0.45454577", "0.45442265", "0.45386803", "0.45275065", "0.452028", "0.4503016", "0.4500965", "0.44867927", "0.44754398", "0.44700065", "0.4461962", "0.44616178", "0.44392928", "0.44261026", "0.43990988", "0.43955937", "0.43947372", "0.4391834", "0.43790415", "0.4373947", "0.43707538", "0.43700558", "0.43560442", "0.43444037", "0.43359932", "0.4334978", "0.4331108", "0.43275934", "0.43246162", "0.4323478", "0.432252", "0.43204546", "0.43167415", "0.4313692", "0.43123078", "0.43018934", "0.42899582", "0.42859036", "0.4279804", "0.42734304", "0.42709267", "0.42542967", "0.4249365", "0.4246521", "0.42383584", "0.42374423", "0.42311075", "0.42302102", "0.4229986", "0.4227258", "0.42229605", "0.42228934", "0.422011", "0.42189792", "0.42158115", "0.42145696", "0.42105144", "0.4207044", "0.42064056", "0.41962886", "0.4194155", "0.41941473", "0.41919973", "0.41892615", "0.41883606", "0.41852176", "0.4182343", "0.41803232", "0.41759124", "0.41734546", "0.41732693", "0.41713014", "0.41704375", "0.416942", "0.41672277" ]
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table wd_vocab
public Criteria or() { Criteria criteria = createCriteriaInternal(); oredCriteria.add(criteria); return criteria; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<VocabWord> document(int index);", "int[] documents(VocabWord vocabWord);", "public static void writeVocab(Vocab vocab) {\n String userId = FirebaseAuth.getInstance().getUid();\n Log.d(\"000\", \"writeVocab: \"+userId);\n mDatabase.child(\"user\").child(userId).child(\"vocab\").child(vocab.Id).setValue(vocab);\n }", "void addWordsToDoc(int doc,List<VocabWord> words);", "void addWordToDoc(int doc,VocabWord word);", "public VocabularyTerms() {}", "public Vector mapDocument(BOW bow) {\n //logger.info(\"lsm.mapDocument\");\n SparseVector vector = new SparseVector();\n\n Iterator<String> it = bow.termSet().iterator();\n String term = null;\n int index = 0;\n //int tf = 0;\n float tfIdf;\n for (int i = 0; it.hasNext(); i++) {\n //logger.info(i + \" \" + t[i]);\n term = it.next();\n index = termIndex.get(term);\n\n if (index != -1) {\n //tf = bow.getFrequency(term);\n //tfIdf = (float) (log2(tf)) * Iidf[index];\n //tfIdf = (float) bow.augmentedFrequency(term) * Iidf[index];\n tfIdf = (float) bow.tf(term) * Iidf[index];\n //logger.info(term + \" ==> \" + index + \", tf.idf = \" + tf + \"(\" + (log2(tf)) + \") * \" + Iidf[index] + \" = \" + tfIdf);\n vector.add(index, tfIdf);\n\n }\n } // end for\n\n return vector;\n }", "@Id\n @Column(name=\"term_key\")\n public int getTermKey() {\n\treturn termKey;\n }", "public WdVocabExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "private static void setWordPosition() {\n\t\tSet setKeys = Utility.vocabHM.keySet();\n\t\tIterator i = setKeys.iterator();\n\t\tint position = 0;\n\t\twhile (i.hasNext()) {\n\t\t\tString w = (String) i.next();\n\t\t\tInteger rows[] = new Integer[2];\n\t\t\trows[0] = new Integer(position); /* word position */\n\t\t\trows[1] = (Integer) Utility.vocabHM.get(w); /* df */\n\n\t\t\tUtility.vocabHM.put(w, rows);\n\t\t\tposition++;\n\t\t}\n\t}", "public Vector<Word> allKeyValue(){\n\n\tVector<Word> words = new Vector<Word>();\n\tfor(int w = 0; w < theTable.length; w++){\n\t // System.out.println(\"w: \" + w);\n\t // System.out.println(\"theTable[w]: \" + theTable[w]);\n\t if(theTable[w] != null){\n\t\twords.addElement(theTable[w]);\n\t }\n\t}\n\treturn words;\n }", "public static void deleteVocab(Context context){\n Toast.makeText(context, \"deleted\", Toast.LENGTH_SHORT).show();\n DatabaseReference vocabRef=FirebaseDatabase.getInstance().getReference().child(\"user\").child(FirebaseAuth.getInstance().getUid()).child(\"vocab\").child(currentVocabId);\n vocabRef.removeValue();\n }", "public Controlador(boolean newTable){\n if(newTable){\n vocabulario = new TSB_OAHashtable<>();\n }\n }", "public static void initVocabData() {\n FirebaseDatabase.getInstance().getReference().child(\"user\").child(FirebaseAuth.getInstance().getUid()).child(\"vocab\")\n .addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n staticVocabs.clear();\n for(DataSnapshot snapshot: dataSnapshot.getChildren() ){\n Vocab vocab = snapshot.getValue(Vocab.class);\n staticVocabs.add(vocab);\n size=1;\n }\n vocabsAdapter.notifyDataSetChanged();\n if (staticVocabs.size()==0){\n vocabsRecyclerView.setVisibility(View.INVISIBLE);\n isFirst.setVisibility(View.VISIBLE);\n notFirst.setVisibility(View.INVISIBLE);\n\n }else {\n vocabsRecyclerView.setVisibility(View.VISIBLE);\n isFirst.setVisibility(View.INVISIBLE);\n notFirst.setVisibility(View.VISIBLE);\n }\n }\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n }\n });\n }", "List<WdWordDict> selectByExample(WdWordDictExample example);", "@Query(\"SELECT * from english_word ORDER BY word ASC limit 300\")\n List<StoredEnglishWord> findAllWords();", "public void saveVocab (Vocabulary v, String vocabFilePath) throws IOException {\n\t\tFile file = new File(vocabFilePath);\n\t\t//if (file.exists()) file.delete();\n\t\t//file.createNewFile();\n\t\tBufferedWriter bw = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(file)));\n\t\tfor (int i = 0; i < v.vocabSize; i++) {\n\t\t\tbw.write(v.vocab.get(i).word + \" \" + v.vocab.get(i).cn + \"\\n\");\n\t\t}\n\t\tbw.close();\n\t}", "public void setVocubalaryId(long vocubalaryId);", "private void setVocabulary(int vocSize) {\n\t\tArrayList<String> chosen = new ArrayList<String>();\n\t\twhile (chosen.size() < vocSize) {\n\t\t\tint max = 0;\n\t\t\tString best = \"\";\n\t\t\tfor (String t : df.keySet()) {\n\t\t\t\tif (df.get(t) > max && !chosen.contains(t)) {\n\t\t\t\t\tmax = df.get(t);\n\t\t\t\t\tbest = t;\n\t\t\t\t}\n\t\t\t}\n\t\t\tchosen.add(best);\n\t\t}\n\t\tvocab = chosen;\n\t}", "public void constructOntologyVocabulary() {\n ontologyOwlClassVocabulary = new HashMap<>();\n ontologyOWLDataPropertyVocabulary = new HashMap<>();\n ontologyOWLNamedIndividualVocabulary = new HashMap<>();\n ontologyOWLObjectPropertylVocabulary = new HashMap<>();\n\n Set<OWLClass> classes = domainOntology.getClassesInSignature();\n Set<OWLNamedIndividual> individualPropertyAtom = domainOntology.getIndividualsInSignature();\n Set<OWLDataProperty> dataProperty = domainOntology.getDataPropertiesInSignature();\n Set<OWLObjectProperty> OWLObjectPropertyAtom = domainOntology.getObjectPropertiesInSignature();\n String tempName = null;\n\n for (OWLClass c : classes) {\n tempName = c.toString();\n tempName = tempName.substring(tempName.lastIndexOf(\"/\") + 1);\n tempName = TextUtil.formatName(tempName);\n ontologyOwlClassVocabulary.put(tempName, c);\n }\n for (OWLDataProperty d : dataProperty) {\n tempName = d.toString();\n tempName = tempName.substring(tempName.lastIndexOf(\"/\") + 1);\n tempName = TextUtil.formatName(tempName);\n ontologyOWLDataPropertyVocabulary.put(tempName, d);\n }\n for (OWLNamedIndividual i : individualPropertyAtom) {\n tempName = i.toString();\n tempName = tempName.substring(tempName.lastIndexOf(\"/\") + 1);\n tempName = TextUtil.formatName(tempName);\n ontologyOWLNamedIndividualVocabulary.put(tempName, i);\n }\n for (OWLObjectProperty o : OWLObjectPropertyAtom) {\n tempName = o.toString();\n tempName = tempName.substring(tempName.lastIndexOf(\"/\") + 1);\n tempName = TextUtil.formatName(tempName);\n ontologyOWLObjectPropertylVocabulary.put(tempName, o);\n }\n }", "public void getVector() throws IOException {\n\t\tint i=1;\r\n\t\tfor(String key:keyword){\r\n\t\t\tWord w=new Word();\r\n\t\t\tdouble tf=calTF(key);\r\n\t\t\tdouble idf=calIDF(key);\r\n\t\t\tdouble tfidf=tf*idf;\r\n\t\t\tw.setId(i);\r\n\t\t\ti++;\r\n\t\t\tw.setName(key);\r\n\t\t\tw.setTfidf(tfidf);\r\n\t\t\tif(word.containsKey(key)){\r\n\t\t\t\tw.setCount((Integer) word.get(key));\r\n\t\t\t}\r\n\t\t\tkeymap.add(w);\r\n\t\t}\r\n\t\tFileHelper.writeTrainFile(keymap);\r\n\t\tFileHelper.writeTestFile(keymap);\r\n\t}", "public int getTermIndex() {return termIndex;}", "public String getKeyWordTableName() {\r\n\t\treturn keyWordTableName;\r\n\t}", "@Override\n public String getTableName() {\n return getFreeTextDocTablename(conf);\n }", "private Vocabulary() {\n }", "public Vector mapDocument(BOW bow, boolean b) {\n //logger.info(\"lsm.mapDocument \" + b);\n SparseVector vector = new SparseVector();\n\n Iterator<String> it = bow.termSet().iterator();\n for (int i = 0; it.hasNext(); i++) {\n //logger.info(i + \" \" + t[i]);\n String term = it.next();\n int index = termIndex.get(term);\n\n if (index != -1) {\n int tf = bow.getFrequency(term);\n float tfIdf = (float) (log2(tf));\n if (b) {\n tfIdf *= Iidf[index];\n }\n\n //logger.info(term + \" ==> \" + index + \", tf.idf = \" + tf + \"(\" + (log2(tf)) + \") * \" + Iidf[index] + \" = \" + tfIdf);\n vector.add(index, tfIdf);\n\n }\n } // end for\n\n return vector;\n }", "void skillsFound( String key ) {\n developer.skills = new ArrayList<>();\n }", "@Override\n\tpublic List<Skill> getSkills() {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\t\n\t\t//create a query\n\t\tQuery<Skill> theQuery = currentSession.createQuery(\"from Skill\", Skill.class);\n\t\t\n\t\t//execute query and get result list\n\t\tList<Skill> skills = theQuery.getResultList();\n\t\t\n\t\t//return the results\n\t\treturn skills;\n\t}", "RepStuLearning selectByPrimaryKey(RepStuLearningKey key);", "public void fillVerbTbl(String sentenceID){\n\t\t// implement me!\n\t}", "WdWordDict selectByPrimaryKey(Long dictId);", "List<WordSchool> selectByExample(WordSchoolExample example);", "public OWLModel getKnowledgeBase();", "@Transactional\r\n\tpublic List<CmVocabularyCategory> getCmVocabularyCategorys() {\r\n\t\treturn dao.findAllWithOrder(CmVocabularyCategory.class, \"modifyTimestamp\", false);\r\n\t}", "public static void caso31(){\n\t FilterManager fm= new FilterManager(\"resources/stopWordsList.txt\",\"resources/useCaseWeight.properties\");\n\t\t\tQualityAttributeBelongable qualityAttributeBelongable = new OntologyManager(\"file:resources/caso3.owl\",\"file:resources/caso3.repository\",fm);\n\t\t\tMap<QualityAttributeInterface,Double> map = qualityAttributeBelongable.getWordPertenence(\"response1\");\n\t\t\tif(map==null){\n\t\t\t\tSystem.out.println(\"El map es null\");\n\t\t\t}else{\n\t\t\t\tMapUtils.imprimirMap(map);\n\t\t\t}\n\t}", "public void setKeyWordTableName(String keyWordTableName) {\r\n\t\tthis.keyWordTableName = keyWordTableName;\r\n\t}", "public static void caso32(){\n\t FilterManager fm= new FilterManager(\"resources/stopWordsList.txt\",\"resources/useCaseWeight.properties\");\n\t\t\tQualityAttributeBelongable qualityAttributeBelongable = new OntologyManager(\"file:resources/caso3.owl\",\"file:resources/caso3.repository\",fm);\n\t\t\tMap<QualityAttributeInterface,Double> map = qualityAttributeBelongable.getWordPertenence(\"response2\");\n\t\t\tif(map==null){\n\t\t\t\tSystem.out.println(\"El map es null\");\n\t\t\t}else{\n\t\t\t\tMapUtils.imprimirMap(map);\n\t\t\t}\n\t}", "WordSchool selectByPrimaryKey(Long id);", "public void AddKeywords()\n\t{\n\t\ttry\n\t\t{\n\t\t\tConnector con = new Connector();\n\t\t\tString query; \n\t\t\t\n\t\t\tfor(int i = 0; i < keywords.size(); i++)\n\t\t\t{\n\t\t\t\tString keyword = keywords.get(i); \n\t\t\t\t\n\t\t\t\tint kid = GetKIDFromWord(keyword); \n\t\t\t\t\n\t\t\t\t//word is not already in table\n\t\t\t\tif(kid == -1)\n\t\t\t\t{\n\t\t\t\t\t//insert word into Keywords \n\t\t\t\t\tSystem.out.println(\"test\"); \n\t\t\t\t\tquery = \"INSERT INTO Keywords(word) VALUE ('\"+keyword+\"')\"; \n\t\t\t \tint intoTable = con.stmt.executeUpdate(query); \n\t\t\t \t\n\t\t\t \t//able to put it in the table\n\t\t\t \tif(intoTable > 0)\n\t\t\t \t{\n\t\t\t \t\t//insert into HasKeywords\n\t\t\t\t \tkid = GetKIDFromWord(keyword); \n\t\t\t\t\t\tquery = \"INSERT INTO HasKeywords(keyword_hid, keyword_kid) VALUE('\"+hid+\"', '\"+kid+\"')\";\n\t\t\t\t \tint hasKey = con.stmt.executeUpdate(query); \n\t\t\t \t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//word is already in table\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tList<Integer> hkCheck = GetHIDSFromKID(kid);\n\t\t\t\t\t\n\t\t\t\t\tboolean inHKTable = false; \n\t\t\t\t\tfor(int j = 0; j < hkCheck.size(); j++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(hkCheck.get(j) == hid)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tinHKTable = true; \n\t\t\t\t\t\t\tbreak; \n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif(inHKTable == false)\n\t\t\t\t\t{\n\t\t\t\t\t\tquery = \"INSERT INTO HasKeywords(keyword_hid, keyword_kid) VALUE('\"+hid+\"', '\"+kid+\"')\";\n\t\t\t\t \tint hasKey = con.stmt.executeUpdate(query); \n\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tcon.closeConnection();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t}", "public final void mRULE_TOKEN_VOCAB() throws RecognitionException {\n try {\n int _type = RULE_TOKEN_VOCAB;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalUniMapperGenerator.g:5095:18: ( 'tokenVocab' )\n // InternalUniMapperGenerator.g:5095:20: 'tokenVocab'\n {\n match(\"tokenVocab\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public static void testDictionary() throws IOException {\n String wnhome=\"c:\\\\Users\\\\Katherine\\\\Documents\\\\2nd sem\\\\IR\\\\project\\\\WordNet_3.1\";\n String path = wnhome + File.separator + \"dict\";\n\n\n URL url = new URL(\"file\", null, path);\n\n IDictionary dictionary = new Dictionary(url);\n dictionary.open();\n // /Users/Ward/Downloads\n IIndexWord indexWord = dictionary.getIndexWord(\"use\", POS.VERB);\n\n for (IWordID wordID : indexWord.getWordIDs()) {\n\n IWord word = dictionary.getWord(wordID);\n for (IWord word1 : word.getSynset().getWords()) {\n System.out.println(word1.getLemma());\n }\n// System.out.println(\"Id = \" + wordID);\n// System.out.println(\" Lemma = \" + word.getLemma());\n// System.out.println(\" Gloss = \" + word.getSynset().getGloss());\n\n List<ISynsetID> hypernyms =\n word.getSynset().getRelatedSynsets(Pointer.HYPERNYM);\n // print out each h y p e r n y m s id and synonyms\n List<IWord> words;\n for (ISynsetID sid : hypernyms) {\n words = dictionary.getSynset(sid).getWords();\n System.out.print(sid + \" {\");\n for (Iterator<IWord> i = words.iterator(); i.hasNext(); ) {\n System.out.print(i.next().getLemma());\n if (i.hasNext())\n System.out.print(\", \");\n }\n System.out.println(\"}\");\n }\n }\n }", "public Vector mapDocument(MultiSet<String> bow) {\n //logger.info(\"lsm.mapDocument\");\n SparseVector vector = new SparseVector();\n\n Iterator<String> it = bow.iterator();\n String term = null;\n int index = 0;\n int tf = 0;\n float tfIdf;\n for (int i = 0; it.hasNext(); i++) {\n //logger.info(i + \" \" + t[i]);\n term = it.next();\n index = termIndex.get(term);\n\n if (index != -1) {\n tf = bow.getFrequency(term);\n tfIdf = (float) (log2(tf)) * Iidf[index];\n\n //logger.info(term + \" ==> \" + index + \", tf.idf = \" + tf + \"(\" + (log2(tf)) + \") * \" + Iidf[index] + \" = \" + tfIdf);\n vector.add(index, tfIdf);\n\n }\n } // end for\n\n return vector;\n }", "public static void writeArchivedVocab(Vocab vocab) {\n String userId = FirebaseAuth.getInstance().getUid();\n Log.d(\"000\", \"writeVocab: \"+userId);\n mDatabase.child(\"user\").child(userId).child(\"archive\").child(vocab.Id).setValue(vocab);\n }", "public List<Term> getAllTerms() {\n\t\tsession.beginTransaction();\n\t\tList<Term> lis = session.createQuery(\"from Term\").list();\n\n\t\tfor (Term tm : lis) {\n\t\t\tSystem.out.println(tm.getId() + \" \" + tm.getTermName());\n\t\t}\n\t\treturn lis;\n\t}", "public WordsWrapper getVocabulariesWrapper() {\n\t\tWordsWrapper wrapper = new WordsWrapper();\n\t\twrapper.mainvocabs = m__vocabs;\n\t\twrapper.referenes = m__referencedwords;\n\t\treturn wrapper;\n\t}", "public interface DictionaryDao<Type extends DictionaryProperty<Id>, Id extends Serializable> {\r\n\t/** \r\n\t * <!-- begin-UML-doc -->\r\n\t * Zwraca wszystkie mozliwe wartosci slownika.\r\n\t * <!-- end-UML-doc -->\r\n\t * @return\r\n\t * @generated \"UML to Java (com.ibm.xtools.transform.uml2.java5.internal.UML2JavaTransform)\"\r\n\t */\r\n\tpublic List<Type> getAll();\r\n}", "@Override\n public Builder limitVocabularySize(int limit) {\n super.limitVocabularySize(limit);\n return this;\n }", "@Override\n public List<DefinitionDTO> findAllWords() {\n List<Word> words = wordRepository.findAll();\n return DTOMapper.mapWordListToDefinitionDTOList(words);\n }", "public interface ArchetypeLevelsSchema {\n\tString TABLE_NAME = \"creature_archetype_levels\";\n\n\tString COLUMN_ARCHETYPE_ID = \"archetypeId\";\n\tString COLUMN_LEVEL = \"level\";\n\tString COLUMN_ATTACK = \"attack\";\n\tString COLUMN_ATTACK2 = \"attack2\";\n\tString COLUMN_DEF_BONUS = \"defensiveBonus\";\n\tString COLUMN_BODY_DEV = \"bodyDevelopment\";\n\tString COLUMN_PRIME_SKILL = \"primeSkill\";\n\tString COLUMN_SECONDARY_SKILL = \"secondarySkill\";\n\tString COLUMN_POWER_DEV = \"powerDevelopment\";\n\tString COLUMN_SPELLS = \"spells\";\n\tString COLUMN_TALENT_DP = \"talentDP\";\n\tString COLUMN_AGILITY = \"agility\";\n\tString COLUMN_CONS_STAT = \"constitutionStat\";\n\tString COLUMN_CONSTITUTION = \"constitution\";\n\tString COLUMN_EMPATHY = \"empathy\";\n\tString COLUMN_INTUITION = \"intuition\";\n\tString COLUMN_MEMORY = \"memory\";\n\tString COLUMN_PRESENCE = \"presence\";\n\tString COLUMN_QUICKNESS = \"quickness\";\n\tString COLUMN_REASONING = \"reasoning\";\n\tString COLUMN_SELF_DISC = \"selfDiscipline\";\n\tString COLUMN_STRENGTH = \"strength\";\n\n\tString TABLE_CREATE = \"CREATE TABLE IF NOT EXISTS \"\n\t\t\t+ TABLE_NAME\n\t\t\t+ \" (\"\n\t\t\t+ COLUMN_ARCHETYPE_ID + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_LEVEL + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_ATTACK + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_ATTACK2 + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_DEF_BONUS + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_BODY_DEV + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_PRIME_SKILL + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_SECONDARY_SKILL + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_POWER_DEV + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_SPELLS + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_TALENT_DP + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_AGILITY + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_CONS_STAT + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_CONSTITUTION + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_EMPATHY + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_INTUITION + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_MEMORY + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_PRESENCE + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_QUICKNESS + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_REASONING + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_SELF_DISC + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_STRENGTH + \" INTEGER NOT NULL, \"\n\t\t\t+ \"PRIMARY KEY(\" + COLUMN_ARCHETYPE_ID + \",\" + COLUMN_LEVEL + \")\"\n\t\t\t+ \")\";\n\n\tString[] COLUMNS = new String[] { COLUMN_ARCHETYPE_ID, COLUMN_LEVEL, COLUMN_ATTACK, COLUMN_ATTACK2, COLUMN_DEF_BONUS,\n\t\t\tCOLUMN_BODY_DEV, COLUMN_PRIME_SKILL, COLUMN_SECONDARY_SKILL, COLUMN_POWER_DEV, COLUMN_SPELLS, COLUMN_TALENT_DP,\n\t\t\tCOLUMN_AGILITY, COLUMN_CONS_STAT, COLUMN_CONSTITUTION, COLUMN_EMPATHY, COLUMN_INTUITION, COLUMN_MEMORY,\n\t\t\tCOLUMN_PRESENCE, COLUMN_QUICKNESS, COLUMN_REASONING, COLUMN_SELF_DISC, COLUMN_STRENGTH};\n}", "public static void moveCorrectToArchive(Vocab vocab){\n\n DatabaseReference vocabRef=FirebaseDatabase.getInstance().getReference().child(\"user\").child(FirebaseAuth.getInstance().getUid()).child(\"vocab\").child(vocab.Id);\n vocabRef.removeValue();\n archiveVocabs.add(vocab);\n writeArchivedVocab(vocab);\n\n }", "Terms selectByPrimaryKey(Integer id);", "public Iterator words() {\n return index.keySet().iterator();\n }", "public Word getWord(int id);", "public List search() {\n\t\tSessionFactory sf = new Configuration().configure()\n\t\t\t\t.buildSessionFactory();\n\t\tSession s = sf.openSession();\n\t\tQuery q = s.createQuery(\"from cat_vo\");\n\t\tList ls = q.list();\n\t\treturn ls;\n\t}", "public List<Term> getAllTermsByDictionary(String table, String dictionary) {\n List<Term> termList = new ArrayList<Term>();\n\n // Select All Query\n String selectQuery = \"SELECT * FROM \" + table + \" WHERE \" + KEY_DICTIONARY + \" = '\" + dictionary + \"' ORDER BY \" + KEY_TERM;\n\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor cursor = db.rawQuery(selectQuery, null);\n\n // looping through all rows and adding to list\n if (cursor.moveToFirst()) {\n do {\n if (!cursor.getString(2).isEmpty()) {\n /*\n Term term = new Term();\n term.setId(Integer.parseInt(cursor.getString(0)));\n term.setDictionary(cursor.getString(1));\n term.setTerm(cursor.getString(2));\n term.setSubject(cursor.getString(3));\n term.setDefinition(cursor.getString(4));\n term.setSynonyms(cursor.getString(5));\n */\n Term term = new Term(Integer.parseInt(cursor.getString(0)),cursor.getString(1), cursor.getString(2), cursor.getString(3),\n cursor.getString(4), cursor.getString(5), Integer.parseInt(cursor.getString(6)));\n // Adding term to list\n termList.add(term);\n }\n } while (cursor.moveToNext());\n }\n\n // return term list\n return termList;\n }", "Integer getSkillCount( String key ){\n return developer.skills.size();\n }", "public List<Skill> findAll(){\n return (List<Skill>) skillRepository.findAll();\n }", "public Courses getCourseTable();", "@Override\n protected Builder useExistingWordVectors(@NonNull WordVectors vec) {\n return this;\n }", "private void indexRelations(String inputFile, FlagConfig flagConfig) throws IOException {\n this.elementalVectors = VectorStoreRAM.readFromFile(\n flagConfig, \"C:\\\\Users\\\\dwiddows\\\\Data\\\\QI\\\\Gutterman\\\\termtermvectors.bin\");\n this.flagConfig = flagConfig;\n this.proportionVectors = new ProportionVectors(flagConfig);\n this.luceneUtils = new LuceneUtils(flagConfig);\n VectorStoreWriter writer = new VectorStoreWriter();\n\n // Turn all the text lines into parsed records.\n this.parseInputFile(inputFile);\n\n // Now the various indexing techniques.\n VectorStoreRAM triplesVectors = new VectorStoreRAM(flagConfig);\n VectorStoreRAM triplesPositionsVectors = new VectorStoreRAM(flagConfig);\n VectorStoreRAM dyadsVectors = new VectorStoreRAM(flagConfig);\n VectorStoreRAM dyadsPositionsVectors = new VectorStoreRAM(flagConfig);\n VectorStoreRAM verbsVectors = new VectorStoreRAM(flagConfig);\n VectorStoreRAM verbsPositionsVectors = new VectorStoreRAM(flagConfig);\n\n for (String docName : this.parsedRecords.keySet()) {\n Vector tripleDocVector = VectorFactory.createZeroVector(flagConfig.vectortype(), flagConfig.dimension());\n Vector tripleDocPositionVector = VectorFactory.createZeroVector(flagConfig.vectortype(), flagConfig.dimension());\n Vector dyadDocVector = VectorFactory.createZeroVector(flagConfig.vectortype(), flagConfig.dimension());\n Vector dyadDocPositionVector = VectorFactory.createZeroVector(flagConfig.vectortype(), flagConfig.dimension());\n Vector verbDocVector = VectorFactory.createZeroVector(flagConfig.vectortype(), flagConfig.dimension());\n Vector verbDocPositionVector = VectorFactory.createZeroVector(flagConfig.vectortype(), flagConfig.dimension());\n\n for (ParsedRecord record : this.parsedRecords.get(docName)) {\n Vector tripleVector = this.getPsiTripleVector(record);\n tripleDocVector.superpose(tripleVector, 1, null);\n\n this.bindWithPosition(record, tripleVector);\n tripleDocPositionVector.superpose(tripleVector, 1, null);\n\n Vector dyadVector = this.getPsiDyadVector(record);\n dyadDocVector.superpose(dyadVector, 1, null);\n this.bindWithPosition(record, dyadVector);\n dyadDocPositionVector.superpose(dyadVector, 1, null);\n\n Vector verbVector = this.vectorForString(record.predicate);\n verbDocVector.superpose(verbVector, 1, null);\n this.bindWithPosition(record, verbVector);\n verbDocPositionVector.superpose(verbVector, 1, null);\n }\n\n triplesVectors.putVector(docName, tripleDocVector);\n triplesPositionsVectors.putVector(docName, tripleDocPositionVector);\n dyadsVectors.putVector(docName, dyadDocVector);\n dyadsPositionsVectors.putVector(docName, dyadDocPositionVector);\n verbsVectors.putVector(docName, verbDocVector);\n verbsPositionsVectors.putVector(docName, verbDocPositionVector);\n }\n\n for (VectorStore vectorStore : new VectorStore[] {\n triplesVectors, triplesPositionsVectors, dyadsVectors, dyadsPositionsVectors, verbsVectors, verbsPositionsVectors }) {\n Enumeration<ObjectVector> vectorEnumeration = vectorStore.getAllVectors();\n while (vectorEnumeration.hasMoreElements())\n vectorEnumeration.nextElement().getVector().normalize();\n }\n\n writer.writeVectors(TRIPLES_OUTPUT_FILE, flagConfig, triplesVectors);\n writer.writeVectors(TRIPLES_POSITIONS_OUTPUT_FILE, flagConfig, triplesPositionsVectors);\n\n writer.writeVectors(DYADS_OUTPUT_FILE, flagConfig, dyadsVectors);\n writer.writeVectors(DYADS_POSITIONS_OUTPUT_FILE, flagConfig, dyadsPositionsVectors);\n\n writer.writeVectors(VERBS_OUTPUT_FILE, flagConfig, verbsVectors);\n writer.writeVectors(VERBS_POSITIONS_OUTPUT_FILE, flagConfig, verbsPositionsVectors);\n }", "int getConceptLanguagesCount();", "@Override\n public Builder lookupTable(@NonNull WeightLookupTable<VocabWord> lookupTable) {\n super.lookupTable(lookupTable);\n return this;\n }", "WordBean getWord(String word);", "public List<Product> search(String word, String codigo) {\n\t\tSession session = getSessionFactory().openSession();\n\t\treturn null;\n\t}", "private void invertedToDatabase(){\r\n cleFreq = new HashMap<>();\r\n System.out.println(\"Strat collecting\");\r\n Map<String,List<Invertedindex>> collects = collecting();\r\n System.out.println(\"Ending collecting\");\r\n Database.getInstance().invertedIndex(collects);\r\n Database.getInstance().addPoids(cleFreq);\r\n }", "@SuppressWarnings({ \"deprecation\", \"unchecked\", \"rawtypes\" })\n\tpublic String generateWordlists(Corpus co) {\n\t\tlong startTime = System.currentTimeMillis();\n\t\t// Set up weka word vector\n\t\tFastVector attributes;\n\t\tInstances dataSet;\n\t\tattributes = new FastVector();\n\n\t\tattributes.addElement(new Attribute(\"aspect_id\", (FastVector) null));\n\t\tattributes.addElement(new Attribute(\"tokens\", (FastVector) null));\n\n\t\tdataSet = new Instances(\"BeerAspects\", attributes, 0);\n\n\t\tCorpus topReviews;\n\t\tCorpus lowReviews;\n\n\t\t// Do top and low for all aspects\n\t\tfor (Aspect aspect : Aspect.values()) {\n\n\t\t\t// Only for actual aspects\n\t\t\tif (aspect.equals(Aspect.NONE) || aspect.equals(Aspect.OVERALL))\n\t\t\t\tcontinue;\n\n\t\t\ttopReviews = co.getTopReviews(aspect);\n\t\t\ttopReviews.analyze();\n\t\t\tString tokens = topReviews.getTokenConcatenation(aspect);\n\n\t\t\tInstance instance = new SparseInstance(2);\n\t\t\tinstance.setValue((Attribute) attributes.elementAt(0), aspect.name() + \"_TOP\");\n\t\t\tinstance.setValue((Attribute) attributes.elementAt(1), tokens);\n\n\t\t\tdataSet.add(instance);\n\n\t\t\tlowReviews = co.getLowReviews(aspect);\n\t\t\tlowReviews.analyze();\n\t\t\ttokens = lowReviews.getTokenConcatenation(aspect);\n\t\t\t// System.out.println(tokens);\n\n\t\t\tinstance = new SparseInstance(2);\n\t\t\tinstance.setValue((Attribute) attributes.elementAt(0), aspect.name() + \"_LOW\");\n\t\t\tinstance.setValue((Attribute) attributes.elementAt(1), tokens);\n\n\t\t\tdataSet.add(instance);\n\t\t}\n\n\t\t// System.out.println(dataSet.toString());\n\t\tInstances dataFiltered = transformToWordVector(dataSet, co.getProps());\n\n\t\t// System.out.println(dataFiltered.toString());\n\t\tString pathsToLists = writeWordlists(dataFiltered);\n\n\t\twriteArffFile(dataFiltered, this.outputDir+\"wordvector.arff\");\n\n\t\tlong stopTime = System.currentTimeMillis();\n\t\tlong elapsedTime = stopTime - startTime;\n\t\tSystem.out.println(\"Generated wordlists in: \" + elapsedTime / 1000 + \" s\");\n\t\treturn pathsToLists;\n\t}", "boolean putWord(WordBean wordBean);", "public Table<Integer, Integer, String> getAnonymizedData();", "public static void caso12(){\n\n FilterManager fm= new FilterManager(\"resources/stopWordsList.txt\",\"resources/useCaseWeight.properties\");\n\t\tQualityAttributeBelongable qualityAttributeBelongable = new OntologyManager(\"file:resources/caso1.owl\",\"file:resources/caso1.repository\",fm);\n\t\tMap<QualityAttributeInterface,Double> map = qualityAttributeBelongable.getWordPertenence(\"pan\");\n\t\tif(map==null){\n\t\t\tSystem.out.println(\"El map es null\");\n\t\t}\n\t}", "public void addToJurisdictions(entity.AppCritJurisdiction element);", "public static void caso11(){\n\t\t\n FilterManager fm= new FilterManager(\"resources/stopWordsList.txt\",\"resources/useCaseWeight.properties\");\n\t\tQualityAttributeBelongable qualityAttributeBelongable = new OntologyManager(\"file:resources/caso1.owl\",\"file:resources/caso1.repository\",fm);\n\t\tMap<QualityAttributeInterface,Double> map = qualityAttributeBelongable.getWordPertenence(\"response\");\n\t\tMapUtils.imprimirMap(map);\n\t}", "public String getNomTable();", "public void init() {\n File file=new File(\"D:\\\\lucene\\\\index\");\n if(file.isDirectory())\n { //否则如果它是一个目录\n File files[] = file.listFiles(); //声明目录下所有的文件 files[];\n for(int i=0;i<files.length;i++)\n { //遍历目录下所有的文件\n files[i].delete(); //把每个文件 用这个方法进行迭代\n }\n }\n String indexPath = \"D:\\\\lucene\\\\index\";\n //String docsPath = \"D:\\\\lucene\\\\data\";\n boolean create = true;\n try\n {\n Session session=factory.openSession();\n String hql = \"from Book\";\n org.hibernate.Query query = session.createQuery(hql);\n List<Book> list=query.list();\n Directory indexDir = FSDirectory.open(Paths.get(\"D:\\\\lucene\\\\index\"));\n Analyzer luceneAnalyzer = new StandardAnalyzer(); //新建一个分词器实例 \n IndexWriterConfig config = new IndexWriterConfig(luceneAnalyzer); \n IndexWriter indexWriter = new IndexWriter(indexDir,config);\n for(int i=0;i<list.size();i++)\n {\n Document document = new Document();\n Field field1 = new StringField(\"id\",list.get(i).getBookid().toString(),Field.Store.YES); \n Field field2 = new StringField(\"bookname\",list.get(i).getBookname(),Field.Store.YES); \n Field field3 = new StringField(\"author\",list.get(i).getAuthor(),Field.Store.YES); \n Field field4 = new StringField(\"category\",list.get(i).getCategory(),Field.Store.YES); \n Field field5 = new StringField(\"price\", Double.toString(list.get(i).getPrice()),Field.Store.YES); \n document.add(field1); \n document.add(field2); \n document.add(field3); \n document.add(field4);\n document.add(field5);\n indexWriter.addDocument(document);\n }\n indexWriter.close();\n }\n catch(IOException e)\n {\n System.out.println(\"error\");\n return;\n }\n }", "hr.domain.ResumeDBOuterClass.Education getEducations(int index);", "hr.domain.ResumeDBOuterClass.Experience getExperiences(int index);", "public void fillNounTbl(String sentenceID){\n\t\t// implement me!\n\t}", "void createOrUpdateVocabulary(final VocabularyPE vocabularyPE);", "@Override\n public Builder iterate(@NonNull SequenceIterator<VocabWord> iterator) {\n super.iterate(iterator);\n return this;\n }", "private void createFreqVector(Path file) {\r\n\t\t\tVector vector = new Vector(vocabulary.size());\r\n\t\t\tList<String> lines;\r\n\t\t\ttry {\r\n\t\t\t\tlines = Files.readAllLines(file);\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tSet<String> words = new HashSet<>();\r\n\t\t\t//create frequency vector of words in single document -> tf(w,d)\r\n\t\t\tfor (String line : lines) {\r\n\t\t\t\tif (line.isEmpty()) continue;\r\n\t\t\t\tString[] values = p.split(line);\r\n\t\t\t\tfor (String value : values) { \r\n\t\t\t\t\tif (value.isEmpty()) continue;\r\n\t\t\t\t\tString lowWord = value.toLowerCase().trim();\r\n\t\t\t\t\t\r\n\t\t\t\t\tInteger[] arr = vocabulary.get(lowWord);\r\n\t\t\t\t\tif (arr == null) continue;\r\n\t\t\t\t\tvector.incrementValueAt(arr[0]);\r\n\t\t\t\t\tif (words.add(lowWord)) {\r\n\t\t\t\t\t\t arr[1] += 1;\t//first time occurrence of this word in document\r\n\t\t\t\t\t\tvocabulary.put(lowWord, arr);\t//increment number of documents for this word\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\tfreqVectors.put(file, vector);\t\t\r\n\t\t}", "private String[][] getMoodsTableValues() {\n String soso = DBTypesKeys.SO_SO_MOOD.getTypeValue();\n String sad = DBTypesKeys.SAD_MOOD.getTypeValue();\n String angry = DBTypesKeys.ANGRY_MOOD.getTypeValue();\n String happy = DBTypesKeys.HAPPY_MOOD.getTypeValue();\n // moods table\n return new String[][]{\n //moods hi answers by answers // id_ (enum index + 1)\n { soso, \"hey\", \"by\"}, // 1\n { sad, \"welcome to sad world\", \"so, you too ...\"}, // 2\n { angry, \"get out!\", \"thanks god, you away\"}, // 3\n { happy, \"hi! glad to see you =)\", \"good luck, buddy\"} // 4\n };\n }", "private VocabularyTerms getVocabularyTerms(Collection<CMAContentType> vocabularies) {\n VocabularyTerms vocabularyTerms = new VocabularyTerms();\n vocabularies\n .forEach(contentType -> {\n //Keeps the country vocabulary ID for future use\n if (contentType.getName().equals(configuration.getCountryVocabulary())) {\n vocabularyTerms.loadCountryVocabulary(contentType);\n } else {\n //Loads vocabulary into memory\n vocabularyTerms.loadVocabulary(contentType);\n }\n });\n return vocabularyTerms;\n }", "public static String getTokenVocabFromGrammar(String text) {\n\t\t// TODO: unneeded. use antlr Tool. Kill?\n//\t\tParsingResult r = parseANTLRGrammar(text);\n//\t\tif ( r.tree!=null ) { //&& r.syntaxErrorListener.getSyntaxErrors().size()==0 ) {\n//\t\t\t// option : id ASSIGN optionValue ;\n//\t\t\tCollection<ParseTree> options = XPath.findAll(r.tree, \"//option\", r.parser);\n//\t\t\tfor (Iterator<ParseTree> it = options.iterator(); it.hasNext(); ) {\n//\t\t\t\tANTLRv4Parser.OptionContext option = (ANTLRv4Parser.OptionContext)it.next();\n//\t\t\t\tif ( option.id().getText().equals(\"tokenVocab\") ) {\n//\t\t\t\t\t/*\n//\t\t\t\t\toptionValue\n//\t\t\t\t\t\t:\tid (DOT id)*\n//\t\t\t\t\t\t|\tSTRING_LITERAL\n//\t\t\t\t\t\t|\tACTION\n//\t\t\t\t\t\t|\tINT\n//\t\t\t\t\t\t;\n//\t\t\t\t\t */\n//\t\t\t\t\tANTLRv4Parser.OptionValueContext optionValue = option.optionValue();\n//\t\t\t\t\tif ( optionValue.STRING_LITERAL()!=null ) {\n//\t\t\t\t\t\tString s = optionValue.STRING_LITERAL().getText();\n//\t\t\t\t\t\treturn RefactorUtils.getLexerRuleNameFromLiteral(s);\n//\t\t\t\t\t}\n//\t\t\t\t\tif ( optionValue.id(0)!=null ) {\n//\t\t\t\t\t\treturn optionValue.id(0).getText();\n//\t\t\t\t\t}\n//\t\t\t\t}\n//\t\t\t}\n//\t\t}\n\t\treturn null;\n\t}", "private Resolution getVocabularyConceptResolution() {\r\n HttpServletRequest httpRequest = getContext().getRequest();\r\n String url = httpRequest.getRequestURL().toString();\r\n // String query = httpRequest.getQueryString();\r\n \r\n String[] parameters = StringUtils.split(StringUtils.substringAfter(url, \"/vocabulary/\"), \"/\");\r\n \r\n if (parameters.length >= 2) {\r\n if (!RESERVED_VOCABULARY_EVENTS.contains(parameters[1])) {\r\n RedirectResolution resolution = new RedirectResolution(VocabularyConceptActionBean.class, \"view\");\r\n resolution.addParameter(\"vocabularyFolder.identifier\", parameters[0]);\r\n resolution.addParameter(\"vocabularyConcept.identifier\", parameters[1]);\r\n resolution.addParameter(\"vocabularyFolder.workingCopy\", vocabularyFolder.isWorkingCopy());\r\n \r\n return resolution;\r\n }\r\n }\r\n \r\n return null;\r\n }", "public SPARQL() {\n initComponents();\n \n model = ModelFactory.createOntologyModel(OntModelSpec.OWL_LITE_MEM_RDFS_INF);\n model.setDynamicImports(true);\n model.read(\"file:\"+\"data/ontologies/Papers_Ready.owl\", \"http://www.l3g.pl/ontologies/OntoBeef/Papers.owl\", \"N-TRIPLE\");\n model.loadImports();\n \n for (Individual i : model.listIndividuals(model.getOntClass(\"http://www.l3g.pl/ontologies/OntoBeef/Conceptualisation.owl#Category\")).toSet())\n {\n System.out.println(i.listLabels(null).toSet());\n }\n }", "@Override\n public AutoBuffer write_impl(AutoBuffer ab) {\n if (_vocabHM == null) return ab.put1(1); // killed\n\n int strLen = 0;\n for (ValueStringCount val : VOCABHM.values())\n strLen += val.length();\n ab.put1(0); // not killed\n ab.put4(strLen); //length of string buffer\n for (ValueStringCount val : VOCABHM.values())\n ab.put2((char) val.length()).putA1(val.getBuffer(), val.getOffset(), val.getOffset() + val.length()).put8(val._cnt);\n return ab.put2((char) 65535); // End of map marker\n }", "@SuppressWarnings(\"unchecked\")\r\n\tpublic static void main(String[] args) throws IOException {\n\t\tSchema s = new Schema(\"Estudiantes\",\"C:\\\\Users\\\\morazan\\\\Desktop\\\\com\\\\idk\\\\ac\\\\cr\");\r\n\n\t\tSchemaJoin j = new SchemaJoin(\"Notas\",\"C:\\\\Users\\\\morazan\\\\Desktop\\\\com\\\\idk\\\\ac\\\\cr\");\r\n\r\n\t\t//Creates an index in the regular schema\r\n\t\ts.createIndex(\"bts\", \"string\", \"Nombre\", 10);\r\n\t\ts.createIndex(\"avl\", \"number\", \"aņo\", 4);\r\n\t\ts.createIndex(\"avl\", \"image\", \"Imagen\", 0);\r\n\t\tj.joinSchema(s);\r\n\t\tj.createJoinedIndex(\"avl\", \"number\", \"Notas\", 2);\r\n\t\t\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"Inserting I \");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\ts.insertToIndex(1, \"JP\");\r\n\t\ts.insertToIndex(1, \"Randy\");\r\n\t\ts.insertToIndex(1, \"Alejandra\");\r\n//\t\ts.insertToIndex(1, \"Xcreed\");\r\n\t\ts.insertToIndex(2, 1996);\r\n\t\ts.insertToIndex(2, 1995);\r\n\t\ts.insertToIndex(2, 1997);\n\t\ts.insertToIndex(3, \"SchemaExtraFiles/2.jpg\");\n\t\ts.insertToIndex(3, \"SchemaExtraFiles/8.jpg\");\n\t\ts.insertToIndex(3, \"SchemaExtraFiles/4.jpg\");\n\t\t\n\t\tIndexBTS index = (IndexBTS) s.schema.getItem(1);\r\n\t\tBinarySearchTree t = (BinarySearchTree) index.tree;\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"Traversal I\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tt.inOrderTraversal();\r\n\t\t\n\t\tIndexAVL index2 = (IndexAVL) s.schema.getItem(2);\r\n\t\tAVLTree t2 = (AVLTree) index2.getTree();\r\n\t\tSystem.out.println(\"avl order\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"Traversal II\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\n\t\tt2.inorder();\n\t\t\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"Inserting II \");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tj.insertToIndex(1, 80);\r\n\t\tj.insertToIndex(1, 82);\r\n\t\tj.insertToIndex(1, 78);\t\t\t\r\n\t\t\r\n//\t\tSystem.out.println(s.search(\"JP\"));\r\n//\t\tSystem.out.println(s.deleteInIndex(1,\"JP\"));\r\n//\t\tSystem.out.println(s.search(\"JP\"));\r\n\t\t\r\n\t\tSystem.out.println(\"Getting line 1\");\r\n\t\ts.getLine(1);\r\n//\t\ts.deleteLine(1);\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"Searching 82 \");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tj.joinedSearch(82);\r\n\r\n\t\t//Deletes an index in the schema\r\n//\t\ts.schema.print();\r\n//\t\ts.deleteIndex(1);\r\n//\t\ts.schema.print();\r\n\t\t\r\n// ***********Activate Separately**********\r\n\t\t\r\n//\t\ts.createIndex(\"bts\", \"video\", \"Videos\", 0);\r\n//\t\ts.insertToIndex(1, \"SchemaExtraFiles/Trike Drifting.mp4\");\r\n\t\t\r\n//\t***************************************\r\n\t\t\r\n\t\tJSONProtocol json = new JSONProtocol();\r\n\t\tjson.writeSchema(s);\r\n\t\t\t\t\r\n\t\t\r\n\t}", "TableId table();", "public boolean buildVocab() {\n readStopWords();\n\n if(cache.vocabExists()) {\n log.info(\"Loading vocab...\");\n cache.loadVocab();\n cache.resetWeights();\n return true;\n }\n\n //vectorizer will handle setting up vocab meta data\n if(vectorizer == null)\n vectorizer = new TfidfVectorizer.Builder()\n .cache(cache).iterate(docIter).iterate(sentenceIter)\n .minWords(minWordFrequency).stopWords(stopWords)\n .tokenize(tokenizerFactory).build();\n vectorizer.fit();\n\n setup();\n\n return false;\n }", "public List<Kateggorija> getSviGlumci() {\n List<Kateggorija> glumci=null;\n try {\n glumci= getDaoKateggorija().queryForAll();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n return glumci;\n }", "@VTID(10)\n int getIndex();", "Skill getSkill(Long skillId) throws DbException;", "public List<String> GetKeywords()\n\t{\n\t\tList<String> words = new ArrayList<String>(); \n\t\ttry\n\t\t{\n\t\t\tConnector con = new Connector();\n\t \n\t String query = \"SELECT keyword_kid FROM HasKeywords WHERE keyword_hid = '\"+hid+\"'\"; \n\t ResultSet rs = con.stmt.executeQuery(query); \n\t \n\t List<Integer> k_ids = new ArrayList<Integer>(); \n\t while(rs.next())\n\t {\n\t \tint new_id = rs.getInt(\"keyword_kid\"); \n\t \tk_ids.add(new_id); \n\t }\n\t \n\t for(int i = 0; i < k_ids.size(); i++)\n\t {\n\t \tquery = \"SELECT word FROM Keywords WHERE k_id = '\"+k_ids.get(i)+\"'\"; \n\t \trs = con.stmt.executeQuery(query); \n\t \twhile(rs.next())\n\t \t{\n\t \t\tString kw = rs.getString(\"word\"); \n\t \t\twords.add(kw); \n\t \t}\n\t }\n\t \n\t con.closeConnection();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\tkeywords = words; \n\t\treturn keywords; \n\t}", "java.lang.String getSemanticLangidModelName();", "public interface DBSDictionary\n{\n /**\n * Checks that this constrain supports key enumerations.\n * Usually it depends on constraint type (enumerations makes sense only for unique constraints).\n * @return true or false\n */\n boolean supportsDictionaryEnumeration();\n\n /**\n * Gets enumeration values\n *\n * @param monitor session\n * @param keyColumn enumeration column.\n * @param keyPattern pattern for enumeration values. If null or empty then returns full enumration set\n * @param searchText\n * @param preceedingKeys other constrain key values. May be null.\n * @param caseInsensitiveSearch use case-insensitive search for {@code keyPattern}\n * @param sortAsc ascending sorting (irrelevant is {@code sortByValue} is false)\n * @param sortByValue sort results by value\n * @param offset enumeration values offset in result set\n * @param maxResults maximum enumeration values in result set\n * @return statement with result set which contains valid enumeration values.\n */\n @NotNull\n List<DBDLabelValuePair> getDictionaryEnumeration(\n @NotNull DBRProgressMonitor monitor,\n @NotNull DBSEntityAttribute keyColumn,\n @Nullable Object keyPattern,\n @Nullable String searchText,\n @Nullable List<DBDAttributeValue> preceedingKeys,\n boolean caseInsensitiveSearch,\n boolean sortAsc,\n boolean sortByValue,\n int offset,\n int maxResults\n ) throws DBException;\n\n @NotNull\n List<DBDLabelValuePair> getDictionaryValues(\n @NotNull DBRProgressMonitor monitor,\n @NotNull DBSEntityAttribute keyColumn,\n @NotNull List<Object> keyValues,\n @Nullable List<DBDAttributeValue> preceedingKeys,\n boolean sortByValue,\n boolean sortAsc\n ) throws DBException;\n\n @NotNull\n DBSDictionaryAccessor getDictionaryAccessor(\n @NotNull DBRProgressMonitor monitor,\n @Nullable List<DBDAttributeValue> precedingKeys,\n @NotNull DBSEntityAttribute keyColumn,\n boolean sortAsc,\n boolean sortByDesc\n ) throws DBException;\n}", "@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)\n\tpublic List<AssetVocabulary> getAttachedVocabularies(long groupId);", "public static List<Book> getBookCategory() throws HibernateException{\r\n \r\n session = sessionFactory.openSession();\r\n session.beginTransaction();\r\n \r\n Query query=session.getNamedQuery(\"INVENTORY_getBookCategory\");\r\n List<Book> bookLocationList=query.list();\r\n \r\n session.getTransaction().commit();\r\n session.close();\r\n \r\n return bookLocationList;\r\n}", "public void train(Corpus[] trainingData) {\n\t\tSet<String> vocabulary = super.mergeVocabulary(trainingData);\n\t\ttrainingData[0].setVocabulary(vocabulary);\n\t\ttrainingData[1].setVocabulary(vocabulary);\n\t\tposMatrix = new TransitionMatrix(trainingData[0]);\n\t\tnegMatrix = new TransitionMatrix(trainingData[1]);\n\t}", "public void AddInDB(Word newWord) throws SQLException {\n String insertQuery = \"INSERT INTO tbltest(word,pronunciation,define) VALUES(?,?,?)\";\r\n ps = con.prepareStatement(insertQuery);\r\n ps.setString(1, newWord.getWord());\r\n ps.setString(2, newWord.getPronunciation());\r\n ps.setString(3, newWord.getDefine());\r\n\r\n ps.executeUpdate();\r\n }", "public static void caso41(){\n FilterManager fm= new FilterManager(\"resources/stopWordsList.txt\",\"resources/useCaseWeight.properties\");\n\t\tQualityAttributeBelongable qualityAttributeBelongable = new OntologyManager(\"file:resources/caso4.owl\",\"file:resources/caso4.repository\",fm);\n\t\tMap<QualityAttributeInterface,Double> map = qualityAttributeBelongable.getWordPertenence(\"response1\");\n\t\tif(map==null){\n\t\t\tSystem.out.println(\"El map es null\");\n\t\t}else{\n\t\t\tMapUtils.imprimirMap(map);\n\t\t}\n\t}", "@Select(\"select id,item from dicts where id in (23,24,25,26,27)\")\n\tList<Dict> findLevels();", "public interface IJavaDocAttributDao\n{\n List<JavaDocAttribut> getJavaDocAttributs(int idJavaDocMethode);\n}" ]
[ "0.5714772", "0.5634642", "0.54471385", "0.5296146", "0.5199113", "0.49331725", "0.49329886", "0.4925552", "0.49100333", "0.49073565", "0.48575464", "0.4840506", "0.48176134", "0.47540638", "0.4731969", "0.47130308", "0.46997505", "0.46928567", "0.46592632", "0.46315858", "0.46308562", "0.4628427", "0.4613438", "0.4607982", "0.46033806", "0.45581195", "0.45454577", "0.45442265", "0.45386803", "0.45275065", "0.452028", "0.4503016", "0.4500965", "0.44867927", "0.44754398", "0.44700065", "0.4461962", "0.44616178", "0.44392928", "0.44261026", "0.43990988", "0.43955937", "0.43947372", "0.4391834", "0.43790415", "0.4373947", "0.43707538", "0.43700558", "0.43560442", "0.43444037", "0.43359932", "0.4334978", "0.4331108", "0.43275934", "0.43246162", "0.4323478", "0.432252", "0.43204546", "0.43167415", "0.4313692", "0.43123078", "0.43018934", "0.42899582", "0.42859036", "0.4279804", "0.42734304", "0.42709267", "0.42542967", "0.4249365", "0.4246521", "0.42383584", "0.42374423", "0.42311075", "0.42302102", "0.4229986", "0.4227258", "0.42229605", "0.42228934", "0.422011", "0.42189792", "0.42158115", "0.42145696", "0.42105144", "0.4207044", "0.42064056", "0.41962886", "0.4194155", "0.41941473", "0.41919973", "0.41892615", "0.41883606", "0.41852176", "0.4182343", "0.41803232", "0.41759124", "0.41734546", "0.41732693", "0.41713014", "0.41704375", "0.416942", "0.41672277" ]
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table wd_vocab
public Criteria createCriteria() { Criteria criteria = createCriteriaInternal(); if (oredCriteria.size() == 0) { oredCriteria.add(criteria); } return criteria; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<VocabWord> document(int index);", "int[] documents(VocabWord vocabWord);", "public static void writeVocab(Vocab vocab) {\n String userId = FirebaseAuth.getInstance().getUid();\n Log.d(\"000\", \"writeVocab: \"+userId);\n mDatabase.child(\"user\").child(userId).child(\"vocab\").child(vocab.Id).setValue(vocab);\n }", "void addWordsToDoc(int doc,List<VocabWord> words);", "void addWordToDoc(int doc,VocabWord word);", "public VocabularyTerms() {}", "public Vector mapDocument(BOW bow) {\n //logger.info(\"lsm.mapDocument\");\n SparseVector vector = new SparseVector();\n\n Iterator<String> it = bow.termSet().iterator();\n String term = null;\n int index = 0;\n //int tf = 0;\n float tfIdf;\n for (int i = 0; it.hasNext(); i++) {\n //logger.info(i + \" \" + t[i]);\n term = it.next();\n index = termIndex.get(term);\n\n if (index != -1) {\n //tf = bow.getFrequency(term);\n //tfIdf = (float) (log2(tf)) * Iidf[index];\n //tfIdf = (float) bow.augmentedFrequency(term) * Iidf[index];\n tfIdf = (float) bow.tf(term) * Iidf[index];\n //logger.info(term + \" ==> \" + index + \", tf.idf = \" + tf + \"(\" + (log2(tf)) + \") * \" + Iidf[index] + \" = \" + tfIdf);\n vector.add(index, tfIdf);\n\n }\n } // end for\n\n return vector;\n }", "@Id\n @Column(name=\"term_key\")\n public int getTermKey() {\n\treturn termKey;\n }", "public WdVocabExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "private static void setWordPosition() {\n\t\tSet setKeys = Utility.vocabHM.keySet();\n\t\tIterator i = setKeys.iterator();\n\t\tint position = 0;\n\t\twhile (i.hasNext()) {\n\t\t\tString w = (String) i.next();\n\t\t\tInteger rows[] = new Integer[2];\n\t\t\trows[0] = new Integer(position); /* word position */\n\t\t\trows[1] = (Integer) Utility.vocabHM.get(w); /* df */\n\n\t\t\tUtility.vocabHM.put(w, rows);\n\t\t\tposition++;\n\t\t}\n\t}", "public Vector<Word> allKeyValue(){\n\n\tVector<Word> words = new Vector<Word>();\n\tfor(int w = 0; w < theTable.length; w++){\n\t // System.out.println(\"w: \" + w);\n\t // System.out.println(\"theTable[w]: \" + theTable[w]);\n\t if(theTable[w] != null){\n\t\twords.addElement(theTable[w]);\n\t }\n\t}\n\treturn words;\n }", "public static void deleteVocab(Context context){\n Toast.makeText(context, \"deleted\", Toast.LENGTH_SHORT).show();\n DatabaseReference vocabRef=FirebaseDatabase.getInstance().getReference().child(\"user\").child(FirebaseAuth.getInstance().getUid()).child(\"vocab\").child(currentVocabId);\n vocabRef.removeValue();\n }", "public Controlador(boolean newTable){\n if(newTable){\n vocabulario = new TSB_OAHashtable<>();\n }\n }", "public static void initVocabData() {\n FirebaseDatabase.getInstance().getReference().child(\"user\").child(FirebaseAuth.getInstance().getUid()).child(\"vocab\")\n .addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n staticVocabs.clear();\n for(DataSnapshot snapshot: dataSnapshot.getChildren() ){\n Vocab vocab = snapshot.getValue(Vocab.class);\n staticVocabs.add(vocab);\n size=1;\n }\n vocabsAdapter.notifyDataSetChanged();\n if (staticVocabs.size()==0){\n vocabsRecyclerView.setVisibility(View.INVISIBLE);\n isFirst.setVisibility(View.VISIBLE);\n notFirst.setVisibility(View.INVISIBLE);\n\n }else {\n vocabsRecyclerView.setVisibility(View.VISIBLE);\n isFirst.setVisibility(View.INVISIBLE);\n notFirst.setVisibility(View.VISIBLE);\n }\n }\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n }\n });\n }", "List<WdWordDict> selectByExample(WdWordDictExample example);", "@Query(\"SELECT * from english_word ORDER BY word ASC limit 300\")\n List<StoredEnglishWord> findAllWords();", "public void saveVocab (Vocabulary v, String vocabFilePath) throws IOException {\n\t\tFile file = new File(vocabFilePath);\n\t\t//if (file.exists()) file.delete();\n\t\t//file.createNewFile();\n\t\tBufferedWriter bw = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(file)));\n\t\tfor (int i = 0; i < v.vocabSize; i++) {\n\t\t\tbw.write(v.vocab.get(i).word + \" \" + v.vocab.get(i).cn + \"\\n\");\n\t\t}\n\t\tbw.close();\n\t}", "public void setVocubalaryId(long vocubalaryId);", "private void setVocabulary(int vocSize) {\n\t\tArrayList<String> chosen = new ArrayList<String>();\n\t\twhile (chosen.size() < vocSize) {\n\t\t\tint max = 0;\n\t\t\tString best = \"\";\n\t\t\tfor (String t : df.keySet()) {\n\t\t\t\tif (df.get(t) > max && !chosen.contains(t)) {\n\t\t\t\t\tmax = df.get(t);\n\t\t\t\t\tbest = t;\n\t\t\t\t}\n\t\t\t}\n\t\t\tchosen.add(best);\n\t\t}\n\t\tvocab = chosen;\n\t}", "public void constructOntologyVocabulary() {\n ontologyOwlClassVocabulary = new HashMap<>();\n ontologyOWLDataPropertyVocabulary = new HashMap<>();\n ontologyOWLNamedIndividualVocabulary = new HashMap<>();\n ontologyOWLObjectPropertylVocabulary = new HashMap<>();\n\n Set<OWLClass> classes = domainOntology.getClassesInSignature();\n Set<OWLNamedIndividual> individualPropertyAtom = domainOntology.getIndividualsInSignature();\n Set<OWLDataProperty> dataProperty = domainOntology.getDataPropertiesInSignature();\n Set<OWLObjectProperty> OWLObjectPropertyAtom = domainOntology.getObjectPropertiesInSignature();\n String tempName = null;\n\n for (OWLClass c : classes) {\n tempName = c.toString();\n tempName = tempName.substring(tempName.lastIndexOf(\"/\") + 1);\n tempName = TextUtil.formatName(tempName);\n ontologyOwlClassVocabulary.put(tempName, c);\n }\n for (OWLDataProperty d : dataProperty) {\n tempName = d.toString();\n tempName = tempName.substring(tempName.lastIndexOf(\"/\") + 1);\n tempName = TextUtil.formatName(tempName);\n ontologyOWLDataPropertyVocabulary.put(tempName, d);\n }\n for (OWLNamedIndividual i : individualPropertyAtom) {\n tempName = i.toString();\n tempName = tempName.substring(tempName.lastIndexOf(\"/\") + 1);\n tempName = TextUtil.formatName(tempName);\n ontologyOWLNamedIndividualVocabulary.put(tempName, i);\n }\n for (OWLObjectProperty o : OWLObjectPropertyAtom) {\n tempName = o.toString();\n tempName = tempName.substring(tempName.lastIndexOf(\"/\") + 1);\n tempName = TextUtil.formatName(tempName);\n ontologyOWLObjectPropertylVocabulary.put(tempName, o);\n }\n }", "public void getVector() throws IOException {\n\t\tint i=1;\r\n\t\tfor(String key:keyword){\r\n\t\t\tWord w=new Word();\r\n\t\t\tdouble tf=calTF(key);\r\n\t\t\tdouble idf=calIDF(key);\r\n\t\t\tdouble tfidf=tf*idf;\r\n\t\t\tw.setId(i);\r\n\t\t\ti++;\r\n\t\t\tw.setName(key);\r\n\t\t\tw.setTfidf(tfidf);\r\n\t\t\tif(word.containsKey(key)){\r\n\t\t\t\tw.setCount((Integer) word.get(key));\r\n\t\t\t}\r\n\t\t\tkeymap.add(w);\r\n\t\t}\r\n\t\tFileHelper.writeTrainFile(keymap);\r\n\t\tFileHelper.writeTestFile(keymap);\r\n\t}", "public int getTermIndex() {return termIndex;}", "public String getKeyWordTableName() {\r\n\t\treturn keyWordTableName;\r\n\t}", "@Override\n public String getTableName() {\n return getFreeTextDocTablename(conf);\n }", "private Vocabulary() {\n }", "public Vector mapDocument(BOW bow, boolean b) {\n //logger.info(\"lsm.mapDocument \" + b);\n SparseVector vector = new SparseVector();\n\n Iterator<String> it = bow.termSet().iterator();\n for (int i = 0; it.hasNext(); i++) {\n //logger.info(i + \" \" + t[i]);\n String term = it.next();\n int index = termIndex.get(term);\n\n if (index != -1) {\n int tf = bow.getFrequency(term);\n float tfIdf = (float) (log2(tf));\n if (b) {\n tfIdf *= Iidf[index];\n }\n\n //logger.info(term + \" ==> \" + index + \", tf.idf = \" + tf + \"(\" + (log2(tf)) + \") * \" + Iidf[index] + \" = \" + tfIdf);\n vector.add(index, tfIdf);\n\n }\n } // end for\n\n return vector;\n }", "void skillsFound( String key ) {\n developer.skills = new ArrayList<>();\n }", "@Override\n\tpublic List<Skill> getSkills() {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\t\n\t\t//create a query\n\t\tQuery<Skill> theQuery = currentSession.createQuery(\"from Skill\", Skill.class);\n\t\t\n\t\t//execute query and get result list\n\t\tList<Skill> skills = theQuery.getResultList();\n\t\t\n\t\t//return the results\n\t\treturn skills;\n\t}", "RepStuLearning selectByPrimaryKey(RepStuLearningKey key);", "public void fillVerbTbl(String sentenceID){\n\t\t// implement me!\n\t}", "WdWordDict selectByPrimaryKey(Long dictId);", "List<WordSchool> selectByExample(WordSchoolExample example);", "public OWLModel getKnowledgeBase();", "@Transactional\r\n\tpublic List<CmVocabularyCategory> getCmVocabularyCategorys() {\r\n\t\treturn dao.findAllWithOrder(CmVocabularyCategory.class, \"modifyTimestamp\", false);\r\n\t}", "public static void caso31(){\n\t FilterManager fm= new FilterManager(\"resources/stopWordsList.txt\",\"resources/useCaseWeight.properties\");\n\t\t\tQualityAttributeBelongable qualityAttributeBelongable = new OntologyManager(\"file:resources/caso3.owl\",\"file:resources/caso3.repository\",fm);\n\t\t\tMap<QualityAttributeInterface,Double> map = qualityAttributeBelongable.getWordPertenence(\"response1\");\n\t\t\tif(map==null){\n\t\t\t\tSystem.out.println(\"El map es null\");\n\t\t\t}else{\n\t\t\t\tMapUtils.imprimirMap(map);\n\t\t\t}\n\t}", "public void setKeyWordTableName(String keyWordTableName) {\r\n\t\tthis.keyWordTableName = keyWordTableName;\r\n\t}", "public static void caso32(){\n\t FilterManager fm= new FilterManager(\"resources/stopWordsList.txt\",\"resources/useCaseWeight.properties\");\n\t\t\tQualityAttributeBelongable qualityAttributeBelongable = new OntologyManager(\"file:resources/caso3.owl\",\"file:resources/caso3.repository\",fm);\n\t\t\tMap<QualityAttributeInterface,Double> map = qualityAttributeBelongable.getWordPertenence(\"response2\");\n\t\t\tif(map==null){\n\t\t\t\tSystem.out.println(\"El map es null\");\n\t\t\t}else{\n\t\t\t\tMapUtils.imprimirMap(map);\n\t\t\t}\n\t}", "WordSchool selectByPrimaryKey(Long id);", "public void AddKeywords()\n\t{\n\t\ttry\n\t\t{\n\t\t\tConnector con = new Connector();\n\t\t\tString query; \n\t\t\t\n\t\t\tfor(int i = 0; i < keywords.size(); i++)\n\t\t\t{\n\t\t\t\tString keyword = keywords.get(i); \n\t\t\t\t\n\t\t\t\tint kid = GetKIDFromWord(keyword); \n\t\t\t\t\n\t\t\t\t//word is not already in table\n\t\t\t\tif(kid == -1)\n\t\t\t\t{\n\t\t\t\t\t//insert word into Keywords \n\t\t\t\t\tSystem.out.println(\"test\"); \n\t\t\t\t\tquery = \"INSERT INTO Keywords(word) VALUE ('\"+keyword+\"')\"; \n\t\t\t \tint intoTable = con.stmt.executeUpdate(query); \n\t\t\t \t\n\t\t\t \t//able to put it in the table\n\t\t\t \tif(intoTable > 0)\n\t\t\t \t{\n\t\t\t \t\t//insert into HasKeywords\n\t\t\t\t \tkid = GetKIDFromWord(keyword); \n\t\t\t\t\t\tquery = \"INSERT INTO HasKeywords(keyword_hid, keyword_kid) VALUE('\"+hid+\"', '\"+kid+\"')\";\n\t\t\t\t \tint hasKey = con.stmt.executeUpdate(query); \n\t\t\t \t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//word is already in table\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tList<Integer> hkCheck = GetHIDSFromKID(kid);\n\t\t\t\t\t\n\t\t\t\t\tboolean inHKTable = false; \n\t\t\t\t\tfor(int j = 0; j < hkCheck.size(); j++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(hkCheck.get(j) == hid)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tinHKTable = true; \n\t\t\t\t\t\t\tbreak; \n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif(inHKTable == false)\n\t\t\t\t\t{\n\t\t\t\t\t\tquery = \"INSERT INTO HasKeywords(keyword_hid, keyword_kid) VALUE('\"+hid+\"', '\"+kid+\"')\";\n\t\t\t\t \tint hasKey = con.stmt.executeUpdate(query); \n\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tcon.closeConnection();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t}", "public final void mRULE_TOKEN_VOCAB() throws RecognitionException {\n try {\n int _type = RULE_TOKEN_VOCAB;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalUniMapperGenerator.g:5095:18: ( 'tokenVocab' )\n // InternalUniMapperGenerator.g:5095:20: 'tokenVocab'\n {\n match(\"tokenVocab\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public static void testDictionary() throws IOException {\n String wnhome=\"c:\\\\Users\\\\Katherine\\\\Documents\\\\2nd sem\\\\IR\\\\project\\\\WordNet_3.1\";\n String path = wnhome + File.separator + \"dict\";\n\n\n URL url = new URL(\"file\", null, path);\n\n IDictionary dictionary = new Dictionary(url);\n dictionary.open();\n // /Users/Ward/Downloads\n IIndexWord indexWord = dictionary.getIndexWord(\"use\", POS.VERB);\n\n for (IWordID wordID : indexWord.getWordIDs()) {\n\n IWord word = dictionary.getWord(wordID);\n for (IWord word1 : word.getSynset().getWords()) {\n System.out.println(word1.getLemma());\n }\n// System.out.println(\"Id = \" + wordID);\n// System.out.println(\" Lemma = \" + word.getLemma());\n// System.out.println(\" Gloss = \" + word.getSynset().getGloss());\n\n List<ISynsetID> hypernyms =\n word.getSynset().getRelatedSynsets(Pointer.HYPERNYM);\n // print out each h y p e r n y m s id and synonyms\n List<IWord> words;\n for (ISynsetID sid : hypernyms) {\n words = dictionary.getSynset(sid).getWords();\n System.out.print(sid + \" {\");\n for (Iterator<IWord> i = words.iterator(); i.hasNext(); ) {\n System.out.print(i.next().getLemma());\n if (i.hasNext())\n System.out.print(\", \");\n }\n System.out.println(\"}\");\n }\n }\n }", "public Vector mapDocument(MultiSet<String> bow) {\n //logger.info(\"lsm.mapDocument\");\n SparseVector vector = new SparseVector();\n\n Iterator<String> it = bow.iterator();\n String term = null;\n int index = 0;\n int tf = 0;\n float tfIdf;\n for (int i = 0; it.hasNext(); i++) {\n //logger.info(i + \" \" + t[i]);\n term = it.next();\n index = termIndex.get(term);\n\n if (index != -1) {\n tf = bow.getFrequency(term);\n tfIdf = (float) (log2(tf)) * Iidf[index];\n\n //logger.info(term + \" ==> \" + index + \", tf.idf = \" + tf + \"(\" + (log2(tf)) + \") * \" + Iidf[index] + \" = \" + tfIdf);\n vector.add(index, tfIdf);\n\n }\n } // end for\n\n return vector;\n }", "public static void writeArchivedVocab(Vocab vocab) {\n String userId = FirebaseAuth.getInstance().getUid();\n Log.d(\"000\", \"writeVocab: \"+userId);\n mDatabase.child(\"user\").child(userId).child(\"archive\").child(vocab.Id).setValue(vocab);\n }", "public List<Term> getAllTerms() {\n\t\tsession.beginTransaction();\n\t\tList<Term> lis = session.createQuery(\"from Term\").list();\n\n\t\tfor (Term tm : lis) {\n\t\t\tSystem.out.println(tm.getId() + \" \" + tm.getTermName());\n\t\t}\n\t\treturn lis;\n\t}", "public WordsWrapper getVocabulariesWrapper() {\n\t\tWordsWrapper wrapper = new WordsWrapper();\n\t\twrapper.mainvocabs = m__vocabs;\n\t\twrapper.referenes = m__referencedwords;\n\t\treturn wrapper;\n\t}", "public interface DictionaryDao<Type extends DictionaryProperty<Id>, Id extends Serializable> {\r\n\t/** \r\n\t * <!-- begin-UML-doc -->\r\n\t * Zwraca wszystkie mozliwe wartosci slownika.\r\n\t * <!-- end-UML-doc -->\r\n\t * @return\r\n\t * @generated \"UML to Java (com.ibm.xtools.transform.uml2.java5.internal.UML2JavaTransform)\"\r\n\t */\r\n\tpublic List<Type> getAll();\r\n}", "@Override\n public Builder limitVocabularySize(int limit) {\n super.limitVocabularySize(limit);\n return this;\n }", "@Override\n public List<DefinitionDTO> findAllWords() {\n List<Word> words = wordRepository.findAll();\n return DTOMapper.mapWordListToDefinitionDTOList(words);\n }", "public interface ArchetypeLevelsSchema {\n\tString TABLE_NAME = \"creature_archetype_levels\";\n\n\tString COLUMN_ARCHETYPE_ID = \"archetypeId\";\n\tString COLUMN_LEVEL = \"level\";\n\tString COLUMN_ATTACK = \"attack\";\n\tString COLUMN_ATTACK2 = \"attack2\";\n\tString COLUMN_DEF_BONUS = \"defensiveBonus\";\n\tString COLUMN_BODY_DEV = \"bodyDevelopment\";\n\tString COLUMN_PRIME_SKILL = \"primeSkill\";\n\tString COLUMN_SECONDARY_SKILL = \"secondarySkill\";\n\tString COLUMN_POWER_DEV = \"powerDevelopment\";\n\tString COLUMN_SPELLS = \"spells\";\n\tString COLUMN_TALENT_DP = \"talentDP\";\n\tString COLUMN_AGILITY = \"agility\";\n\tString COLUMN_CONS_STAT = \"constitutionStat\";\n\tString COLUMN_CONSTITUTION = \"constitution\";\n\tString COLUMN_EMPATHY = \"empathy\";\n\tString COLUMN_INTUITION = \"intuition\";\n\tString COLUMN_MEMORY = \"memory\";\n\tString COLUMN_PRESENCE = \"presence\";\n\tString COLUMN_QUICKNESS = \"quickness\";\n\tString COLUMN_REASONING = \"reasoning\";\n\tString COLUMN_SELF_DISC = \"selfDiscipline\";\n\tString COLUMN_STRENGTH = \"strength\";\n\n\tString TABLE_CREATE = \"CREATE TABLE IF NOT EXISTS \"\n\t\t\t+ TABLE_NAME\n\t\t\t+ \" (\"\n\t\t\t+ COLUMN_ARCHETYPE_ID + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_LEVEL + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_ATTACK + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_ATTACK2 + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_DEF_BONUS + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_BODY_DEV + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_PRIME_SKILL + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_SECONDARY_SKILL + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_POWER_DEV + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_SPELLS + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_TALENT_DP + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_AGILITY + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_CONS_STAT + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_CONSTITUTION + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_EMPATHY + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_INTUITION + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_MEMORY + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_PRESENCE + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_QUICKNESS + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_REASONING + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_SELF_DISC + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_STRENGTH + \" INTEGER NOT NULL, \"\n\t\t\t+ \"PRIMARY KEY(\" + COLUMN_ARCHETYPE_ID + \",\" + COLUMN_LEVEL + \")\"\n\t\t\t+ \")\";\n\n\tString[] COLUMNS = new String[] { COLUMN_ARCHETYPE_ID, COLUMN_LEVEL, COLUMN_ATTACK, COLUMN_ATTACK2, COLUMN_DEF_BONUS,\n\t\t\tCOLUMN_BODY_DEV, COLUMN_PRIME_SKILL, COLUMN_SECONDARY_SKILL, COLUMN_POWER_DEV, COLUMN_SPELLS, COLUMN_TALENT_DP,\n\t\t\tCOLUMN_AGILITY, COLUMN_CONS_STAT, COLUMN_CONSTITUTION, COLUMN_EMPATHY, COLUMN_INTUITION, COLUMN_MEMORY,\n\t\t\tCOLUMN_PRESENCE, COLUMN_QUICKNESS, COLUMN_REASONING, COLUMN_SELF_DISC, COLUMN_STRENGTH};\n}", "public static void moveCorrectToArchive(Vocab vocab){\n\n DatabaseReference vocabRef=FirebaseDatabase.getInstance().getReference().child(\"user\").child(FirebaseAuth.getInstance().getUid()).child(\"vocab\").child(vocab.Id);\n vocabRef.removeValue();\n archiveVocabs.add(vocab);\n writeArchivedVocab(vocab);\n\n }", "Terms selectByPrimaryKey(Integer id);", "public Iterator words() {\n return index.keySet().iterator();\n }", "public Word getWord(int id);", "public List search() {\n\t\tSessionFactory sf = new Configuration().configure()\n\t\t\t\t.buildSessionFactory();\n\t\tSession s = sf.openSession();\n\t\tQuery q = s.createQuery(\"from cat_vo\");\n\t\tList ls = q.list();\n\t\treturn ls;\n\t}", "public List<Term> getAllTermsByDictionary(String table, String dictionary) {\n List<Term> termList = new ArrayList<Term>();\n\n // Select All Query\n String selectQuery = \"SELECT * FROM \" + table + \" WHERE \" + KEY_DICTIONARY + \" = '\" + dictionary + \"' ORDER BY \" + KEY_TERM;\n\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor cursor = db.rawQuery(selectQuery, null);\n\n // looping through all rows and adding to list\n if (cursor.moveToFirst()) {\n do {\n if (!cursor.getString(2).isEmpty()) {\n /*\n Term term = new Term();\n term.setId(Integer.parseInt(cursor.getString(0)));\n term.setDictionary(cursor.getString(1));\n term.setTerm(cursor.getString(2));\n term.setSubject(cursor.getString(3));\n term.setDefinition(cursor.getString(4));\n term.setSynonyms(cursor.getString(5));\n */\n Term term = new Term(Integer.parseInt(cursor.getString(0)),cursor.getString(1), cursor.getString(2), cursor.getString(3),\n cursor.getString(4), cursor.getString(5), Integer.parseInt(cursor.getString(6)));\n // Adding term to list\n termList.add(term);\n }\n } while (cursor.moveToNext());\n }\n\n // return term list\n return termList;\n }", "Integer getSkillCount( String key ){\n return developer.skills.size();\n }", "public List<Skill> findAll(){\n return (List<Skill>) skillRepository.findAll();\n }", "public Courses getCourseTable();", "@Override\n protected Builder useExistingWordVectors(@NonNull WordVectors vec) {\n return this;\n }", "private void indexRelations(String inputFile, FlagConfig flagConfig) throws IOException {\n this.elementalVectors = VectorStoreRAM.readFromFile(\n flagConfig, \"C:\\\\Users\\\\dwiddows\\\\Data\\\\QI\\\\Gutterman\\\\termtermvectors.bin\");\n this.flagConfig = flagConfig;\n this.proportionVectors = new ProportionVectors(flagConfig);\n this.luceneUtils = new LuceneUtils(flagConfig);\n VectorStoreWriter writer = new VectorStoreWriter();\n\n // Turn all the text lines into parsed records.\n this.parseInputFile(inputFile);\n\n // Now the various indexing techniques.\n VectorStoreRAM triplesVectors = new VectorStoreRAM(flagConfig);\n VectorStoreRAM triplesPositionsVectors = new VectorStoreRAM(flagConfig);\n VectorStoreRAM dyadsVectors = new VectorStoreRAM(flagConfig);\n VectorStoreRAM dyadsPositionsVectors = new VectorStoreRAM(flagConfig);\n VectorStoreRAM verbsVectors = new VectorStoreRAM(flagConfig);\n VectorStoreRAM verbsPositionsVectors = new VectorStoreRAM(flagConfig);\n\n for (String docName : this.parsedRecords.keySet()) {\n Vector tripleDocVector = VectorFactory.createZeroVector(flagConfig.vectortype(), flagConfig.dimension());\n Vector tripleDocPositionVector = VectorFactory.createZeroVector(flagConfig.vectortype(), flagConfig.dimension());\n Vector dyadDocVector = VectorFactory.createZeroVector(flagConfig.vectortype(), flagConfig.dimension());\n Vector dyadDocPositionVector = VectorFactory.createZeroVector(flagConfig.vectortype(), flagConfig.dimension());\n Vector verbDocVector = VectorFactory.createZeroVector(flagConfig.vectortype(), flagConfig.dimension());\n Vector verbDocPositionVector = VectorFactory.createZeroVector(flagConfig.vectortype(), flagConfig.dimension());\n\n for (ParsedRecord record : this.parsedRecords.get(docName)) {\n Vector tripleVector = this.getPsiTripleVector(record);\n tripleDocVector.superpose(tripleVector, 1, null);\n\n this.bindWithPosition(record, tripleVector);\n tripleDocPositionVector.superpose(tripleVector, 1, null);\n\n Vector dyadVector = this.getPsiDyadVector(record);\n dyadDocVector.superpose(dyadVector, 1, null);\n this.bindWithPosition(record, dyadVector);\n dyadDocPositionVector.superpose(dyadVector, 1, null);\n\n Vector verbVector = this.vectorForString(record.predicate);\n verbDocVector.superpose(verbVector, 1, null);\n this.bindWithPosition(record, verbVector);\n verbDocPositionVector.superpose(verbVector, 1, null);\n }\n\n triplesVectors.putVector(docName, tripleDocVector);\n triplesPositionsVectors.putVector(docName, tripleDocPositionVector);\n dyadsVectors.putVector(docName, dyadDocVector);\n dyadsPositionsVectors.putVector(docName, dyadDocPositionVector);\n verbsVectors.putVector(docName, verbDocVector);\n verbsPositionsVectors.putVector(docName, verbDocPositionVector);\n }\n\n for (VectorStore vectorStore : new VectorStore[] {\n triplesVectors, triplesPositionsVectors, dyadsVectors, dyadsPositionsVectors, verbsVectors, verbsPositionsVectors }) {\n Enumeration<ObjectVector> vectorEnumeration = vectorStore.getAllVectors();\n while (vectorEnumeration.hasMoreElements())\n vectorEnumeration.nextElement().getVector().normalize();\n }\n\n writer.writeVectors(TRIPLES_OUTPUT_FILE, flagConfig, triplesVectors);\n writer.writeVectors(TRIPLES_POSITIONS_OUTPUT_FILE, flagConfig, triplesPositionsVectors);\n\n writer.writeVectors(DYADS_OUTPUT_FILE, flagConfig, dyadsVectors);\n writer.writeVectors(DYADS_POSITIONS_OUTPUT_FILE, flagConfig, dyadsPositionsVectors);\n\n writer.writeVectors(VERBS_OUTPUT_FILE, flagConfig, verbsVectors);\n writer.writeVectors(VERBS_POSITIONS_OUTPUT_FILE, flagConfig, verbsPositionsVectors);\n }", "int getConceptLanguagesCount();", "@Override\n public Builder lookupTable(@NonNull WeightLookupTable<VocabWord> lookupTable) {\n super.lookupTable(lookupTable);\n return this;\n }", "WordBean getWord(String word);", "public List<Product> search(String word, String codigo) {\n\t\tSession session = getSessionFactory().openSession();\n\t\treturn null;\n\t}", "private void invertedToDatabase(){\r\n cleFreq = new HashMap<>();\r\n System.out.println(\"Strat collecting\");\r\n Map<String,List<Invertedindex>> collects = collecting();\r\n System.out.println(\"Ending collecting\");\r\n Database.getInstance().invertedIndex(collects);\r\n Database.getInstance().addPoids(cleFreq);\r\n }", "@SuppressWarnings({ \"deprecation\", \"unchecked\", \"rawtypes\" })\n\tpublic String generateWordlists(Corpus co) {\n\t\tlong startTime = System.currentTimeMillis();\n\t\t// Set up weka word vector\n\t\tFastVector attributes;\n\t\tInstances dataSet;\n\t\tattributes = new FastVector();\n\n\t\tattributes.addElement(new Attribute(\"aspect_id\", (FastVector) null));\n\t\tattributes.addElement(new Attribute(\"tokens\", (FastVector) null));\n\n\t\tdataSet = new Instances(\"BeerAspects\", attributes, 0);\n\n\t\tCorpus topReviews;\n\t\tCorpus lowReviews;\n\n\t\t// Do top and low for all aspects\n\t\tfor (Aspect aspect : Aspect.values()) {\n\n\t\t\t// Only for actual aspects\n\t\t\tif (aspect.equals(Aspect.NONE) || aspect.equals(Aspect.OVERALL))\n\t\t\t\tcontinue;\n\n\t\t\ttopReviews = co.getTopReviews(aspect);\n\t\t\ttopReviews.analyze();\n\t\t\tString tokens = topReviews.getTokenConcatenation(aspect);\n\n\t\t\tInstance instance = new SparseInstance(2);\n\t\t\tinstance.setValue((Attribute) attributes.elementAt(0), aspect.name() + \"_TOP\");\n\t\t\tinstance.setValue((Attribute) attributes.elementAt(1), tokens);\n\n\t\t\tdataSet.add(instance);\n\n\t\t\tlowReviews = co.getLowReviews(aspect);\n\t\t\tlowReviews.analyze();\n\t\t\ttokens = lowReviews.getTokenConcatenation(aspect);\n\t\t\t// System.out.println(tokens);\n\n\t\t\tinstance = new SparseInstance(2);\n\t\t\tinstance.setValue((Attribute) attributes.elementAt(0), aspect.name() + \"_LOW\");\n\t\t\tinstance.setValue((Attribute) attributes.elementAt(1), tokens);\n\n\t\t\tdataSet.add(instance);\n\t\t}\n\n\t\t// System.out.println(dataSet.toString());\n\t\tInstances dataFiltered = transformToWordVector(dataSet, co.getProps());\n\n\t\t// System.out.println(dataFiltered.toString());\n\t\tString pathsToLists = writeWordlists(dataFiltered);\n\n\t\twriteArffFile(dataFiltered, this.outputDir+\"wordvector.arff\");\n\n\t\tlong stopTime = System.currentTimeMillis();\n\t\tlong elapsedTime = stopTime - startTime;\n\t\tSystem.out.println(\"Generated wordlists in: \" + elapsedTime / 1000 + \" s\");\n\t\treturn pathsToLists;\n\t}", "boolean putWord(WordBean wordBean);", "public Table<Integer, Integer, String> getAnonymizedData();", "public static void caso12(){\n\n FilterManager fm= new FilterManager(\"resources/stopWordsList.txt\",\"resources/useCaseWeight.properties\");\n\t\tQualityAttributeBelongable qualityAttributeBelongable = new OntologyManager(\"file:resources/caso1.owl\",\"file:resources/caso1.repository\",fm);\n\t\tMap<QualityAttributeInterface,Double> map = qualityAttributeBelongable.getWordPertenence(\"pan\");\n\t\tif(map==null){\n\t\t\tSystem.out.println(\"El map es null\");\n\t\t}\n\t}", "public void addToJurisdictions(entity.AppCritJurisdiction element);", "public static void caso11(){\n\t\t\n FilterManager fm= new FilterManager(\"resources/stopWordsList.txt\",\"resources/useCaseWeight.properties\");\n\t\tQualityAttributeBelongable qualityAttributeBelongable = new OntologyManager(\"file:resources/caso1.owl\",\"file:resources/caso1.repository\",fm);\n\t\tMap<QualityAttributeInterface,Double> map = qualityAttributeBelongable.getWordPertenence(\"response\");\n\t\tMapUtils.imprimirMap(map);\n\t}", "public String getNomTable();", "public void init() {\n File file=new File(\"D:\\\\lucene\\\\index\");\n if(file.isDirectory())\n { //否则如果它是一个目录\n File files[] = file.listFiles(); //声明目录下所有的文件 files[];\n for(int i=0;i<files.length;i++)\n { //遍历目录下所有的文件\n files[i].delete(); //把每个文件 用这个方法进行迭代\n }\n }\n String indexPath = \"D:\\\\lucene\\\\index\";\n //String docsPath = \"D:\\\\lucene\\\\data\";\n boolean create = true;\n try\n {\n Session session=factory.openSession();\n String hql = \"from Book\";\n org.hibernate.Query query = session.createQuery(hql);\n List<Book> list=query.list();\n Directory indexDir = FSDirectory.open(Paths.get(\"D:\\\\lucene\\\\index\"));\n Analyzer luceneAnalyzer = new StandardAnalyzer(); //新建一个分词器实例 \n IndexWriterConfig config = new IndexWriterConfig(luceneAnalyzer); \n IndexWriter indexWriter = new IndexWriter(indexDir,config);\n for(int i=0;i<list.size();i++)\n {\n Document document = new Document();\n Field field1 = new StringField(\"id\",list.get(i).getBookid().toString(),Field.Store.YES); \n Field field2 = new StringField(\"bookname\",list.get(i).getBookname(),Field.Store.YES); \n Field field3 = new StringField(\"author\",list.get(i).getAuthor(),Field.Store.YES); \n Field field4 = new StringField(\"category\",list.get(i).getCategory(),Field.Store.YES); \n Field field5 = new StringField(\"price\", Double.toString(list.get(i).getPrice()),Field.Store.YES); \n document.add(field1); \n document.add(field2); \n document.add(field3); \n document.add(field4);\n document.add(field5);\n indexWriter.addDocument(document);\n }\n indexWriter.close();\n }\n catch(IOException e)\n {\n System.out.println(\"error\");\n return;\n }\n }", "hr.domain.ResumeDBOuterClass.Education getEducations(int index);", "hr.domain.ResumeDBOuterClass.Experience getExperiences(int index);", "public void fillNounTbl(String sentenceID){\n\t\t// implement me!\n\t}", "void createOrUpdateVocabulary(final VocabularyPE vocabularyPE);", "@Override\n public Builder iterate(@NonNull SequenceIterator<VocabWord> iterator) {\n super.iterate(iterator);\n return this;\n }", "private void createFreqVector(Path file) {\r\n\t\t\tVector vector = new Vector(vocabulary.size());\r\n\t\t\tList<String> lines;\r\n\t\t\ttry {\r\n\t\t\t\tlines = Files.readAllLines(file);\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tSet<String> words = new HashSet<>();\r\n\t\t\t//create frequency vector of words in single document -> tf(w,d)\r\n\t\t\tfor (String line : lines) {\r\n\t\t\t\tif (line.isEmpty()) continue;\r\n\t\t\t\tString[] values = p.split(line);\r\n\t\t\t\tfor (String value : values) { \r\n\t\t\t\t\tif (value.isEmpty()) continue;\r\n\t\t\t\t\tString lowWord = value.toLowerCase().trim();\r\n\t\t\t\t\t\r\n\t\t\t\t\tInteger[] arr = vocabulary.get(lowWord);\r\n\t\t\t\t\tif (arr == null) continue;\r\n\t\t\t\t\tvector.incrementValueAt(arr[0]);\r\n\t\t\t\t\tif (words.add(lowWord)) {\r\n\t\t\t\t\t\t arr[1] += 1;\t//first time occurrence of this word in document\r\n\t\t\t\t\t\tvocabulary.put(lowWord, arr);\t//increment number of documents for this word\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\tfreqVectors.put(file, vector);\t\t\r\n\t\t}", "private String[][] getMoodsTableValues() {\n String soso = DBTypesKeys.SO_SO_MOOD.getTypeValue();\n String sad = DBTypesKeys.SAD_MOOD.getTypeValue();\n String angry = DBTypesKeys.ANGRY_MOOD.getTypeValue();\n String happy = DBTypesKeys.HAPPY_MOOD.getTypeValue();\n // moods table\n return new String[][]{\n //moods hi answers by answers // id_ (enum index + 1)\n { soso, \"hey\", \"by\"}, // 1\n { sad, \"welcome to sad world\", \"so, you too ...\"}, // 2\n { angry, \"get out!\", \"thanks god, you away\"}, // 3\n { happy, \"hi! glad to see you =)\", \"good luck, buddy\"} // 4\n };\n }", "private VocabularyTerms getVocabularyTerms(Collection<CMAContentType> vocabularies) {\n VocabularyTerms vocabularyTerms = new VocabularyTerms();\n vocabularies\n .forEach(contentType -> {\n //Keeps the country vocabulary ID for future use\n if (contentType.getName().equals(configuration.getCountryVocabulary())) {\n vocabularyTerms.loadCountryVocabulary(contentType);\n } else {\n //Loads vocabulary into memory\n vocabularyTerms.loadVocabulary(contentType);\n }\n });\n return vocabularyTerms;\n }", "public static String getTokenVocabFromGrammar(String text) {\n\t\t// TODO: unneeded. use antlr Tool. Kill?\n//\t\tParsingResult r = parseANTLRGrammar(text);\n//\t\tif ( r.tree!=null ) { //&& r.syntaxErrorListener.getSyntaxErrors().size()==0 ) {\n//\t\t\t// option : id ASSIGN optionValue ;\n//\t\t\tCollection<ParseTree> options = XPath.findAll(r.tree, \"//option\", r.parser);\n//\t\t\tfor (Iterator<ParseTree> it = options.iterator(); it.hasNext(); ) {\n//\t\t\t\tANTLRv4Parser.OptionContext option = (ANTLRv4Parser.OptionContext)it.next();\n//\t\t\t\tif ( option.id().getText().equals(\"tokenVocab\") ) {\n//\t\t\t\t\t/*\n//\t\t\t\t\toptionValue\n//\t\t\t\t\t\t:\tid (DOT id)*\n//\t\t\t\t\t\t|\tSTRING_LITERAL\n//\t\t\t\t\t\t|\tACTION\n//\t\t\t\t\t\t|\tINT\n//\t\t\t\t\t\t;\n//\t\t\t\t\t */\n//\t\t\t\t\tANTLRv4Parser.OptionValueContext optionValue = option.optionValue();\n//\t\t\t\t\tif ( optionValue.STRING_LITERAL()!=null ) {\n//\t\t\t\t\t\tString s = optionValue.STRING_LITERAL().getText();\n//\t\t\t\t\t\treturn RefactorUtils.getLexerRuleNameFromLiteral(s);\n//\t\t\t\t\t}\n//\t\t\t\t\tif ( optionValue.id(0)!=null ) {\n//\t\t\t\t\t\treturn optionValue.id(0).getText();\n//\t\t\t\t\t}\n//\t\t\t\t}\n//\t\t\t}\n//\t\t}\n\t\treturn null;\n\t}", "private Resolution getVocabularyConceptResolution() {\r\n HttpServletRequest httpRequest = getContext().getRequest();\r\n String url = httpRequest.getRequestURL().toString();\r\n // String query = httpRequest.getQueryString();\r\n \r\n String[] parameters = StringUtils.split(StringUtils.substringAfter(url, \"/vocabulary/\"), \"/\");\r\n \r\n if (parameters.length >= 2) {\r\n if (!RESERVED_VOCABULARY_EVENTS.contains(parameters[1])) {\r\n RedirectResolution resolution = new RedirectResolution(VocabularyConceptActionBean.class, \"view\");\r\n resolution.addParameter(\"vocabularyFolder.identifier\", parameters[0]);\r\n resolution.addParameter(\"vocabularyConcept.identifier\", parameters[1]);\r\n resolution.addParameter(\"vocabularyFolder.workingCopy\", vocabularyFolder.isWorkingCopy());\r\n \r\n return resolution;\r\n }\r\n }\r\n \r\n return null;\r\n }", "public SPARQL() {\n initComponents();\n \n model = ModelFactory.createOntologyModel(OntModelSpec.OWL_LITE_MEM_RDFS_INF);\n model.setDynamicImports(true);\n model.read(\"file:\"+\"data/ontologies/Papers_Ready.owl\", \"http://www.l3g.pl/ontologies/OntoBeef/Papers.owl\", \"N-TRIPLE\");\n model.loadImports();\n \n for (Individual i : model.listIndividuals(model.getOntClass(\"http://www.l3g.pl/ontologies/OntoBeef/Conceptualisation.owl#Category\")).toSet())\n {\n System.out.println(i.listLabels(null).toSet());\n }\n }", "@Override\n public AutoBuffer write_impl(AutoBuffer ab) {\n if (_vocabHM == null) return ab.put1(1); // killed\n\n int strLen = 0;\n for (ValueStringCount val : VOCABHM.values())\n strLen += val.length();\n ab.put1(0); // not killed\n ab.put4(strLen); //length of string buffer\n for (ValueStringCount val : VOCABHM.values())\n ab.put2((char) val.length()).putA1(val.getBuffer(), val.getOffset(), val.getOffset() + val.length()).put8(val._cnt);\n return ab.put2((char) 65535); // End of map marker\n }", "@SuppressWarnings(\"unchecked\")\r\n\tpublic static void main(String[] args) throws IOException {\n\t\tSchema s = new Schema(\"Estudiantes\",\"C:\\\\Users\\\\morazan\\\\Desktop\\\\com\\\\idk\\\\ac\\\\cr\");\r\n\n\t\tSchemaJoin j = new SchemaJoin(\"Notas\",\"C:\\\\Users\\\\morazan\\\\Desktop\\\\com\\\\idk\\\\ac\\\\cr\");\r\n\r\n\t\t//Creates an index in the regular schema\r\n\t\ts.createIndex(\"bts\", \"string\", \"Nombre\", 10);\r\n\t\ts.createIndex(\"avl\", \"number\", \"aņo\", 4);\r\n\t\ts.createIndex(\"avl\", \"image\", \"Imagen\", 0);\r\n\t\tj.joinSchema(s);\r\n\t\tj.createJoinedIndex(\"avl\", \"number\", \"Notas\", 2);\r\n\t\t\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"Inserting I \");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\ts.insertToIndex(1, \"JP\");\r\n\t\ts.insertToIndex(1, \"Randy\");\r\n\t\ts.insertToIndex(1, \"Alejandra\");\r\n//\t\ts.insertToIndex(1, \"Xcreed\");\r\n\t\ts.insertToIndex(2, 1996);\r\n\t\ts.insertToIndex(2, 1995);\r\n\t\ts.insertToIndex(2, 1997);\n\t\ts.insertToIndex(3, \"SchemaExtraFiles/2.jpg\");\n\t\ts.insertToIndex(3, \"SchemaExtraFiles/8.jpg\");\n\t\ts.insertToIndex(3, \"SchemaExtraFiles/4.jpg\");\n\t\t\n\t\tIndexBTS index = (IndexBTS) s.schema.getItem(1);\r\n\t\tBinarySearchTree t = (BinarySearchTree) index.tree;\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"Traversal I\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tt.inOrderTraversal();\r\n\t\t\n\t\tIndexAVL index2 = (IndexAVL) s.schema.getItem(2);\r\n\t\tAVLTree t2 = (AVLTree) index2.getTree();\r\n\t\tSystem.out.println(\"avl order\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"Traversal II\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\n\t\tt2.inorder();\n\t\t\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"Inserting II \");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tj.insertToIndex(1, 80);\r\n\t\tj.insertToIndex(1, 82);\r\n\t\tj.insertToIndex(1, 78);\t\t\t\r\n\t\t\r\n//\t\tSystem.out.println(s.search(\"JP\"));\r\n//\t\tSystem.out.println(s.deleteInIndex(1,\"JP\"));\r\n//\t\tSystem.out.println(s.search(\"JP\"));\r\n\t\t\r\n\t\tSystem.out.println(\"Getting line 1\");\r\n\t\ts.getLine(1);\r\n//\t\ts.deleteLine(1);\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"Searching 82 \");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tj.joinedSearch(82);\r\n\r\n\t\t//Deletes an index in the schema\r\n//\t\ts.schema.print();\r\n//\t\ts.deleteIndex(1);\r\n//\t\ts.schema.print();\r\n\t\t\r\n// ***********Activate Separately**********\r\n\t\t\r\n//\t\ts.createIndex(\"bts\", \"video\", \"Videos\", 0);\r\n//\t\ts.insertToIndex(1, \"SchemaExtraFiles/Trike Drifting.mp4\");\r\n\t\t\r\n//\t***************************************\r\n\t\t\r\n\t\tJSONProtocol json = new JSONProtocol();\r\n\t\tjson.writeSchema(s);\r\n\t\t\t\t\r\n\t\t\r\n\t}", "TableId table();", "public boolean buildVocab() {\n readStopWords();\n\n if(cache.vocabExists()) {\n log.info(\"Loading vocab...\");\n cache.loadVocab();\n cache.resetWeights();\n return true;\n }\n\n //vectorizer will handle setting up vocab meta data\n if(vectorizer == null)\n vectorizer = new TfidfVectorizer.Builder()\n .cache(cache).iterate(docIter).iterate(sentenceIter)\n .minWords(minWordFrequency).stopWords(stopWords)\n .tokenize(tokenizerFactory).build();\n vectorizer.fit();\n\n setup();\n\n return false;\n }", "public List<Kateggorija> getSviGlumci() {\n List<Kateggorija> glumci=null;\n try {\n glumci= getDaoKateggorija().queryForAll();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n return glumci;\n }", "@VTID(10)\n int getIndex();", "Skill getSkill(Long skillId) throws DbException;", "public List<String> GetKeywords()\n\t{\n\t\tList<String> words = new ArrayList<String>(); \n\t\ttry\n\t\t{\n\t\t\tConnector con = new Connector();\n\t \n\t String query = \"SELECT keyword_kid FROM HasKeywords WHERE keyword_hid = '\"+hid+\"'\"; \n\t ResultSet rs = con.stmt.executeQuery(query); \n\t \n\t List<Integer> k_ids = new ArrayList<Integer>(); \n\t while(rs.next())\n\t {\n\t \tint new_id = rs.getInt(\"keyword_kid\"); \n\t \tk_ids.add(new_id); \n\t }\n\t \n\t for(int i = 0; i < k_ids.size(); i++)\n\t {\n\t \tquery = \"SELECT word FROM Keywords WHERE k_id = '\"+k_ids.get(i)+\"'\"; \n\t \trs = con.stmt.executeQuery(query); \n\t \twhile(rs.next())\n\t \t{\n\t \t\tString kw = rs.getString(\"word\"); \n\t \t\twords.add(kw); \n\t \t}\n\t }\n\t \n\t con.closeConnection();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\tkeywords = words; \n\t\treturn keywords; \n\t}", "java.lang.String getSemanticLangidModelName();", "public interface DBSDictionary\n{\n /**\n * Checks that this constrain supports key enumerations.\n * Usually it depends on constraint type (enumerations makes sense only for unique constraints).\n * @return true or false\n */\n boolean supportsDictionaryEnumeration();\n\n /**\n * Gets enumeration values\n *\n * @param monitor session\n * @param keyColumn enumeration column.\n * @param keyPattern pattern for enumeration values. If null or empty then returns full enumration set\n * @param searchText\n * @param preceedingKeys other constrain key values. May be null.\n * @param caseInsensitiveSearch use case-insensitive search for {@code keyPattern}\n * @param sortAsc ascending sorting (irrelevant is {@code sortByValue} is false)\n * @param sortByValue sort results by value\n * @param offset enumeration values offset in result set\n * @param maxResults maximum enumeration values in result set\n * @return statement with result set which contains valid enumeration values.\n */\n @NotNull\n List<DBDLabelValuePair> getDictionaryEnumeration(\n @NotNull DBRProgressMonitor monitor,\n @NotNull DBSEntityAttribute keyColumn,\n @Nullable Object keyPattern,\n @Nullable String searchText,\n @Nullable List<DBDAttributeValue> preceedingKeys,\n boolean caseInsensitiveSearch,\n boolean sortAsc,\n boolean sortByValue,\n int offset,\n int maxResults\n ) throws DBException;\n\n @NotNull\n List<DBDLabelValuePair> getDictionaryValues(\n @NotNull DBRProgressMonitor monitor,\n @NotNull DBSEntityAttribute keyColumn,\n @NotNull List<Object> keyValues,\n @Nullable List<DBDAttributeValue> preceedingKeys,\n boolean sortByValue,\n boolean sortAsc\n ) throws DBException;\n\n @NotNull\n DBSDictionaryAccessor getDictionaryAccessor(\n @NotNull DBRProgressMonitor monitor,\n @Nullable List<DBDAttributeValue> precedingKeys,\n @NotNull DBSEntityAttribute keyColumn,\n boolean sortAsc,\n boolean sortByDesc\n ) throws DBException;\n}", "@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)\n\tpublic List<AssetVocabulary> getAttachedVocabularies(long groupId);", "public static List<Book> getBookCategory() throws HibernateException{\r\n \r\n session = sessionFactory.openSession();\r\n session.beginTransaction();\r\n \r\n Query query=session.getNamedQuery(\"INVENTORY_getBookCategory\");\r\n List<Book> bookLocationList=query.list();\r\n \r\n session.getTransaction().commit();\r\n session.close();\r\n \r\n return bookLocationList;\r\n}", "public void train(Corpus[] trainingData) {\n\t\tSet<String> vocabulary = super.mergeVocabulary(trainingData);\n\t\ttrainingData[0].setVocabulary(vocabulary);\n\t\ttrainingData[1].setVocabulary(vocabulary);\n\t\tposMatrix = new TransitionMatrix(trainingData[0]);\n\t\tnegMatrix = new TransitionMatrix(trainingData[1]);\n\t}", "public void AddInDB(Word newWord) throws SQLException {\n String insertQuery = \"INSERT INTO tbltest(word,pronunciation,define) VALUES(?,?,?)\";\r\n ps = con.prepareStatement(insertQuery);\r\n ps.setString(1, newWord.getWord());\r\n ps.setString(2, newWord.getPronunciation());\r\n ps.setString(3, newWord.getDefine());\r\n\r\n ps.executeUpdate();\r\n }", "public static void caso41(){\n FilterManager fm= new FilterManager(\"resources/stopWordsList.txt\",\"resources/useCaseWeight.properties\");\n\t\tQualityAttributeBelongable qualityAttributeBelongable = new OntologyManager(\"file:resources/caso4.owl\",\"file:resources/caso4.repository\",fm);\n\t\tMap<QualityAttributeInterface,Double> map = qualityAttributeBelongable.getWordPertenence(\"response1\");\n\t\tif(map==null){\n\t\t\tSystem.out.println(\"El map es null\");\n\t\t}else{\n\t\t\tMapUtils.imprimirMap(map);\n\t\t}\n\t}", "@Select(\"select id,item from dicts where id in (23,24,25,26,27)\")\n\tList<Dict> findLevels();", "public interface IJavaDocAttributDao\n{\n List<JavaDocAttribut> getJavaDocAttributs(int idJavaDocMethode);\n}" ]
[ "0.5714772", "0.5634642", "0.54471385", "0.5296146", "0.5199113", "0.49331725", "0.49329886", "0.4925552", "0.49100333", "0.49073565", "0.48575464", "0.4840506", "0.48176134", "0.47540638", "0.4731969", "0.47130308", "0.46997505", "0.46928567", "0.46592632", "0.46315858", "0.46308562", "0.4628427", "0.4613438", "0.4607982", "0.46033806", "0.45581195", "0.45454577", "0.45442265", "0.45386803", "0.45275065", "0.452028", "0.4503016", "0.4500965", "0.44867927", "0.44754398", "0.44700065", "0.4461962", "0.44616178", "0.44392928", "0.44261026", "0.43990988", "0.43955937", "0.43947372", "0.4391834", "0.43790415", "0.4373947", "0.43707538", "0.43700558", "0.43560442", "0.43444037", "0.43359932", "0.4334978", "0.4331108", "0.43275934", "0.43246162", "0.4323478", "0.432252", "0.43204546", "0.43167415", "0.4313692", "0.43123078", "0.43018934", "0.42899582", "0.42859036", "0.4279804", "0.42734304", "0.42709267", "0.42542967", "0.4249365", "0.4246521", "0.42383584", "0.42374423", "0.42311075", "0.42302102", "0.4229986", "0.4227258", "0.42229605", "0.42228934", "0.422011", "0.42189792", "0.42158115", "0.42145696", "0.42105144", "0.4207044", "0.42064056", "0.41962886", "0.4194155", "0.41941473", "0.41919973", "0.41892615", "0.41883606", "0.41852176", "0.4182343", "0.41803232", "0.41759124", "0.41734546", "0.41732693", "0.41713014", "0.41704375", "0.416942", "0.41672277" ]
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table wd_vocab
protected Criteria createCriteriaInternal() { Criteria criteria = new Criteria(); return criteria; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<VocabWord> document(int index);", "int[] documents(VocabWord vocabWord);", "public static void writeVocab(Vocab vocab) {\n String userId = FirebaseAuth.getInstance().getUid();\n Log.d(\"000\", \"writeVocab: \"+userId);\n mDatabase.child(\"user\").child(userId).child(\"vocab\").child(vocab.Id).setValue(vocab);\n }", "void addWordsToDoc(int doc,List<VocabWord> words);", "void addWordToDoc(int doc,VocabWord word);", "public VocabularyTerms() {}", "public Vector mapDocument(BOW bow) {\n //logger.info(\"lsm.mapDocument\");\n SparseVector vector = new SparseVector();\n\n Iterator<String> it = bow.termSet().iterator();\n String term = null;\n int index = 0;\n //int tf = 0;\n float tfIdf;\n for (int i = 0; it.hasNext(); i++) {\n //logger.info(i + \" \" + t[i]);\n term = it.next();\n index = termIndex.get(term);\n\n if (index != -1) {\n //tf = bow.getFrequency(term);\n //tfIdf = (float) (log2(tf)) * Iidf[index];\n //tfIdf = (float) bow.augmentedFrequency(term) * Iidf[index];\n tfIdf = (float) bow.tf(term) * Iidf[index];\n //logger.info(term + \" ==> \" + index + \", tf.idf = \" + tf + \"(\" + (log2(tf)) + \") * \" + Iidf[index] + \" = \" + tfIdf);\n vector.add(index, tfIdf);\n\n }\n } // end for\n\n return vector;\n }", "@Id\n @Column(name=\"term_key\")\n public int getTermKey() {\n\treturn termKey;\n }", "public WdVocabExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "private static void setWordPosition() {\n\t\tSet setKeys = Utility.vocabHM.keySet();\n\t\tIterator i = setKeys.iterator();\n\t\tint position = 0;\n\t\twhile (i.hasNext()) {\n\t\t\tString w = (String) i.next();\n\t\t\tInteger rows[] = new Integer[2];\n\t\t\trows[0] = new Integer(position); /* word position */\n\t\t\trows[1] = (Integer) Utility.vocabHM.get(w); /* df */\n\n\t\t\tUtility.vocabHM.put(w, rows);\n\t\t\tposition++;\n\t\t}\n\t}", "public Vector<Word> allKeyValue(){\n\n\tVector<Word> words = new Vector<Word>();\n\tfor(int w = 0; w < theTable.length; w++){\n\t // System.out.println(\"w: \" + w);\n\t // System.out.println(\"theTable[w]: \" + theTable[w]);\n\t if(theTable[w] != null){\n\t\twords.addElement(theTable[w]);\n\t }\n\t}\n\treturn words;\n }", "public static void deleteVocab(Context context){\n Toast.makeText(context, \"deleted\", Toast.LENGTH_SHORT).show();\n DatabaseReference vocabRef=FirebaseDatabase.getInstance().getReference().child(\"user\").child(FirebaseAuth.getInstance().getUid()).child(\"vocab\").child(currentVocabId);\n vocabRef.removeValue();\n }", "public Controlador(boolean newTable){\n if(newTable){\n vocabulario = new TSB_OAHashtable<>();\n }\n }", "public static void initVocabData() {\n FirebaseDatabase.getInstance().getReference().child(\"user\").child(FirebaseAuth.getInstance().getUid()).child(\"vocab\")\n .addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n staticVocabs.clear();\n for(DataSnapshot snapshot: dataSnapshot.getChildren() ){\n Vocab vocab = snapshot.getValue(Vocab.class);\n staticVocabs.add(vocab);\n size=1;\n }\n vocabsAdapter.notifyDataSetChanged();\n if (staticVocabs.size()==0){\n vocabsRecyclerView.setVisibility(View.INVISIBLE);\n isFirst.setVisibility(View.VISIBLE);\n notFirst.setVisibility(View.INVISIBLE);\n\n }else {\n vocabsRecyclerView.setVisibility(View.VISIBLE);\n isFirst.setVisibility(View.INVISIBLE);\n notFirst.setVisibility(View.VISIBLE);\n }\n }\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n }\n });\n }", "List<WdWordDict> selectByExample(WdWordDictExample example);", "@Query(\"SELECT * from english_word ORDER BY word ASC limit 300\")\n List<StoredEnglishWord> findAllWords();", "public void saveVocab (Vocabulary v, String vocabFilePath) throws IOException {\n\t\tFile file = new File(vocabFilePath);\n\t\t//if (file.exists()) file.delete();\n\t\t//file.createNewFile();\n\t\tBufferedWriter bw = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(file)));\n\t\tfor (int i = 0; i < v.vocabSize; i++) {\n\t\t\tbw.write(v.vocab.get(i).word + \" \" + v.vocab.get(i).cn + \"\\n\");\n\t\t}\n\t\tbw.close();\n\t}", "public void setVocubalaryId(long vocubalaryId);", "private void setVocabulary(int vocSize) {\n\t\tArrayList<String> chosen = new ArrayList<String>();\n\t\twhile (chosen.size() < vocSize) {\n\t\t\tint max = 0;\n\t\t\tString best = \"\";\n\t\t\tfor (String t : df.keySet()) {\n\t\t\t\tif (df.get(t) > max && !chosen.contains(t)) {\n\t\t\t\t\tmax = df.get(t);\n\t\t\t\t\tbest = t;\n\t\t\t\t}\n\t\t\t}\n\t\t\tchosen.add(best);\n\t\t}\n\t\tvocab = chosen;\n\t}", "public void constructOntologyVocabulary() {\n ontologyOwlClassVocabulary = new HashMap<>();\n ontologyOWLDataPropertyVocabulary = new HashMap<>();\n ontologyOWLNamedIndividualVocabulary = new HashMap<>();\n ontologyOWLObjectPropertylVocabulary = new HashMap<>();\n\n Set<OWLClass> classes = domainOntology.getClassesInSignature();\n Set<OWLNamedIndividual> individualPropertyAtom = domainOntology.getIndividualsInSignature();\n Set<OWLDataProperty> dataProperty = domainOntology.getDataPropertiesInSignature();\n Set<OWLObjectProperty> OWLObjectPropertyAtom = domainOntology.getObjectPropertiesInSignature();\n String tempName = null;\n\n for (OWLClass c : classes) {\n tempName = c.toString();\n tempName = tempName.substring(tempName.lastIndexOf(\"/\") + 1);\n tempName = TextUtil.formatName(tempName);\n ontologyOwlClassVocabulary.put(tempName, c);\n }\n for (OWLDataProperty d : dataProperty) {\n tempName = d.toString();\n tempName = tempName.substring(tempName.lastIndexOf(\"/\") + 1);\n tempName = TextUtil.formatName(tempName);\n ontologyOWLDataPropertyVocabulary.put(tempName, d);\n }\n for (OWLNamedIndividual i : individualPropertyAtom) {\n tempName = i.toString();\n tempName = tempName.substring(tempName.lastIndexOf(\"/\") + 1);\n tempName = TextUtil.formatName(tempName);\n ontologyOWLNamedIndividualVocabulary.put(tempName, i);\n }\n for (OWLObjectProperty o : OWLObjectPropertyAtom) {\n tempName = o.toString();\n tempName = tempName.substring(tempName.lastIndexOf(\"/\") + 1);\n tempName = TextUtil.formatName(tempName);\n ontologyOWLObjectPropertylVocabulary.put(tempName, o);\n }\n }", "public void getVector() throws IOException {\n\t\tint i=1;\r\n\t\tfor(String key:keyword){\r\n\t\t\tWord w=new Word();\r\n\t\t\tdouble tf=calTF(key);\r\n\t\t\tdouble idf=calIDF(key);\r\n\t\t\tdouble tfidf=tf*idf;\r\n\t\t\tw.setId(i);\r\n\t\t\ti++;\r\n\t\t\tw.setName(key);\r\n\t\t\tw.setTfidf(tfidf);\r\n\t\t\tif(word.containsKey(key)){\r\n\t\t\t\tw.setCount((Integer) word.get(key));\r\n\t\t\t}\r\n\t\t\tkeymap.add(w);\r\n\t\t}\r\n\t\tFileHelper.writeTrainFile(keymap);\r\n\t\tFileHelper.writeTestFile(keymap);\r\n\t}", "public int getTermIndex() {return termIndex;}", "public String getKeyWordTableName() {\r\n\t\treturn keyWordTableName;\r\n\t}", "@Override\n public String getTableName() {\n return getFreeTextDocTablename(conf);\n }", "private Vocabulary() {\n }", "public Vector mapDocument(BOW bow, boolean b) {\n //logger.info(\"lsm.mapDocument \" + b);\n SparseVector vector = new SparseVector();\n\n Iterator<String> it = bow.termSet().iterator();\n for (int i = 0; it.hasNext(); i++) {\n //logger.info(i + \" \" + t[i]);\n String term = it.next();\n int index = termIndex.get(term);\n\n if (index != -1) {\n int tf = bow.getFrequency(term);\n float tfIdf = (float) (log2(tf));\n if (b) {\n tfIdf *= Iidf[index];\n }\n\n //logger.info(term + \" ==> \" + index + \", tf.idf = \" + tf + \"(\" + (log2(tf)) + \") * \" + Iidf[index] + \" = \" + tfIdf);\n vector.add(index, tfIdf);\n\n }\n } // end for\n\n return vector;\n }", "void skillsFound( String key ) {\n developer.skills = new ArrayList<>();\n }", "@Override\n\tpublic List<Skill> getSkills() {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\t\n\t\t//create a query\n\t\tQuery<Skill> theQuery = currentSession.createQuery(\"from Skill\", Skill.class);\n\t\t\n\t\t//execute query and get result list\n\t\tList<Skill> skills = theQuery.getResultList();\n\t\t\n\t\t//return the results\n\t\treturn skills;\n\t}", "RepStuLearning selectByPrimaryKey(RepStuLearningKey key);", "public void fillVerbTbl(String sentenceID){\n\t\t// implement me!\n\t}", "WdWordDict selectByPrimaryKey(Long dictId);", "List<WordSchool> selectByExample(WordSchoolExample example);", "public OWLModel getKnowledgeBase();", "@Transactional\r\n\tpublic List<CmVocabularyCategory> getCmVocabularyCategorys() {\r\n\t\treturn dao.findAllWithOrder(CmVocabularyCategory.class, \"modifyTimestamp\", false);\r\n\t}", "public static void caso31(){\n\t FilterManager fm= new FilterManager(\"resources/stopWordsList.txt\",\"resources/useCaseWeight.properties\");\n\t\t\tQualityAttributeBelongable qualityAttributeBelongable = new OntologyManager(\"file:resources/caso3.owl\",\"file:resources/caso3.repository\",fm);\n\t\t\tMap<QualityAttributeInterface,Double> map = qualityAttributeBelongable.getWordPertenence(\"response1\");\n\t\t\tif(map==null){\n\t\t\t\tSystem.out.println(\"El map es null\");\n\t\t\t}else{\n\t\t\t\tMapUtils.imprimirMap(map);\n\t\t\t}\n\t}", "public void setKeyWordTableName(String keyWordTableName) {\r\n\t\tthis.keyWordTableName = keyWordTableName;\r\n\t}", "public static void caso32(){\n\t FilterManager fm= new FilterManager(\"resources/stopWordsList.txt\",\"resources/useCaseWeight.properties\");\n\t\t\tQualityAttributeBelongable qualityAttributeBelongable = new OntologyManager(\"file:resources/caso3.owl\",\"file:resources/caso3.repository\",fm);\n\t\t\tMap<QualityAttributeInterface,Double> map = qualityAttributeBelongable.getWordPertenence(\"response2\");\n\t\t\tif(map==null){\n\t\t\t\tSystem.out.println(\"El map es null\");\n\t\t\t}else{\n\t\t\t\tMapUtils.imprimirMap(map);\n\t\t\t}\n\t}", "WordSchool selectByPrimaryKey(Long id);", "public void AddKeywords()\n\t{\n\t\ttry\n\t\t{\n\t\t\tConnector con = new Connector();\n\t\t\tString query; \n\t\t\t\n\t\t\tfor(int i = 0; i < keywords.size(); i++)\n\t\t\t{\n\t\t\t\tString keyword = keywords.get(i); \n\t\t\t\t\n\t\t\t\tint kid = GetKIDFromWord(keyword); \n\t\t\t\t\n\t\t\t\t//word is not already in table\n\t\t\t\tif(kid == -1)\n\t\t\t\t{\n\t\t\t\t\t//insert word into Keywords \n\t\t\t\t\tSystem.out.println(\"test\"); \n\t\t\t\t\tquery = \"INSERT INTO Keywords(word) VALUE ('\"+keyword+\"')\"; \n\t\t\t \tint intoTable = con.stmt.executeUpdate(query); \n\t\t\t \t\n\t\t\t \t//able to put it in the table\n\t\t\t \tif(intoTable > 0)\n\t\t\t \t{\n\t\t\t \t\t//insert into HasKeywords\n\t\t\t\t \tkid = GetKIDFromWord(keyword); \n\t\t\t\t\t\tquery = \"INSERT INTO HasKeywords(keyword_hid, keyword_kid) VALUE('\"+hid+\"', '\"+kid+\"')\";\n\t\t\t\t \tint hasKey = con.stmt.executeUpdate(query); \n\t\t\t \t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//word is already in table\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tList<Integer> hkCheck = GetHIDSFromKID(kid);\n\t\t\t\t\t\n\t\t\t\t\tboolean inHKTable = false; \n\t\t\t\t\tfor(int j = 0; j < hkCheck.size(); j++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(hkCheck.get(j) == hid)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tinHKTable = true; \n\t\t\t\t\t\t\tbreak; \n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif(inHKTable == false)\n\t\t\t\t\t{\n\t\t\t\t\t\tquery = \"INSERT INTO HasKeywords(keyword_hid, keyword_kid) VALUE('\"+hid+\"', '\"+kid+\"')\";\n\t\t\t\t \tint hasKey = con.stmt.executeUpdate(query); \n\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tcon.closeConnection();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t}", "public final void mRULE_TOKEN_VOCAB() throws RecognitionException {\n try {\n int _type = RULE_TOKEN_VOCAB;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalUniMapperGenerator.g:5095:18: ( 'tokenVocab' )\n // InternalUniMapperGenerator.g:5095:20: 'tokenVocab'\n {\n match(\"tokenVocab\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public static void testDictionary() throws IOException {\n String wnhome=\"c:\\\\Users\\\\Katherine\\\\Documents\\\\2nd sem\\\\IR\\\\project\\\\WordNet_3.1\";\n String path = wnhome + File.separator + \"dict\";\n\n\n URL url = new URL(\"file\", null, path);\n\n IDictionary dictionary = new Dictionary(url);\n dictionary.open();\n // /Users/Ward/Downloads\n IIndexWord indexWord = dictionary.getIndexWord(\"use\", POS.VERB);\n\n for (IWordID wordID : indexWord.getWordIDs()) {\n\n IWord word = dictionary.getWord(wordID);\n for (IWord word1 : word.getSynset().getWords()) {\n System.out.println(word1.getLemma());\n }\n// System.out.println(\"Id = \" + wordID);\n// System.out.println(\" Lemma = \" + word.getLemma());\n// System.out.println(\" Gloss = \" + word.getSynset().getGloss());\n\n List<ISynsetID> hypernyms =\n word.getSynset().getRelatedSynsets(Pointer.HYPERNYM);\n // print out each h y p e r n y m s id and synonyms\n List<IWord> words;\n for (ISynsetID sid : hypernyms) {\n words = dictionary.getSynset(sid).getWords();\n System.out.print(sid + \" {\");\n for (Iterator<IWord> i = words.iterator(); i.hasNext(); ) {\n System.out.print(i.next().getLemma());\n if (i.hasNext())\n System.out.print(\", \");\n }\n System.out.println(\"}\");\n }\n }\n }", "public Vector mapDocument(MultiSet<String> bow) {\n //logger.info(\"lsm.mapDocument\");\n SparseVector vector = new SparseVector();\n\n Iterator<String> it = bow.iterator();\n String term = null;\n int index = 0;\n int tf = 0;\n float tfIdf;\n for (int i = 0; it.hasNext(); i++) {\n //logger.info(i + \" \" + t[i]);\n term = it.next();\n index = termIndex.get(term);\n\n if (index != -1) {\n tf = bow.getFrequency(term);\n tfIdf = (float) (log2(tf)) * Iidf[index];\n\n //logger.info(term + \" ==> \" + index + \", tf.idf = \" + tf + \"(\" + (log2(tf)) + \") * \" + Iidf[index] + \" = \" + tfIdf);\n vector.add(index, tfIdf);\n\n }\n } // end for\n\n return vector;\n }", "public static void writeArchivedVocab(Vocab vocab) {\n String userId = FirebaseAuth.getInstance().getUid();\n Log.d(\"000\", \"writeVocab: \"+userId);\n mDatabase.child(\"user\").child(userId).child(\"archive\").child(vocab.Id).setValue(vocab);\n }", "public List<Term> getAllTerms() {\n\t\tsession.beginTransaction();\n\t\tList<Term> lis = session.createQuery(\"from Term\").list();\n\n\t\tfor (Term tm : lis) {\n\t\t\tSystem.out.println(tm.getId() + \" \" + tm.getTermName());\n\t\t}\n\t\treturn lis;\n\t}", "public WordsWrapper getVocabulariesWrapper() {\n\t\tWordsWrapper wrapper = new WordsWrapper();\n\t\twrapper.mainvocabs = m__vocabs;\n\t\twrapper.referenes = m__referencedwords;\n\t\treturn wrapper;\n\t}", "public interface DictionaryDao<Type extends DictionaryProperty<Id>, Id extends Serializable> {\r\n\t/** \r\n\t * <!-- begin-UML-doc -->\r\n\t * Zwraca wszystkie mozliwe wartosci slownika.\r\n\t * <!-- end-UML-doc -->\r\n\t * @return\r\n\t * @generated \"UML to Java (com.ibm.xtools.transform.uml2.java5.internal.UML2JavaTransform)\"\r\n\t */\r\n\tpublic List<Type> getAll();\r\n}", "@Override\n public Builder limitVocabularySize(int limit) {\n super.limitVocabularySize(limit);\n return this;\n }", "@Override\n public List<DefinitionDTO> findAllWords() {\n List<Word> words = wordRepository.findAll();\n return DTOMapper.mapWordListToDefinitionDTOList(words);\n }", "public interface ArchetypeLevelsSchema {\n\tString TABLE_NAME = \"creature_archetype_levels\";\n\n\tString COLUMN_ARCHETYPE_ID = \"archetypeId\";\n\tString COLUMN_LEVEL = \"level\";\n\tString COLUMN_ATTACK = \"attack\";\n\tString COLUMN_ATTACK2 = \"attack2\";\n\tString COLUMN_DEF_BONUS = \"defensiveBonus\";\n\tString COLUMN_BODY_DEV = \"bodyDevelopment\";\n\tString COLUMN_PRIME_SKILL = \"primeSkill\";\n\tString COLUMN_SECONDARY_SKILL = \"secondarySkill\";\n\tString COLUMN_POWER_DEV = \"powerDevelopment\";\n\tString COLUMN_SPELLS = \"spells\";\n\tString COLUMN_TALENT_DP = \"talentDP\";\n\tString COLUMN_AGILITY = \"agility\";\n\tString COLUMN_CONS_STAT = \"constitutionStat\";\n\tString COLUMN_CONSTITUTION = \"constitution\";\n\tString COLUMN_EMPATHY = \"empathy\";\n\tString COLUMN_INTUITION = \"intuition\";\n\tString COLUMN_MEMORY = \"memory\";\n\tString COLUMN_PRESENCE = \"presence\";\n\tString COLUMN_QUICKNESS = \"quickness\";\n\tString COLUMN_REASONING = \"reasoning\";\n\tString COLUMN_SELF_DISC = \"selfDiscipline\";\n\tString COLUMN_STRENGTH = \"strength\";\n\n\tString TABLE_CREATE = \"CREATE TABLE IF NOT EXISTS \"\n\t\t\t+ TABLE_NAME\n\t\t\t+ \" (\"\n\t\t\t+ COLUMN_ARCHETYPE_ID + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_LEVEL + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_ATTACK + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_ATTACK2 + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_DEF_BONUS + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_BODY_DEV + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_PRIME_SKILL + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_SECONDARY_SKILL + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_POWER_DEV + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_SPELLS + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_TALENT_DP + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_AGILITY + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_CONS_STAT + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_CONSTITUTION + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_EMPATHY + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_INTUITION + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_MEMORY + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_PRESENCE + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_QUICKNESS + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_REASONING + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_SELF_DISC + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_STRENGTH + \" INTEGER NOT NULL, \"\n\t\t\t+ \"PRIMARY KEY(\" + COLUMN_ARCHETYPE_ID + \",\" + COLUMN_LEVEL + \")\"\n\t\t\t+ \")\";\n\n\tString[] COLUMNS = new String[] { COLUMN_ARCHETYPE_ID, COLUMN_LEVEL, COLUMN_ATTACK, COLUMN_ATTACK2, COLUMN_DEF_BONUS,\n\t\t\tCOLUMN_BODY_DEV, COLUMN_PRIME_SKILL, COLUMN_SECONDARY_SKILL, COLUMN_POWER_DEV, COLUMN_SPELLS, COLUMN_TALENT_DP,\n\t\t\tCOLUMN_AGILITY, COLUMN_CONS_STAT, COLUMN_CONSTITUTION, COLUMN_EMPATHY, COLUMN_INTUITION, COLUMN_MEMORY,\n\t\t\tCOLUMN_PRESENCE, COLUMN_QUICKNESS, COLUMN_REASONING, COLUMN_SELF_DISC, COLUMN_STRENGTH};\n}", "public static void moveCorrectToArchive(Vocab vocab){\n\n DatabaseReference vocabRef=FirebaseDatabase.getInstance().getReference().child(\"user\").child(FirebaseAuth.getInstance().getUid()).child(\"vocab\").child(vocab.Id);\n vocabRef.removeValue();\n archiveVocabs.add(vocab);\n writeArchivedVocab(vocab);\n\n }", "Terms selectByPrimaryKey(Integer id);", "public Iterator words() {\n return index.keySet().iterator();\n }", "public Word getWord(int id);", "public List search() {\n\t\tSessionFactory sf = new Configuration().configure()\n\t\t\t\t.buildSessionFactory();\n\t\tSession s = sf.openSession();\n\t\tQuery q = s.createQuery(\"from cat_vo\");\n\t\tList ls = q.list();\n\t\treturn ls;\n\t}", "public List<Term> getAllTermsByDictionary(String table, String dictionary) {\n List<Term> termList = new ArrayList<Term>();\n\n // Select All Query\n String selectQuery = \"SELECT * FROM \" + table + \" WHERE \" + KEY_DICTIONARY + \" = '\" + dictionary + \"' ORDER BY \" + KEY_TERM;\n\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor cursor = db.rawQuery(selectQuery, null);\n\n // looping through all rows and adding to list\n if (cursor.moveToFirst()) {\n do {\n if (!cursor.getString(2).isEmpty()) {\n /*\n Term term = new Term();\n term.setId(Integer.parseInt(cursor.getString(0)));\n term.setDictionary(cursor.getString(1));\n term.setTerm(cursor.getString(2));\n term.setSubject(cursor.getString(3));\n term.setDefinition(cursor.getString(4));\n term.setSynonyms(cursor.getString(5));\n */\n Term term = new Term(Integer.parseInt(cursor.getString(0)),cursor.getString(1), cursor.getString(2), cursor.getString(3),\n cursor.getString(4), cursor.getString(5), Integer.parseInt(cursor.getString(6)));\n // Adding term to list\n termList.add(term);\n }\n } while (cursor.moveToNext());\n }\n\n // return term list\n return termList;\n }", "Integer getSkillCount( String key ){\n return developer.skills.size();\n }", "public List<Skill> findAll(){\n return (List<Skill>) skillRepository.findAll();\n }", "public Courses getCourseTable();", "@Override\n protected Builder useExistingWordVectors(@NonNull WordVectors vec) {\n return this;\n }", "private void indexRelations(String inputFile, FlagConfig flagConfig) throws IOException {\n this.elementalVectors = VectorStoreRAM.readFromFile(\n flagConfig, \"C:\\\\Users\\\\dwiddows\\\\Data\\\\QI\\\\Gutterman\\\\termtermvectors.bin\");\n this.flagConfig = flagConfig;\n this.proportionVectors = new ProportionVectors(flagConfig);\n this.luceneUtils = new LuceneUtils(flagConfig);\n VectorStoreWriter writer = new VectorStoreWriter();\n\n // Turn all the text lines into parsed records.\n this.parseInputFile(inputFile);\n\n // Now the various indexing techniques.\n VectorStoreRAM triplesVectors = new VectorStoreRAM(flagConfig);\n VectorStoreRAM triplesPositionsVectors = new VectorStoreRAM(flagConfig);\n VectorStoreRAM dyadsVectors = new VectorStoreRAM(flagConfig);\n VectorStoreRAM dyadsPositionsVectors = new VectorStoreRAM(flagConfig);\n VectorStoreRAM verbsVectors = new VectorStoreRAM(flagConfig);\n VectorStoreRAM verbsPositionsVectors = new VectorStoreRAM(flagConfig);\n\n for (String docName : this.parsedRecords.keySet()) {\n Vector tripleDocVector = VectorFactory.createZeroVector(flagConfig.vectortype(), flagConfig.dimension());\n Vector tripleDocPositionVector = VectorFactory.createZeroVector(flagConfig.vectortype(), flagConfig.dimension());\n Vector dyadDocVector = VectorFactory.createZeroVector(flagConfig.vectortype(), flagConfig.dimension());\n Vector dyadDocPositionVector = VectorFactory.createZeroVector(flagConfig.vectortype(), flagConfig.dimension());\n Vector verbDocVector = VectorFactory.createZeroVector(flagConfig.vectortype(), flagConfig.dimension());\n Vector verbDocPositionVector = VectorFactory.createZeroVector(flagConfig.vectortype(), flagConfig.dimension());\n\n for (ParsedRecord record : this.parsedRecords.get(docName)) {\n Vector tripleVector = this.getPsiTripleVector(record);\n tripleDocVector.superpose(tripleVector, 1, null);\n\n this.bindWithPosition(record, tripleVector);\n tripleDocPositionVector.superpose(tripleVector, 1, null);\n\n Vector dyadVector = this.getPsiDyadVector(record);\n dyadDocVector.superpose(dyadVector, 1, null);\n this.bindWithPosition(record, dyadVector);\n dyadDocPositionVector.superpose(dyadVector, 1, null);\n\n Vector verbVector = this.vectorForString(record.predicate);\n verbDocVector.superpose(verbVector, 1, null);\n this.bindWithPosition(record, verbVector);\n verbDocPositionVector.superpose(verbVector, 1, null);\n }\n\n triplesVectors.putVector(docName, tripleDocVector);\n triplesPositionsVectors.putVector(docName, tripleDocPositionVector);\n dyadsVectors.putVector(docName, dyadDocVector);\n dyadsPositionsVectors.putVector(docName, dyadDocPositionVector);\n verbsVectors.putVector(docName, verbDocVector);\n verbsPositionsVectors.putVector(docName, verbDocPositionVector);\n }\n\n for (VectorStore vectorStore : new VectorStore[] {\n triplesVectors, triplesPositionsVectors, dyadsVectors, dyadsPositionsVectors, verbsVectors, verbsPositionsVectors }) {\n Enumeration<ObjectVector> vectorEnumeration = vectorStore.getAllVectors();\n while (vectorEnumeration.hasMoreElements())\n vectorEnumeration.nextElement().getVector().normalize();\n }\n\n writer.writeVectors(TRIPLES_OUTPUT_FILE, flagConfig, triplesVectors);\n writer.writeVectors(TRIPLES_POSITIONS_OUTPUT_FILE, flagConfig, triplesPositionsVectors);\n\n writer.writeVectors(DYADS_OUTPUT_FILE, flagConfig, dyadsVectors);\n writer.writeVectors(DYADS_POSITIONS_OUTPUT_FILE, flagConfig, dyadsPositionsVectors);\n\n writer.writeVectors(VERBS_OUTPUT_FILE, flagConfig, verbsVectors);\n writer.writeVectors(VERBS_POSITIONS_OUTPUT_FILE, flagConfig, verbsPositionsVectors);\n }", "int getConceptLanguagesCount();", "@Override\n public Builder lookupTable(@NonNull WeightLookupTable<VocabWord> lookupTable) {\n super.lookupTable(lookupTable);\n return this;\n }", "WordBean getWord(String word);", "public List<Product> search(String word, String codigo) {\n\t\tSession session = getSessionFactory().openSession();\n\t\treturn null;\n\t}", "private void invertedToDatabase(){\r\n cleFreq = new HashMap<>();\r\n System.out.println(\"Strat collecting\");\r\n Map<String,List<Invertedindex>> collects = collecting();\r\n System.out.println(\"Ending collecting\");\r\n Database.getInstance().invertedIndex(collects);\r\n Database.getInstance().addPoids(cleFreq);\r\n }", "@SuppressWarnings({ \"deprecation\", \"unchecked\", \"rawtypes\" })\n\tpublic String generateWordlists(Corpus co) {\n\t\tlong startTime = System.currentTimeMillis();\n\t\t// Set up weka word vector\n\t\tFastVector attributes;\n\t\tInstances dataSet;\n\t\tattributes = new FastVector();\n\n\t\tattributes.addElement(new Attribute(\"aspect_id\", (FastVector) null));\n\t\tattributes.addElement(new Attribute(\"tokens\", (FastVector) null));\n\n\t\tdataSet = new Instances(\"BeerAspects\", attributes, 0);\n\n\t\tCorpus topReviews;\n\t\tCorpus lowReviews;\n\n\t\t// Do top and low for all aspects\n\t\tfor (Aspect aspect : Aspect.values()) {\n\n\t\t\t// Only for actual aspects\n\t\t\tif (aspect.equals(Aspect.NONE) || aspect.equals(Aspect.OVERALL))\n\t\t\t\tcontinue;\n\n\t\t\ttopReviews = co.getTopReviews(aspect);\n\t\t\ttopReviews.analyze();\n\t\t\tString tokens = topReviews.getTokenConcatenation(aspect);\n\n\t\t\tInstance instance = new SparseInstance(2);\n\t\t\tinstance.setValue((Attribute) attributes.elementAt(0), aspect.name() + \"_TOP\");\n\t\t\tinstance.setValue((Attribute) attributes.elementAt(1), tokens);\n\n\t\t\tdataSet.add(instance);\n\n\t\t\tlowReviews = co.getLowReviews(aspect);\n\t\t\tlowReviews.analyze();\n\t\t\ttokens = lowReviews.getTokenConcatenation(aspect);\n\t\t\t// System.out.println(tokens);\n\n\t\t\tinstance = new SparseInstance(2);\n\t\t\tinstance.setValue((Attribute) attributes.elementAt(0), aspect.name() + \"_LOW\");\n\t\t\tinstance.setValue((Attribute) attributes.elementAt(1), tokens);\n\n\t\t\tdataSet.add(instance);\n\t\t}\n\n\t\t// System.out.println(dataSet.toString());\n\t\tInstances dataFiltered = transformToWordVector(dataSet, co.getProps());\n\n\t\t// System.out.println(dataFiltered.toString());\n\t\tString pathsToLists = writeWordlists(dataFiltered);\n\n\t\twriteArffFile(dataFiltered, this.outputDir+\"wordvector.arff\");\n\n\t\tlong stopTime = System.currentTimeMillis();\n\t\tlong elapsedTime = stopTime - startTime;\n\t\tSystem.out.println(\"Generated wordlists in: \" + elapsedTime / 1000 + \" s\");\n\t\treturn pathsToLists;\n\t}", "boolean putWord(WordBean wordBean);", "public Table<Integer, Integer, String> getAnonymizedData();", "public static void caso12(){\n\n FilterManager fm= new FilterManager(\"resources/stopWordsList.txt\",\"resources/useCaseWeight.properties\");\n\t\tQualityAttributeBelongable qualityAttributeBelongable = new OntologyManager(\"file:resources/caso1.owl\",\"file:resources/caso1.repository\",fm);\n\t\tMap<QualityAttributeInterface,Double> map = qualityAttributeBelongable.getWordPertenence(\"pan\");\n\t\tif(map==null){\n\t\t\tSystem.out.println(\"El map es null\");\n\t\t}\n\t}", "public void addToJurisdictions(entity.AppCritJurisdiction element);", "public static void caso11(){\n\t\t\n FilterManager fm= new FilterManager(\"resources/stopWordsList.txt\",\"resources/useCaseWeight.properties\");\n\t\tQualityAttributeBelongable qualityAttributeBelongable = new OntologyManager(\"file:resources/caso1.owl\",\"file:resources/caso1.repository\",fm);\n\t\tMap<QualityAttributeInterface,Double> map = qualityAttributeBelongable.getWordPertenence(\"response\");\n\t\tMapUtils.imprimirMap(map);\n\t}", "public String getNomTable();", "public void init() {\n File file=new File(\"D:\\\\lucene\\\\index\");\n if(file.isDirectory())\n { //否则如果它是一个目录\n File files[] = file.listFiles(); //声明目录下所有的文件 files[];\n for(int i=0;i<files.length;i++)\n { //遍历目录下所有的文件\n files[i].delete(); //把每个文件 用这个方法进行迭代\n }\n }\n String indexPath = \"D:\\\\lucene\\\\index\";\n //String docsPath = \"D:\\\\lucene\\\\data\";\n boolean create = true;\n try\n {\n Session session=factory.openSession();\n String hql = \"from Book\";\n org.hibernate.Query query = session.createQuery(hql);\n List<Book> list=query.list();\n Directory indexDir = FSDirectory.open(Paths.get(\"D:\\\\lucene\\\\index\"));\n Analyzer luceneAnalyzer = new StandardAnalyzer(); //新建一个分词器实例 \n IndexWriterConfig config = new IndexWriterConfig(luceneAnalyzer); \n IndexWriter indexWriter = new IndexWriter(indexDir,config);\n for(int i=0;i<list.size();i++)\n {\n Document document = new Document();\n Field field1 = new StringField(\"id\",list.get(i).getBookid().toString(),Field.Store.YES); \n Field field2 = new StringField(\"bookname\",list.get(i).getBookname(),Field.Store.YES); \n Field field3 = new StringField(\"author\",list.get(i).getAuthor(),Field.Store.YES); \n Field field4 = new StringField(\"category\",list.get(i).getCategory(),Field.Store.YES); \n Field field5 = new StringField(\"price\", Double.toString(list.get(i).getPrice()),Field.Store.YES); \n document.add(field1); \n document.add(field2); \n document.add(field3); \n document.add(field4);\n document.add(field5);\n indexWriter.addDocument(document);\n }\n indexWriter.close();\n }\n catch(IOException e)\n {\n System.out.println(\"error\");\n return;\n }\n }", "hr.domain.ResumeDBOuterClass.Education getEducations(int index);", "hr.domain.ResumeDBOuterClass.Experience getExperiences(int index);", "public void fillNounTbl(String sentenceID){\n\t\t// implement me!\n\t}", "void createOrUpdateVocabulary(final VocabularyPE vocabularyPE);", "@Override\n public Builder iterate(@NonNull SequenceIterator<VocabWord> iterator) {\n super.iterate(iterator);\n return this;\n }", "private void createFreqVector(Path file) {\r\n\t\t\tVector vector = new Vector(vocabulary.size());\r\n\t\t\tList<String> lines;\r\n\t\t\ttry {\r\n\t\t\t\tlines = Files.readAllLines(file);\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tSet<String> words = new HashSet<>();\r\n\t\t\t//create frequency vector of words in single document -> tf(w,d)\r\n\t\t\tfor (String line : lines) {\r\n\t\t\t\tif (line.isEmpty()) continue;\r\n\t\t\t\tString[] values = p.split(line);\r\n\t\t\t\tfor (String value : values) { \r\n\t\t\t\t\tif (value.isEmpty()) continue;\r\n\t\t\t\t\tString lowWord = value.toLowerCase().trim();\r\n\t\t\t\t\t\r\n\t\t\t\t\tInteger[] arr = vocabulary.get(lowWord);\r\n\t\t\t\t\tif (arr == null) continue;\r\n\t\t\t\t\tvector.incrementValueAt(arr[0]);\r\n\t\t\t\t\tif (words.add(lowWord)) {\r\n\t\t\t\t\t\t arr[1] += 1;\t//first time occurrence of this word in document\r\n\t\t\t\t\t\tvocabulary.put(lowWord, arr);\t//increment number of documents for this word\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\tfreqVectors.put(file, vector);\t\t\r\n\t\t}", "private String[][] getMoodsTableValues() {\n String soso = DBTypesKeys.SO_SO_MOOD.getTypeValue();\n String sad = DBTypesKeys.SAD_MOOD.getTypeValue();\n String angry = DBTypesKeys.ANGRY_MOOD.getTypeValue();\n String happy = DBTypesKeys.HAPPY_MOOD.getTypeValue();\n // moods table\n return new String[][]{\n //moods hi answers by answers // id_ (enum index + 1)\n { soso, \"hey\", \"by\"}, // 1\n { sad, \"welcome to sad world\", \"so, you too ...\"}, // 2\n { angry, \"get out!\", \"thanks god, you away\"}, // 3\n { happy, \"hi! glad to see you =)\", \"good luck, buddy\"} // 4\n };\n }", "private VocabularyTerms getVocabularyTerms(Collection<CMAContentType> vocabularies) {\n VocabularyTerms vocabularyTerms = new VocabularyTerms();\n vocabularies\n .forEach(contentType -> {\n //Keeps the country vocabulary ID for future use\n if (contentType.getName().equals(configuration.getCountryVocabulary())) {\n vocabularyTerms.loadCountryVocabulary(contentType);\n } else {\n //Loads vocabulary into memory\n vocabularyTerms.loadVocabulary(contentType);\n }\n });\n return vocabularyTerms;\n }", "public static String getTokenVocabFromGrammar(String text) {\n\t\t// TODO: unneeded. use antlr Tool. Kill?\n//\t\tParsingResult r = parseANTLRGrammar(text);\n//\t\tif ( r.tree!=null ) { //&& r.syntaxErrorListener.getSyntaxErrors().size()==0 ) {\n//\t\t\t// option : id ASSIGN optionValue ;\n//\t\t\tCollection<ParseTree> options = XPath.findAll(r.tree, \"//option\", r.parser);\n//\t\t\tfor (Iterator<ParseTree> it = options.iterator(); it.hasNext(); ) {\n//\t\t\t\tANTLRv4Parser.OptionContext option = (ANTLRv4Parser.OptionContext)it.next();\n//\t\t\t\tif ( option.id().getText().equals(\"tokenVocab\") ) {\n//\t\t\t\t\t/*\n//\t\t\t\t\toptionValue\n//\t\t\t\t\t\t:\tid (DOT id)*\n//\t\t\t\t\t\t|\tSTRING_LITERAL\n//\t\t\t\t\t\t|\tACTION\n//\t\t\t\t\t\t|\tINT\n//\t\t\t\t\t\t;\n//\t\t\t\t\t */\n//\t\t\t\t\tANTLRv4Parser.OptionValueContext optionValue = option.optionValue();\n//\t\t\t\t\tif ( optionValue.STRING_LITERAL()!=null ) {\n//\t\t\t\t\t\tString s = optionValue.STRING_LITERAL().getText();\n//\t\t\t\t\t\treturn RefactorUtils.getLexerRuleNameFromLiteral(s);\n//\t\t\t\t\t}\n//\t\t\t\t\tif ( optionValue.id(0)!=null ) {\n//\t\t\t\t\t\treturn optionValue.id(0).getText();\n//\t\t\t\t\t}\n//\t\t\t\t}\n//\t\t\t}\n//\t\t}\n\t\treturn null;\n\t}", "private Resolution getVocabularyConceptResolution() {\r\n HttpServletRequest httpRequest = getContext().getRequest();\r\n String url = httpRequest.getRequestURL().toString();\r\n // String query = httpRequest.getQueryString();\r\n \r\n String[] parameters = StringUtils.split(StringUtils.substringAfter(url, \"/vocabulary/\"), \"/\");\r\n \r\n if (parameters.length >= 2) {\r\n if (!RESERVED_VOCABULARY_EVENTS.contains(parameters[1])) {\r\n RedirectResolution resolution = new RedirectResolution(VocabularyConceptActionBean.class, \"view\");\r\n resolution.addParameter(\"vocabularyFolder.identifier\", parameters[0]);\r\n resolution.addParameter(\"vocabularyConcept.identifier\", parameters[1]);\r\n resolution.addParameter(\"vocabularyFolder.workingCopy\", vocabularyFolder.isWorkingCopy());\r\n \r\n return resolution;\r\n }\r\n }\r\n \r\n return null;\r\n }", "public SPARQL() {\n initComponents();\n \n model = ModelFactory.createOntologyModel(OntModelSpec.OWL_LITE_MEM_RDFS_INF);\n model.setDynamicImports(true);\n model.read(\"file:\"+\"data/ontologies/Papers_Ready.owl\", \"http://www.l3g.pl/ontologies/OntoBeef/Papers.owl\", \"N-TRIPLE\");\n model.loadImports();\n \n for (Individual i : model.listIndividuals(model.getOntClass(\"http://www.l3g.pl/ontologies/OntoBeef/Conceptualisation.owl#Category\")).toSet())\n {\n System.out.println(i.listLabels(null).toSet());\n }\n }", "@Override\n public AutoBuffer write_impl(AutoBuffer ab) {\n if (_vocabHM == null) return ab.put1(1); // killed\n\n int strLen = 0;\n for (ValueStringCount val : VOCABHM.values())\n strLen += val.length();\n ab.put1(0); // not killed\n ab.put4(strLen); //length of string buffer\n for (ValueStringCount val : VOCABHM.values())\n ab.put2((char) val.length()).putA1(val.getBuffer(), val.getOffset(), val.getOffset() + val.length()).put8(val._cnt);\n return ab.put2((char) 65535); // End of map marker\n }", "@SuppressWarnings(\"unchecked\")\r\n\tpublic static void main(String[] args) throws IOException {\n\t\tSchema s = new Schema(\"Estudiantes\",\"C:\\\\Users\\\\morazan\\\\Desktop\\\\com\\\\idk\\\\ac\\\\cr\");\r\n\n\t\tSchemaJoin j = new SchemaJoin(\"Notas\",\"C:\\\\Users\\\\morazan\\\\Desktop\\\\com\\\\idk\\\\ac\\\\cr\");\r\n\r\n\t\t//Creates an index in the regular schema\r\n\t\ts.createIndex(\"bts\", \"string\", \"Nombre\", 10);\r\n\t\ts.createIndex(\"avl\", \"number\", \"aņo\", 4);\r\n\t\ts.createIndex(\"avl\", \"image\", \"Imagen\", 0);\r\n\t\tj.joinSchema(s);\r\n\t\tj.createJoinedIndex(\"avl\", \"number\", \"Notas\", 2);\r\n\t\t\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"Inserting I \");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\ts.insertToIndex(1, \"JP\");\r\n\t\ts.insertToIndex(1, \"Randy\");\r\n\t\ts.insertToIndex(1, \"Alejandra\");\r\n//\t\ts.insertToIndex(1, \"Xcreed\");\r\n\t\ts.insertToIndex(2, 1996);\r\n\t\ts.insertToIndex(2, 1995);\r\n\t\ts.insertToIndex(2, 1997);\n\t\ts.insertToIndex(3, \"SchemaExtraFiles/2.jpg\");\n\t\ts.insertToIndex(3, \"SchemaExtraFiles/8.jpg\");\n\t\ts.insertToIndex(3, \"SchemaExtraFiles/4.jpg\");\n\t\t\n\t\tIndexBTS index = (IndexBTS) s.schema.getItem(1);\r\n\t\tBinarySearchTree t = (BinarySearchTree) index.tree;\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"Traversal I\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tt.inOrderTraversal();\r\n\t\t\n\t\tIndexAVL index2 = (IndexAVL) s.schema.getItem(2);\r\n\t\tAVLTree t2 = (AVLTree) index2.getTree();\r\n\t\tSystem.out.println(\"avl order\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"Traversal II\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\n\t\tt2.inorder();\n\t\t\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"Inserting II \");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tj.insertToIndex(1, 80);\r\n\t\tj.insertToIndex(1, 82);\r\n\t\tj.insertToIndex(1, 78);\t\t\t\r\n\t\t\r\n//\t\tSystem.out.println(s.search(\"JP\"));\r\n//\t\tSystem.out.println(s.deleteInIndex(1,\"JP\"));\r\n//\t\tSystem.out.println(s.search(\"JP\"));\r\n\t\t\r\n\t\tSystem.out.println(\"Getting line 1\");\r\n\t\ts.getLine(1);\r\n//\t\ts.deleteLine(1);\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"Searching 82 \");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tj.joinedSearch(82);\r\n\r\n\t\t//Deletes an index in the schema\r\n//\t\ts.schema.print();\r\n//\t\ts.deleteIndex(1);\r\n//\t\ts.schema.print();\r\n\t\t\r\n// ***********Activate Separately**********\r\n\t\t\r\n//\t\ts.createIndex(\"bts\", \"video\", \"Videos\", 0);\r\n//\t\ts.insertToIndex(1, \"SchemaExtraFiles/Trike Drifting.mp4\");\r\n\t\t\r\n//\t***************************************\r\n\t\t\r\n\t\tJSONProtocol json = new JSONProtocol();\r\n\t\tjson.writeSchema(s);\r\n\t\t\t\t\r\n\t\t\r\n\t}", "TableId table();", "public boolean buildVocab() {\n readStopWords();\n\n if(cache.vocabExists()) {\n log.info(\"Loading vocab...\");\n cache.loadVocab();\n cache.resetWeights();\n return true;\n }\n\n //vectorizer will handle setting up vocab meta data\n if(vectorizer == null)\n vectorizer = new TfidfVectorizer.Builder()\n .cache(cache).iterate(docIter).iterate(sentenceIter)\n .minWords(minWordFrequency).stopWords(stopWords)\n .tokenize(tokenizerFactory).build();\n vectorizer.fit();\n\n setup();\n\n return false;\n }", "public List<Kateggorija> getSviGlumci() {\n List<Kateggorija> glumci=null;\n try {\n glumci= getDaoKateggorija().queryForAll();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n return glumci;\n }", "@VTID(10)\n int getIndex();", "Skill getSkill(Long skillId) throws DbException;", "public List<String> GetKeywords()\n\t{\n\t\tList<String> words = new ArrayList<String>(); \n\t\ttry\n\t\t{\n\t\t\tConnector con = new Connector();\n\t \n\t String query = \"SELECT keyword_kid FROM HasKeywords WHERE keyword_hid = '\"+hid+\"'\"; \n\t ResultSet rs = con.stmt.executeQuery(query); \n\t \n\t List<Integer> k_ids = new ArrayList<Integer>(); \n\t while(rs.next())\n\t {\n\t \tint new_id = rs.getInt(\"keyword_kid\"); \n\t \tk_ids.add(new_id); \n\t }\n\t \n\t for(int i = 0; i < k_ids.size(); i++)\n\t {\n\t \tquery = \"SELECT word FROM Keywords WHERE k_id = '\"+k_ids.get(i)+\"'\"; \n\t \trs = con.stmt.executeQuery(query); \n\t \twhile(rs.next())\n\t \t{\n\t \t\tString kw = rs.getString(\"word\"); \n\t \t\twords.add(kw); \n\t \t}\n\t }\n\t \n\t con.closeConnection();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\tkeywords = words; \n\t\treturn keywords; \n\t}", "java.lang.String getSemanticLangidModelName();", "public interface DBSDictionary\n{\n /**\n * Checks that this constrain supports key enumerations.\n * Usually it depends on constraint type (enumerations makes sense only for unique constraints).\n * @return true or false\n */\n boolean supportsDictionaryEnumeration();\n\n /**\n * Gets enumeration values\n *\n * @param monitor session\n * @param keyColumn enumeration column.\n * @param keyPattern pattern for enumeration values. If null or empty then returns full enumration set\n * @param searchText\n * @param preceedingKeys other constrain key values. May be null.\n * @param caseInsensitiveSearch use case-insensitive search for {@code keyPattern}\n * @param sortAsc ascending sorting (irrelevant is {@code sortByValue} is false)\n * @param sortByValue sort results by value\n * @param offset enumeration values offset in result set\n * @param maxResults maximum enumeration values in result set\n * @return statement with result set which contains valid enumeration values.\n */\n @NotNull\n List<DBDLabelValuePair> getDictionaryEnumeration(\n @NotNull DBRProgressMonitor monitor,\n @NotNull DBSEntityAttribute keyColumn,\n @Nullable Object keyPattern,\n @Nullable String searchText,\n @Nullable List<DBDAttributeValue> preceedingKeys,\n boolean caseInsensitiveSearch,\n boolean sortAsc,\n boolean sortByValue,\n int offset,\n int maxResults\n ) throws DBException;\n\n @NotNull\n List<DBDLabelValuePair> getDictionaryValues(\n @NotNull DBRProgressMonitor monitor,\n @NotNull DBSEntityAttribute keyColumn,\n @NotNull List<Object> keyValues,\n @Nullable List<DBDAttributeValue> preceedingKeys,\n boolean sortByValue,\n boolean sortAsc\n ) throws DBException;\n\n @NotNull\n DBSDictionaryAccessor getDictionaryAccessor(\n @NotNull DBRProgressMonitor monitor,\n @Nullable List<DBDAttributeValue> precedingKeys,\n @NotNull DBSEntityAttribute keyColumn,\n boolean sortAsc,\n boolean sortByDesc\n ) throws DBException;\n}", "@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)\n\tpublic List<AssetVocabulary> getAttachedVocabularies(long groupId);", "public static List<Book> getBookCategory() throws HibernateException{\r\n \r\n session = sessionFactory.openSession();\r\n session.beginTransaction();\r\n \r\n Query query=session.getNamedQuery(\"INVENTORY_getBookCategory\");\r\n List<Book> bookLocationList=query.list();\r\n \r\n session.getTransaction().commit();\r\n session.close();\r\n \r\n return bookLocationList;\r\n}", "public void train(Corpus[] trainingData) {\n\t\tSet<String> vocabulary = super.mergeVocabulary(trainingData);\n\t\ttrainingData[0].setVocabulary(vocabulary);\n\t\ttrainingData[1].setVocabulary(vocabulary);\n\t\tposMatrix = new TransitionMatrix(trainingData[0]);\n\t\tnegMatrix = new TransitionMatrix(trainingData[1]);\n\t}", "public void AddInDB(Word newWord) throws SQLException {\n String insertQuery = \"INSERT INTO tbltest(word,pronunciation,define) VALUES(?,?,?)\";\r\n ps = con.prepareStatement(insertQuery);\r\n ps.setString(1, newWord.getWord());\r\n ps.setString(2, newWord.getPronunciation());\r\n ps.setString(3, newWord.getDefine());\r\n\r\n ps.executeUpdate();\r\n }", "public static void caso41(){\n FilterManager fm= new FilterManager(\"resources/stopWordsList.txt\",\"resources/useCaseWeight.properties\");\n\t\tQualityAttributeBelongable qualityAttributeBelongable = new OntologyManager(\"file:resources/caso4.owl\",\"file:resources/caso4.repository\",fm);\n\t\tMap<QualityAttributeInterface,Double> map = qualityAttributeBelongable.getWordPertenence(\"response1\");\n\t\tif(map==null){\n\t\t\tSystem.out.println(\"El map es null\");\n\t\t}else{\n\t\t\tMapUtils.imprimirMap(map);\n\t\t}\n\t}", "@Select(\"select id,item from dicts where id in (23,24,25,26,27)\")\n\tList<Dict> findLevels();", "public interface IJavaDocAttributDao\n{\n List<JavaDocAttribut> getJavaDocAttributs(int idJavaDocMethode);\n}" ]
[ "0.5714772", "0.5634642", "0.54471385", "0.5296146", "0.5199113", "0.49331725", "0.49329886", "0.4925552", "0.49100333", "0.49073565", "0.48575464", "0.4840506", "0.48176134", "0.47540638", "0.4731969", "0.47130308", "0.46997505", "0.46928567", "0.46592632", "0.46315858", "0.46308562", "0.4628427", "0.4613438", "0.4607982", "0.46033806", "0.45581195", "0.45454577", "0.45442265", "0.45386803", "0.45275065", "0.452028", "0.4503016", "0.4500965", "0.44867927", "0.44754398", "0.44700065", "0.4461962", "0.44616178", "0.44392928", "0.44261026", "0.43990988", "0.43955937", "0.43947372", "0.4391834", "0.43790415", "0.4373947", "0.43707538", "0.43700558", "0.43560442", "0.43444037", "0.43359932", "0.4334978", "0.4331108", "0.43275934", "0.43246162", "0.4323478", "0.432252", "0.43204546", "0.43167415", "0.4313692", "0.43123078", "0.43018934", "0.42899582", "0.42859036", "0.4279804", "0.42734304", "0.42709267", "0.42542967", "0.4249365", "0.4246521", "0.42383584", "0.42374423", "0.42311075", "0.42302102", "0.4229986", "0.4227258", "0.42229605", "0.42228934", "0.422011", "0.42189792", "0.42158115", "0.42145696", "0.42105144", "0.4207044", "0.42064056", "0.41962886", "0.4194155", "0.41941473", "0.41919973", "0.41892615", "0.41883606", "0.41852176", "0.4182343", "0.41803232", "0.41759124", "0.41734546", "0.41732693", "0.41713014", "0.41704375", "0.416942", "0.41672277" ]
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table wd_vocab
public void clear() { oredCriteria.clear(); orderByClause = null; distinct = false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<VocabWord> document(int index);", "int[] documents(VocabWord vocabWord);", "public static void writeVocab(Vocab vocab) {\n String userId = FirebaseAuth.getInstance().getUid();\n Log.d(\"000\", \"writeVocab: \"+userId);\n mDatabase.child(\"user\").child(userId).child(\"vocab\").child(vocab.Id).setValue(vocab);\n }", "void addWordsToDoc(int doc,List<VocabWord> words);", "void addWordToDoc(int doc,VocabWord word);", "public VocabularyTerms() {}", "public Vector mapDocument(BOW bow) {\n //logger.info(\"lsm.mapDocument\");\n SparseVector vector = new SparseVector();\n\n Iterator<String> it = bow.termSet().iterator();\n String term = null;\n int index = 0;\n //int tf = 0;\n float tfIdf;\n for (int i = 0; it.hasNext(); i++) {\n //logger.info(i + \" \" + t[i]);\n term = it.next();\n index = termIndex.get(term);\n\n if (index != -1) {\n //tf = bow.getFrequency(term);\n //tfIdf = (float) (log2(tf)) * Iidf[index];\n //tfIdf = (float) bow.augmentedFrequency(term) * Iidf[index];\n tfIdf = (float) bow.tf(term) * Iidf[index];\n //logger.info(term + \" ==> \" + index + \", tf.idf = \" + tf + \"(\" + (log2(tf)) + \") * \" + Iidf[index] + \" = \" + tfIdf);\n vector.add(index, tfIdf);\n\n }\n } // end for\n\n return vector;\n }", "@Id\n @Column(name=\"term_key\")\n public int getTermKey() {\n\treturn termKey;\n }", "public WdVocabExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "private static void setWordPosition() {\n\t\tSet setKeys = Utility.vocabHM.keySet();\n\t\tIterator i = setKeys.iterator();\n\t\tint position = 0;\n\t\twhile (i.hasNext()) {\n\t\t\tString w = (String) i.next();\n\t\t\tInteger rows[] = new Integer[2];\n\t\t\trows[0] = new Integer(position); /* word position */\n\t\t\trows[1] = (Integer) Utility.vocabHM.get(w); /* df */\n\n\t\t\tUtility.vocabHM.put(w, rows);\n\t\t\tposition++;\n\t\t}\n\t}", "public Vector<Word> allKeyValue(){\n\n\tVector<Word> words = new Vector<Word>();\n\tfor(int w = 0; w < theTable.length; w++){\n\t // System.out.println(\"w: \" + w);\n\t // System.out.println(\"theTable[w]: \" + theTable[w]);\n\t if(theTable[w] != null){\n\t\twords.addElement(theTable[w]);\n\t }\n\t}\n\treturn words;\n }", "public static void deleteVocab(Context context){\n Toast.makeText(context, \"deleted\", Toast.LENGTH_SHORT).show();\n DatabaseReference vocabRef=FirebaseDatabase.getInstance().getReference().child(\"user\").child(FirebaseAuth.getInstance().getUid()).child(\"vocab\").child(currentVocabId);\n vocabRef.removeValue();\n }", "public Controlador(boolean newTable){\n if(newTable){\n vocabulario = new TSB_OAHashtable<>();\n }\n }", "public static void initVocabData() {\n FirebaseDatabase.getInstance().getReference().child(\"user\").child(FirebaseAuth.getInstance().getUid()).child(\"vocab\")\n .addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n staticVocabs.clear();\n for(DataSnapshot snapshot: dataSnapshot.getChildren() ){\n Vocab vocab = snapshot.getValue(Vocab.class);\n staticVocabs.add(vocab);\n size=1;\n }\n vocabsAdapter.notifyDataSetChanged();\n if (staticVocabs.size()==0){\n vocabsRecyclerView.setVisibility(View.INVISIBLE);\n isFirst.setVisibility(View.VISIBLE);\n notFirst.setVisibility(View.INVISIBLE);\n\n }else {\n vocabsRecyclerView.setVisibility(View.VISIBLE);\n isFirst.setVisibility(View.INVISIBLE);\n notFirst.setVisibility(View.VISIBLE);\n }\n }\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n }\n });\n }", "List<WdWordDict> selectByExample(WdWordDictExample example);", "@Query(\"SELECT * from english_word ORDER BY word ASC limit 300\")\n List<StoredEnglishWord> findAllWords();", "public void saveVocab (Vocabulary v, String vocabFilePath) throws IOException {\n\t\tFile file = new File(vocabFilePath);\n\t\t//if (file.exists()) file.delete();\n\t\t//file.createNewFile();\n\t\tBufferedWriter bw = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(file)));\n\t\tfor (int i = 0; i < v.vocabSize; i++) {\n\t\t\tbw.write(v.vocab.get(i).word + \" \" + v.vocab.get(i).cn + \"\\n\");\n\t\t}\n\t\tbw.close();\n\t}", "public void setVocubalaryId(long vocubalaryId);", "private void setVocabulary(int vocSize) {\n\t\tArrayList<String> chosen = new ArrayList<String>();\n\t\twhile (chosen.size() < vocSize) {\n\t\t\tint max = 0;\n\t\t\tString best = \"\";\n\t\t\tfor (String t : df.keySet()) {\n\t\t\t\tif (df.get(t) > max && !chosen.contains(t)) {\n\t\t\t\t\tmax = df.get(t);\n\t\t\t\t\tbest = t;\n\t\t\t\t}\n\t\t\t}\n\t\t\tchosen.add(best);\n\t\t}\n\t\tvocab = chosen;\n\t}", "public void constructOntologyVocabulary() {\n ontologyOwlClassVocabulary = new HashMap<>();\n ontologyOWLDataPropertyVocabulary = new HashMap<>();\n ontologyOWLNamedIndividualVocabulary = new HashMap<>();\n ontologyOWLObjectPropertylVocabulary = new HashMap<>();\n\n Set<OWLClass> classes = domainOntology.getClassesInSignature();\n Set<OWLNamedIndividual> individualPropertyAtom = domainOntology.getIndividualsInSignature();\n Set<OWLDataProperty> dataProperty = domainOntology.getDataPropertiesInSignature();\n Set<OWLObjectProperty> OWLObjectPropertyAtom = domainOntology.getObjectPropertiesInSignature();\n String tempName = null;\n\n for (OWLClass c : classes) {\n tempName = c.toString();\n tempName = tempName.substring(tempName.lastIndexOf(\"/\") + 1);\n tempName = TextUtil.formatName(tempName);\n ontologyOwlClassVocabulary.put(tempName, c);\n }\n for (OWLDataProperty d : dataProperty) {\n tempName = d.toString();\n tempName = tempName.substring(tempName.lastIndexOf(\"/\") + 1);\n tempName = TextUtil.formatName(tempName);\n ontologyOWLDataPropertyVocabulary.put(tempName, d);\n }\n for (OWLNamedIndividual i : individualPropertyAtom) {\n tempName = i.toString();\n tempName = tempName.substring(tempName.lastIndexOf(\"/\") + 1);\n tempName = TextUtil.formatName(tempName);\n ontologyOWLNamedIndividualVocabulary.put(tempName, i);\n }\n for (OWLObjectProperty o : OWLObjectPropertyAtom) {\n tempName = o.toString();\n tempName = tempName.substring(tempName.lastIndexOf(\"/\") + 1);\n tempName = TextUtil.formatName(tempName);\n ontologyOWLObjectPropertylVocabulary.put(tempName, o);\n }\n }", "public void getVector() throws IOException {\n\t\tint i=1;\r\n\t\tfor(String key:keyword){\r\n\t\t\tWord w=new Word();\r\n\t\t\tdouble tf=calTF(key);\r\n\t\t\tdouble idf=calIDF(key);\r\n\t\t\tdouble tfidf=tf*idf;\r\n\t\t\tw.setId(i);\r\n\t\t\ti++;\r\n\t\t\tw.setName(key);\r\n\t\t\tw.setTfidf(tfidf);\r\n\t\t\tif(word.containsKey(key)){\r\n\t\t\t\tw.setCount((Integer) word.get(key));\r\n\t\t\t}\r\n\t\t\tkeymap.add(w);\r\n\t\t}\r\n\t\tFileHelper.writeTrainFile(keymap);\r\n\t\tFileHelper.writeTestFile(keymap);\r\n\t}", "public int getTermIndex() {return termIndex;}", "public String getKeyWordTableName() {\r\n\t\treturn keyWordTableName;\r\n\t}", "@Override\n public String getTableName() {\n return getFreeTextDocTablename(conf);\n }", "private Vocabulary() {\n }", "public Vector mapDocument(BOW bow, boolean b) {\n //logger.info(\"lsm.mapDocument \" + b);\n SparseVector vector = new SparseVector();\n\n Iterator<String> it = bow.termSet().iterator();\n for (int i = 0; it.hasNext(); i++) {\n //logger.info(i + \" \" + t[i]);\n String term = it.next();\n int index = termIndex.get(term);\n\n if (index != -1) {\n int tf = bow.getFrequency(term);\n float tfIdf = (float) (log2(tf));\n if (b) {\n tfIdf *= Iidf[index];\n }\n\n //logger.info(term + \" ==> \" + index + \", tf.idf = \" + tf + \"(\" + (log2(tf)) + \") * \" + Iidf[index] + \" = \" + tfIdf);\n vector.add(index, tfIdf);\n\n }\n } // end for\n\n return vector;\n }", "void skillsFound( String key ) {\n developer.skills = new ArrayList<>();\n }", "@Override\n\tpublic List<Skill> getSkills() {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\t\n\t\t//create a query\n\t\tQuery<Skill> theQuery = currentSession.createQuery(\"from Skill\", Skill.class);\n\t\t\n\t\t//execute query and get result list\n\t\tList<Skill> skills = theQuery.getResultList();\n\t\t\n\t\t//return the results\n\t\treturn skills;\n\t}", "RepStuLearning selectByPrimaryKey(RepStuLearningKey key);", "public void fillVerbTbl(String sentenceID){\n\t\t// implement me!\n\t}", "WdWordDict selectByPrimaryKey(Long dictId);", "List<WordSchool> selectByExample(WordSchoolExample example);", "public OWLModel getKnowledgeBase();", "@Transactional\r\n\tpublic List<CmVocabularyCategory> getCmVocabularyCategorys() {\r\n\t\treturn dao.findAllWithOrder(CmVocabularyCategory.class, \"modifyTimestamp\", false);\r\n\t}", "public static void caso31(){\n\t FilterManager fm= new FilterManager(\"resources/stopWordsList.txt\",\"resources/useCaseWeight.properties\");\n\t\t\tQualityAttributeBelongable qualityAttributeBelongable = new OntologyManager(\"file:resources/caso3.owl\",\"file:resources/caso3.repository\",fm);\n\t\t\tMap<QualityAttributeInterface,Double> map = qualityAttributeBelongable.getWordPertenence(\"response1\");\n\t\t\tif(map==null){\n\t\t\t\tSystem.out.println(\"El map es null\");\n\t\t\t}else{\n\t\t\t\tMapUtils.imprimirMap(map);\n\t\t\t}\n\t}", "public void setKeyWordTableName(String keyWordTableName) {\r\n\t\tthis.keyWordTableName = keyWordTableName;\r\n\t}", "public static void caso32(){\n\t FilterManager fm= new FilterManager(\"resources/stopWordsList.txt\",\"resources/useCaseWeight.properties\");\n\t\t\tQualityAttributeBelongable qualityAttributeBelongable = new OntologyManager(\"file:resources/caso3.owl\",\"file:resources/caso3.repository\",fm);\n\t\t\tMap<QualityAttributeInterface,Double> map = qualityAttributeBelongable.getWordPertenence(\"response2\");\n\t\t\tif(map==null){\n\t\t\t\tSystem.out.println(\"El map es null\");\n\t\t\t}else{\n\t\t\t\tMapUtils.imprimirMap(map);\n\t\t\t}\n\t}", "WordSchool selectByPrimaryKey(Long id);", "public void AddKeywords()\n\t{\n\t\ttry\n\t\t{\n\t\t\tConnector con = new Connector();\n\t\t\tString query; \n\t\t\t\n\t\t\tfor(int i = 0; i < keywords.size(); i++)\n\t\t\t{\n\t\t\t\tString keyword = keywords.get(i); \n\t\t\t\t\n\t\t\t\tint kid = GetKIDFromWord(keyword); \n\t\t\t\t\n\t\t\t\t//word is not already in table\n\t\t\t\tif(kid == -1)\n\t\t\t\t{\n\t\t\t\t\t//insert word into Keywords \n\t\t\t\t\tSystem.out.println(\"test\"); \n\t\t\t\t\tquery = \"INSERT INTO Keywords(word) VALUE ('\"+keyword+\"')\"; \n\t\t\t \tint intoTable = con.stmt.executeUpdate(query); \n\t\t\t \t\n\t\t\t \t//able to put it in the table\n\t\t\t \tif(intoTable > 0)\n\t\t\t \t{\n\t\t\t \t\t//insert into HasKeywords\n\t\t\t\t \tkid = GetKIDFromWord(keyword); \n\t\t\t\t\t\tquery = \"INSERT INTO HasKeywords(keyword_hid, keyword_kid) VALUE('\"+hid+\"', '\"+kid+\"')\";\n\t\t\t\t \tint hasKey = con.stmt.executeUpdate(query); \n\t\t\t \t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//word is already in table\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tList<Integer> hkCheck = GetHIDSFromKID(kid);\n\t\t\t\t\t\n\t\t\t\t\tboolean inHKTable = false; \n\t\t\t\t\tfor(int j = 0; j < hkCheck.size(); j++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(hkCheck.get(j) == hid)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tinHKTable = true; \n\t\t\t\t\t\t\tbreak; \n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif(inHKTable == false)\n\t\t\t\t\t{\n\t\t\t\t\t\tquery = \"INSERT INTO HasKeywords(keyword_hid, keyword_kid) VALUE('\"+hid+\"', '\"+kid+\"')\";\n\t\t\t\t \tint hasKey = con.stmt.executeUpdate(query); \n\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tcon.closeConnection();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t}", "public final void mRULE_TOKEN_VOCAB() throws RecognitionException {\n try {\n int _type = RULE_TOKEN_VOCAB;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalUniMapperGenerator.g:5095:18: ( 'tokenVocab' )\n // InternalUniMapperGenerator.g:5095:20: 'tokenVocab'\n {\n match(\"tokenVocab\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public static void testDictionary() throws IOException {\n String wnhome=\"c:\\\\Users\\\\Katherine\\\\Documents\\\\2nd sem\\\\IR\\\\project\\\\WordNet_3.1\";\n String path = wnhome + File.separator + \"dict\";\n\n\n URL url = new URL(\"file\", null, path);\n\n IDictionary dictionary = new Dictionary(url);\n dictionary.open();\n // /Users/Ward/Downloads\n IIndexWord indexWord = dictionary.getIndexWord(\"use\", POS.VERB);\n\n for (IWordID wordID : indexWord.getWordIDs()) {\n\n IWord word = dictionary.getWord(wordID);\n for (IWord word1 : word.getSynset().getWords()) {\n System.out.println(word1.getLemma());\n }\n// System.out.println(\"Id = \" + wordID);\n// System.out.println(\" Lemma = \" + word.getLemma());\n// System.out.println(\" Gloss = \" + word.getSynset().getGloss());\n\n List<ISynsetID> hypernyms =\n word.getSynset().getRelatedSynsets(Pointer.HYPERNYM);\n // print out each h y p e r n y m s id and synonyms\n List<IWord> words;\n for (ISynsetID sid : hypernyms) {\n words = dictionary.getSynset(sid).getWords();\n System.out.print(sid + \" {\");\n for (Iterator<IWord> i = words.iterator(); i.hasNext(); ) {\n System.out.print(i.next().getLemma());\n if (i.hasNext())\n System.out.print(\", \");\n }\n System.out.println(\"}\");\n }\n }\n }", "public Vector mapDocument(MultiSet<String> bow) {\n //logger.info(\"lsm.mapDocument\");\n SparseVector vector = new SparseVector();\n\n Iterator<String> it = bow.iterator();\n String term = null;\n int index = 0;\n int tf = 0;\n float tfIdf;\n for (int i = 0; it.hasNext(); i++) {\n //logger.info(i + \" \" + t[i]);\n term = it.next();\n index = termIndex.get(term);\n\n if (index != -1) {\n tf = bow.getFrequency(term);\n tfIdf = (float) (log2(tf)) * Iidf[index];\n\n //logger.info(term + \" ==> \" + index + \", tf.idf = \" + tf + \"(\" + (log2(tf)) + \") * \" + Iidf[index] + \" = \" + tfIdf);\n vector.add(index, tfIdf);\n\n }\n } // end for\n\n return vector;\n }", "public static void writeArchivedVocab(Vocab vocab) {\n String userId = FirebaseAuth.getInstance().getUid();\n Log.d(\"000\", \"writeVocab: \"+userId);\n mDatabase.child(\"user\").child(userId).child(\"archive\").child(vocab.Id).setValue(vocab);\n }", "public List<Term> getAllTerms() {\n\t\tsession.beginTransaction();\n\t\tList<Term> lis = session.createQuery(\"from Term\").list();\n\n\t\tfor (Term tm : lis) {\n\t\t\tSystem.out.println(tm.getId() + \" \" + tm.getTermName());\n\t\t}\n\t\treturn lis;\n\t}", "public WordsWrapper getVocabulariesWrapper() {\n\t\tWordsWrapper wrapper = new WordsWrapper();\n\t\twrapper.mainvocabs = m__vocabs;\n\t\twrapper.referenes = m__referencedwords;\n\t\treturn wrapper;\n\t}", "public interface DictionaryDao<Type extends DictionaryProperty<Id>, Id extends Serializable> {\r\n\t/** \r\n\t * <!-- begin-UML-doc -->\r\n\t * Zwraca wszystkie mozliwe wartosci slownika.\r\n\t * <!-- end-UML-doc -->\r\n\t * @return\r\n\t * @generated \"UML to Java (com.ibm.xtools.transform.uml2.java5.internal.UML2JavaTransform)\"\r\n\t */\r\n\tpublic List<Type> getAll();\r\n}", "@Override\n public Builder limitVocabularySize(int limit) {\n super.limitVocabularySize(limit);\n return this;\n }", "@Override\n public List<DefinitionDTO> findAllWords() {\n List<Word> words = wordRepository.findAll();\n return DTOMapper.mapWordListToDefinitionDTOList(words);\n }", "public interface ArchetypeLevelsSchema {\n\tString TABLE_NAME = \"creature_archetype_levels\";\n\n\tString COLUMN_ARCHETYPE_ID = \"archetypeId\";\n\tString COLUMN_LEVEL = \"level\";\n\tString COLUMN_ATTACK = \"attack\";\n\tString COLUMN_ATTACK2 = \"attack2\";\n\tString COLUMN_DEF_BONUS = \"defensiveBonus\";\n\tString COLUMN_BODY_DEV = \"bodyDevelopment\";\n\tString COLUMN_PRIME_SKILL = \"primeSkill\";\n\tString COLUMN_SECONDARY_SKILL = \"secondarySkill\";\n\tString COLUMN_POWER_DEV = \"powerDevelopment\";\n\tString COLUMN_SPELLS = \"spells\";\n\tString COLUMN_TALENT_DP = \"talentDP\";\n\tString COLUMN_AGILITY = \"agility\";\n\tString COLUMN_CONS_STAT = \"constitutionStat\";\n\tString COLUMN_CONSTITUTION = \"constitution\";\n\tString COLUMN_EMPATHY = \"empathy\";\n\tString COLUMN_INTUITION = \"intuition\";\n\tString COLUMN_MEMORY = \"memory\";\n\tString COLUMN_PRESENCE = \"presence\";\n\tString COLUMN_QUICKNESS = \"quickness\";\n\tString COLUMN_REASONING = \"reasoning\";\n\tString COLUMN_SELF_DISC = \"selfDiscipline\";\n\tString COLUMN_STRENGTH = \"strength\";\n\n\tString TABLE_CREATE = \"CREATE TABLE IF NOT EXISTS \"\n\t\t\t+ TABLE_NAME\n\t\t\t+ \" (\"\n\t\t\t+ COLUMN_ARCHETYPE_ID + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_LEVEL + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_ATTACK + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_ATTACK2 + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_DEF_BONUS + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_BODY_DEV + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_PRIME_SKILL + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_SECONDARY_SKILL + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_POWER_DEV + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_SPELLS + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_TALENT_DP + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_AGILITY + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_CONS_STAT + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_CONSTITUTION + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_EMPATHY + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_INTUITION + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_MEMORY + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_PRESENCE + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_QUICKNESS + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_REASONING + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_SELF_DISC + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_STRENGTH + \" INTEGER NOT NULL, \"\n\t\t\t+ \"PRIMARY KEY(\" + COLUMN_ARCHETYPE_ID + \",\" + COLUMN_LEVEL + \")\"\n\t\t\t+ \")\";\n\n\tString[] COLUMNS = new String[] { COLUMN_ARCHETYPE_ID, COLUMN_LEVEL, COLUMN_ATTACK, COLUMN_ATTACK2, COLUMN_DEF_BONUS,\n\t\t\tCOLUMN_BODY_DEV, COLUMN_PRIME_SKILL, COLUMN_SECONDARY_SKILL, COLUMN_POWER_DEV, COLUMN_SPELLS, COLUMN_TALENT_DP,\n\t\t\tCOLUMN_AGILITY, COLUMN_CONS_STAT, COLUMN_CONSTITUTION, COLUMN_EMPATHY, COLUMN_INTUITION, COLUMN_MEMORY,\n\t\t\tCOLUMN_PRESENCE, COLUMN_QUICKNESS, COLUMN_REASONING, COLUMN_SELF_DISC, COLUMN_STRENGTH};\n}", "public static void moveCorrectToArchive(Vocab vocab){\n\n DatabaseReference vocabRef=FirebaseDatabase.getInstance().getReference().child(\"user\").child(FirebaseAuth.getInstance().getUid()).child(\"vocab\").child(vocab.Id);\n vocabRef.removeValue();\n archiveVocabs.add(vocab);\n writeArchivedVocab(vocab);\n\n }", "Terms selectByPrimaryKey(Integer id);", "public Iterator words() {\n return index.keySet().iterator();\n }", "public Word getWord(int id);", "public List search() {\n\t\tSessionFactory sf = new Configuration().configure()\n\t\t\t\t.buildSessionFactory();\n\t\tSession s = sf.openSession();\n\t\tQuery q = s.createQuery(\"from cat_vo\");\n\t\tList ls = q.list();\n\t\treturn ls;\n\t}", "public List<Term> getAllTermsByDictionary(String table, String dictionary) {\n List<Term> termList = new ArrayList<Term>();\n\n // Select All Query\n String selectQuery = \"SELECT * FROM \" + table + \" WHERE \" + KEY_DICTIONARY + \" = '\" + dictionary + \"' ORDER BY \" + KEY_TERM;\n\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor cursor = db.rawQuery(selectQuery, null);\n\n // looping through all rows and adding to list\n if (cursor.moveToFirst()) {\n do {\n if (!cursor.getString(2).isEmpty()) {\n /*\n Term term = new Term();\n term.setId(Integer.parseInt(cursor.getString(0)));\n term.setDictionary(cursor.getString(1));\n term.setTerm(cursor.getString(2));\n term.setSubject(cursor.getString(3));\n term.setDefinition(cursor.getString(4));\n term.setSynonyms(cursor.getString(5));\n */\n Term term = new Term(Integer.parseInt(cursor.getString(0)),cursor.getString(1), cursor.getString(2), cursor.getString(3),\n cursor.getString(4), cursor.getString(5), Integer.parseInt(cursor.getString(6)));\n // Adding term to list\n termList.add(term);\n }\n } while (cursor.moveToNext());\n }\n\n // return term list\n return termList;\n }", "Integer getSkillCount( String key ){\n return developer.skills.size();\n }", "public List<Skill> findAll(){\n return (List<Skill>) skillRepository.findAll();\n }", "public Courses getCourseTable();", "@Override\n protected Builder useExistingWordVectors(@NonNull WordVectors vec) {\n return this;\n }", "private void indexRelations(String inputFile, FlagConfig flagConfig) throws IOException {\n this.elementalVectors = VectorStoreRAM.readFromFile(\n flagConfig, \"C:\\\\Users\\\\dwiddows\\\\Data\\\\QI\\\\Gutterman\\\\termtermvectors.bin\");\n this.flagConfig = flagConfig;\n this.proportionVectors = new ProportionVectors(flagConfig);\n this.luceneUtils = new LuceneUtils(flagConfig);\n VectorStoreWriter writer = new VectorStoreWriter();\n\n // Turn all the text lines into parsed records.\n this.parseInputFile(inputFile);\n\n // Now the various indexing techniques.\n VectorStoreRAM triplesVectors = new VectorStoreRAM(flagConfig);\n VectorStoreRAM triplesPositionsVectors = new VectorStoreRAM(flagConfig);\n VectorStoreRAM dyadsVectors = new VectorStoreRAM(flagConfig);\n VectorStoreRAM dyadsPositionsVectors = new VectorStoreRAM(flagConfig);\n VectorStoreRAM verbsVectors = new VectorStoreRAM(flagConfig);\n VectorStoreRAM verbsPositionsVectors = new VectorStoreRAM(flagConfig);\n\n for (String docName : this.parsedRecords.keySet()) {\n Vector tripleDocVector = VectorFactory.createZeroVector(flagConfig.vectortype(), flagConfig.dimension());\n Vector tripleDocPositionVector = VectorFactory.createZeroVector(flagConfig.vectortype(), flagConfig.dimension());\n Vector dyadDocVector = VectorFactory.createZeroVector(flagConfig.vectortype(), flagConfig.dimension());\n Vector dyadDocPositionVector = VectorFactory.createZeroVector(flagConfig.vectortype(), flagConfig.dimension());\n Vector verbDocVector = VectorFactory.createZeroVector(flagConfig.vectortype(), flagConfig.dimension());\n Vector verbDocPositionVector = VectorFactory.createZeroVector(flagConfig.vectortype(), flagConfig.dimension());\n\n for (ParsedRecord record : this.parsedRecords.get(docName)) {\n Vector tripleVector = this.getPsiTripleVector(record);\n tripleDocVector.superpose(tripleVector, 1, null);\n\n this.bindWithPosition(record, tripleVector);\n tripleDocPositionVector.superpose(tripleVector, 1, null);\n\n Vector dyadVector = this.getPsiDyadVector(record);\n dyadDocVector.superpose(dyadVector, 1, null);\n this.bindWithPosition(record, dyadVector);\n dyadDocPositionVector.superpose(dyadVector, 1, null);\n\n Vector verbVector = this.vectorForString(record.predicate);\n verbDocVector.superpose(verbVector, 1, null);\n this.bindWithPosition(record, verbVector);\n verbDocPositionVector.superpose(verbVector, 1, null);\n }\n\n triplesVectors.putVector(docName, tripleDocVector);\n triplesPositionsVectors.putVector(docName, tripleDocPositionVector);\n dyadsVectors.putVector(docName, dyadDocVector);\n dyadsPositionsVectors.putVector(docName, dyadDocPositionVector);\n verbsVectors.putVector(docName, verbDocVector);\n verbsPositionsVectors.putVector(docName, verbDocPositionVector);\n }\n\n for (VectorStore vectorStore : new VectorStore[] {\n triplesVectors, triplesPositionsVectors, dyadsVectors, dyadsPositionsVectors, verbsVectors, verbsPositionsVectors }) {\n Enumeration<ObjectVector> vectorEnumeration = vectorStore.getAllVectors();\n while (vectorEnumeration.hasMoreElements())\n vectorEnumeration.nextElement().getVector().normalize();\n }\n\n writer.writeVectors(TRIPLES_OUTPUT_FILE, flagConfig, triplesVectors);\n writer.writeVectors(TRIPLES_POSITIONS_OUTPUT_FILE, flagConfig, triplesPositionsVectors);\n\n writer.writeVectors(DYADS_OUTPUT_FILE, flagConfig, dyadsVectors);\n writer.writeVectors(DYADS_POSITIONS_OUTPUT_FILE, flagConfig, dyadsPositionsVectors);\n\n writer.writeVectors(VERBS_OUTPUT_FILE, flagConfig, verbsVectors);\n writer.writeVectors(VERBS_POSITIONS_OUTPUT_FILE, flagConfig, verbsPositionsVectors);\n }", "int getConceptLanguagesCount();", "@Override\n public Builder lookupTable(@NonNull WeightLookupTable<VocabWord> lookupTable) {\n super.lookupTable(lookupTable);\n return this;\n }", "WordBean getWord(String word);", "public List<Product> search(String word, String codigo) {\n\t\tSession session = getSessionFactory().openSession();\n\t\treturn null;\n\t}", "private void invertedToDatabase(){\r\n cleFreq = new HashMap<>();\r\n System.out.println(\"Strat collecting\");\r\n Map<String,List<Invertedindex>> collects = collecting();\r\n System.out.println(\"Ending collecting\");\r\n Database.getInstance().invertedIndex(collects);\r\n Database.getInstance().addPoids(cleFreq);\r\n }", "@SuppressWarnings({ \"deprecation\", \"unchecked\", \"rawtypes\" })\n\tpublic String generateWordlists(Corpus co) {\n\t\tlong startTime = System.currentTimeMillis();\n\t\t// Set up weka word vector\n\t\tFastVector attributes;\n\t\tInstances dataSet;\n\t\tattributes = new FastVector();\n\n\t\tattributes.addElement(new Attribute(\"aspect_id\", (FastVector) null));\n\t\tattributes.addElement(new Attribute(\"tokens\", (FastVector) null));\n\n\t\tdataSet = new Instances(\"BeerAspects\", attributes, 0);\n\n\t\tCorpus topReviews;\n\t\tCorpus lowReviews;\n\n\t\t// Do top and low for all aspects\n\t\tfor (Aspect aspect : Aspect.values()) {\n\n\t\t\t// Only for actual aspects\n\t\t\tif (aspect.equals(Aspect.NONE) || aspect.equals(Aspect.OVERALL))\n\t\t\t\tcontinue;\n\n\t\t\ttopReviews = co.getTopReviews(aspect);\n\t\t\ttopReviews.analyze();\n\t\t\tString tokens = topReviews.getTokenConcatenation(aspect);\n\n\t\t\tInstance instance = new SparseInstance(2);\n\t\t\tinstance.setValue((Attribute) attributes.elementAt(0), aspect.name() + \"_TOP\");\n\t\t\tinstance.setValue((Attribute) attributes.elementAt(1), tokens);\n\n\t\t\tdataSet.add(instance);\n\n\t\t\tlowReviews = co.getLowReviews(aspect);\n\t\t\tlowReviews.analyze();\n\t\t\ttokens = lowReviews.getTokenConcatenation(aspect);\n\t\t\t// System.out.println(tokens);\n\n\t\t\tinstance = new SparseInstance(2);\n\t\t\tinstance.setValue((Attribute) attributes.elementAt(0), aspect.name() + \"_LOW\");\n\t\t\tinstance.setValue((Attribute) attributes.elementAt(1), tokens);\n\n\t\t\tdataSet.add(instance);\n\t\t}\n\n\t\t// System.out.println(dataSet.toString());\n\t\tInstances dataFiltered = transformToWordVector(dataSet, co.getProps());\n\n\t\t// System.out.println(dataFiltered.toString());\n\t\tString pathsToLists = writeWordlists(dataFiltered);\n\n\t\twriteArffFile(dataFiltered, this.outputDir+\"wordvector.arff\");\n\n\t\tlong stopTime = System.currentTimeMillis();\n\t\tlong elapsedTime = stopTime - startTime;\n\t\tSystem.out.println(\"Generated wordlists in: \" + elapsedTime / 1000 + \" s\");\n\t\treturn pathsToLists;\n\t}", "boolean putWord(WordBean wordBean);", "public Table<Integer, Integer, String> getAnonymizedData();", "public static void caso12(){\n\n FilterManager fm= new FilterManager(\"resources/stopWordsList.txt\",\"resources/useCaseWeight.properties\");\n\t\tQualityAttributeBelongable qualityAttributeBelongable = new OntologyManager(\"file:resources/caso1.owl\",\"file:resources/caso1.repository\",fm);\n\t\tMap<QualityAttributeInterface,Double> map = qualityAttributeBelongable.getWordPertenence(\"pan\");\n\t\tif(map==null){\n\t\t\tSystem.out.println(\"El map es null\");\n\t\t}\n\t}", "public void addToJurisdictions(entity.AppCritJurisdiction element);", "public static void caso11(){\n\t\t\n FilterManager fm= new FilterManager(\"resources/stopWordsList.txt\",\"resources/useCaseWeight.properties\");\n\t\tQualityAttributeBelongable qualityAttributeBelongable = new OntologyManager(\"file:resources/caso1.owl\",\"file:resources/caso1.repository\",fm);\n\t\tMap<QualityAttributeInterface,Double> map = qualityAttributeBelongable.getWordPertenence(\"response\");\n\t\tMapUtils.imprimirMap(map);\n\t}", "public String getNomTable();", "public void init() {\n File file=new File(\"D:\\\\lucene\\\\index\");\n if(file.isDirectory())\n { //否则如果它是一个目录\n File files[] = file.listFiles(); //声明目录下所有的文件 files[];\n for(int i=0;i<files.length;i++)\n { //遍历目录下所有的文件\n files[i].delete(); //把每个文件 用这个方法进行迭代\n }\n }\n String indexPath = \"D:\\\\lucene\\\\index\";\n //String docsPath = \"D:\\\\lucene\\\\data\";\n boolean create = true;\n try\n {\n Session session=factory.openSession();\n String hql = \"from Book\";\n org.hibernate.Query query = session.createQuery(hql);\n List<Book> list=query.list();\n Directory indexDir = FSDirectory.open(Paths.get(\"D:\\\\lucene\\\\index\"));\n Analyzer luceneAnalyzer = new StandardAnalyzer(); //新建一个分词器实例 \n IndexWriterConfig config = new IndexWriterConfig(luceneAnalyzer); \n IndexWriter indexWriter = new IndexWriter(indexDir,config);\n for(int i=0;i<list.size();i++)\n {\n Document document = new Document();\n Field field1 = new StringField(\"id\",list.get(i).getBookid().toString(),Field.Store.YES); \n Field field2 = new StringField(\"bookname\",list.get(i).getBookname(),Field.Store.YES); \n Field field3 = new StringField(\"author\",list.get(i).getAuthor(),Field.Store.YES); \n Field field4 = new StringField(\"category\",list.get(i).getCategory(),Field.Store.YES); \n Field field5 = new StringField(\"price\", Double.toString(list.get(i).getPrice()),Field.Store.YES); \n document.add(field1); \n document.add(field2); \n document.add(field3); \n document.add(field4);\n document.add(field5);\n indexWriter.addDocument(document);\n }\n indexWriter.close();\n }\n catch(IOException e)\n {\n System.out.println(\"error\");\n return;\n }\n }", "hr.domain.ResumeDBOuterClass.Education getEducations(int index);", "hr.domain.ResumeDBOuterClass.Experience getExperiences(int index);", "public void fillNounTbl(String sentenceID){\n\t\t// implement me!\n\t}", "void createOrUpdateVocabulary(final VocabularyPE vocabularyPE);", "@Override\n public Builder iterate(@NonNull SequenceIterator<VocabWord> iterator) {\n super.iterate(iterator);\n return this;\n }", "private void createFreqVector(Path file) {\r\n\t\t\tVector vector = new Vector(vocabulary.size());\r\n\t\t\tList<String> lines;\r\n\t\t\ttry {\r\n\t\t\t\tlines = Files.readAllLines(file);\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tSet<String> words = new HashSet<>();\r\n\t\t\t//create frequency vector of words in single document -> tf(w,d)\r\n\t\t\tfor (String line : lines) {\r\n\t\t\t\tif (line.isEmpty()) continue;\r\n\t\t\t\tString[] values = p.split(line);\r\n\t\t\t\tfor (String value : values) { \r\n\t\t\t\t\tif (value.isEmpty()) continue;\r\n\t\t\t\t\tString lowWord = value.toLowerCase().trim();\r\n\t\t\t\t\t\r\n\t\t\t\t\tInteger[] arr = vocabulary.get(lowWord);\r\n\t\t\t\t\tif (arr == null) continue;\r\n\t\t\t\t\tvector.incrementValueAt(arr[0]);\r\n\t\t\t\t\tif (words.add(lowWord)) {\r\n\t\t\t\t\t\t arr[1] += 1;\t//first time occurrence of this word in document\r\n\t\t\t\t\t\tvocabulary.put(lowWord, arr);\t//increment number of documents for this word\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\tfreqVectors.put(file, vector);\t\t\r\n\t\t}", "private String[][] getMoodsTableValues() {\n String soso = DBTypesKeys.SO_SO_MOOD.getTypeValue();\n String sad = DBTypesKeys.SAD_MOOD.getTypeValue();\n String angry = DBTypesKeys.ANGRY_MOOD.getTypeValue();\n String happy = DBTypesKeys.HAPPY_MOOD.getTypeValue();\n // moods table\n return new String[][]{\n //moods hi answers by answers // id_ (enum index + 1)\n { soso, \"hey\", \"by\"}, // 1\n { sad, \"welcome to sad world\", \"so, you too ...\"}, // 2\n { angry, \"get out!\", \"thanks god, you away\"}, // 3\n { happy, \"hi! glad to see you =)\", \"good luck, buddy\"} // 4\n };\n }", "private VocabularyTerms getVocabularyTerms(Collection<CMAContentType> vocabularies) {\n VocabularyTerms vocabularyTerms = new VocabularyTerms();\n vocabularies\n .forEach(contentType -> {\n //Keeps the country vocabulary ID for future use\n if (contentType.getName().equals(configuration.getCountryVocabulary())) {\n vocabularyTerms.loadCountryVocabulary(contentType);\n } else {\n //Loads vocabulary into memory\n vocabularyTerms.loadVocabulary(contentType);\n }\n });\n return vocabularyTerms;\n }", "public static String getTokenVocabFromGrammar(String text) {\n\t\t// TODO: unneeded. use antlr Tool. Kill?\n//\t\tParsingResult r = parseANTLRGrammar(text);\n//\t\tif ( r.tree!=null ) { //&& r.syntaxErrorListener.getSyntaxErrors().size()==0 ) {\n//\t\t\t// option : id ASSIGN optionValue ;\n//\t\t\tCollection<ParseTree> options = XPath.findAll(r.tree, \"//option\", r.parser);\n//\t\t\tfor (Iterator<ParseTree> it = options.iterator(); it.hasNext(); ) {\n//\t\t\t\tANTLRv4Parser.OptionContext option = (ANTLRv4Parser.OptionContext)it.next();\n//\t\t\t\tif ( option.id().getText().equals(\"tokenVocab\") ) {\n//\t\t\t\t\t/*\n//\t\t\t\t\toptionValue\n//\t\t\t\t\t\t:\tid (DOT id)*\n//\t\t\t\t\t\t|\tSTRING_LITERAL\n//\t\t\t\t\t\t|\tACTION\n//\t\t\t\t\t\t|\tINT\n//\t\t\t\t\t\t;\n//\t\t\t\t\t */\n//\t\t\t\t\tANTLRv4Parser.OptionValueContext optionValue = option.optionValue();\n//\t\t\t\t\tif ( optionValue.STRING_LITERAL()!=null ) {\n//\t\t\t\t\t\tString s = optionValue.STRING_LITERAL().getText();\n//\t\t\t\t\t\treturn RefactorUtils.getLexerRuleNameFromLiteral(s);\n//\t\t\t\t\t}\n//\t\t\t\t\tif ( optionValue.id(0)!=null ) {\n//\t\t\t\t\t\treturn optionValue.id(0).getText();\n//\t\t\t\t\t}\n//\t\t\t\t}\n//\t\t\t}\n//\t\t}\n\t\treturn null;\n\t}", "private Resolution getVocabularyConceptResolution() {\r\n HttpServletRequest httpRequest = getContext().getRequest();\r\n String url = httpRequest.getRequestURL().toString();\r\n // String query = httpRequest.getQueryString();\r\n \r\n String[] parameters = StringUtils.split(StringUtils.substringAfter(url, \"/vocabulary/\"), \"/\");\r\n \r\n if (parameters.length >= 2) {\r\n if (!RESERVED_VOCABULARY_EVENTS.contains(parameters[1])) {\r\n RedirectResolution resolution = new RedirectResolution(VocabularyConceptActionBean.class, \"view\");\r\n resolution.addParameter(\"vocabularyFolder.identifier\", parameters[0]);\r\n resolution.addParameter(\"vocabularyConcept.identifier\", parameters[1]);\r\n resolution.addParameter(\"vocabularyFolder.workingCopy\", vocabularyFolder.isWorkingCopy());\r\n \r\n return resolution;\r\n }\r\n }\r\n \r\n return null;\r\n }", "public SPARQL() {\n initComponents();\n \n model = ModelFactory.createOntologyModel(OntModelSpec.OWL_LITE_MEM_RDFS_INF);\n model.setDynamicImports(true);\n model.read(\"file:\"+\"data/ontologies/Papers_Ready.owl\", \"http://www.l3g.pl/ontologies/OntoBeef/Papers.owl\", \"N-TRIPLE\");\n model.loadImports();\n \n for (Individual i : model.listIndividuals(model.getOntClass(\"http://www.l3g.pl/ontologies/OntoBeef/Conceptualisation.owl#Category\")).toSet())\n {\n System.out.println(i.listLabels(null).toSet());\n }\n }", "@Override\n public AutoBuffer write_impl(AutoBuffer ab) {\n if (_vocabHM == null) return ab.put1(1); // killed\n\n int strLen = 0;\n for (ValueStringCount val : VOCABHM.values())\n strLen += val.length();\n ab.put1(0); // not killed\n ab.put4(strLen); //length of string buffer\n for (ValueStringCount val : VOCABHM.values())\n ab.put2((char) val.length()).putA1(val.getBuffer(), val.getOffset(), val.getOffset() + val.length()).put8(val._cnt);\n return ab.put2((char) 65535); // End of map marker\n }", "@SuppressWarnings(\"unchecked\")\r\n\tpublic static void main(String[] args) throws IOException {\n\t\tSchema s = new Schema(\"Estudiantes\",\"C:\\\\Users\\\\morazan\\\\Desktop\\\\com\\\\idk\\\\ac\\\\cr\");\r\n\n\t\tSchemaJoin j = new SchemaJoin(\"Notas\",\"C:\\\\Users\\\\morazan\\\\Desktop\\\\com\\\\idk\\\\ac\\\\cr\");\r\n\r\n\t\t//Creates an index in the regular schema\r\n\t\ts.createIndex(\"bts\", \"string\", \"Nombre\", 10);\r\n\t\ts.createIndex(\"avl\", \"number\", \"aņo\", 4);\r\n\t\ts.createIndex(\"avl\", \"image\", \"Imagen\", 0);\r\n\t\tj.joinSchema(s);\r\n\t\tj.createJoinedIndex(\"avl\", \"number\", \"Notas\", 2);\r\n\t\t\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"Inserting I \");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\ts.insertToIndex(1, \"JP\");\r\n\t\ts.insertToIndex(1, \"Randy\");\r\n\t\ts.insertToIndex(1, \"Alejandra\");\r\n//\t\ts.insertToIndex(1, \"Xcreed\");\r\n\t\ts.insertToIndex(2, 1996);\r\n\t\ts.insertToIndex(2, 1995);\r\n\t\ts.insertToIndex(2, 1997);\n\t\ts.insertToIndex(3, \"SchemaExtraFiles/2.jpg\");\n\t\ts.insertToIndex(3, \"SchemaExtraFiles/8.jpg\");\n\t\ts.insertToIndex(3, \"SchemaExtraFiles/4.jpg\");\n\t\t\n\t\tIndexBTS index = (IndexBTS) s.schema.getItem(1);\r\n\t\tBinarySearchTree t = (BinarySearchTree) index.tree;\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"Traversal I\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tt.inOrderTraversal();\r\n\t\t\n\t\tIndexAVL index2 = (IndexAVL) s.schema.getItem(2);\r\n\t\tAVLTree t2 = (AVLTree) index2.getTree();\r\n\t\tSystem.out.println(\"avl order\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"Traversal II\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\n\t\tt2.inorder();\n\t\t\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"Inserting II \");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tj.insertToIndex(1, 80);\r\n\t\tj.insertToIndex(1, 82);\r\n\t\tj.insertToIndex(1, 78);\t\t\t\r\n\t\t\r\n//\t\tSystem.out.println(s.search(\"JP\"));\r\n//\t\tSystem.out.println(s.deleteInIndex(1,\"JP\"));\r\n//\t\tSystem.out.println(s.search(\"JP\"));\r\n\t\t\r\n\t\tSystem.out.println(\"Getting line 1\");\r\n\t\ts.getLine(1);\r\n//\t\ts.deleteLine(1);\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"Searching 82 \");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tj.joinedSearch(82);\r\n\r\n\t\t//Deletes an index in the schema\r\n//\t\ts.schema.print();\r\n//\t\ts.deleteIndex(1);\r\n//\t\ts.schema.print();\r\n\t\t\r\n// ***********Activate Separately**********\r\n\t\t\r\n//\t\ts.createIndex(\"bts\", \"video\", \"Videos\", 0);\r\n//\t\ts.insertToIndex(1, \"SchemaExtraFiles/Trike Drifting.mp4\");\r\n\t\t\r\n//\t***************************************\r\n\t\t\r\n\t\tJSONProtocol json = new JSONProtocol();\r\n\t\tjson.writeSchema(s);\r\n\t\t\t\t\r\n\t\t\r\n\t}", "TableId table();", "public boolean buildVocab() {\n readStopWords();\n\n if(cache.vocabExists()) {\n log.info(\"Loading vocab...\");\n cache.loadVocab();\n cache.resetWeights();\n return true;\n }\n\n //vectorizer will handle setting up vocab meta data\n if(vectorizer == null)\n vectorizer = new TfidfVectorizer.Builder()\n .cache(cache).iterate(docIter).iterate(sentenceIter)\n .minWords(minWordFrequency).stopWords(stopWords)\n .tokenize(tokenizerFactory).build();\n vectorizer.fit();\n\n setup();\n\n return false;\n }", "public List<Kateggorija> getSviGlumci() {\n List<Kateggorija> glumci=null;\n try {\n glumci= getDaoKateggorija().queryForAll();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n return glumci;\n }", "@VTID(10)\n int getIndex();", "Skill getSkill(Long skillId) throws DbException;", "public List<String> GetKeywords()\n\t{\n\t\tList<String> words = new ArrayList<String>(); \n\t\ttry\n\t\t{\n\t\t\tConnector con = new Connector();\n\t \n\t String query = \"SELECT keyword_kid FROM HasKeywords WHERE keyword_hid = '\"+hid+\"'\"; \n\t ResultSet rs = con.stmt.executeQuery(query); \n\t \n\t List<Integer> k_ids = new ArrayList<Integer>(); \n\t while(rs.next())\n\t {\n\t \tint new_id = rs.getInt(\"keyword_kid\"); \n\t \tk_ids.add(new_id); \n\t }\n\t \n\t for(int i = 0; i < k_ids.size(); i++)\n\t {\n\t \tquery = \"SELECT word FROM Keywords WHERE k_id = '\"+k_ids.get(i)+\"'\"; \n\t \trs = con.stmt.executeQuery(query); \n\t \twhile(rs.next())\n\t \t{\n\t \t\tString kw = rs.getString(\"word\"); \n\t \t\twords.add(kw); \n\t \t}\n\t }\n\t \n\t con.closeConnection();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\tkeywords = words; \n\t\treturn keywords; \n\t}", "java.lang.String getSemanticLangidModelName();", "public interface DBSDictionary\n{\n /**\n * Checks that this constrain supports key enumerations.\n * Usually it depends on constraint type (enumerations makes sense only for unique constraints).\n * @return true or false\n */\n boolean supportsDictionaryEnumeration();\n\n /**\n * Gets enumeration values\n *\n * @param monitor session\n * @param keyColumn enumeration column.\n * @param keyPattern pattern for enumeration values. If null or empty then returns full enumration set\n * @param searchText\n * @param preceedingKeys other constrain key values. May be null.\n * @param caseInsensitiveSearch use case-insensitive search for {@code keyPattern}\n * @param sortAsc ascending sorting (irrelevant is {@code sortByValue} is false)\n * @param sortByValue sort results by value\n * @param offset enumeration values offset in result set\n * @param maxResults maximum enumeration values in result set\n * @return statement with result set which contains valid enumeration values.\n */\n @NotNull\n List<DBDLabelValuePair> getDictionaryEnumeration(\n @NotNull DBRProgressMonitor monitor,\n @NotNull DBSEntityAttribute keyColumn,\n @Nullable Object keyPattern,\n @Nullable String searchText,\n @Nullable List<DBDAttributeValue> preceedingKeys,\n boolean caseInsensitiveSearch,\n boolean sortAsc,\n boolean sortByValue,\n int offset,\n int maxResults\n ) throws DBException;\n\n @NotNull\n List<DBDLabelValuePair> getDictionaryValues(\n @NotNull DBRProgressMonitor monitor,\n @NotNull DBSEntityAttribute keyColumn,\n @NotNull List<Object> keyValues,\n @Nullable List<DBDAttributeValue> preceedingKeys,\n boolean sortByValue,\n boolean sortAsc\n ) throws DBException;\n\n @NotNull\n DBSDictionaryAccessor getDictionaryAccessor(\n @NotNull DBRProgressMonitor monitor,\n @Nullable List<DBDAttributeValue> precedingKeys,\n @NotNull DBSEntityAttribute keyColumn,\n boolean sortAsc,\n boolean sortByDesc\n ) throws DBException;\n}", "@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)\n\tpublic List<AssetVocabulary> getAttachedVocabularies(long groupId);", "public static List<Book> getBookCategory() throws HibernateException{\r\n \r\n session = sessionFactory.openSession();\r\n session.beginTransaction();\r\n \r\n Query query=session.getNamedQuery(\"INVENTORY_getBookCategory\");\r\n List<Book> bookLocationList=query.list();\r\n \r\n session.getTransaction().commit();\r\n session.close();\r\n \r\n return bookLocationList;\r\n}", "public void train(Corpus[] trainingData) {\n\t\tSet<String> vocabulary = super.mergeVocabulary(trainingData);\n\t\ttrainingData[0].setVocabulary(vocabulary);\n\t\ttrainingData[1].setVocabulary(vocabulary);\n\t\tposMatrix = new TransitionMatrix(trainingData[0]);\n\t\tnegMatrix = new TransitionMatrix(trainingData[1]);\n\t}", "public void AddInDB(Word newWord) throws SQLException {\n String insertQuery = \"INSERT INTO tbltest(word,pronunciation,define) VALUES(?,?,?)\";\r\n ps = con.prepareStatement(insertQuery);\r\n ps.setString(1, newWord.getWord());\r\n ps.setString(2, newWord.getPronunciation());\r\n ps.setString(3, newWord.getDefine());\r\n\r\n ps.executeUpdate();\r\n }", "public static void caso41(){\n FilterManager fm= new FilterManager(\"resources/stopWordsList.txt\",\"resources/useCaseWeight.properties\");\n\t\tQualityAttributeBelongable qualityAttributeBelongable = new OntologyManager(\"file:resources/caso4.owl\",\"file:resources/caso4.repository\",fm);\n\t\tMap<QualityAttributeInterface,Double> map = qualityAttributeBelongable.getWordPertenence(\"response1\");\n\t\tif(map==null){\n\t\t\tSystem.out.println(\"El map es null\");\n\t\t}else{\n\t\t\tMapUtils.imprimirMap(map);\n\t\t}\n\t}", "@Select(\"select id,item from dicts where id in (23,24,25,26,27)\")\n\tList<Dict> findLevels();", "public interface IJavaDocAttributDao\n{\n List<JavaDocAttribut> getJavaDocAttributs(int idJavaDocMethode);\n}" ]
[ "0.5714772", "0.5634642", "0.54471385", "0.5296146", "0.5199113", "0.49331725", "0.49329886", "0.4925552", "0.49100333", "0.49073565", "0.48575464", "0.4840506", "0.48176134", "0.47540638", "0.4731969", "0.47130308", "0.46997505", "0.46928567", "0.46592632", "0.46315858", "0.46308562", "0.4628427", "0.4613438", "0.4607982", "0.46033806", "0.45581195", "0.45454577", "0.45442265", "0.45386803", "0.45275065", "0.452028", "0.4503016", "0.4500965", "0.44867927", "0.44754398", "0.44700065", "0.4461962", "0.44616178", "0.44392928", "0.44261026", "0.43990988", "0.43955937", "0.43947372", "0.4391834", "0.43790415", "0.4373947", "0.43707538", "0.43700558", "0.43560442", "0.43444037", "0.43359932", "0.4334978", "0.4331108", "0.43275934", "0.43246162", "0.4323478", "0.432252", "0.43204546", "0.43167415", "0.4313692", "0.43123078", "0.43018934", "0.42899582", "0.42859036", "0.4279804", "0.42734304", "0.42709267", "0.42542967", "0.4249365", "0.4246521", "0.42383584", "0.42374423", "0.42311075", "0.42302102", "0.4229986", "0.4227258", "0.42229605", "0.42228934", "0.422011", "0.42189792", "0.42158115", "0.42145696", "0.42105144", "0.4207044", "0.42064056", "0.41962886", "0.4194155", "0.41941473", "0.41919973", "0.41892615", "0.41883606", "0.41852176", "0.4182343", "0.41803232", "0.41759124", "0.41734546", "0.41732693", "0.41713014", "0.41704375", "0.416942", "0.41672277" ]
0.0
-1
Compares weight of inventory items
@Override public int compare(InventoryItem item1, InventoryItem item2) { //if items being compared have the same weight, the one with the higher ID will be considered bigger if (item1.getWeight() == item2.getWeight()) { return (Long.compare(item1.getID(), item2.getID())); } else if (item1.getWeight() > item2.getWeight()) { return 1; } else { return -1; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic int compare(WaterBottle o1, WaterBottle o2) {\n\t\treturn o1.weight-o2.weight;\r\n\t}", "public static void main(String[] args){ w = the total weight\n\t\t// i = item i\n\t\t// m[i, w] = maximum value attained with weight <= w using items up to i\n\t\t//\n\t\t// recurrence relation:\n\t\t// m[0, w] = 0, if there's zero items, the sum is zero\n\t\t// m[i, w] = m[i-1, w], if w(i) > w, the new item's weight > current weight limit\n\t\t// m[i, w] = max(m[i-1, w],\n\t\t// \t\t\t\t m[i-1, w-w(i)] + v(i), if w(i) <= w\n\t\t//\n\t\t//\n\t\tArrayList<Item> items = new ArrayList<Item>();\n\n\t\titems.add(new Item(10, 60));\n\t\titems.add(new Item(20, 100));\n\t\titems.add(new Item(30, 120));\n\n\t\tSystem.out.println(knapsack(items.size()-1, 50, items));\n\t}", "private QuotationDetailsDTO checkChargedWeight(TableItem[] items, QuotationDetailsDTO detail) {\n\t\tfloat chargedWt = 0;\n\n\t\tfor (int j = 0; j < items.length; j++) {\n\n\t\t\tchargedWt = Float.parseFloat(items[j].getText(1));\n\n\t\t\tif (items[j].getText(0).equals(detail.getArticleName())) {\n\t\t\t\tif (chargedWt != detail.getChargedWeight()) {\n\t\t\t\t\t//System.out.println(\"CW changed for \" + detail.getArticleName());\n\t\t\t\t\tdetail.setBft(null);\n\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t}\n\n\t\t}\n\t\treturn detail;\n\t}", "public boolean compareWeight(Weight w1, Weight w2){\n return Double.compare(w1.value*w1.unit.baseUnitConversion, w2.value*w2.unit.baseUnitConversion) == 0;\n }", "public int sumEquipmentWeight(){\n int sum = 0;\n for (Equipment e: equipment){\n sum += e.getWeight();\n }\n return sum;\n }", "public int getWeight(Item item) {\n\t\treturn weight.get(item);\n\t}", "public static List<Apple> filterApplesByWeight(List<Apple> inventory,\n int weight) {\n List<Apple> result = new ArrayList<>();\n for (Apple apple: inventory){\n if ( apple.getWeight() > weight ){\n result.add(apple);\n }\n }\n return result;\n }", "@Test\n\tpublic void getCostForItem() {\n\t\tfinal BasketItemImpl bi = new BasketItemImpl();\n\t\tbi.addBasketItem(\"banana\", 2);\n\t\tbi.addBasketItem(\"lemon\", 3);\n\n\t\tfinal int fc = bi.getAllBasketItems().get(\"banana\");\n\t\tassertTrue(Integer.compare(2, fc) == 0);\n\n\t}", "public static TempResult max(int allowedWeight, Set<Item> items) {\n\t\tint[] values=new int[items.size()];\n\t\tint[] weights=new int[items.size()];\n\t\t\n\n\t\tArrayList<Item> items2=new ArrayList<Item>(items);\n\t\tfor (int i=0; i<items2.size(); i++) {\n\t\t\tvalues[i]=items2.get(i).value;\n\t\t\tweights[i]=items2.get(i).weight;\n\t\t}\n\t\t\n int[][] totalValue = new int[values.length+1][allowedWeight+1];\n boolean[][] includedorNot = new boolean[values.length+1][allowedWeight+1];\n \n //We introduce item one by one to the system.\n //For each introduced item, we consider the maximal profit\n //for weight=[0:allowedWeight]\n for (int i=0; i<values.length; i++) {\n \t//introduce item i into the system.\n \tint val=values[i];\n \tint weight=weights[i];\n \t\n \tint itemIndex=i+1;\n \t\n \tfor (int w=1; w<=allowedWeight; w++) {\n \t\t\n \t\t//Zero copy of ith item; i-1 is calculated already\n \t\tint profit1=totalValue[itemIndex-1][w];\n \t\t\n \t\t//one copy of ith item.\n \t\tint profit2=Integer.MIN_VALUE;\n \t\tif (w-weight>=0) {\n \t\t\t//for a particular targeted weight, add item i does not overflow the targeted weight.\n \t\t\tprofit2=totalValue[itemIndex-1][w-weight]+val;\n \t\t}\n \t\t\n \t\tif (profit1>profit2) {\n \t\t\tincludedorNot[itemIndex][w]=false;\n \t\t\ttotalValue[itemIndex][w]=profit1;\n \t\t} else {\n \t\t\tincludedorNot[itemIndex][w]=true;\n \t\t\ttotalValue[itemIndex][w]=profit2;\n \t\t}\n \t}\n }\n\t\t\n \n TempResult result=new TempResult(0, 0);\n result.value=totalValue[values.length][allowedWeight];\n result.items=new LinkedList<>();\n int w=allowedWeight;\n for (int itemIndex=values.length; itemIndex>0; itemIndex--) {\n \tif (includedorNot[itemIndex][w]) {\n \t\tresult.items.add(items2.get(itemIndex-1));\n \t\tw=w-weights[itemIndex-1];\n \t} \n }\n \n return result;\n \n\t}", "public int getCarriedWeight() {\n\t\tint weight = 0;\n\t\tfor (Item item : this) {\n\t\t\tweight += item.getWeight();\n\t\t}\n\n\t\treturn weight;\n\t}", "protected abstract void compareItem(Item expected, Item actual);", "private int compareAndNotify(Inventory inv, Wishlist wishlist, WishlistItem watched) {\n\t\tfor (InventoryCategory category : inv.categories) {\n\t\t\tfor (InventoryItem invItem : category.items) {\n\t\t\t\tif (invItem.itemNumber == watched.itemNumber) {\n\t\t\t\t\tif (invItem.isInStock) {\n\t\t\t\t\t\treturn notify(wishlist, watched, invItem);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn 0;\n\t}", "@Override\r\n\tpublic int compare(AbstractItemAPI item1, AbstractItemAPI item2) {\n\t\treturn (int) (item2.getPrice() - item1.getPrice());\r\n\t}", "public int getWeight() {\n\t\treturn quantity*weight; \n\t}", "@Override\n\tpublic int compareTo(@NonNull Item o) {\n\t\treturn Math.round(this.price - o.price);\n\t}", "public Knapsack bruteForceCalc (ArrayList <Item> items,int capacity, int num_items) {\n\t\tif (num_items <= 0) {\n\t\t\tKnapsack knapsack = new Knapsack(0);\n\t\t\treturn knapsack;\n\t\t} \n\t\telse if (items.get(num_items -1).getWeight() > capacity) {\n\t\t\treturn bruteForceCalc(items, capacity, num_items - 1);\n\t\t} else {\n\n\t\t\tKnapsack ignore = bruteForceCalc(items,capacity, num_items - 1);\n\t\t\tKnapsack take = bruteForceCalc(items,capacity - items.get(num_items -1).getWeight(), num_items - 1);\n\t\t\t\n\t\t\tint ignoreVal = ignore.getValue();\n\t\t\tint takeVal = items.get(num_items - 1).getValue() + take.getValue();\n\t\t\t \n\t\t\tif( Math.max(ignoreVal, takeVal) == ignoreVal ) \n\t\t\t\treturn ignore;\n\t\t\telse {\n\t\t\t\ttake.addItem(items.get(num_items - 1));\n\t\t\t\treturn take;\n\t\t\t}\n\t\t}\n\t}", "private static long calculateBestPickWithoutRepetition(int weight, Item[] items, long[][] DP) {\n\n for(int w = 1; w <= weight; w++) {\n for(int i = 1; i <= items.length; i++) {\n DP[w][i] = DP[w][i-1];\n Item item = items[i-1];\n\n if (item.getWeight() <= w) {\n DP[w][i] = Math.max(DP[w][i], DP[w - item.getWeight() ][i-1] + item.getValue());\n }\n }\n }\n\n return DP[DP.length -1][DP[0].length - 1];\n }", "void ksUnbounded(int targetWeight, int nItems, int[] iWeights, int[] iValues) {\n\r\n\t\tint[][] ksItemCapacity = new int[nItems + 1][targetWeight + 1];\r\n\t\tint[][] ksTrack = new int[nItems + 1][targetWeight + 1];\r\n\r\n\t\tfor (int w = 0; w <= targetWeight; w++) {\r\n\t\t\tksItemCapacity[0][w] = 0;\r\n\t\t}\r\n\r\n\t\tfor (int item = 1; item < nItems; item++) {\r\n\t\t\tfor (int w = 0; w <= targetWeight; w++) {\r\n\t\t\t\t// last known Maximum value of KS contents s.t. their weight\r\n\t\t\t\t// totals to atmost w-iWeights[item]\r\n\t\t\t\tint eItemValue = (iWeights[item] <= w) ? ksItemCapacity[item - 1][w\r\n\t\t\t\t\t\t- iWeights[item]]\r\n\t\t\t\t\t\t: 0;\r\n\t\t\t\tif ((iWeights[item] <= w)\r\n\t\t\t\t\t\t&& (iValues[item] + eItemValue) > ksItemCapacity[item - 1][w]) {\r\n\t\t\t\t\tksItemCapacity[item][w] = eItemValue + iValues[item];\r\n\t\t\t\t\t// current item included\r\n\t\t\t\t\tksTrack[item][w] = 1;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tksItemCapacity[item][w] = ksItemCapacity[item - 1][w];\r\n\t\t\t\t\t// current item not included\r\n\t\t\t\t\tksTrack[item][w] = 0;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Print KS contents\r\n\t\tArrayList<Integer> ksContents = new ArrayList<Integer>();\r\n\t\tint tW = targetWeight;\r\n\t\tfor (int item = nItems; item >= 0; item--) {\r\n\t\t\tif (ksTrack[item][tW] == 1) {\r\n\t\t\t\ttW -= iWeights[item];\r\n\t\t\t\tksContents.add(item);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tSystem.out.println(\"Items choosen are:\");\r\n\t\tint W = 0, V = 0;\r\n\t\tfor (Integer e : ksContents) {\r\n\t\t\tW += iWeights[e];\r\n\t\t\tV += iValues[e];\r\n\t\t\tSystem.out.println(\"Weight: \" + iWeights[e] + \", Value: \"\r\n\t\t\t\t\t+ iValues[e]);\r\n\t\t}\r\n\t\tSystem.out.println(\"Total weight: \" + W + \" Total value: \" + V);\r\n\t}", "@Test\n\tpublic void getCostForDuplicateItem() {\n\t\tfinal BasketItemImpl bi = new BasketItemImpl();\n\t\tbi.addBasketItem(\"banana\", 2);\n\t\tbi.addBasketItem(\"banana\", 4);\n\t\tbi.addBasketItem(\"lemon\", 3);\n\n\t\tfinal int fc = bi.getAllBasketItems().get(\"banana\");\n\t\tassertTrue(Integer.compare(6, fc) == 0);\n\n\t}", "public double findWeight(){\n int totalCoins = gold + silver + copper + electrum + platinum;\n if((totalCoins % 3) == 0){\n return totalCoins/3;\n }\n return totalCoins * weight;\n }", "static int knapsack(Item[] items, int maxWeight) {\n return knapsack(items, maxWeight, 0);\n }", "@Override\n public double score(Map<BasedMining, Map<BasedMining, RateEvent>> preferences,\n BasedMining item1,\n BasedMining item2) {\n var sharedInnerItems = new ArrayList<BasedMining>();\n\n preferences.get(item1).forEach((innerItem, rateEvent) -> {\n if (preferences.get(item2).get(innerItem) != null) {\n sharedInnerItems.add(innerItem);\n }\n });\n\n// If they have no rating in common, return 0\n if (sharedInnerItems.size() > 0)\n return 0;\n\n// Add up the square of all the differences\n var sumOfSquares = preferences.get(item1).entrySet()\n .stream()\n .filter(entry -> preferences.get(item2).get(entry.getKey()) != null)\n .mapToDouble(entry -> Math.pow((entry.getValue().getRating() - preferences.get(item2).get(entry.getKey()).getRating()), 2.0))\n .sum();\n\n return 1 / (1 + sumOfSquares);\n }", "@Test\n public void verifyWatermelonOfferApplied() {\n \tProduct product = new Product(\"Watermelon\", 0.8);\n \tBasket basket = new Basket();\n \tbasket.getProducts().put(product, 7);\n \tassertTrue(\"Have to get the price of 7 items = 4 ==> \", \n \t\t\tDouble.compare(calculator.calculatePrice(basket), 4) == 0);\n }", "private double bound(int i, double weight, double value, int[] items) {\n\t\tint item, wi;\n\t\tassert weight - k < EPS; // Because of when bound is called in fill\n\t\tfor (int j = n - 1; j >= 0; j--) {\n\t\t\titem = items[j];\n\t\t\tif (item <= i)\n\t\t\t\tcontinue;\n\t\t\twi = w[item];\n\t\t\tif (wi < k - weight) {\n\t\t\t\tweight += wi;\n\t\t\t\tvalue += v[item];\n\t\t\t}\n\t\t\telse return value + ((double) (k - weight) / wi) * v[item];\n\t\t}\n\t\treturn value;\n\t}", "@Override\n\t\t\tpublic int compare(Edge o1, Edge o2) {\n\t\t\t\treturn o1.weight - o2.weight;\n\t\t\t}", "public float getWeightUsed()\r\n {\r\n // implement our own magic formula here ...\r\n return 2.0f;\r\n }", "@Test\n void findVeichleByWeight() {\n\n final int ALL_CARS = 500;\n final int ONE_CAR = 1500;\n final int NO_CARS = 2500;\n\n vr.registerVeichle(dieselCar);\n vr.registerVeichle(dieselCar2);\n //check if all cars are returned as all cars are over 500 kg\n assertEquals(vr.getVeichles(), vr.findVeichleByWeight(ALL_CARS));\n //checks if that only dieselCar2 is returned as its the only car over 1500 kg\n assertTrue(vr.findVeichleByWeight(ONE_CAR).contains(dieselCar2) && !vr.findVeichleByWeight(ONE_CAR).contains(dieselCar));\n //Checks that no cars are returned since no cars is heavier than 2500\n assertFalse(vr.findVeichleByWeight(NO_CARS).contains(dieselCar) || vr.findVeichleByWeight(NO_CARS).contains(dieselCar2));\n\n }", "@Test\n public final void testBiggerThanMin() {\n for (ArrayList<TradeGood> planetsGoods : goods) {\n for (TradeGood good : planetsGoods) {\n assertTrue(good.getPrice() > good.type.mtl);\n }\n }\n }", "@Test\n public void verifyOffersApplied() {\n \tProduct product = new Product(\"Watermelon\", 0.8);\n \tProduct product2 = new Product(\"Apple\", 0.2);\n \tProduct product3 = new Product(\"Orange\", 0.5);\n \tBasket basket = new Basket();\n \tbasket.getProducts().put(product, 6);\n \tbasket.getProducts().put(product2, 4);\n \tbasket.getProducts().put(product3, 5);\n \tassertTrue(\"Have to get the price of 15 items = 6.1 ==> \", (calculator.calculatePrice(basket) - 6.1) < 0.0001);\n }", "public int getEquippedWeaponWeight() {\n return 0;\n }", "public double getEquipmentWeight() {\r\n\t\tdouble ret = 0;\r\n\t\tPerson p = model.getData();\r\n\t\tif ( p!=null ) {\r\n\t\t\tret = p.getCarriedWeight();\r\n\t\t}\r\n\t\treturn ret;\r\n\t}", "@Override\n\t\tpublic int compareTo(state arg0) {\n\t\t\treturn (this.weight1 * this.weight2) - (arg0.weight1 * arg0.weight2);\n\t\t}", "public int compare(Person a, Person b){\n int aWeight = (int)a.getWeight();\n int bWeight = (int)b.getWeight();\n return aWeight - bWeight;\n }", "@Test\n public void amountGreatherThanItemsPrice() {\n Coupon coupon = couponService.calculateCoupon(Arrays.asList(MLA1),PRICE_MLA1+PRICE_MLA2);\n assertEquals(1, coupon.itemsIds().size());\n assertEquals(MLA1, coupon.itemsIds().get(0));\n assertEquals(PRICE_MLA1, coupon.total());\n }", "protected abstract void solve(Items items,Knapsack knapsack);", "@Override\n public int compare(Edge edge1, Edge edge2) {\n return Integer.compare(edge1.weight, edge2.weight);\n }", "public void weightedSearchByIngredients(List <Match> recipeDataList, int ingredients){\n for (Match recipe : recipeDataList){\n //recipe frequency + rating/10\n recipe.setWeight(((float)ingredients/((float)recipe.getIngredients().size()))+((float)recipe.getRating()/((float)10)));\n System.out.println(\"Recipe: \" + recipe.getRecipeName() + \"| Weight: \" + recipe.getWeight());\n }\n // Sorts the ArrayList based on weight score\n Collections.sort(recipeDataList, new Comparator<Match>() {\n @Override\n public int compare(Match recipe1, Match recipe2) {\n return Float.compare( recipe2.getWeight(),recipe1.getWeight());\n }\n });\n }", "int getWeight();", "int getWeight();", "public float getWeight();", "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 boolean canReceiveItem(Player character) {\n boolean canPick = true;\n Item item = character.items.get(character.getItemOwned2().getName());\n double totalWeight = items.getTotalWeight() + item.getWeight();\n if(totalWeight > maxWeight) {\n canPick = false;\n }\n return canPick; \n }", "public int getWeight();", "public int compareTo(Vertex v) {\n return this.weight - v.weight;\n }", "double fractionalKnapsack(int W, Item arr[], int n) \n {\n Arrays.sort(arr, new Comparator<Item>() {\n \n public int compare(Item a, Item b)\n {\n return b.value*a.weight - a.value*b.weight;\n }\n });\n \n double ans = 0.0;\n \n for(Item it : arr )\n {\n int wt = it.weight;\n int val = it.value;\n \n if( W > wt )\n {\n W -= wt;\n ans += val;\n }\n \n else\n {\n ans += (val*W)/(double)wt;\n break;\n }\n }\n \n return ans;\n }", "private double weight(){\n return ((double) (m_PositiveCount + m_NegativeCount)) / ((double) m_PositiveCount);\n }", "public static void knapsackDynamicProgramming(objects[] items, int capacity, int n) \r\n { \r\n\t\t//use bubble sort to sort item by their weight\t\t\t\t\r\n\t\tfor (int i = 0; i < n-1; i++) \t\t\t\t\r\n\t\t{ \t\t \r\n\t\t\tfor (int j = 0; j < (n-i-1); j++) \t\t \r\n\t\t\t{\t\t \r\n\t\t\t\tif (items[j].weight < items[j+1].weight) \t\t \r\n\t\t\t\t{ \t\t \t\r\n\t\t\t\t\tobjects temp = items[j]; \t\t \r\n\t\t\t\t\titems[j] = items[j+1]; \t\t \r\n\t\t\t\t\titems[j+1] = temp; \t\t \t\t\t\t\t\r\n\t\t\t\t}\t\t \r\n\t\t\t}\t\t\t\t\r\n\t\t}\r\n\t\t\r\n \tif(n <= 0 || capacity <= 0)\r\n \t{\r\n \t\tSystem.out.print(\"Error capacity and object numbers can't be 0\");\r\n \t}\r\n \r\n \tint matrixTable[][] = new int[n+1][capacity+1]; \r\n \r\n \tfor (int i = 0; i <= n; i++) \r\n \t{ \r\n \t\tfor (int j = 0; j <= capacity; j++) \r\n \t\t{ \r\n \t\t\t//Preset row 0 value and column value to 0\r\n \t\t\tif (i==0 || j==0) \r\n \t {\r\n \t\t\t\tmatrixTable[i][j] = 0; \r\n \t }\r\n \r\n \t\t\t//If current row number is greater than current weight number\r\n \t\t\telse if (items[i-1].weight <= j) \r\n \t\t\t{\r\n \t\t\t\t//Compare the top value with top value plus value(use weight as the value to go left)result\r\n \t\t\t\t//and use the greatest value for the current one.\r\n \t\t\t\tmatrixTable[i][j] = Math.max(items[i-1].profit + matrixTable[i-1][j-items[i-1].weight], matrixTable[i-1][j]); \r\n \t\t\t}\r\n \t\t\t//If row number is less than current weight number just use the top value\r\n \t\t\telse \r\n \t\t\t{ \t \r\n \t\t\t\tmatrixTable[i][j] = matrixTable[i-1][j];\r\n \t\t\t}\r\n \t\t} \t\r\n \t} \r\n \t\r\n\t\tint totalProfit = matrixTable[n][capacity]; \t\t\r\n\t\tint temp = matrixTable[n][capacity];\r\n\t\tint [] itemInKnapsack = new int [n];\r\n\t\t\r\n\t\t//solving which item is in the knapsack\r\n for (int i = n; i > 0 && temp > 0; i--) { \r\n \r\n \r\n \tif (temp == matrixTable[i - 1][capacity]) \r\n \t{\r\n continue;\r\n \t}\r\n \t//if the top value is different than it is include in the knapsack\r\n else \r\n { \r\n itemInKnapsack[i-1] = items[i-1].index; //Save item number\r\n temp = temp - items[i - 1].profit; \r\n capacity = capacity - items[i - 1].weight; \r\n } \r\n } \r\n \r\n printResult(itemInKnapsack, totalProfit, 2); //Call print result\r\n }", "public boolean isWeighted();", "public synchronized void checkAndUpdateInventory(Drink drink) {\n Map<String, Integer> quantityMap = drink.getIngredientQuantityMap();\n boolean canBeMade = true;\n for (Map.Entry<String, Integer> entry : quantityMap.entrySet()) {\n if (inventoryMap.containsKey(entry.getKey())) {\n int currentValue = inventoryMap.get(entry.getKey());\n if (currentValue == 0) {\n System.out.println(drink.getName() + \" cannot be prepared because \" + entry.getKey() + \" is not available\");\n canBeMade = false;\n break;\n } else if (quantityMap.get(entry.getKey()) > inventoryMap.get(entry.getKey())) {\n System.out.println(drink.getName() + \" cannot be prepared because \" + entry.getKey() + \" is not sufficient\");\n canBeMade = false;\n break;\n }\n }\n }\n if (canBeMade) {\n updateInventory(quantityMap);\n System.out.println(drink.getName() + \" is prepared\");\n }\n }", "public int weight(){\n\t\treturn this.weight;\n\t}", "private int calculateInputStock_Items() {\n\t\tint total = 0;\n\t\tArrayList<Integer> stock = getAllStockValues();\n\t\tif (!stock.isEmpty()) {\n\t\t\t// get for all K\n\t\t\ttotal += (stock.get(0) * getSetUpMachine().getVending_item().get(\"K\"));\n\t\t\t// get for all S\n\t\t\ttotal += (stock.get(1) * getSetUpMachine().getVending_item().get(\"S\"));\n\t\t\t// get for all F\n\t\t\ttotal += (stock.get(2) * getSetUpMachine().getVending_item().get(\"F\"));\n\t\t\t// get for all N\n\t\t\ttotal += (stock.get(3) * getSetUpMachine().getVending_item().get(\"N\"));\n\t\t}\n\t\treturn total;\n\t}", "private int checkItemQuantity() {\n\n int desiredQuantity = initialQuantity;\n MenusItem tempItem = null;\n tempItem = ItemCart.getInstance().checkItem(menusItem);\n\n if(tempItem != null){\n desiredQuantity = tempItem.getDesiredQuantity();\n }\n\n\n return desiredQuantity;\n }", "public int compareTo(GroceryItem theItem) {\n\t\tint difference = quantity - theItem.quantity;\n\t\tif(difference != 0) {\n\t\t\treturn difference;\n\t\t}\n\t\treturn description.compareTo(theItem.description);\n\t}", "public boolean canPickItem(String itemName) {\n boolean canPick = true;\n Item item = currentRoom.getItem(itemName);\n if(item != null) {\n double totalWeight = items.getTotalWeight() + item.getWeight();\n if(totalWeight > maxWeight) {\n canPick = false;\n }\n }\n return canPick; \n }", "public static int zeroOneKnapsack(int[] weight, int[] value, int capacity) {\n\t\tint[][] dp = new int[weight.length + 1][capacity + 1];\n\n\t\tfor (int i = 0; i < weight.length + 1 ; i++) {\n\t\t\t for (int j = 0; j < capacity + 1; j++) {\n\t\t\t\t\n\t\t\t\t // base condition for memoization\n\t\t\t\t // first row and first column for 2d matrix is initialised to 0\n\t\t\t\t // profit = 0 when number of items = 0 or bag capacity = 0 \n\t\t\t\t if (i == 0 || j == 0) { \n\t\t\t\t\t dp[i][j] = 0;\n\t\t\t\t } \n\t\t\t\t \n\t\t\t\t // weight of item under consideration is less than capacity of bag\n\t\t\t\t // value of i in 2d matrix corresponds to (i-1)th element in weight and value arrays\n\t\t\t\t // hence, weight(i-1) is compared with the corresponding matrix cell capacity(i.e.column)\n\t\t\t\t \n\t\t\t\t else if (weight[i-1] <= j){\n\t\t\t\t\t \n\t\t\t\t\t // possibility 1: when item having weight(i-1) is added to bag\n\t\t\t\t\t // item having weight(i-1) has value(i-1)\n\t\t\t\t\t // this value added to array value for (i-1)th row and (j-weight[i-1])th column\n\t\t\t\t\t // because :\n\t\t\t\t\t // 1) the total capacity reduced by weight(i-1) after deciding item inclusion\n\t\t\t\t\t // 2) total no.of elements reduced by 1 after deciding item inclusion\n\t\t\t\t\t \n\t\t\t\t\t int a = value[i-1] + dp[i-1][j-weight[i-1]];\n\t\t\t\t\t \n\t\t\t\t\t// possibility 1: when item having weight(i-1) is not added to bag\n\t\t\t\t\t// 1) the total capacity remains as is after deciding item exclusion\n\t\t\t\t\t// 2) total no.of elements reduced by 1 after deciding item exclusion\n\t\t\t\t\t \n\t\t\t\t\t int b = dp[i-1][j];\n\t\t\t\t\t \n\t\t\t\t\t // max of a and b taken to find maximum profit value \n\t\t\t\t\t dp[i][j] = Math.max(a, b);\t \n\t\t\t\t\t \n\t\t\t\t }\n\t\t\t\t \n\t\t\t\t \n\t\t\t\t // weight of item under consideration is more than capacity of bag\n\t\t\t\t // hence item having weight(i-1) is not added to bag\n\t\t\t\t else {\n\t\t\t\t\t \n\t\t\t\t\t// 1) the total capacity remains as is after deciding item exclusion\n\t\t\t\t\t// 2) total no.of elements reduced by 1 after deciding item exclusion\n\t\t\t\t\t \n\t\t\t\t\t dp[i][j] = dp[i-1][j];\n\t\t\t\t\t \n\t\t\t\t }\n\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn dp[weight.length][capacity];\n\t\t\n\t}", "@Override\n\tpublic int compareTo(Cow o) {\n\t\treturn Integer.compare(this.weight, o.weight);\n\t}", "public static Comparator<Trio<Pair<String, Integer>, Pair<String,Integer>, Integer>> sortByWeight()\n\t{\n\t\tComparator<Trio<Pair<String, Integer>, Pair<String, Integer>, Integer>> comp = new Comparator<Trio<Pair<String, Integer>, Pair<String, Integer>, Integer>>() {\n\t\t\n\t\t\tpublic int compare(Trio<Pair<String, Integer>, Pair<String, Integer>, Integer> weight1,\n\t\t\t\t\tTrio<Pair<String, Integer>, Pair<String, Integer>, Integer> weight2) \n\t\t\t{\n\t\t\t\t\n\t\t\t\treturn weight1.getThird() - weight2.getThird();\n\t\t\t}\n\t\t};\n\t\t\n\t\treturn comp;\n\t}", "@Test\n @DisplayName(\"Should multiply the values of the weights by 100, so that they can be represented with integers\")\n void checkRerepresentationOfWeights(){\n PacketFilerReader packetFilerReader = new PacketFilerReader();\n assertEquals(110, packetFilerReader.changeWeightRepresentation(1.10));\n }", "public void updateShop(double currentResources) {\n\t\tfor (ShopItem item : myItems) {\n\t\t\tif (item.getItemValue() <= currentResources) {\n\t\t\t\titem.setCanBuy(true);\n\t\t\t}\n\t\t}\n\t}", "public static int[][] greedy(float[] benefit, float[] weight, int[] knapsackWeight) {\n // number of items\n int itemLen = benefit.length;\n // number of knapsacks\n int knapsackLen = knapsackWeight.length;\n // key: index of item, value: benefit / weight of item\n Map<Integer, Float> benefitPerWeightMap = new TreeMap<>();\n // if item i is included in knapsack j, result[i][j] = 1, otherwise result[i][j] = 0\n int[][] result = new int[itemLen][knapsackLen];\n // initialize the map\n for (int i = 0; i < itemLen; i++) {\n benefitPerWeightMap.put(i, (benefit[i] / weight[i]));\n }\n\n // the value comparator for sorting the entrySet in the map by value in descending order (using lambda)\n Comparator<Map.Entry<Integer, Float>> valueComparator = (o1, o2) -> o2.getValue().compareTo(o1.getValue());\n // convert the map to list to sort it by value comparator\n List<Map.Entry<Integer, Float>> benefitPerWeightList = new ArrayList<>(benefitPerWeightMap.entrySet());\n benefitPerWeightList.sort(valueComparator);\n\n // put items in list into knapsacks\n for (int j = 0; j < knapsackLen; j++) {\n // the items have been put in and ready to be delete\n List<Map.Entry<Integer, Float>> deleteList = new ArrayList<>();\n for (Map.Entry<Integer, Float> entry:\n benefitPerWeightList) {\n int i = entry.getKey();\n if (weight[i] <= knapsackWeight[j]) {\n result[i][j] = 1;\n deleteList.add(entry);\n knapsackWeight[j] -= weight[i];\n }\n }\n // delete the items have been put in\n benefitPerWeightList.removeAll(deleteList);\n }\n return result;\n }", "private static int compareWeighted(ArrayList<ActivityItem> trace, HashMap<Integer, ActivityPrediction> model) {\n Iterator traceIterator = trace.iterator();\n ActivityPrediction predictionItem = null;\n ActivityItem currentTraceItem;\n int result = 0;\n int traceID;\n if (traceIterator.hasNext()) {\n// get the current item in the trace and get the actual model id from it (needed to distinguish between AM and PM)\n currentTraceItem = (ActivityItem) traceIterator.next();\n traceID = ProcessMiningUtil.getProcessModelID(currentTraceItem.getStarttime(), currentTraceItem.getActivityId(), currentTraceItem.getSubactivityId());\n// find start node of the model representation\n// if (model.containsKey(Fitness.getStartID(model))) {\n if (model.containsKey(9990)) {\n predictionItem = model.get(Fitness.getStartID(model));\n }\n if (Fitness.nextActivityPossible(traceID, predictionItem.getEdgeTargetMap())) {\n predictionItem = model.get(traceID);\n }\n while (predictionItem.getActivityID() == traceID && traceIterator.hasNext()) {\n currentTraceItem = (ActivityItem) traceIterator.next();\n traceID = ProcessMiningUtil.getProcessModelID(currentTraceItem.getStarttime(), currentTraceItem.getActivityId(), currentTraceItem.getSubactivityId());\n if (Fitness.nextActivityPossible(traceID, predictionItem.getEdgeTargetMap())) {\n predictionItem = model.get(traceID);\n } else {\n result = 0;\n break;\n }\n if (!traceIterator.hasNext()) {\n// if (Fitness.nextActivityPossible(Fitness.getEndID(model), predictionItem.getEdgeTargetMap())) {\n if (Fitness.nextActivityPossible(9991, predictionItem.getEdgeTargetMap())) {\n result = 1;\n break;\n }\n }\n }\n }\n return result;\n }", "public double knapsack(double[] valuePass, double[] weightPass, double capacity) {\n\n if (valuePass.length == 0) { return 0; }\n value = valuePass;\n weight = weightPass;\n double[] subsets = new double[value.length];\n double takenValue = 0;\n double takenWeight = 0;\n double selection = 0;\n\n // look at each subset of the entire set\n for (int i = 0; i < Math.pow(2, value.length); i++) {\n\n /* INVARIANT: the value/weight values are greater than 0 */\n if (KnapsackMain.debug)\n assert assertionValueWeightGreaterThanZero(takenValue, takenWeight);\n\n // variables for the inner loop\n int itemToTake = value.length - 1;\n double temporaryValue = 0;\n double temporaryWeight = 0;\n\n // wh\n while (subsets[itemToTake] != 0 && itemToTake > 0) {\n subsets[itemToTake] = 0;\n itemToTake = itemToTake - 1;\n }\n\n subsets[itemToTake] = 1;\n\n for (int j = 0; j < value.length; j++) {\n\n // if the item is marked in the subset, then add it to the takenValue\n if (subsets[j] == 1 ) {\n temporaryValue = temporaryValue + value[j];\n temporaryWeight = temporaryWeight + weight[j];\n }\n }\n\n if (temporaryValue > takenValue && temporaryWeight <= capacity) {\n takenValue = temporaryValue;\n takenWeight = temporaryWeight;\n }\n }\n return takenValue;\n }", "private boolean checkStock(){\n int i;\n int inventorySize = inventory.size();\n int count = 0;\n for(i = 0; i < inventorySize; i++){\n count = count + inventory.get(i).getStock();\n\n }\n //System.out.println(\"Count was: \" + count);\n if(count < 1){\n return false;\n }else{\n return true;\n }\n }", "public void testApp() {\n\t\tCapacityItem capacityItem1 = new CapacityItem(\"KAABA00011GN\",\n\t\t\t\t\"2012-12-01\", \"2012-12-31\", \"M10\", 100000, 5000);\n\n\t\t// 12.83 * 0.2 * 0.5 * 100000= 128300.0\n\t\tCapacityItem capacityItem2 = new CapacityItem(\"KEALGYO03ONN\",\n\t\t\t\t\"2012-05-01\", \"2012-05-31\", \"M10\", 100000, 5000);\n\n\t\t// 21.38 * 0.2 * 1.0 * 100000 = 427600.0\n\t\tCapacityItem capacityItem3 = new CapacityItem(\"GEDRAVAS1IIN\",\n\t\t\t\t\"2012-05-01\", \"2012-05-31\", \"M0\", 100000, 5000);\n\t\t// 19.24 * 0.2 * 1.0 * 100000 = 384800.0\n\t\tCapacityItem capacityItem4 = new CapacityItem(\"KETELJCS57EN\",\n\t\t\t\t\"2012-05-01\", \"2012-05-31\", \"M0\", 100000, 5000);\t\t\t\n\n\t\tassertEquals(\"Winter test\", capacityItem1.getSeasonalPrecent(), 0.9);\n\t\tassertEquals(\"Other season test\", capacityItem2.getSeasonalPrecent(),\n\t\t\t\t0.2);\n\n\t\tassertEquals(\"M10 test\", capacityItem1.getTypePrecent(), 0.5);\n\t\tassertEquals(\"M0 test\", capacityItem3.getTypePrecent(), 1.0);\n\n\t\tassertEquals(\"Location type test1\", capacityItem1.getLocationType(),\n\t\t\t\t\"Hazai kilépési\");\n\t\tassertEquals(\"Location type test2\", capacityItem2.getLocationType(),\n\t\t\t\t\"Hazai tárolói belépési\");\n\t\tassertEquals(\"Location type test3\", capacityItem3.getLocationType(),\n\t\t\t\t\"Külföldi belépési\");\n\t\tassertEquals(\"Location type test4\", capacityItem4.getLocationType(),\n\t\t\t\t\"Hazai termelői belépési\");\n\n\t\tassertEquals(\"Fee test1\", capacityItem1.getItemFee(), 159727.5);\n\t\tassertEquals(\"Fee test2\", capacityItem2.getItemFee(), 128300.0);\n\t\tassertEquals(\"Fee test3\", capacityItem3.getItemFee(), 427600.0);\n\t\tassertEquals(\"Fee test4\", capacityItem4.getItemFee(), 384800.0);\n\n\t}", "@Test\n public final void testSmallerThanMax() {\n for (ArrayList<TradeGood> planetsGoods : goods) {\n for (TradeGood good : planetsGoods) {\n assertTrue(good.getPrice() < good.type.mhl);\n }\n }\n }", "Quantity getComparisonValue();", "int Weight();", "public int weight() {\n \treturn weight;\n }", "public void computeItemStats()\n\t{\n\t\tfor(Entry<String,Item> item: urgotItems.getItems().entrySet())\n\t\t{\n\t\t\t// Add every item stat value.\n\t\t\titem.getValue().addItemStats(urgot);\n\t\t}\n\t\t\n\t\tfor(Entry<String,Item> item: urgotItems.getItems().entrySet())\n\t\t{\n\t\t\t// Add passives after all stats have been added.\n\t\t\titem.getValue().applyPassive(urgot);\n\t\t}\n\t}", "public int weight() {\n if (this.weight == null) {\n return 0;\n } else {\n return this.weight;\n } // if/else\n }", "public int weight ();", "public double findSupport(ArrayList<String> items) {\n\t\t\treturn (1.0*findCount(items))/rows.size();\n\t\t}", "public double getTotalWeight() {\n\t\tdouble totalWeight = 0;\n\t\tfor (Item item : purchaseList.getCurrentPurchases()) {\n\t\t\tif(purchaseList.isBagged(item)) {\n\t\t\t\ttotalWeight += item.getWeight();\n\t\t\t}\n\t\t}\n\t\treturn totalWeight;\n\t}", "public boolean canCarry(Item item) {\n\t\tif (rocketWeight + item.getWeight() <= maxWeight) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public double getWeight()\r\n {\r\n return this.weightCapacity;\r\n }", "@Test\n\tpublic void testGetNumberOfItemsInInventory() throws IOException{\n\t\tassertEquals(amount, Model.getNumberOfItemsInInventory(item));\n\t}", "public void carry(Item item) {\n\t\trocketWeight += item.getWeight();\n\t}", "private Item mergeItem(Item newItem, List<Item> items) throws ItemException{\r\n \t\tfor (Item item2 : items) {\r\n \t\t\tif (!item2.isBought() && item2.getName().equals(newItem.getName())) {\r\n\t\t\t\t// sum price\r\n\t\t\t\titem2.setPrice(newItem.getPrice().add(item2.getPrice()));\r\n \t\t\t\tif (newItem.getUnit() == null && item2.getUnit() == null) {\r\n \t\t\t\t\t// Both have no unit --> item has now 2 pieces.\r\n \t\t\t\t\titem2.setQuantity(BigDecimal.valueOf(2), ItemUnit.PIECE);\r\n \t\t\t\t\treturn item2;\r\n \t\t\t\t} else if (newItem.getUnit() == null && item2.getUnit() == ItemUnit.PIECE) {\r\n \t\t\t\t\t// new Item has no unit, existing item has PIECE as unit. add one piece to the existing item.\r\n \t\t\t\t\titem2.setQuantity(item2.getQuantity().add(BigDecimal.ONE), ItemUnit.PIECE);\r\n \t\t\t\t\treturn item2;\r\n \t\t\t\t} else if (newItem.getUnit() != null && newItem.getUnit() == item2.getUnit()) {\r\n \t\t\t\t\t// Both have same unit --> add them together\r\n \t\t\t\t\tBigDecimal newQuantity = newItem.getQuantity().add(item2.getQuantity());\r\n \t\t\t\t\titem2.setQuantity(newQuantity, item2.getUnit());\r\n \t\t\t\t\treturn item2; // we want to save only one item.\r\n \t\t\t\t} else if (ItemUnit.MASSES.contains(newItem.getUnit()) && ItemUnit.MASSES.contains(item2.getUnit())) {\r\n \t\t\t\t\t// Both units are masses. Convert it first to grams and then add them.\r\n \t\t\t\t\tBigDecimal mass1 = newItem.getUnit()==ItemUnit.GRAM ? newItem.getQuantity():newItem.getQuantity().multiply(THOUSAND);\r\n \t\t\t\t\tBigDecimal mass2 = item2.getUnit()==ItemUnit.GRAM ? item2.getQuantity():item2.getQuantity().multiply(THOUSAND);\r\n \t\t\t\t\tBigDecimal finalMass = mass1.add(mass2);\r\n \t\t\t\t\tItemUnit unit = ItemUnit.GRAM;\r\n \t\t\t\t\tif (finalMass.compareTo(THOUSAND) > 0){\r\n \t\t\t\t\t\tfinalMass = finalMass.divide(THOUSAND);\r\n \t\t\t\t\t\tunit = ItemUnit.KILO_GRAM;\r\n \t\t\t\t\t}\r\n \t\t\t\t\titem2.setQuantity(finalMass, unit);\r\n \t\t\t\t\treturn item2;\r\n \t\t\t\t} else {\r\n \t\t\t\t\tthrow new ItemException();\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t\treturn newItem;\r\n \t}", "double getWeight(V v, V w);", "public GiftCardProductQuery weight() {\n startField(\"weight\");\n\n return this;\n }", "public void onCraftMatrixChanged(IInventory par1IInventory)\r\n\t {\r\n\t\t if (par1IInventory == this.tableInventory)\r\n\t\t {\r\n\t\t\t ItemStack itemstack = par1IInventory.getStackInSlot(0);\r\n\t\t\t ItemStack money = par1IInventory.getStackInSlot(1);\r\n\t\t\t int i;\r\n\t\t\t if(money != null && this.isMoney(money))\r\n\t\t\t {\r\n\t\t\t\t int point = (money.itemID == Item.emerald.itemID)? PrepaidEnchantment.EmeraldCost:(money.itemID == Item.ingotGold.itemID)? PrepaidEnchantment.GoldCost: (money.itemID == Item.diamond.itemID)? PrepaidEnchantment.DiamondCost:0;\r\n\t\t\t\t point *= money.stackSize;\r\n\t\t\t\t this.tileEntity.addCurrentMaxLevel(point);\r\n\t\t\t\t par1IInventory.setInventorySlotContents(1, null);\r\n\t\t\t }\r\n\r\n\t\t\t if (itemstack != null && itemstack.isItemEnchantable())\r\n\t\t\t {\r\n\t\t\t\t this.nameSeed = this.rand.nextLong();\r\n\r\n\t\t\t\t if (!this.worldPointer.isRemote)\r\n\t\t\t\t {\r\n\t\t\t\t\t i = 0;\r\n\t\t\t\t\t int j;\r\n\t\t\t\t\t this.Bonus = 0;\r\n\t\t\t\t\t for (j = -1; j <= 1; ++j)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t for (int k = -1; k <= 1; ++k)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t if ((j != 0 || k != 0) && this.worldPointer.isAirBlock(this.posX + k, this.posY, this.posZ + j) && this.worldPointer.isAirBlock(this.posX + k, this.posY + 1, this.posZ + j))\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t this.Bonus += ForgeHooks.getEnchantPower(worldPointer, posX + k * 2, posY, posZ + j * 2);\r\n\t\t\t\t\t\t\t\t this.Bonus += ForgeHooks.getEnchantPower(worldPointer, posX + k * 2, posY + 1, posZ + j * 2);\r\n\r\n\t\t\t\t\t\t\t\t if (k != 0 && j != 0)\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t this.Bonus += ForgeHooks.getEnchantPower(worldPointer, posX + k * 2, posY, posZ + j );\r\n\t\t\t\t\t\t\t\t\t this.Bonus += ForgeHooks.getEnchantPower(worldPointer, posX + k * 2, posY + 1, posZ + j );\r\n\t\t\t\t\t\t\t\t\t this.Bonus += ForgeHooks.getEnchantPower(worldPointer, posX + k, posY, posZ + j * 2);\r\n\t\t\t\t\t\t\t\t\t this.Bonus += ForgeHooks.getEnchantPower(worldPointer, posX + k, posY + 1, posZ + j * 2);\r\n\t\t\t\t\t\t\t\t }\r\n\t\t\t\t\t\t\t }\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t }\r\n\r\n\t\t\t\t\t for (j = 0; j < 3; ++j)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t this.enchantLevels[j] = this.calcItemStackEnchantability(this.rand, j, this.tileEntity.getCurrentMaxLevel(), itemstack);\r\n\t\t\t\t\t }\r\n\r\n\t\t\t\t\t this.detectAndSendChanges();\r\n\t\t\t\t }\r\n\t\t\t }\r\n\t\t\t else\r\n\t\t\t {\r\n\t\t\t\t for (i = 0; i < 3; ++i)\r\n\t\t\t\t {\r\n\t\t\t\t\t this.enchantLevels[i] = 0;\r\n\t\t\t\t }\r\n\t\t\t }\r\n\t\t }\r\n\t }", "public int adjustForCrowding() {\n int deadGuppyCount = 0;\n\n Collections.sort(this.guppiesInPool, new Comparator<Guppy>() {\n @Override\n public int compare(Guppy g1, Guppy g2) {\n return Double.compare(g1.getHealthCoefficient(), g2.getHealthCoefficient());\n }\n });\n\n Guppy weakestGuppy;\n Iterator<Guppy> it = guppiesInPool.iterator();\n double volumeNeeded = this.getGuppyVolumeRequirementInLitres();\n\n while (it.hasNext() && volumeNeeded > this.getVolumeLitres()) {\n weakestGuppy = it.next();\n volumeNeeded -= (weakestGuppy.getVolumeNeeded() / ML_TO_L_CONVERSION);\n\n weakestGuppy.setIsAlive(false);\n\n\n deadGuppyCount++;\n\n }\n return deadGuppyCount;\n }", "@Test\n public void verifyAppleOfferApplied() {\n \tProduct product = new Product(\"Apple\", 0.2);\n \tBasket basket = new Basket();\n \tbasket.getProducts().put(product, 5);\n \tassertTrue(\"Have to get the price of 3 items = 0.6 ==> \", \n \t\t\tDouble.compare(calculator.calculatePrice(basket), 0.6) == 0);\n }", "@Override\r\n\t\t\tpublic double matchingItems(Query query) {\n\t\t\t\treturn 0;\r\n\t\t\t}", "@Override\n public int compareTo(UnconstrainedBidElement o) {\n return Double.compare(o.demandWatt, demandWatt);\n }", "@Override\n public int summarizeQuantity() {\n int sum = 0;\n\n for ( AbstractItem element : this.getComponents() ) {\n sum += element.summarizeQuantity();\n }\n\n return sum;\n }", "@Test\n void conjuredItems() {\n int originalSellIn = 10;\n int originalQuality = 10;\n\n Item[] items = new Item[]{new Item(\"Conjured Mana Cake\", originalSellIn, originalQuality)};\n GildedRose app = new GildedRose(items);\n app.updateQuality();\n\n assertEquals(originalQuality - 2, app.items[0].quality, \"Quality of \\\"Conjured\\\" item should decrease twice as fast\");\n }", "public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(new FileReader(\"talent.in\"));// new InputStreamReader(System.in)); //\n PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter(\"talent.out\")));\n int N = sc.nextInt();\n int minWeight = sc.nextInt();\n int[] weight = new int[N];\n int[] value = new int[N];\n int totalTalent = 0;\n for (int i = 0; i < N; i++) {\n int wt = sc.nextInt();\n int val = sc.nextInt();\n weight[i] = wt;\n value[i] = val;\n totalTalent += val;\n }\n\n // Store, for a given talent, what is the smallest weight used to achieve it?\n int[] dp = new int[totalTalent + 1];\n Arrays.fill(dp, (int) 1e9);\n dp[0] = 0;\n // the min weight to produce 0 talent is 0. However,\n // it is necessary to make everything else big because we can only BUILD\n // from 0\n double bestRatio = 0;\n for (int cow = 0; cow < N; cow++) {\n // look at each cow, and go DOWN THROUGH THE dp array, updating the\n // best weight achievable BEHIND US. This countercurrent motion ensures no repeated\n // counting of a single cow's talents\n int contribution = value[cow];\n int wt = weight[cow];\n for (int talent = totalTalent; talent >= 0; talent--) {\n int boostedTalent = contribution + talent;\n int boostedWeight = dp[talent] + wt;\n // with the min weight of a certain talent,\n // is it possible to get a smaller boostedWeight for a boostedTalent\n if (boostedTalent <= totalTalent) {\n // If we are in bounds,\n if (boostedWeight < dp[boostedTalent]) {\n // and the attempted team has a better weight value\n // then update it!\n // Initially, when everything is 1 billion, this cannot\n // happen except for from the base cases, building outward\n dp[boostedTalent] = boostedWeight;\n\n // At the same time, we can be more efficient by constantly\n // checking if we had enough weight first of all, and\n // second of all had a better talent/weight ratio!\n double ratio = (double) boostedTalent / boostedWeight;\n if (ratio > bestRatio && boostedWeight >= minWeight) {\n bestRatio = ratio;\n }\n }\n }\n }\n }\n\n out.println((int) (1000 * bestRatio));\n out.close();\n }", "private void sortByWeight()\n\t{\n\t\tfor(int i=1; i<circles.size(); i++)\n\t\t{\n\t\t\tPVCircle temp = circles.get(i);\n\t\t\tint thisWeight = circles.get(i).getWeight();\n\t\t\tint j;\n\t\t\tfor(j=i-1; j>=0; j--)\n\t\t\t{\n\t\t\t\tint compWeight = circles.get(j).getWeight();\n\t\t\t\tif(thisWeight < compWeight)\n\t\t\t\t\tbreak;\n\t\t\t\telse\n\t\t\t\t\tcircles.set(j+1, circles.get(j));\n\t\t\t}\n\t\t\tcircles.set(j+1, temp);\n\t\t}\n\t\t\n\t}", "@SuppressWarnings(\"RedundantCast\")\n private static double calculateFoodPotential(AltoClef mod) {\n double potentialFood = 0;\n for (ItemStack food : mod.getItemStorage().getItemStacksPlayerInventory(true)) {\n potentialFood += getFoodPotential(food);\n }\n int potentialBread = (int) (mod.getItemStorage().getItemCount(Items.WHEAT) / 3) + mod.getItemStorage().getItemCount(Items.HAY_BLOCK) * 3;\n potentialFood += Objects.requireNonNull(Items.BREAD.getFoodComponent()).getHunger() * potentialBread;\n // Check smelting\n ScreenHandler screen = mod.getPlayer().currentScreenHandler;\n if (screen instanceof SmokerScreenHandler) {\n potentialFood += getFoodPotential(StorageHelper.getItemStackInSlot(SmokerSlot.INPUT_SLOT_MATERIALS));\n potentialFood += getFoodPotential(StorageHelper.getItemStackInSlot(SmokerSlot.OUTPUT_SLOT));\n }\n return potentialFood;\n }", "public Weight getWeight();", "@Test\n public void notSell() {\n Game game = Game.getInstance();\n Player player = new Player(\"ED\", 4, 4, 4,\n 4, SolarSystems.GHAVI);\n game.setPlayer(player);\n game.getPlayer().getShip().getShipCargo().add(new CargoItem(2, Goods.Water));\n game.getPlayer().getShip().getShipCargo().add(new CargoItem(1, Goods.Food));\n game.getPlayer().getShip().getShipCargo().add(new CargoItem(0, Goods.Furs));\n CargoItem good = game.getPlayer().getShip().getShipCargo().get(2);\n \n int oldCredits = game.getPlayer().getCredits();\n good.getGood().sell(good.getGood(), 1);\n \n CargoItem water = game.getPlayer().getShip().getShipCargo().get(0);\n CargoItem food = game.getPlayer().getShip().getShipCargo().get(1);\n water.setQuantity(2);\n food.setQuantity(1);\n good.setQuantity(0);\n //int P = good.getGood().getPrice(1);\n int curr = game.getPlayer().getCredits();\n //boolean qn = water.getQuantity() == 2 && food.getQuantity() == 1 && good.getQuantity() == 0;\n boolean check = water.getQuantity() == 2;\n System.out.print(curr);\n assertEquals(curr, oldCredits);\n }", "public abstract double totalWeight();", "private boolean ItemStockCalculation(String item) {\n\t\tboolean state = false;\n\t\tif (item.equals(\"F\")) {\n\t\t\tstate = getSetUpMachine().getFork_stock() > 0 ? true : false;\n\t\t\tif (state) {\n\t\t\t\tint mainStock = getSetUpMachine().getStock_size();\n\t\t\t\tgetSetUpMachine().setStock_size(mainStock - 1);\n\n\t\t\t\tint stock = getSetUpMachine().getFork_stock();\n\n\t\t\t\tgetSetUpMachine().setFork_stock(stock - 1);\n\n\t\t\t}\n\t\t} else if (item.equals(\"N\")) {\n\t\t\tstate = getSetUpMachine().getNapkin_stock() > 0 ? true : false;\n\t\t\tif (state) {\n\t\t\t\tint stock = getSetUpMachine().getNapkin_stock();\n\t\t\t\tint mainStock = getSetUpMachine().getStock_size();\n\t\t\t\tgetSetUpMachine().setStock_size(mainStock - 1);\n\t\t\t\tgetSetUpMachine().setNapkin_stock(stock - 1);\n\t\t\t}\n\t\t} else if (item.equals(\"S\")) {\n\t\t\tstate = getSetUpMachine().getSpoon_stock() > 0 ? true : false;\n\t\t\tif (state) {\n\t\t\t\tint stock = getSetUpMachine().getSpoon_stock();\n\t\t\t\tint mainStock = getSetUpMachine().getStock_size();\n\t\t\t\tgetSetUpMachine().setStock_size(mainStock - 1);\n\t\t\t\tgetSetUpMachine().setSpoon_stock(stock - 1);\n\t\t\t}\n\t\t} else if (item.equals(\"K\")) {\n\t\t\tstate = getSetUpMachine().getKnife_stock() > 0 ? true : false;\n\t\t\tif (state) {\n\t\t\t\tint stock = getSetUpMachine().getKnife_stock();\n\t\t\t\tint mainStock = getSetUpMachine().getStock_size();\n\t\t\t\tgetSetUpMachine().setStock_size(mainStock - 1);\n\t\t\t\tgetSetUpMachine().setKnife_stock(stock - 1);\n\t\t\t}\n\t\t}\n\t\treturn state;\n\t}", "private float calculateItemWidth(Item item) {\n return (float) item.getTexture().getWidth() / (float) item.getTexture().getHeight() * INVENTORY_ITEM_SIZE;\n }", "@Override\n\t\t\tpublic int compare(Edge o1, Edge o2) {\n\t\t\t\tif (o1.weight < o2.weight)\n\t\t\t\t\treturn -1;\n\t\t\t\telse if (o1.weight > o2.weight)\n\t\t\t\t\treturn 1;\n\t\t\t\telse\n\t\t\t\t\treturn 0;\n\t\t\t}", "public static void main(String[] args) {\n\t\t\n\t\tint max_size,n; \n \n ArrayList<item> items=new ArrayList();\n\t\t// item 1, value 6, size 1\n items.add(new item(1, 6, 1));\n\t\t// item 2, value 10, size 2\n\t\titems.add(new item(2, 10, 2));\n\t\t// item 3, value 12, size 3\n\t\titems.add(new item(3, 12, 3));\n\t\t// the size of your knapsack\n max_size=5; \n\t\t// sort items by density\n\t\tsortitems(items);\n \n System.out.println(\"The maximum value we can place into the knapsack is \"+ greedyfractionalknapsack(items, max_size));\n\n\n\n}", "public double getWeight() {\n\t\tIterator<Ball> it = this.contents.iterator();\n\t\tdouble retVal = 0;\n\t\twhile (it.hasNext()) {\n\t\t\tretVal += it.next().getWeight();\n\t\t}\n\t\treturn retVal;\n\t}", "@Override\n public void fill(ArrayList<Package> warehousePackages) {\n int diffCounter = 0;\n int checkOnce = -1;\n boolean checkTwice = false;\n boolean sameI = false;\n int overWeight = 0;\n while (!isFull() && (warehousePackages.size() - overWeight) > 0) {\n for (int i = 0; i < warehousePackages.size(); i++) {\n sameI = false;\n int destination = warehousePackages.get(i).getDestination().getZipCode();\n int difference = Math.abs(destination - this.getZipDest());\n if (difference <= diffCounter + 10 && difference >= diffCounter) {\n if (!(warehousePackages.get(i).getWeight() +\n getCurrentWeight() > getMaxWeight())) {\n addPackage(warehousePackages.get(i));\n setCurrentWeight(getCurrentWeight() + warehousePackages.get(i).getWeight());\n warehousePackages.remove(i);\n sameI = true;\n break;\n } else {\n overWeight += 1;\n }\n }\n }\n if (!sameI) {\n diffCounter += 10;\n }\n }\n\n\n }", "public int getWeight()\n {\n return weight;\n }" ]
[ "0.6211985", "0.6123513", "0.6112139", "0.6062029", "0.6009213", "0.600498", "0.5953228", "0.5938186", "0.5882382", "0.5873716", "0.5868808", "0.5858215", "0.5845884", "0.58434653", "0.58112174", "0.5779504", "0.5771379", "0.5765076", "0.5751447", "0.5710051", "0.56724626", "0.5667559", "0.56572723", "0.5639245", "0.5618951", "0.5558558", "0.5553207", "0.5546805", "0.553053", "0.5522522", "0.55181134", "0.551423", "0.5504235", "0.5500767", "0.54942745", "0.5477256", "0.5471613", "0.54709756", "0.54709756", "0.54696095", "0.54623497", "0.5454007", "0.5448104", "0.54069346", "0.540483", "0.5404737", "0.540399", "0.5399303", "0.5398736", "0.5383256", "0.53831285", "0.5373183", "0.5367912", "0.53513795", "0.53450817", "0.5340731", "0.53391767", "0.53275216", "0.53249305", "0.5322441", "0.53152025", "0.5313912", "0.5311998", "0.53076535", "0.52968735", "0.5278206", "0.5266871", "0.5257271", "0.5255345", "0.5254224", "0.52538353", "0.524566", "0.5237362", "0.5237296", "0.5234634", "0.52323115", "0.52305657", "0.52172595", "0.52159", "0.5215687", "0.5214145", "0.5206075", "0.52018476", "0.5194449", "0.5191465", "0.5186587", "0.5184999", "0.5183172", "0.51797324", "0.5172209", "0.5169019", "0.5166462", "0.5161638", "0.51599336", "0.5146721", "0.5137209", "0.5133216", "0.51266474", "0.50964075", "0.50950843" ]
0.6790805
0
Checking all files are in place
@Test public void bookExists() throws Exception { String directory = System.getProperty("user.dir"); File file = new File(directory + "\\src\\main\\java\\com\\mylib\\library\\Book.java"); assertTrue(file.exists()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract boolean copyCheckedFiles();", "private void checkOutFiles(HashMap<String, Blob> allFiles,\n HashMap<String, Blob> curFile)\n throws IOException {\n for (String fileName: allFiles.keySet()) {\n File fileInCWD = new File(Main.CWD, fileName);\n String content = allFiles.get(fileName).getContent();\n checkUntracked(fileName, curFile);\n if (!fileInCWD.exists()) {\n fileInCWD.createNewFile();\n }\n Utils.writeContents(fileInCWD, content);\n }\n for (String fileName: curFile.keySet()) {\n Blob ourBlob = allFiles.get(fileName);\n if (ourBlob == null) {\n File fileInCWD = new File(Main.CWD, fileName);\n if (fileInCWD.exists()) {\n fileInCWD.delete();\n }\n }\n }\n }", "private void updateFiles() {\n\t}", "private boolean commitChecker() {\n\t\tFile file = new File(stagePath);\n\t\tFile[] files = file.listFiles();\n\t\tif (files.length == 0 && untrackedFiles.size() == 0) {\n\t\t\tSystem.out.println(\"No changes added to the commit.\");\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public synchronized boolean checkFileCompletion()\n/* */ {\n/* 49 */ int totalsize = 0;\n/* */ \n/* 51 */ for (FileSubContent subContent : this.downloadManager.getSUB_CONTENTS())\n/* */ {\n/* 53 */ if ((subContent != null) && (subContent.isIsDownloaded()) && (subContent.getContent().length == this.downloadManager.getSUB_SIZE()))\n/* */ {\n/* 55 */ totalsize++;\n/* */ }\n/* */ }\n/* */ \n/* 59 */ if (totalsize == this.downloadManager.getSUB_CONTENTS().size())\n/* */ {\n/* 61 */ System.out.println(\"FileDownloadChecker: got all of the subParts.\");\n/* 62 */ return true;\n/* */ }\n/* */ \n/* */ \n/* 66 */ return false;\n/* */ }", "public void checkProgress() {\n\t\tupdateBitfield();\n\t\tlog(\"Checking progress...\");\n\t\tFileInfo[] fileinfo = files.getFiles();\n\t\tfor (int i = 0; i < fileinfo.length; i++) {\n\t\t\tFileInfo info = fileinfo[i];\n\t\t\tRandomAccessFile file = info.getFileAcces();\n\t\t\ttry {\n\t\t\t\tif (file.length() > 0L) {\n\t\t\t\t\tint pieceIndex = (int) (info.getFirstByteOffset() / files.getPieceSize());\n\t\t\t\t\tint lastPieceIndex = pieceIndex + info.getPieceCount();\n\t\t\t\t\tfor (; pieceIndex < lastPieceIndex; pieceIndex++) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tif (files.getPiece(pieceIndex).checkHash()) {\n\t\t\t\t\t\t\t\t// log(\"Progress Check: Have \" + pieceIndex);\n\t\t\t\t\t\t\t\tif (torrentStatus == STATE_DOWNLOAD_DATA) {\n\t\t\t\t\t\t\t\t\tbroadcastHave(pieceIndex);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tfiles.havePiece(pieceIndex);\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t}\n\t\t}\n\t\tlog(\"Checking progress done\");\n\t}", "private void checkForOrphanFiles() {\n List<String> dbFileNames = getPhotoFilesInDatabase();\n List<String> dirFileNames = getPhotoFilesInDirectory();\n\n // Find files that are not in the db.\n dirFileNames.removeAll(dbFileNames);\n\n // Create a new photo shoot for the orphaned photos.\n if (dirFileNames.size() > 0) {\n long shootId = createOrphanShoot(dirFileNames);\n\n GhostPhotoPreferences.setHasOrphanPhotoShootBeenCreated(getApplicationContext(), true);\n Log.d(LOG_TAG, \"checkForOrphanFiles: Created orphan photo shoot: \" + shootId);\n }\n }", "boolean dealWithFileOverwrite(String filename);", "public void checkIfFilesHaveChanged(NSNotification n) {\n int checkPeriod = checkFilesPeriod();\n \n if (!developmentMode && (checkPeriod == 0 || System.currentTimeMillis() - lastCheckMillis < 1000 * checkPeriod)) {\n return;\n }\n \n lastCheckMillis = System.currentTimeMillis();\n \n log.debug(\"Checking if files have changed\");\n for (Enumeration e = _lastModifiedByFilePath.keyEnumerator(); e.hasMoreElements();) {\n File file = new File((String)e.nextElement());\n if (file.exists() && hasFileChanged(file)) {\n fileHasChanged(file);\n }\n }\n }", "public final void mo14831s() {\n Iterator it = ((ArrayList) mo14817d()).iterator();\n while (it.hasNext()) {\n File file = (File) it.next();\n if (file.listFiles() != null) {\n m6739b(file);\n long c = m6740c(file, false);\n if (((long) this.f6567b.mo14797a()) != c) {\n try {\n new File(new File(file, String.valueOf(c)), \"stale.tmp\").createNewFile();\n } catch (IOException unused) {\n f6563c.mo14884b(6, \"Could not write staleness marker.\", new Object[0]);\n }\n }\n for (File b : file.listFiles()) {\n m6739b(b);\n }\n }\n }\n }", "private static boolean needsUpdate(File file, File oldFile, JsonObject old_manifest, JsonObject obj, long size, String hash) {\n try {\n boolean check1 = !oldFile.exists();\n if (check1) return true;\n boolean check2 = !file.exists();\n if (check2) return true;\n boolean check3 = file.length() != size;\n if (check3) return true;\n boolean check4 = old_manifest == null;\n if (check4) return true;\n boolean check5 = old_manifest.get(\"files\") == null;\n if (check5) return true;\n boolean check6 = getHashFromPath(old_manifest.get(\"files\").getAsJsonArray(), obj.get(\"path\").getAsString()) == null;\n if (check6) return true;\n boolean check7 = !getHashFromPath(old_manifest.get(\"files\").getAsJsonArray(), obj.get(\"path\").getAsString()).equals(hash);\n if (check7) return true;\n\n return false;\n } catch (Exception ex) {\n StringWriter sw = new StringWriter();\n PrintWriter pw = new PrintWriter(sw);\n ex.printStackTrace(pw);\n log(sw.toString());\n return true;\n }\n }", "public void execute() {\n\t\tfinal File toCheckDirectory = new File(toCheck);\n\t\tfinal File checkInDirectory = new File(checkIn);\n\t\tfinal List<File> toCheckFiles = new ArrayList<>();\n\t\tfinal List<File> checkInFiles = new ArrayList<>();\n\n\t\tline();\n\t\treadFiles(toCheckDirectory, toCheckFiles);\n\t\tSystem.out.println(\"Files to check : \" + toCheckFiles.size());\n\t\treadFiles(checkInDirectory, checkInFiles);\n\t\tSystem.out.println(\"Files for check: \" + checkInFiles.size());\n\t\tline();\n\t\tSystem.out.println(\"\");\n\t\ttoCheckFiles.stream().forEach(file -> {\n\t\t\tfinal String name = file.getName();\n\t\t\tfinal List<File> foundList = checkInFiles.stream().filter( //\n\t\t\t\t\tcheck -> check.getName().equalsIgnoreCase(name)).collect(Collectors.toList());\n\n\t\t\tif (foundList == null || foundList.isEmpty()) {\n\t\t\t\tSystem.out.println(\"Not found: \" + file.getAbsolutePath());\n\t\t\t\tnotFound++;\n\t\t\t} else {\n\t\t\t\tfinal int size = foundList.size();\n\n\t\t\t\tif (size > 1) {\n\t\t\t\t\tSystem.out.println(\"\" + size + \" \" + file.getAbsoluteFile());\n\t\t\t\t\tif (size < PRINT_EACH_FILE_IF_LESS_THAN_THIS_NUMBER) {\n\t\t\t\t\t\tfoundList.stream().forEach(foundFile -> {\n\t\t\t\t\t\t\tSystem.out.println(\"- \" + foundFile.getAbsolutePath());\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tSystem.out.println(\"\");\n\t\tline();\n\t\tSystem.out.println(\"Not found: \" + notFound);\n\t\tSystem.out.println(\"Done.\");\n\t\tline();\n\t}", "boolean hasCompleteFile();", "private static boolean updateFilePermissions(File source, File target, boolean targetAlreadyExisted)\n\t\t\tthrows DeploymentException {\n\t\tSet<PosixFilePermission> permissionsFrom = FilesUtils.getPermissions(source);\n\t\tSet<PosixFilePermission> permissionsTo = FilesUtils.getPermissions(target);\n\n\t\t// update permission if necessary\n\t\tif (!CollectionUtils.isEqualCollection(permissionsFrom, permissionsTo)) {\n\t\t\tif (targetAlreadyExisted)\n\t\t\t\tlog.info(\"updating file permissions {}\", target);\n\t\t\tFilesUtils.updatePermissions(target, permissionsFrom);\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "private void checkFileStatus() throws CustomException, IOException\n\t{\n\t\t//For all .mgf files\n\t\tfor (int i=0; i<mgfFiles.size(); i++)\n\t\t{\n\n\t\t\tString resultFileName = \n\t\t\t\t\tmgfFiles.get(i).substring(0,mgfFiles.get(i).lastIndexOf(\".\"))+\"_Results.csv\";\n\t\t\t//TODO: Cannot write files if checking for file. \n\t\t\t/*\n\t\t\tif (isFileUnlocked(resultFileName))\n\t\t\t\tthrow new CustomException(\"Please close \"+resultFileName, null);\n\t\t\t */\n\t\t}\n\n\t}", "private void checkDuplicateOfFile(Iterable<FileInfo> files, DuplicateDataDTO data) {\n for(FileInfo nextFile: files) {\n for(FileInfo nextFile2: files) {\n if(nextFile.duplicate(nextFile2)) {\n LOG.info(\"Duplicate - {}\", nextFile);\n\n processDuplicate(nextFile,data);\n }\n }\n }\n }", "protected abstract boolean deleteCheckedFiles();", "public void tempcheck(){\r\n \t//clear last data\r\n if(workplace!=null){\r\n \tFile temp = new File(workplace +\"/temp\");\r\n \tif(temp.exists()){\r\n \t\tFile[] dels = temp.listFiles();\r\n \t\tif(dels[0]!=null){\r\n \t\t\tfor(int i=0; i<dels.length; i++){\r\n \t\t\t\tif(dels[i].isFile()){\r\n \t\t\t\t\tdels[i].delete();\r\n \t\t\t\t}else{\r\n \t\t\t\t\tFile[] delss = dels[i].listFiles();\r\n \t\t\t\t\tif(delss[0]!=null){\r\n \t\t\t\t\t\tfor(int k=0; k<delss.length; k++){\r\n \t\t\t\t\t\t\tdelss[k].delete();\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t}\r\n \t\t\t\t\tdels[i].delete();\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t}\r\n \ttemp.delete();\r\n }\r\n }", "@Test\n public void checkIfFileHasBeenRenamedOrNot(){\n boolean actual = rename.renameFile(\"jazz\",\"tomsmith\");\n assertTrue(actual);\n }", "public void compareAllFiles(){\n\n // setting up objects for comparing files\n System.out.println(\"Start of checking process of all files\");\n String file = \"\";\n int fileErrors = 0;\n FileWriter logFile = null;\n BufferedWriter logFileOut = null;\n\n try {\n logFile = new FileWriter(\"java_20/server/logFile.txt\");\n logFileOut = new BufferedWriter(logFile);\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n\n // for loop to check over all files and updates logfiles\n for (int currentFile = 1; currentFile <= fileCount; currentFile++) {\n file = \"java_20/server/receivedFiles/receivedFile\"+currentFile+\".txt\";\n\n try {\n if (compareFile(file,\"java_20/server/standardFile.txt\") == false ){\n fileErrors++;\n logFileOut.write(\"ReceivedFile\"+currentFile+\":\\tERROR!!!!\\n\");\n }\n else\n logFileOut.write(\"ReceivedFile\"+currentFile+\":\\tpassed\\n\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }\n\n // closing files and messages\n try {\n logFileOut.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n System.out.println(\"Number of errors found: \" + fileErrors);\n System.out.println(\"check \\'logFile.txt\\' for details\");\n\n }", "public void mo83570c() {\n File[] listFiles;\n File file = new File(this.f60297d);\n if (file.isDirectory() && (listFiles = file.listFiles()) != null && listFiles.length >= this.f60294a) {\n Arrays.sort(listFiles, this.f60295b);\n for (int i = 0; i < listFiles.length && listFiles.length >= this.f60294a; i++) {\n File file2 = listFiles[i];\n if (!this.f60299f.contains(file2)) {\n ArgusLogger.m85574b(String.format(C6969H.m41409d(\"G4D8AC619BE22AF20E809D047FEE1C6C47DC3D008AD3FB969E71DD05BE6EAD1D26DC3D008AD3FB969EA079D41E6A5D1D26880DD1FBB70E36CF547\"), file2.getPath()));\n mo83569b(Collections.singleton(file2));\n }\n }\n }\n }", "@Override\n protected void doOKAction() {\n super.doOKAction();\n\n HashMap<VcsRoot, ArrayList<VirtualFile>> checked = getCheckedFiles();\n for (Map.Entry<VcsRoot, ArrayList<VirtualFile>> entry : checked.entrySet()) {\n for (VirtualFile file : entry.getValue()) {\n ExternalExec.removeFileFromTracking(file, entry.getKey());\n }\n }\n\n project.getMessageBus().syncPublisher(TRACKED_IGNORED_REFRESH).refresh();\n }", "private static INodeFile[] verifySrcFiles(FSDirectory fsd, String[] srcs,\n INodesInPath targetIIP, FSPermissionChecker pc) throws IOException {\n Set<INodeFile> si = new LinkedHashSet<>();\n final INodeFile targetINode = targetIIP.getLastINode().asFile();\n final INodeDirectory targetParent = targetINode.getParent();\n // now check the srcs\n for (String src : srcs) {\n final INodesInPath iip = fsd.getINodesInPath4Write(src);\n // permission check for srcs\n if (pc != null) {\n fsd.checkPathAccess(pc, iip, FsAction.READ); // read the file\n fsd.checkParentAccess(pc, iip, FsAction.WRITE); // for delete\n }\n\n final INode srcINode = iip.getLastINode();\n final INodeFile srcINodeFile = INodeFile.valueOf(srcINode, src);\n // make sure the src file and the target file are in the same dir\n if (srcINodeFile.getParent() != targetParent) {\n throw new HadoopIllegalArgumentException(\"Source file \" + src\n + \" is not in the same directory with the target \"\n + targetIIP.getPath());\n }\n // source file cannot be the same with the target file\n if (srcINode == targetINode) {\n throw new HadoopIllegalArgumentException(\"concat: the src file \" + src\n + \" is the same with the target file \" + targetIIP.getPath());\n }\n\n if(srcINodeFile.getStoragePolicyID() == HdfsConstants.DB_STORAGE_POLICY_ID) {\n throw new HadoopIllegalArgumentException(\"concat: source file \" + src\n + \" is stored in DB.\");\n }\n\n // source file cannot be under construction or empty\n if(srcINodeFile.isUnderConstruction() || srcINodeFile.numBlocks() == 0) {\n throw new HadoopIllegalArgumentException(\"concat: source file \" + src\n + \" is invalid or empty or underConstruction\");\n }\n // source file's preferred block size cannot be greater than the target\n // file\n if (srcINodeFile.getPreferredBlockSize() >\n targetINode.getPreferredBlockSize()) {\n throw new HadoopIllegalArgumentException(\"concat: source file \" + src\n + \" has preferred block size \" + srcINodeFile.getPreferredBlockSize()\n + \" which is greater than the target file's preferred block size \"\n + targetINode.getPreferredBlockSize());\n }\n si.add(srcINodeFile);\n }\n \n // make sure no two files are the same\n if (si.size() < srcs.length) {\n // it means at least two files are the same\n throw new HadoopIllegalArgumentException(\n \"concat: at least two of the source files are the same\");\n }\n return si.toArray(new INodeFile[si.size()]);\n }", "public boolean checkSumsChanged(String path) {\n Set<String> newCheckSums = new HashSet<>();\n AmazonS3Client s3Client = new AmazonS3Client(new ProfileCredentialsProvider());\n /* Get the last output folder */\n ListObjectsRequest listObjectsRequest = new ListObjectsRequest()\n .withBucketName(BUCKET_NAME)\n .withPrefix(path);\n ObjectListing objectListing;\n\n /* Go through the files and check if they are already present in the Set\n * If not, it means that the output has changed\n * The set holds a list of the checksums of the previous\n * iteration to test against the present iteration\n */\n boolean changed = false;\n do {\n objectListing = s3Client.listObjects(listObjectsRequest);\n for (S3ObjectSummary objectSummary :\n objectListing.getObjectSummaries()) {\n if (objectSummary.getKey().contains(\"part\")) {\n String checkSum = objectSummary.getETag().toString();\n if (!checkSums.contains(checkSum)) {\n changed = true;\n }\n newCheckSums.add(checkSum);\n }\n }\n listObjectsRequest.setMarker(objectListing.getNextMarker());\n } while (objectListing.isTruncated());\n\n /* If at least one file has changed, then it means we need to still keep going */\n if (changed) {\n checkSums = newCheckSums;\n return true;\n }\n return false;\n }", "@Test\n @Ignore\n public void testFileTimestampChangeForManualTest() {\n \t// prepare test folder\n \tFile srcFolder = new File(\"C:\\\\bitlocker\\\\job_test\");\n \tFile targetFolder = new File(\"C:\\\\bitlocker\\\\job\");\n \ttry {\n \t\tif (targetFolder.exists()) FileUtils.cleanDirectory(targetFolder);\n\t\t\tFileUtils.copyDirectory(srcFolder, targetFolder);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n \tassertThat(targetFolder.exists(), is(true));\n \t\n \tint retentionDays = findAssetRetentionDays(META_INBOUNDFILE);\n \tassertThat(retentionDays, is(14));\n \t\n \t// change last modified date for testing files\n Date testingFileDate = getRetentionDate(retentionDays+1);\t// 1 day older\n for (File file: targetFolder.listFiles()) {\n \tfile.setLastModified(testingFileDate.getTime()); // update date\n }\n }", "private boolean compressOldFiles() {\n long now = System.currentTimeMillis();\n int count = 0;\n for (LogFile lf : knownFiles) {\n // avoid compressing entire archive at once\n if (lf.canCompress(now) && (count++ < 5)) {\n compress(lf.path);\n }\n }\n return count > 0;\n }", "public void testCheckinFile() throws Exception {\n System.out.print(\".. Testing checking in a file ..\");\n String filesystem = \"VSS \" + workingDirectory + File.separator + \"Work\";\n Node filesystemNode = new Node(new ExplorerOperator().repositoryTab().getRootNode(), filesystem);\n Node A_FileNode = new Node( filesystemNode, \"A_File [Locally Modified] (\" + userName + \")\");\n new Action(VERSIONING_MENU + \"|\" + CHECK_IN, CHECK_IN).perform(A_FileNode);\n CheckinCommandOperator checkinCommand = new CheckinCommandOperator(\"A_File.java\");\n checkinCommand.setChangeDescription(\"Three lines have changed.\");\n checkinCommand.ok();\n Thread.sleep(2000);\n A_FileNode = new Node(filesystemNode, \"A_File [Current]\");\n File A_File = new File(workingDirectory + File.separator + \"Work\" + File.separator + \"A_File.java\");\n if (A_File.canWrite()) captureScreen(\"Error: A_File.java remained read-write after check in.\");\n System.out.println(\". done !\");\n }", "@Test\r\n public void testGetChangedFileList() throws IOException {\n helper.exportRevChangedFiles(PJ_ROOT, 1, LOCAL_ROOT);\r\n helper.exportRevChangedFiles(PJ_ROOT, 4, LOCAL_ROOT);\r\n //helper.exportRevChangedFiles(PJ_ROOT, -1, LOCAL_ROOT);\r\n //helper.exportRevChangedFiles(9, 9, true);\r\n }", "public static boolean isValid(String outputPathName, String allScripts){\n try{\n File file = new File(outputPathName);\n FileReader fr = new FileReader(file);\n System.out.println(\"The file was not created. There is a file that has the same name. Try again.\\n\");\n return false;\n }\n catch (Exception ex){\n try{\n BufferedWriter fw = new BufferedWriter(new FileWriter(outputPathName, true));\n\n fw.write(allScripts);\n fw.flush();\n\n fw.close();\n return true;\n }\n catch (Exception e){\n System.out.println(\"The file was not created. The path is wrong. Try again.\\n\");\n return false;\n }\n }\n }", "private void setNewStatusIfNeeded() {\n \t\tfor(FileDiffDirectory dir : directories ) {\n \t\t\tif (dir.getState() != DiffState.SAME) {\n \t\t\t\tsetState(DiffState.CHANGED);\n \t\t\t\treturn;\n \t\t\t}\n \t\t}\n \t\t\n \t\tfor(FileDiffFile file : files ) {\n \t\t\tif (file.getState() != DiffState.SAME) {\n \t\t\t\tsetState(DiffState.CHANGED);\n \t\t\t\treturn;\n \t\t\t}\n \t\t}\n \t}", "public boolean copy(File fileToLoadOrig, boolean withDuplicate, List<String> passedFiles) {\n //Let us get the current Date\n Date date = new Date();\n LocalDate localDate = date.toInstant().atZone(ZoneId.systemDefault()).toLocalDate();\n int year = localDate.getYear();\n int month = localDate.getMonthValue();\n int day = localDate.getDayOfMonth();\n\n String destDirectoryPath = year + \"-\" + month + \"-\" + day;\n\n //check if directory is created\n\n File destDirecoty = new File(\"./testing/dest/\" + destDirectoryPath);\n System.out.println(\"the file path:\" + destDirecoty.getAbsolutePath());\n\n if (!destDirecoty.exists()) {\n System.out.println(\"creating a new directory with path:\" + destDirecoty.getAbsolutePath());\n boolean created = destDirecoty.mkdirs();\n System.out.println(\"is file created:\" + created);\n }\n System.out.println(\"Directory is created\");\n //Great, now let us check if the file already in the dirctory\n\n\n boolean duplicateFound = false;\n\n\n File[] sourceFiles = fileToLoadOrig.listFiles();\n\n for (File sourceFile : sourceFiles) {\n //let us get the file extension\n String sourceFileType = \"\";\n int location = sourceFile.getName().lastIndexOf('.');\n if (location > 0) {\n sourceFileType = sourceFile.getName().substring(location + 1);\n }\n //cool, let us go on\n String nestedDirectory;\n switch (sourceFileType) {\n case \"txt\":\n nestedDirectory = \"txt\";\n break;\n case \"pdf\":\n nestedDirectory = \"pdf\";\n break;\n case \"xls\":\n nestedDirectory = \"xls\";\n default:\n nestedDirectory = \"others\";\n }\n\n //check if the type directory is created or not\n File nestedDirecotyFile = new File(destDirecoty.getAbsolutePath()+\"/\" + nestedDirectory);\n System.out.println(\"the file path:\" + nestedDirecotyFile.getAbsolutePath());\n\n if (!nestedDirecotyFile.exists()) {\n System.out.println(\"creating a new directory with path:\" + nestedDirecotyFile.getAbsolutePath());\n boolean created = nestedDirecotyFile.mkdirs();\n System.out.println(\"is file created:\" + created);\n }\n\n\n\n File[] destinationFiles = nestedDirecotyFile.listFiles();\n\n for (File destinationFile : destinationFiles) {\n if (destinationFile.getName().equals(sourceFile.getName())) {\n if (withDuplicate) {\n int maxSeqNum = 0;\n //Let us find the last sequence of the destinationFile\n for (File fileForDuplicate : destinationFiles) {\n String[] fileParts = fileForDuplicate.getName().split(\"_\");\n if (fileParts.length == 2) {\n //got a split\n if (fileParts[0].equals(destinationFile.getName())) {\n maxSeqNum = Math.max(maxSeqNum, Integer.parseInt(fileParts[1]));\n }\n }else{\n new RuntimeException(\"Files were found with multiple _\");\n }\n }\n String newFilePath = sourceFile.getName() + \"_\" + (maxSeqNum + 1);\n try {\n FileUtils.copyFile(sourceFile, new File(nestedDirecotyFile.getAbsoluteFile() + \"/\" + newFilePath));\n passedFiles.add(sourceFile.getAbsolutePath());\n } catch (IOException e) {\n e.printStackTrace();\n return false;\n }\n } else {\n // let us delete the destinationFile and replace it\n destinationFile.delete();\n try {\n FileUtils.copyFile(sourceFile, new File(nestedDirecotyFile.getAbsoluteFile() + \"/\" + sourceFile.getName()));\n passedFiles.add(sourceFile.getAbsolutePath());\n } catch (IOException e) {\n e.printStackTrace();\n return false;\n }\n }\n break;\n } else {\n try {\n FileUtils.copyFile(sourceFile, new File(nestedDirecotyFile.getAbsoluteFile() + \"/\" + sourceFile.getName()));\n passedFiles.add(sourceFile.getAbsolutePath());\n } catch (IOException e) {\n e.printStackTrace();\n return false;\n }\n }\n }\n\n try {\n FileUtils.copyFile(sourceFile, new File(nestedDirecotyFile.getAbsoluteFile() + \"/\" + sourceFile.getName()));\n passedFiles.add(sourceFile.getAbsolutePath());\n } catch (IOException e) {\n e.printStackTrace();\n return false;\n }\n\n }\n return true;\n }", "public void checkWithCorrectResults() {\n\t\tFile correctDir = new File (correctDir() + \"/\" + assignmentNo());\r\n\r\n//\t\tFile testDir = new File (\"Test Data/Test 110 F13 Assignments/Assignment3\");\r\n\t\tFile testDir = new File (testDir() + \"/\" + assignmentNo());\r\n\r\n\t\tString[] ignoreSuffixesArray = {\".zip\", \".ini\", \".json\", \"Submission attachment(s)\"};\r\n//\t\tString[] ignoreSuffixesArray = {\".zip\", \".ini\", \".json\"};\r\n\r\n\t\tList<String> ignoreSuffixesList = Arrays.asList(ignoreSuffixesArray);\r\n\t\tSystem.out.println(DirectoryUtils.compare (correctDir, testDir, ignoreSuffixesList));\r\n\t}", "boolean hasReinitializeFile();", "public void commit()\n\t{\n\t\tif (committed)\n\t\t\treturn;\n\t\t// handle the error case first\n\t\tif (error)\n\t\t{\n//\t\t\tSystem.out.println(\"Error - removing \" + source + \" and \" + generates);\n\t\t\tif (source.exists())\n\t\t\t\tsource.delete();\n\t\t\tif (generates.exists())\n\t\t\t\tgenerates.delete();\n\t\t}\n\t\telse if (source.exists() && generates.exists()) // the typical something might have changed case\n\t\t{\n\t\t\tif (dirty)\n\t\t\t{ // they are different, move ...\n//\t\t\t\tSystem.out.println(\"Built - moving \" + generates + \" to \" + source);\n\t\t\t\tboolean fd = source.delete();\n\t\t\t\tif (!fd)\n\t\t\t\t\tthrow new UtilException(\"Could not delete the file \" + source + \" when renaming \" + generates);\n\t\t\t\tboolean renameWorked = generates.renameTo(source);\n\t\t\t\tif (!renameWorked)\n\t\t\t\t\tthrow new UtilException(\"Could not rename \" + generates + \" to \" + source);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n//\t\t\t\tSystem.out.println(\"No change - removing \" +generates);\n\t\t\t\t// they're the same, the new one is uninteresting\n\t\t\t\tgenerates.delete();\n\t\t\t}\n\t\t}\n\t\telse if (!source.exists() && generates.exists()) // we didn't have a comparison file\n\t\t{\n//\t\t\tSystem.out.println(\"Clean build - saving \" + generates + \" as \" + source);\n\t\t\tboolean renameWorked = generates.renameTo(source);\n\t\t\tif (!renameWorked)\n\t\t\t\tthrow new UtilException(\"Could not rename \" + generates + \" to \" + source);\n\t\t}\n\t\telse\n\t\t\tthrow new UtilException(\"I don't think this case should be able to happen: Comparing \" + source + (source.exists()?\"(exists)\":\"(missing)\") + \" \" + generates + (generates.exists()?\"(exists)\":\"(missing)\"));\n\t\tcommitted = true;\n\t}", "private List<String> newChangNotStaged(HashMap<String, Blob> allFiles) {\n ArrayList<String> result = new ArrayList<>();\n for (String fileName: Utils.plainFilenamesIn(Main.CWD)) {\n Blob ourBlob = allFiles.get(fileName);\n File fileInCWD = new File(Main.CWD, fileName);\n String content = Utils.readContentsAsString(fileInCWD);\n if (ourBlob != null) {\n if (!ourBlob.getContent().equals(content)\n && !isStaged(fileName)) {\n String elem = fileName + \" (modified)\";\n result.add(elem);\n }\n allFiles.remove(fileName);\n }\n }\n return result;\n }", "private void checkFileNames(DSpaceRunnable dSpaceRunnable, List<MultipartFile> files) {\n List<String> fileNames = new LinkedList<>();\n for (MultipartFile file : files) {\n String fileName = file.getOriginalFilename();\n if (fileNames.contains(fileName)) {\n throw new UnprocessableEntityException(\"There are two files with the same name: \" + fileName);\n } else {\n fileNames.add(fileName);\n }\n }\n\n List<String> fileNamesFromOptions = dSpaceRunnable.getFileNamesFromInputStreamOptions();\n if (!fileNames.containsAll(fileNamesFromOptions)) {\n throw new UnprocessableEntityException(\"Files given in properties aren't all present in the request\");\n }\n }", "public void checkoutfile(String file) {\n\n if (!head.getContents().containsKey(file)) {\n Utils.message(\"File does not exist in that commit.\");\n throw new GitletException();\n }\n File curr = new File(file);\n Utils.writeContents(curr, head.getContents().get(file).getContent());\n }", "public void checkMakeFile(String name) throws FileExistsException\n\t{\n\t\tIterable<Position<FileElement>> toCheck = fileSystem.children(currentFileElement);\n\t\tif (toCheck != null)\n\t\t{\n\t\t\tfor (Position<FileElement> fe : toCheck )\n\t\t\t{\n\t\t\t\tif (fe.toString().equals(name))\n\t\t\t\t{\n\t\t\t\t\tthrow new FileExistsException(name);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public boolean hasFiles() {\n if (arquivos.size() > 0) {\n return true; \n }\n return false;\n }", "public int fileSaver(MultipartFile[] files) throws IOException {\n\n MultipartFile[] checkedFiles = fileHandler.checkedFiles(files);\n\n int counter = 0;\n\n if (checkedFiles.length > 0) {\n String folder = checkedFiles[0].getOriginalFilename()\n .substring(0, checkedFiles[0].getOriginalFilename()\n .lastIndexOf('/'));\n\n String newFolderName = uploadUtil.createFolderName(folder);\n\n // rethrows IOException for initFolder\n initFolder(newFolderName);\n\n for (MultipartFile m : checkedFiles) {\n\n String filename = StringUtils.cleanPath(m.getOriginalFilename()\n .substring(m.getOriginalFilename().lastIndexOf('/') + 1));\n\n try {\n Files.copy(m.getInputStream(), Paths.get(uploadFolder + \"/\" + newFolderName)\n .resolve(filename));\n counter++;\n } catch (IOException e) {\n return counter;\n }\n }\n\n return counter;\n\n } else {\n return counter;\n }\n\n }", "protected void validateFile() {\r\n\t\tFile f = new File(FileUltil.joinPath(dOutputFolder, dFileName));\r\n\t\tif (f.exists() && !f.isDirectory()) {\r\n\t\t\tdFileName = \"Copy of \" + dFileName;\r\n\t\t\tvalidateFile();\r\n\t\t}\r\n\t}", "private boolean isExistingFile(String filename, String[] array)\n\t{\n\t\tfor (String temp : array)\n\t\t{\n\t\t\tif (temp.equals(filename) == true)\n\t\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "void writeGame(Game game, List<File> existingFiles) throws MoveAlreadyWrittenException, ResultAlreadyWrittenException;", "private void borraArchivos() {\n boolean isBorrado;\n for (BeanCargaOmisos dato : this.listadoCargaOmisos) {\n String dirBitacora = dato.getRutaEnBitacora();\n String dirRepositorio = dato.getRutaEnRepositorio();\n if (dirBitacora != null && !dirBitacora.isEmpty()) {\n File archivoBitacora = new File(dirBitacora);\n if (archivoBitacora.exists()) {\n isBorrado = archivoBitacora.delete();\n getLogger().debug(isBorrado);\n }\n }\n if (dirRepositorio != null && !dirRepositorio.isEmpty()) {\n File archivoRepositorio = new File(dirRepositorio);\n if (archivoRepositorio.exists()) {\n isBorrado = archivoRepositorio.delete();\n getLogger().debug(isBorrado);\n }\n }\n }\n }", "private void removeOldFiles() {\n Set<File> existingFiles = new HashSet<File>();\n collectFiles(existingFiles);\n for (ResourceResponse r : cacheResponseProcessor.getResources()) {\n String remotePathId = r.pathId;\n String remotePath = localClasspathProcessor.getLocalClasspath().get(remotePathId);\n String localPath = localPathTranslation.get(remotePath);\n File localFile = new File(localPath);\n File file = new File(localFile, r.name);\n existingFiles.remove(file);\n }\n }", "public void verify() {\n lblSourcePackageFolder();\n lblClasspath();\n btAddJARFolder();\n btRemove();\n lblOutputFolderOrJAR();\n txtOutputFolder();\n btBrowse();\n lstClasspath();\n cboSourcePackageFolder();\n btMoveUp();\n btMoveDown();\n lblOnlineError();\n }", "@Test\n public void fileAddedViaHgShouldBeAddedInChangeList() throws Exception {\n final VirtualFile vf = createFileInCommand(AFILE, INITIAL_FILE_CONTENT);\n ProcessOutput processOutput = addAll();\n LOG.debug(processOutput.getStdout());\n LOG.debug(processOutput.getStderr());\n myChangeListManager.checkFilesAreInList(true, vf);\n }", "void handleChanged(Collection<AGStoredFile> existingFiles, Collection<AGStoredFile> changedFiles);", "protected void ensureExistence() {\n if (folder.exists()) return;\n\n Base.showWarning(_(\"Sketch Disappeared\"),\n _(\"The sketch folder has disappeared.\\n \" +\n \"Will attempt to re-save in the same location,\\n\" +\n \"but anything besides the code will be lost.\"), null);\n try {\n folder.mkdirs();\n modified = true;\n\n for (int i = 0; i < codeCount; i++) {\n code[i].save(); // this will force a save\n }\n calcModified();\n\n } catch (Exception e) {\n Base.showWarning(_(\"Could not re-save sketch\"),\n _(\"Could not properly re-save the sketch. \" +\n \"You may be in trouble at this point,\\n\" +\n \"and it might be time to copy and paste \" +\n \"your code to another text editor.\"), e);\n }\n }", "private void deleteIfNecessary(HashMap<String, Blob> allFiles,\n HashMap<String, Blob> filesInCurr) {\n for (String fileName: filesInCurr.keySet()) {\n if (allFiles.get(fileName) == null) {\n File fileInCWD = new File(Main.CWD, fileName);\n if (fileInCWD.exists()) {\n fileInCWD.delete();\n }\n }\n }\n }", "boolean hasUpdateInodeFile();", "public void checkFile() {\n\t\tFile file = new File(\"src/Project11Problem1Alternative/names.txt\");\n\t\tSystem.out.println(file.exists() ? \"Exists!\" : \"Doesn't exist!\");\n\t\tSystem.out.println(file.canRead() ? \"Can read!\" : \"Can't read!\");\n\t\tSystem.out.println(file.canWrite() ? \"Can write!\" : \"Can't write!\");\n\t\tSystem.out.println(\"Name: \" + file.getName());\n\t\tSystem.out.println(\"Path: \" + file.getPath());\n\t\tSystem.out.println(\"Size: \" + file.length() + \" bytes\");\n\t}", "private void checkFileCreation(String name) throws IOException {\n byte[] buff = \"some bytes\".getBytes();\n writeFile(name, buff);\n assertTrue(Arrays.equals(buff, readFile(name, buff.length)));\n }", "boolean hasFileInfo();", "boolean hasFileInfo();", "@Test\n public void testInitialCleanup() throws Exception{\n File f = new File(path);\n assertTrue(f.exists());\n assertTrue(f.isDirectory());\n File[] files = f.listFiles();\n // Expect all files were deleted\n assertTrue(files.length == 0);\n }", "static boolean m1(Path path) {\n\t\tif (Files.exists(path))\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "boolean allFileIncluded(File file){\n\t\tif(file.getName().length()==0) return false;\n\t\treturn ((file.lastModified() > OLDEST_DATE));\n\t}", "private void expungeAllWatchListsFiles()\r\n {\r\n debug(\"expungeAllWatchListsFiles() - Delete ALL WATCHLIST Files\");\r\n\r\n java.io.File fileList = new java.io.File(\"./\");\r\n String rootName = getString(\"WatchListTableModule.edit.watch_list_basic_name\");\r\n String[] list = fileList.list(new MyFilter(rootName));\r\n for (int i = 0; i < list.length; i++)\r\n {\r\n StockMarketUtils.expungeListsFile(list[i]);\r\n }\r\n\r\n debug(\"expungeAllWatchListsFiles() - Delete ALL WATCHLIST Files - Complete\");\r\n }", "@Test\n public void filesInDirsAddedViaHgShouldBeAddedInChangeList() throws Exception {\n final VirtualFile afile = createFileInCommand(AFILE, INITIAL_FILE_CONTENT);\n final VirtualFile bdir = createDirInCommand(myWorkingCopyDir, BDIR);\n final VirtualFile bfile = createFileInCommand(bdir, BFILE, INITIAL_FILE_CONTENT);\n ProcessOutput processOutput = addAll();\n LOG.debug(processOutput.getStdout());\n LOG.debug(processOutput.getStderr());\n verifyStatus(added(AFILE), added(BFILE_PATH));\n myChangeListManager.checkFilesAreInList(true, afile, bfile);\n }", "boolean hasFileLoc();", "protected void validateNewFiles(java.lang.String[] param){\r\n \r\n }", "public static boolean validateResources(IResource[] resources, Shell shell, String title) {\n \t\t\n \t\t// get all readonly files\n \t\tList readOnlyFiles= getReadonlyFiles(resources);\n \t\tif (readOnlyFiles.size() == 0)\n \t\t\treturn true;\n \t\t\n \t\t// get timestamps of readonly files before validateEdit\n \t\tMap oldTimeStamps= createModificationStampMap(readOnlyFiles);\n \t\t\n \t\tIFile[] files= (IFile[]) readOnlyFiles.toArray(new IFile[readOnlyFiles.size()]);\n \t\tIStatus status= ResourcesPlugin.getWorkspace().validateEdit(files, shell);\n \t\tif (! status.isOK()) {\n \t\t\tString message= getString(\"ValidateEdit.error.unable_to_perform\"); //$NON-NLS-1$\n \t\t\tErrorDialog.openError(shell, title, message, status);\n \t\t\treturn false;\n \t\t}\n \t\t\t\n \t\tIStatus modified= null;\n \t\tMap newTimeStamps= createModificationStampMap(readOnlyFiles);\n \t\tfor (Iterator iter= oldTimeStamps.keySet().iterator(); iter.hasNext();) {\n \t\t\tIFile file= (IFile) iter.next();\n \t\t\tif (file.isReadOnly()) {\n \t\t\t\tIStatus entry= new Status(IStatus.ERROR,\n \t\t\t\t\t\t\t\tCompareUIPlugin.getPluginId(),\n \t\t\t\t\t\t\t\tVALIDATE_EDIT_PROBLEM,\n \t\t\t\t\t\t\t\tgetFormattedString(\"ValidateEdit.error.stillReadonly\", file.getFullPath().toString()), //$NON-NLS-1$\n \t\t\t\t\t\t\t\tnull);\n \t\t\t\tmodified= addStatus(modified, entry);\n \t\t\t} else if (! oldTimeStamps.get(file).equals(newTimeStamps.get(file))) {\n \t\t\t\tIStatus entry= new Status(IStatus.ERROR,\n \t\t\t\t\t\t\t\tCompareUIPlugin.getPluginId(),\n \t\t\t\t\t\t\t\tVALIDATE_EDIT_PROBLEM,\n \t\t\t\t\t\t\t\tgetFormattedString(\"ValidateEdit.error.fileModified\", file.getFullPath().toString()), //$NON-NLS-1$\n \t\t\t\t\t\t\t\tnull);\n \t\t\t\tmodified= addStatus(modified, entry);\n \t\t\t}\n \t\t}\n \t\tif (modified != null) {\n \t\t\tString message= getString(\"ValidateEdit.error.unable_to_perform\"); //$NON-NLS-1$\n \t\t\tErrorDialog.openError(shell, title, message, modified);\n \t\t\treturn false;\n \t\t}\n \t\treturn true;\n \t}", "public static void m6739b(File file) {\n if (file.listFiles() != null && file.listFiles().length > 1) {\n long c = m6740c(file, false);\n for (File file2 : file.listFiles()) {\n if (!file2.getName().equals(String.valueOf(c)) && !file2.getName().equals(\"stale.tmp\")) {\n m6741h(file2);\n }\n }\n }\n }", "private void checkFileContents(String name) throws IOException {\n byte[] buff = \"some bytes\".getBytes();\n assertTrue(Arrays.equals(buff, readFile(name, buff.length)));\n }", "@Test\n public void filesInDirsAddedViaChangeListShouldBeAddedToHg() throws Exception {\n final VirtualFile afile = createFileInCommand(AFILE, INITIAL_FILE_CONTENT);\n final VirtualFile bdir = createDirInCommand(myWorkingCopyDir, BDIR);\n final VirtualFile bfile = createFileInCommand(bdir, BFILE, INITIAL_FILE_CONTENT);\n myChangeListManager.ensureUpToDate();\n myChangeListManager.addUnversionedFilesToVcs(afile, bdir, bfile);\n verifyStatus(added(AFILE), added(BFILE_PATH));\n myChangeListManager.checkFilesAreInList(true, afile, bfile);\n }", "private void clearFiles() {\r\n File file = new File(\"test_files/upload\");\r\n File[] files = file.listFiles();\r\n for (File delFile : files) {\r\n delFile.delete();\r\n }\r\n file = new File(\"test_files/stress.jar\");\r\n file.delete();\r\n }", "public void testFindFilesForLocation() {\n \t\t//should not find the workspace root\n \t\tIWorkspaceRoot root = getWorkspace().getRoot();\n \t\tIFile[] result = root.findFilesForLocation(root.getLocation());\n \t\tassertEquals(\"1.0\", 0, result.length);\n\t\t\n\t\tIProject project = root.getProject(\"p1\");\n\t\tIFile existing = project.getFile(\"file1\");\n\t\tensureExistsInWorkspace(existing, true);\n\t\t\n\t\t//existing file\n\t\tresult = root.findFilesForLocation(existing.getLocation());\n\t\tassertResources(\"2.0\", existing, result);\n\t\t\n\t\t//non-existing file\n\t\tIFile nonExisting = project.getFile(\"nonExisting\");\n\t\tresult = root.findFilesForLocation(nonExisting.getLocation());\n\t\tassertResources(\"2.1\", nonExisting, result);\n \n \t\t// TODO add more tests\n \t}", "private boolean checkForChange(File pFileToCheck) {\n if (pFileToCheck.isDirectory()) {\n //pFileToCheck is a directory. Call yourself recursively for each file withing this directory.\n for (File f : pFileToCheck.listFiles()) {\n return checkForChange(f);\n }\n } else {\n //check if mFileMap contains this file\n if (!mFileMap.containsKey(pFileToCheck)) {\n //add this file to mFileMap, store the lastModified timestamp and return \"modified\"-status\n mFileMap.put(pFileToCheck, pFileToCheck.lastModified());\n return true;\n } else {\n //check stored lastModified timestamp with the current timestamp returned by the file object\n long lastModified = mFileMap.get(pFileToCheck);\n if (lastModified < pFileToCheck.lastModified()) {\n return true;\n }\n }\n }\n //nothing has changed\n return false;\n }", "private boolean changed(File installDir, File backupDir, File installFile)\n throws IOException {\n\n // To get a file in srcdir but then in destdir, replace the srcdir path with\n // destdir path in srcfile\n String srcdirPath = installDir.getAbsolutePath();\n String destdirPath = backupDir.getAbsolutePath();\n File backupFile = new File(installFile.getAbsolutePath().replace(\n srcdirPath, destdirPath));\n\n // if the file is not in backup dir it has been added\n if (!backupFile.exists()) {\n updateLog.logMessage(getClass().getName(),\n \"File added \" + installFile.getPath());\n return true;\n }\n\n // do a file compare\n boolean changed = !FileUtils.contentEquals(installFile, backupFile);\n if (changed) {\n updateLog.logMessage(getClass().getName(),\n \"File changed \" + installFile.getPath());\n }\n return changed;\n }", "private void ensureFile(File destFile) {\n\t\tif (destFile.exists()) {\n\t\t\tLog.i(\"[\" + destFile.getName() + \"]\"\n\t\t\t\t\t+ \" has already exsited, previous content cleared\");\n\t\t}\n\n\t\ttry {\n\t\t\tdestFile.createNewFile();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public boolean needToUpdate(File source, File cache) {\n\t\tif(source.lastModified() < cache.lastModified() ){\n\t\t\treturn false; //dosen't need to update\n\t\t}\n\t\treturn true; // need to update\n\t}", "private boolean cancelBecauseFileExist(File f) {\r\n\t\tif (f.exists()) {\r\n\t\t\tint res = JOptionPane.showInternalConfirmDialog(getContentPane(), \"The file \" + f.getName() + \" already exists. Do you want to replace the existing file?.\", \"File already exists\", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE, null);\r\n\t\t\tif (res == JOptionPane.NO_OPTION) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\tf.delete();\r\n\t\treturn false;\r\n\t}", "private void checkAndDeleteFile(String resultLogFileName) {\n\t\t// check whether a file was written\n\t\tfinal File f = new File(resultLogFileName);\n\t\t// The true result log file name has attached time stamps!\n\t\tFile parentDirectory = f.getParentFile();\n\t\tString[] files = parentDirectory.list(new FilenameFilter() {\n\t\t\tpublic boolean accept(File dir, String name) {\n\t\t\t\tif(name.startsWith(f.getName())) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t}\n\t\t});\n\t\tAssert.assertNotSame(\"No log file was created.\", 0, files.length);\n\t\tFile realF = new File(parentDirectory, files[0]);\n\t\tAssert.assertTrue(\"Created file is empty.\", realF.length() > 0);\n\n\t\t// remove file again\n\t\tif(realF.exists()) {\n\t\t\trealF.delete();\n\t\t}\n\t}", "@Override\n public void execute() {\n\n if(!isValid){\n System.out.println(invalidReasonString);\n return;\n }\n\n\n Path filteredFilesRoot = Path.of(pathToDir,filteredFilesRootDirectory);\n\n try {\n\n if (Files.exists(filteredFilesRoot) && Files.isDirectory(filteredFilesRoot)){\n emptyDirectory(filteredFilesRoot.toFile());\n Files.delete(filteredFilesRoot);\n } else if (Files.isRegularFile(filteredFilesRoot)){\n Files.delete(filteredFilesRoot);\n }\n\n Files.createDirectory(filteredFilesRoot);\n\n List<Path> filteredFiles = PostProcessor.filterRootDirectory(pathToDir,maxFileSize,keywords);\n\n copyFiles(filteredFilesRoot,filteredFiles);\n\n } catch (IOException e) {\n e.printStackTrace();\n System.out.println(e.getMessage());\n }\n\n }", "@Test\n public void checkFilename(){\n boolean actual = rename.renameFile(\"jazz\",\"tomsmith\");\n assertTrue(actual);\n }", "@Override\n public boolean doCheck() {\n logger.debug(\" check if destination file exists: \" + strDestFile);\n if (strDestFile != null) {\n if (new File(strDestFile).exists()) {\n return true;\n }\n }\n return false;\n }", "public void testMoveFileWithReplace() throws Exception {\n IPackageFragment fragment = getRoot().createPackageFragment(\"org.test\", true, null);\n IPackageFragment otherFragment = getRoot().createPackageFragment(\"org.test1\", true, null);\n IFile file = ((IFolder) fragment.getResource()).getFile(\"x.properties\");\n String content = \"A file with no references\";\n file.create(getStream(content), true, null);\n setReadOnly(file);\n IFile file2 = ((IFolder) otherFragment.getResource()).getFile(\"x.properties\");\n file2.create(getStream(content), true, null);\n setReadOnly(file2);\n IMovePolicy policy = ReorgPolicyFactory.createMovePolicy(new IResource[] { file }, new IJavaElement[] {});\n assertTrue(policy.canEnable());\n JavaMoveProcessor javaMoveProcessor = new JavaMoveProcessor(policy);\n javaMoveProcessor.setDestination(ReorgDestinationFactory.createDestination(otherFragment));\n javaMoveProcessor.setReorgQueries(new MockReorgQueries());\n RefactoringStatus status = performRefactoring(new MoveRefactoring(javaMoveProcessor), true);\n if (status != null)\n assertTrue(status.toString(), status.isOK());\n Collection<IPath> validatedEditPaths = RefactoringTestRepositoryProvider.getValidatedEditPaths(getRoot().getJavaProject().getProject());\n assertEquals(1, validatedEditPaths.size());\n // replaced\n assertTrue(validatedEditPaths.contains(file2.getFullPath()));\n }", "public boolean isSymbolFileUpToDate() {\n if (!FileTools.fileExists(this.outputPath)) {\n return false;\n }\n\n FileTime sourceFileModifiedTime = FileTools.getModifiedTime(this.absolutePath);\n FileTime symbolFileModifiedTime = FileTools.getModifiedTime(this.outputPath);\n\n // Source file should be modified less than the symbol file.\n return sourceFileModifiedTime.compareTo(symbolFileModifiedTime) < 0;\n }", "@Test(enabled=false)\n\tpublic void testRepeatedPutAndDeleteOfFileBug28() throws Exception {\n\t\tString testFileName = \"testRepeatedPutAndDeleteOfFileBug28andThisNameIsRealllllllllllllllllyLong.txt\";\n\t\n\t\tint nbrIterations = 10;\n\t\n\t\tFile localFile = new File(LOCAL_BINARY_FILE);\n\t\t\n\t\tfor (int i = 0; i < nbrIterations; i++) {\n\t\t\tlong startTime = System.currentTimeMillis();\n\t\t\tif (client.doesExist(\"\")) {\n\t\t\t\tclient.delete(\"\");\n\t\t\t}\n\t\t\tclient.mkdirs(\"\");\n\t\t\tclient.put(localFile.getAbsolutePath(), testFileName);\n\t\t\tclient.put(LOCAL_DIR, \"\");\n\t\t\tSystem.out.println(\"Iteration[\" + i + \"]: \" + (System.currentTimeMillis() - startTime));\n\t\t}\n\t}", "private boolean acceptAsExpected()\n {\n return saveExpectedDir_ != null;\n }", "private void copyFiles() {\n if( !USE_EXTERNAL_FILES_DIR ) return;\n boolean ret = mFileUtil.copyFilesAssetToExternalFilesDir( FILE_EXT );\n if(ret) {\n showList();\n showToast(\"copy successful\");\n } else {\n showToast(\"copy faild\");\n }\n}", "FileState checkFileState(FsPath path);", "private boolean isFileExist() {\n File check_file = getFilesDir();\n File[] file_check_array = check_file.listFiles();\n for (File current : file_check_array) {\n boolean user_file = isValidName(current.getName());\n if (user_file) {\n return true;\n }\n }\n return false;\n }", "private List<File> checkAndRemoveMatchingFiles(AbstractSchemaElement schemaElement) {\n\t\tSchemaFileMatcher fileMatcher = new SchemaFileMatcher(schemaElement);\n\t\tList<File> matchedFiles = new ArrayList<File>();\n\t\tboolean change = true;\n\t\twhile (change) {\n\t\t\tchange = false;\n\t\t\tfor (int i = 0; i < files.size(); i++) {\n\t\t\t\tFile file = files.get(i);\n\t\t\t\tString filename = file.getName();\n\t\t\t\tif (fileMatcher.matches(filename)) {\n\t\t\t\t\tfiles.remove(i);\n\t\t\t\t\tmatchedFiles.add(file);\n\t\t\t\t\tString schema = schemaElement.getSchema();\n\t\t\t\t\tif (schema != null && checkTrees) {\n\t\t\t\t\t\tLOG.trace(\"*******following: \"+schema);\n\t\t\t\t\t\tContainerCheck schemaCheck = new ContainerCheck(schema);\n\t\t\t\t\t\tschemaCheck.setCheckTrees(checkTrees);\n\t\t\t\t\t\tschemaCheck.checkProject(new SimpleContainer(file));\n//\t\t\t\t\t\tcheckUnmatchedFiles();\n\t\t\t\t\t\tLOG.trace(\"*******end: \"+schema);\n\t\t\t\t\t}\n\t\t\t\t\tchange = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn matchedFiles;\n\t}", "public void reloadFiles()\n {\n for (Reloadable rel : reloadables)\n {\n rel.reload();\n }\n }", "@Override\n\tpublic void execute() throws InconsistentFileSystemException, Exception {\n\t\tif (fileVersion1 == null) {\n\t\t\tif (fileExists(fileVersion2)) {\n\t\t\t\tcreateConflictFile(fileVersion2);\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Normal case: locally known file to be deleted\n\t\telse {\n\t\t\tif (!fileAsExpected(fileVersion1)) {\n\t\t\t\tif (fileExists(fileVersion1)) {\n\t\t\t\t\tcreateConflictFile(fileVersion2);\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\t\n\t\tdeleteFile(fileVersion2);\n\t}", "public void testARCHIVECHECK() throws ZipException, IOException {\n // REPAIR\n // ZipMeVariables.getSINGLETON().setARCHIVECHECK___(false);\n\t Configuration.ARCHIVECHECK=true;\n if(Configuration.ARCHIVECHECK) {\n FileInputStream zipFile = new FileInputStream(new File(homeDir\n + \"/files/file.gz\"));\n ZipArchive zipArchive = new ZipArchive(zipFile);\n\n // checkZipArchive() checks if the file is valid\n // ZipArchive calls hook1() that calls checkZipArchive()\n // If the test reaches this point with ARCHIVECHECK disabled and\n // an invalid file, the size() will return 0;\n assertFalse(zipArchive.size() > 0);\n }\n }", "boolean hasFileLocation();", "public static void settleTsFilesAndMods(Map<String, TsFileResource> resourcesToBeSettled) {\n int successCount = 0;\n Map<String, List<TsFileResource>> newTsFileResources = new HashMap<>();\n SettleLog.createSettleLog();\n for (Map.Entry<String, TsFileResource> entry : resourcesToBeSettled.entrySet()) {\n TsFileResource resourceToBeSettled = entry.getValue();\n List<TsFileResource> settledTsFileResources = new ArrayList<>();\n try {\n TsFileAndModSettleTool tsFileAndModSettleTool = TsFileAndModSettleTool.getInstance();\n logger.info(\"Start settling for tsFile : {}\", resourceToBeSettled.getTsFilePath());\n if (tsFileAndModSettleTool.isSettledFileGenerated(resourceToBeSettled)) {\n settledTsFileResources = tsFileAndModSettleTool.findSettledFile(resourceToBeSettled);\n newTsFileResources.put(resourceToBeSettled.getTsFile().getName(), settledTsFileResources);\n } else {\n // Write Settle Log, Status 1\n SettleLog.writeSettleLog(\n resourceToBeSettled.getTsFilePath()\n + SettleLog.COMMA_SEPERATOR\n + SettleCheckStatus.BEGIN_SETTLE_FILE);\n tsFileAndModSettleTool.settleOneTsFileAndMod(resourceToBeSettled, settledTsFileResources);\n // Write Settle Log, Status 2\n SettleLog.writeSettleLog(\n resourceToBeSettled.getTsFilePath()\n + SettleLog.COMMA_SEPERATOR\n + SettleCheckStatus.AFTER_SETTLE_FILE);\n newTsFileResources.put(resourceToBeSettled.getTsFile().getName(), settledTsFileResources);\n }\n\n moveNewTsFile(resourceToBeSettled, settledTsFileResources);\n // Write Settle Log, Status 3\n SettleLog.writeSettleLog(\n resourceToBeSettled.getTsFilePath()\n + SettleLog.COMMA_SEPERATOR\n + SettleCheckStatus.SETTLE_SUCCESS);\n logger.info(\n \"Finish settling successfully for tsFile : {}\", resourceToBeSettled.getTsFilePath());\n successCount++;\n } catch (Exception e) {\n logger.info(\n \"Meet error while settling the tsFile : {}\", resourceToBeSettled.getTsFilePath());\n e.printStackTrace();\n }\n }\n if (resourcesToBeSettled.size() == successCount) {\n SettleLog.closeLogWriter();\n logger.info(\"Finish settling all tsfiles Successfully!\");\n } else {\n logger.info(\n \"Finish Settling, {} tsfiles meet errors.\", (resourcesToBeSettled.size() - successCount));\n }\n }", "@Override\n\tpublic boolean compareFiles(int f1, int f2) {\n\t\treturn false;\n\t}", "public void ensureOpenFiles()\n throws DataOrderingException;", "public static boolean clearPastAvatars() {\n\t\ttry {\n\t\t\tfor (File file : ProjectKorraRPG.getStorage().getFolder().listFiles()) {\n\t\t\t\tif (!file.getName().equals(\"AvatarCycle.yml\")) {\n\t\t\t\t\tfile.delete();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "private void processFiles(List<File> mFileList, java.io.File targetFolder) {\n // check if the local file exists\n for (File file : mFileList) {\n java.io.File local = new java.io.File(targetFolder, file.getTitle());\n if (!local.exists()) {\n downloadFile(file, targetFolder);\n } else {\n if (checkTimeStamp(file)) {\n Log.e(\"DELETE TIME\", local.getParentFile().getName() + \"/\" + local.getName());\n deleteFile(local);\n downloadFile(file, targetFolder);\n } else {\n check = 1;\n Log.e(\"DL NOT NEEDED\", local.getParentFile().getName() + \"/\" + local.getName());\n numDownloading--;\n Log.e(\"STATUS NOT DL\",\"numDownloading is at \" + numDownloading);\n \n setNotification();\n if (numDownloading <= 0) {\n setFinalNotification();\n }\n }\n }\n }\n }", "@Override\n public boolean hasUploadedFiles(Item item) throws SQLException\n {\n List<Bundle> bundles = getBundles(item, \"ORIGINAL\");\n for (Bundle bundle : bundles) {\n if (CollectionUtils.isNotEmpty(bundle.getBitstreams())) {\n return true;\n }\n }\n return false;\n }", "@Test\n public void testFileInDirectoryFileExists() {\n\n File file1 = new File(\"file1\");\n parent.storeFile(file1);\n assertTrue(parent.fileInDirectory(\"file1\"));\n }", "@Test\n public void testDeleteAllContentButNotFile() throws IOException, PatchFailedException {\n Path oldFile = scratch.file(\"/root/oldfile\", \"I'm an old file\", \"bye, world\");\n Path patchFile =\n scratch.file(\n \"/root/patchfile\",\n \"--- a/oldfile\",\n \"+++ b/oldfile\",\n \"@@ -1,2 +0,0 @@\",\n \"-I'm an old file\",\n \"-bye, world\");\n PatchUtil.apply(patchFile, 1, root);\n assertThat(oldFile.exists()).isTrue();\n assertThat(FileSystemUtils.readLines(oldFile, UTF_8)).isEmpty();\n }", "private boolean oldEnoughForCleanup(File file)\r\n {\r\n if (minFileAgeMillis == 0)\r\n {\r\n return true;\r\n }\r\n else\r\n {\r\n long now = System.currentTimeMillis();\r\n return (file.lastModified() < (now - minFileAgeMillis));\r\n }\r\n }", "public static void main(String[] args) {\n\n File path = new File(args[0]);\n File resultFileAbsolutePath = new File(args[1]);\n File allFilesContent = new File(resultFileAbsolutePath.getParent()+\"/allFilesContent.txt\");\n FileUtils.renameFile(resultFileAbsolutePath, allFilesContent);\n\n List<File> filesList = new ArrayList<>();\n List<File> directoriesList = new ArrayList<>();\n\n File[] mainDirectoryArray = path.listFiles();\n checkAndAddFile(mainDirectoryArray, directoriesList, filesList);\n\n for (int i = 0; i < filesList.size(); i++) {\n if (filesList.get(i).length() > 50L) {\n filesList.remove(i--);\n }\n }\n\n Collections.sort(filesList, Comparator.comparing(File::getName));\n\n writeFiles(allFilesContent, filesList);\n }", "private boolean _checkFiles() throws SessionException {\n String[] files = (String[]) this._argTable\n .get(UtilCmdParser.KEYWORD_FILES);\n if (files == null) {\n files = new String[] { \"*\" };\n\n }\n boolean longList = false;\n boolean verylongList = false;\n\n if (this._argTable.get(CMD.LONG) != null) {\n this._client.setVerbose(true);\n longList = true;\n }\n if (this._argTable.get(CMD.VERYLONG) != null) {\n this._client.setVeryVerbose(true);\n verylongList = true;\n }\n\n String before = (String) this._argTable.get(CMD.BEFORE);\n String after = (String) this._argTable.get(CMD.AFTER);\n String between = (String) this._argTable.get(CMD.BETWEEN);\n String and = (String) this._argTable.get(CMD.AND);\n String format = (String) this._argTable.get(CMD.FORMAT);\n \n this._dateFormatter = new DateTimeFormatter(format);\n\n int transId;\n\n try {\n if (before != null) {\n transId = this._client.showBefore(\n this._dateFormatter.parseDate(before), \n files[0]);\n } else if (after != null) {\n transId = this._client.showAfter(\n this._dateFormatter.parseDate(after),\n files[0]);\n } else if (between != null && and != null) {\n transId = this._client.showBetween(\n this._dateFormatter.parseDate(between), \n this._dateFormatter.parseDate(and),\n files[0]);\n } else if (before == null && after == null && between == null\n && and == null) {\n transId = this._client.show(files[0]);\n }\n } catch (ParseException e) {\n throw new SessionException(e.getMessage(), -1);\n }\n\n int count = 0;\n while (this._client.getTransactionCount() > 0) {\n Result r = this._client.getResult();\n if (r == null) {\n continue;\n }\n\n if (r.getErrno() == Constants.NO_FILES_MATCH) {\n this._logger.info(r.getMessage());\n continue;\n } else if (r.getErrno() == Constants.OK) {\n count++;\n if (!longList && !verylongList) {\n this._logger.info(new PrintfFormat(\"%5d. \").sprintf(count)\n + new PrintfFormat(\"%.125s\").sprintf(r.getName()));\n } else {\n this._logger.info(new PrintfFormat(\"%5d. \").sprintf(count)\n + new PrintfFormat(\"%22s, %12d, %.125s\")\n .sprintf(new Object[] {\n this._dateFormatter.formatDate(\n r.getFileModificationTime()),\n new Long(r.getSize()), r.getName() }));\n if (verylongList) {\n this._logger.info(\" \"\n + new PrintfFormat(\"[Contributor] %s\").sprintf(r\n .getFileContributor()));\n\n this._logger.info(\" \"\n + new PrintfFormat(\"[Created] %s\").sprintf(\n this._dateFormatter.formatDate(\n r.getFileCreationTime())));\n\n if (r.getChecksum() != null) {\n this._logger.info(\" \"\n + new PrintfFormat(\"[Checksum] %s\").sprintf(r\n .getChecksumStr()));\n }\n if (r.getComment() != null) {\n this._logger.info(\" \"\n + new PrintfFormat(\"[Comment] \\\"%s\\\"\").sprintf(r\n .getComment()));\n }\n if (r.getArchiveNote() != null) {\n this._logger.info(\" \"\n + new PrintfFormat(\"[Archive note] \\\"%s\\\"\")\n .sprintf(r.getArchiveNote()));\n }\n }\n }\n File file = new File(r.getName());\n if (!file.exists() || file.isDirectory()) {\n this._logger.info(\" - No such file.\");\n }\n } else {\n ++this._errorCount;\n }\n }\n return true;\n }", "private boolean allWorkComplete(int attempt) {\n boolean workComplete = (sm == null || syncManager.getFilesInTransfer().isEmpty()) &&\n list.getListSizeIncludingReservedFiles() <= 0;\n\n if (!workComplete || (workComplete && attempt > 2)) {\n return workComplete;\n } else {\n // Wait before another attempt\n SyncProcessManagerImpl.this.sleep(2000);\n return allWorkComplete(attempt + 1);\n }\n }" ]
[ "0.65496373", "0.64847404", "0.63853955", "0.5985771", "0.5942303", "0.59337664", "0.5919846", "0.590579", "0.58959156", "0.58915854", "0.5875187", "0.5870163", "0.5820545", "0.5816279", "0.5768371", "0.5747832", "0.570401", "0.56916606", "0.5673835", "0.5669262", "0.5664936", "0.56374794", "0.5631413", "0.55809593", "0.557839", "0.557743", "0.555306", "0.55217713", "0.5521648", "0.5507579", "0.5503278", "0.5476436", "0.547253", "0.54696596", "0.5461611", "0.54568166", "0.5449394", "0.54475933", "0.5444329", "0.5439442", "0.5420696", "0.54116035", "0.53929156", "0.53747404", "0.53580195", "0.5344217", "0.5331839", "0.5330736", "0.5327165", "0.5325645", "0.5311351", "0.5309888", "0.5301572", "0.5292084", "0.5292084", "0.52863705", "0.52848095", "0.52689755", "0.5268774", "0.5262234", "0.52563274", "0.52409214", "0.5230507", "0.52285135", "0.52220297", "0.5220428", "0.52163225", "0.5211466", "0.5206332", "0.5202452", "0.5201921", "0.5180783", "0.5174497", "0.5172827", "0.5169217", "0.51677394", "0.5166658", "0.5164006", "0.5158544", "0.5155292", "0.51546603", "0.5139586", "0.5137543", "0.51339406", "0.51334286", "0.5118943", "0.51157475", "0.5111346", "0.5106087", "0.5100231", "0.5099584", "0.50991714", "0.50975865", "0.50973904", "0.50946665", "0.5094574", "0.50921106", "0.5090138", "0.5087786", "0.50850534", "0.50835246" ]
0.0
-1
Only allow to extend from same package
DnsMessage(int id) { header = newHeader(id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void extend();", "@Override\n\tpublic void extends_(JDefinedClass cls) {\n\n\t}", "private XIncluder() {}", "public interface Extendable {\n void extend();\n}", "public interface TestExtend {\n}", "@Override\n protected void checkSubclass() {\n }", "TopLevelImport createTopLevelImport();", "private VarietyPackage() {}", "public interface XModule extends ru.awk.spb.xonec.XOneC.XModule\r\n{\r\n}", "@Override\n public boolean isPackaged() {\n return false;\n }", "_ExtendsNotAbstract() {\n super(\"s\"); // needs this if not default ctor;\n }", "String getExtends();", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\n protected void checkSubclass() {\n }", "@Override\n protected void checkSubclass() {\n }", "@Override\n protected void checkSubclass() {\n }", "protected boolean isImport() {\n\t\t// Overrides\n\t\treturn false;\n\t}", "@Override\r\n protected void checkSubclass() {\n }", "@Override\r\n protected void checkSubclass() {\n }", "@Override\r\n protected void checkSubclass() {\n }", "@Override\n public boolean getAllowImportAliases()\n {\n \treturn allowImportAliases;\n }", "protected abstract void _extends( ClassOutlineImpl derived, ClassOutlineImpl base );", "Extension createExtension();", "static void allowAccess(ClassMaker cm) {\n var thisModule = CoreUtils.class.getModule();\n var thatModule = cm.classLoader().getUnnamedModule();\n thisModule.addExports(\"org.cojen.dirmi.core\", thatModule);\n }", "protected abstract void registerSuperTypes();", "public AbstractClassExtend() {\n\t\tsuper(\"hello\");\n\t}", "private boolean checkBasePackages(String className){\n\n if (basePackage == null){\n return false;\n }\n else {\n return className.startsWith(basePackage);\n }\n // This block is function support major framework identity.\n // Not support UI now.\n // if(className.startsWith(\"sun\")){\n // return true;\n // }\n // else if (className.startsWith(\"java\"))\n // {\n // return true;\n // }\n // else{\n // return false;\n // }\n }", "private XFormsExtensionFunctions() {\n }", "public boolean isSuperResolutionEnabled() {\n return false;\n }", "protected void checkSubclass() {\n }", "private NaturePackage() {}", "protected void checkSubclass() {\n }", "protected void checkSubclass() {\n }", "protected void checkSubclass() {\n }", "@Override\n\tpublic void ignorePackage(String packageName) {\n\t\tignorePackages.add(packageName);\n\t}", "@Override\r\n\tpublic void shiftExtends() throws ParserException\r\n\t{\r\n\t\tchangeToState(new MDJ_19());\r\n\t}", "@Override\r\n public boolean includeManifest() {\r\n return true;\r\n }", "public boolean isExtension() {\n\t\treturn true;\n\t}", "private static boolean willGenerateExtentionFor(IInterfaceDefinition iDef, Environment base)\n \t{\n \t\treturn base.lookUpType(iDef.getName().getName()) != null && !isUtilityOrTemplateClass(iDef, base);\n \t}", "@Override\n public String[] getExtensions() {\n return new String[]{};\n }", "public interface IBaseModle {\n\n\n}", "@Override\n public boolean isAccessible( Env<AttrContext> env, Symbol.TypeSymbol typeSymbol, boolean checkInner )\n {\n boolean accessible = super.isAccessible( env, typeSymbol, checkInner );\n if( accessible )\n {\n return true;\n }\n\n if( isJailbreakOnType() )\n {\n // handle the case where the class itself is inaccessible:\n //\n // // the *type* must be @Jailbreak as well as the constructor\n // com.foo.@Jailbreak PrivateClass privateThing = new com.foo.@Jailbreak PrivateClass();\n // privateThing.privateMethod();\n // ...\n return true;\n }\n\n if( JreUtil.isJava8() )\n {\n return false;\n }\n\n\n // Java 9 +\n\n JavaFileObject sourceFile = env.toplevel.getSourceFile();\n if( sourceFile instanceof GeneratedJavaStubFileObject )\n {\n // Allow augmented classes to access modules as if defined in both the extended class' module and\n // the extension class' module.\n accessible = true;\n }\n\n return accessible;\n }", "@Override\n protected void extend(ServerConnector target) {\n\n }", "public Environment extend(Environment ext) throws AstCreatorException\n \t{\n \t\tEnvironment result = Environment.getFromBase(base, ext.getAnalysisPackage(), ext.getDefaultPackage());\n \n \t\tresult.setTemplateAnalysisPackage(base.getAnalysisPackage());\n \t\tresult.setTemplateDefaultPackage(base.getDefaultPackage());\n \n \t\t// 1 every class and interface from the base environment is added to result\n \t\taddBaseAstClassesAndInterfaces(result, base);\n \n \t\t// 2 include classes from the extension that we will need\n \t\tincludeClassesFromExtension(result, ext, base);\n \n \t\t// 3 include interfaces from the extension that we will need\n \t\tincludeInterfacesFromExtension(result, ext, base);\n \n \t\t// 4a generate new extension productions that is P and S interface\n \t\tMap<String, IInterfaceDefinition> iReplacementMap = generateExtensionInterfaces(result, ext, base);\n \n \t\t// 4b generate new base classes for the P and S interface generated in 4a\n \t\tMap<String, IClassDefinition> cReplacementMap = generateExtensionClasses(result, ext, base, iReplacementMap);\n \n \t\t// 5 Update classToType\n \t\tupdateClassToType(result,ext,base);\n \n \t\t// 6 Update super definitions\n \t\tupdateSuperDefinitions(result,ext,cReplacementMap);\n \n \t\t// 7 Update treeNode to interface mapping (that is the common implements relationship)\n \t\tupdateTreeNodeToInterface(result, ext,base, iReplacementMap);\n \n \t\t// 8 Fields on nodes from the ext environment may have unresolved types\n \t\tupdateFieldsWithUnresolvedTypes(result,ext,base);\n \n \t\treturn result;\n \t}", "private PluginUtils() {\n\t\t//\t\tthrow new IllegalAccessError(\"Don't instantiate me. I'm a utility class!\");\n\t}", "public boolean isExtending()\n {\n return this.extending;\n }", "public abstract String packageName();", "public Ext2Class1() {\n }", "private static void includeInterfacesFromExtension(Environment result, Environment extEnv, Environment base)\n \t{\n \t\tfor(IInterfaceDefinition iDef : extEnv.getInterfaces())\n \t\t\tif (!willGenerateExtentionFor(iDef, base))\n \t\t\t\tresult.getInterfaces().add(iDef);\n \n \t}", "private PluginAPI() {\r\n\t\tsuper();\r\n\t}", "@Override\n protected FilterClassLoader.Filter getExtensionParentClassLoaderFilter() {\n return new FilterClassLoader.Filter() {\n @Override\n public boolean acceptResource(String resource) {\n return ALLOWED_RESOURCES.contains(resource);\n }\n\n @Override\n public boolean acceptPackage(String packageName) {\n return ALLOWED_PACKAGES.contains(packageName);\n }\n };\n }", "protected boolean isMoreDerivedThan( Bootstrapper other )\n {\n return other.getClass().isAssignableFrom( getClass() );\n }", "Registries createExtension();", "JPackage _package();", "protected boolean isInDerivedClass() {\n\t\treturn (getClass() != Main.class);\n\t}", "public boolean loadAdditionalPackages( String canonicalNameClassOrPkg) throws Exception;", "EncorePackage getEncorePackage();", "private void enforceTransitiveClassUsage() {\n HashSet<String> tmp = new HashSet<String>(usedAppClasses);\n for(String className : tmp) {\n enforceTransitiveClassUsage(className);\n }\n }", "Package getSubp();", "MystPackage getMystPackage();", "ImportedPackage createImportedPackage();", "protected abstract String getPackageName();", "public void doGeneralThings() {\n logger.debug(\"Overrided or implememted method - doGeneralThings!\");\n }", "Import createImport();", "Import createImport();", "private PackageValidator() {}", "public EpicExtensionProvider() {\r\n\t}", "private AcceleoLibrariesEclipseUtil() {\n \t\t// hides constructor\n \t}", "private CheckingTools() {\r\n super();\r\n }", "private IExtendsContext createExtendsContext() throws RodinDBException {\n\t\tfinal IContextRoot ctx = createContext(\"ctx\");\n\t\treturn ctx.createChild(IExtendsContext.ELEMENT_TYPE, null, null);\n\t}", "@Override\r\n\tpublic Package adaptedPackage() {\n\t\treturn null;\r\n\t}" ]
[ "0.67157334", "0.62184256", "0.61768794", "0.61625826", "0.6018345", "0.5830547", "0.5766686", "0.5701946", "0.5696773", "0.56929773", "0.56839883", "0.5648965", "0.5647689", "0.5647689", "0.5647689", "0.5647689", "0.5647689", "0.5647689", "0.5647689", "0.5647689", "0.5647689", "0.5647689", "0.5647689", "0.5647689", "0.5647689", "0.5647689", "0.5647689", "0.5647689", "0.5647689", "0.56359464", "0.56359464", "0.56359464", "0.56359464", "0.56359464", "0.56359464", "0.56359464", "0.56359464", "0.56359464", "0.56359464", "0.56359464", "0.56359464", "0.56359464", "0.56359464", "0.56307137", "0.56307137", "0.56307137", "0.56048584", "0.5562772", "0.5562772", "0.5562772", "0.55604917", "0.5557602", "0.5542209", "0.550368", "0.5492095", "0.54562235", "0.542987", "0.54297286", "0.5419004", "0.5416797", "0.5394832", "0.5391401", "0.5391401", "0.5391401", "0.53686327", "0.5367077", "0.534878", "0.534846", "0.5337594", "0.5333783", "0.5326906", "0.5320626", "0.53167915", "0.5307853", "0.53033644", "0.530178", "0.5300548", "0.52895385", "0.5280611", "0.52750665", "0.5272054", "0.52665925", "0.5252442", "0.52494216", "0.5213976", "0.5213458", "0.5210468", "0.52092016", "0.51867455", "0.51757634", "0.51419646", "0.5136822", "0.5129521", "0.51270646", "0.51270646", "0.5119176", "0.5118832", "0.5115071", "0.5113728", "0.51136947", "0.5113444" ]
0.0
-1
Returns the header belonging to this message.
public DnsHeader header() { return header; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getHeader() {\n\t\t\treturn header;\n\t\t}", "public String getHeader() {\n\t\treturn header.toString();\n\t}", "public String getHeader() {\n\t\treturn _header;\n\t}", "public String getHeader() {\n return header;\n }", "public String getHeader() {\n return header;\n }", "public String getHeader()\r\n\t{\r\n\t\treturn header;\r\n\t}", "public std_msgs.msg.dds.Header getHeader()\n {\n return header_;\n }", "public Object getHeader() {\n return header;\n }", "public Header getHeader() {\n\t\treturn this.header;\n\t}", "public PHeader getHeader() {\n\t\treturn header;\n\t}", "public String getHeader() {\n\t\tif (null != this.header) {\n\t\t\treturn this.header;\n\t\t}\n\t\tValueExpression _ve = getValueExpression(\"header\");\n\t\tif (_ve != null) {\n\t\t\treturn (String) _ve.getValue(getFacesContext().getELContext());\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "public byte[] getHeader() {\n\treturn header;\n }", "public java.lang.String getHeaderName() {\r\n return headerName;\r\n }", "public Class<?> header() {\n return header;\n }", "public String getHeader();", "public NetFlowHeader getHeader() throws IOException {\n if (header == null) {\n header = prepareHeader();\n }\n\n return header;\n }", "public String getHeaderName() {\n\tString value = getString(ATTR_HEADER_NAME, null);\n\treturn value;\n }", "public String getHeaderLine() {\r\n\t\tif(header == null)return \"\";\r\n\t\treturn header;\r\n\t}", "java.lang.String getHeader();", "@Override\n\tpublic Map<String, String> getHeader() {\n\t\treturn this.header;\n\t}", "public java.lang.String getHeaderName () {\n\t\treturn headerName;\n\t}", "public String getHeaderText(){\n\t\treturn headerText.toString();\n\t}", "public String getHeader() {\n\t\tString header = \"id\" + \",\" + \"chrId\" + \",\" + \"strand\" + \",\" + \"TSS\" + \",\" + \"PolyASite\"\n\t\t\t\t\t\t+ \",\" + \"5SSPos\" + \",\" + \"3SSPos\" + \",\" + \"intronLength\" + \",\" + \"terminalExonLength\"\n\t\t\t\t\t\t+ \",\" + \"BPS_3SS_distance\" + \",\" + \"PolyPyGCContent\" + \",\" + \"IntronGCContent\" + \",\" + \"terminalExonGCContent\"\n\t\t\t\t\t\t+ \",\" + \"5SS\" + \",\" + \"3SS\" + \",\" + \"BPS\"\n\t\t\t\t\t\t+ \",\" + \"5SSRank\" + \",\" + \"3SSRank\" + \",\" + \"BPSRank\"\n\t\t\t\t\t\t+ \",\" + \"5SSLevenshteinDistance\" + \",\" + \"3SSLevenshteinDistance\" + \",\" + \"BPSLevenshteinDistance\";\n\t\treturn header; \n\t}", "public VCFHeader getHeader();", "public Number getHeaderId() {\n return (Number)getAttributeInternal(HEADERID);\n }", "public Number getHeaderId() {\n return (Number)getAttributeInternal(HEADERID);\n }", "com.didiyun.base.v1.Header getHeader();", "ComponentHeaderType getHeader();", "public SecureMessageHeader getSecureMessageHeader() {\r\n\t\treturn this.secureMessageHeader;\r\n\t}", "public SAMFileHeader getFileHeader() {\n return dest.getFileHeader();\n }", "public short getHeader() {\n \n if (this == CHAT) {\n return Outgoing.ChatMessageComposer;\n } else if (this == SHOUT) {\n return Outgoing.ShoutMessageComposer;\n } else if (this == WHISPER) {\n return Outgoing.WhisperMessageComposer;\n }\n \n return -1;\n }", "public ElementHeader getElementHeader()\n {\n return elementHeader;\n }", "public byte getHeaderByte() {\n\t\treturn headerByte;\n\t}", "protected ResponseHeader getHeader() {\n return this.header;\n }", "public String getMessageHeaderAsString(){\n String header;\n switch(messageType){\n case DELETE:\n header = messageType + \" \" + version + \" \" + senderId + \" \" + fileId + \" \" + Utils.CRLF + Utils.CRLF;\n break;\n case PUTCHUNK:\n header = messageType + \" \" + version + \" \" + senderId + \" \" + fileId + \" \" + chunkNo + \" \" + replicationDegree + \" \" + Utils.CRLF + Utils.CRLF;\n break;\n case ENH_AWOKE:\n header = messageType + \" \" + version + \" \" + senderId + Utils.CRLF + Utils.CRLF;\n break;\n case ENH_DELETED:\n header = messageType + \" \" + fileId + \" \" + senderId + Utils.CRLF + Utils.CRLF;\n break;\n case GETCHUNK:\n if(version.equals(Utils.ENHANCEMENT_RESTORE) || version.equals(Utils.ENHANCEMENT_ALL))\n header = messageType + \" \" + version + \" \" + senderId + \" \" + fileId + \" \" + chunkNo + \" \" + sender_access + \" \"+ Utils.CRLF + Utils.CRLF;\n else header = messageType + \" \" + version + \" \" + senderId + \" \" + fileId + \" \" + chunkNo + \" \" + Utils.CRLF + Utils.CRLF;\n break;\n default:\n header = messageType + \" \" + version + \" \" + senderId + \" \" + fileId + \" \" + chunkNo + \" \" + Utils.CRLF + Utils.CRLF;\n }\n return header;\n }", "public String headerLine() {\n return headerLine;\n }", "public List<byte[]> getHeader() {\n\t\treturn this.fileHeader;\n\t}", "public String getHeaderValue() {\n\treturn getString(ATTR_HEADER_VALUE, null);\n }", "@Override\n public StreamHeader getHeader() throws Exception {\n return header;\n }", "public String getHeader() {\n String header = FxSharedUtils.getHeader();\n if (header.indexOf(\"$user$\") > 0)\n header = header.replaceAll(\"\\\\$user\\\\$\", getRequest().getUserTicket().getUserName());\n return header;\n }", "String getHeader(String headerName);", "public String getHeader1() {\n return header1;\n }", "public String getCustomHeader() {\n return this.customHeader;\n }", "public String getHeader(final Header header) {\n return headers.get(header.toString());\n }", "public ChildMessage getHeader(){return header;}", "public static String getHeader() {\n return \"S I R\";\n }", "TupleHeader getHeader() {\n return header;\n }", "public boolean getHeader() {\n return isHeader;\n }", "public String getHeader() {\n\t\tString item_text = getQuantityString(getCount());\n\t\tString header = getActivity().getString(R.string.browse_items_text, item_text, getCount());\n\t\treturn header;\n\t}", "com.didiyun.base.v1.HeaderOrBuilder getHeaderOrBuilder();", "public java.lang.String getSenderHeaderName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SENDERHEADERNAME$24, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "public java.lang.String getHeaderValue() {\r\n return headerValue;\r\n }", "public RTCMHeader getRtcmHeader()\n {\n\treturn this.rtcmHeader;\n }", "org.apache.xmlbeans.XmlString xgetHeader();", "public String getHttpHeader() {\n return httpHeader;\n }", "public String getFileHeaderInfo() {\n return this.fileHeaderInfo;\n }", "@Override\n public RaftNode getHeader() {\n return allNodes.getHeader();\n }", "public abstract SOAPHeader getSOAPHeader() throws SOAPException;", "public String getHeader(final String name) {\n return headers.get(name);\n }", "@Override\n public ElementHeader getElementHeader()\n {\n return elementHeader;\n }", "public FromHeader getFrom() {\n return (FromHeader) fromHeader;\n }", "public javax.accessibility.AccessibleTable getAccessibleColumnHeader() {\n // Not yet supported\n return null;\n }", "public Header getRequestHeader(String headerName) {\n if (headerName == null) {\n return null;\n } else {\n return getRequestHeaderGroup().getCondensedHeader(headerName);\n }\n }", "public org.apache.xmlbeans.XmlString xgetSenderHeaderName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(SENDERHEADERNAME$24, 0);\n return target;\n }\n }", "public Optional<String> header(String header) {\n return this.header.getHeader(header);\n }", "public List<Header> getHeaderList() {\n return mHeaderList;\n }", "public String getHeader(String name, String delimiter) throws MessagingException {\n/* 382 */ if (this.headers == null)\n/* 383 */ loadHeaders(); \n/* 384 */ return this.headers.getHeader(name, delimiter);\n/* */ }", "public String getPlayerListHeader ( ) {\n\t\treturn extract ( handle -> handle.getPlayerListHeader ( ) );\n\t}", "public LinearLayout getHeaderLayout() {\n return mHeaderLayout;\n }", "public Header getHeader(String headerName) {\n if (headerName == null) throw new NullPointerException(\"bad name\");\n SIPHeader sipHeader = (SIPHeader)\n this.nameTable.get(headerName.toLowerCase());\n if (sipHeader instanceof SIPHeaderList)\n return (Header) ((SIPHeaderList) sipHeader).getFirst();\n else return (Header) sipHeader;\n }", "public bf.com.misys.eqf.types.header.RsHeader getRsHeader()\n\t{\n\t\treturn this._rsHeader;\n\t}", "public ElementHeader getControlFlowHeader()\n {\n return controlFlowHeader;\n }", "public HashMap<String, String> getHeaderList() {\n return headerList;\n }", "protected RendezVousPropagateMessage getPropHeader(Message msg) {\r\n\r\n MessageElement elem = msg.getMessageElement(MESSAGE_NAMESPACE_NAME, HEADER_NAME);\r\n\r\n if (elem == null) {\r\n return null;\r\n }\r\n\r\n try {\r\n StructuredDocument asDoc = StructuredDocumentFactory.newStructuredDocument(elem.getMimeType(), elem.getStream());\r\n\r\n return new RendezVousPropagateMessage(asDoc);\r\n } catch (IOException failed) {\r\n if (LOG.isEnabledFor(Priority.WARN)) {\r\n LOG.warn(\"Could not get prop header of \" + msg, failed);\r\n }\r\n\r\n IllegalArgumentException failure = new IllegalArgumentException(\"Could not get prop header of \" + msg);\r\n throw failure;\r\n }\r\n }", "public String[] composeHeader() {\n\t\treturn null;\n\t}", "public List<Map<String, Map<String, Object>>> getHeader(){\n return headerDescription;\n }", "@java.lang.Override\n public java.lang.String getHeaderTableId() {\n java.lang.Object ref = headerTableId_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n headerTableId_ = s;\n return s;\n }\n }", "public Vector<YANG_Header> getHeaders() {\n\t\treturn headers;\n\t}", "public Header getHeaderByKey(String key);", "public java.util.List<ConnectionHeaderParameter> getHeaderParameters() {\n return headerParameters;\n }", "protected String getPageHeader()\n {\n if (this.pageHeader == null) {\n String title = (this.privateLabel != null)? this.privateLabel.getPageTitle() : \"\";\n StringBuffer sb = new StringBuffer();\n sb.append(\"<center>\");\n sb.append(\"<span style='font-size:14pt;'><b>\" + title + \"</b></span>\");\n sb.append(\"<hr>\");\n sb.append(\"</center>\");\n this.pageHeader = sb.toString();\n }\n return this.pageHeader;\n }", "public byte[] getBuffer() {\r\n return this.header;\r\n }", "public Map<String, Header> getHeaderMap() {\n return headerMap;\n }", "public HashMap<String, String> getHeader() {\n HashMap<String, String> header = new HashMap<String, String>();\n//\t\theader.put(\"Content-Type\", pref.getString(\"application/json\", \"application/json\"));\n /*header.put(\"authId\", pref.getString(KEY_USER_ID, KEY_USER_ID));\n header.put(\"authToken\", pref.getString(KEY_AUTH_TOKEN, KEY_AUTH_TOKEN));*/\n\n\n header.put(\"authId\", pref.getString(KEY_USER_ID, \"1\"));\n header.put(\"authToken\", pref.getString(KEY_AUTH_TOKEN, \"s4nbp5FibJpfEY9q\"));\n\n return header;\n }", "public IMAGE_FILE_HEADER getFileHeader() { return peHeader; }", "public String getbyHeader(){\n String byHed=driver.findElement(byHeader).getText();\n return byHed;\n }", "public HeaderRecType getHeaderRec() {\n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_headerRec == null)\n jcasType.jcas.throwFeatMissing(\"headerRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n return (HeaderRecType)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_headerRec)));}", "public Map<String, String> getHeaderList() {\n return headerMap;\n }", "public int getHeading()\n\t{\n\t\treturn heading;\n\t}", "Rule Header() {\n // Push 1 HeaderNode onto the value stack\n return Sequence(\n FirstOf(\n Include(),\n CppInclude(),\n Namespace()),\n actions.pushHeaderNode());\n }", "public ByteBuffer getHeader() {\n ByteBuffer wrap;\n byte[] bArr;\n if (this.largeBox || getSize() >= 4294967296L) {\n bArr = new byte[16];\n bArr[3] = (byte) 1;\n bArr[4] = this.type.getBytes()[0];\n bArr[5] = this.type.getBytes()[1];\n bArr[6] = this.type.getBytes()[2];\n bArr[7] = this.type.getBytes()[3];\n wrap = ByteBuffer.wrap(bArr);\n wrap.position(8);\n IsoTypeWriter.writeUInt64(wrap, getSize());\n } else {\n bArr = new byte[8];\n bArr[4] = this.type.getBytes()[0];\n bArr[5] = this.type.getBytes()[1];\n bArr[6] = this.type.getBytes()[2];\n bArr[7] = this.type.getBytes()[3];\n wrap = ByteBuffer.wrap(bArr);\n IsoTypeWriter.writeUInt32(wrap, getSize());\n }\n wrap.rewind();\n return wrap;\n }", "public String getHeader(final String name) {\n final Collection<String> strings = headers.get(name);\n return strings == null ? null : strings.iterator().next();\n }", "public Map<String, HeaderInfo> getHeaders() {\n\t\treturn headers;\n\t}", "public\t CSeqHeader getCSeq()\n { return (CSeqHeader) cSeqHeader ; }", "public Map<String, String> readHeader() {\r\n\t\tMap<String, String> headers = null;\r\n\t\tif (advanceToTag(\"Document\")) {\r\n\t\t\tif (advanceToTag(\"Header\")) {\r\n\t\t\t\theaders = this.in.readPropertyBlock();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn headers;\r\n\t}", "public Header getResponseHeader(String headerName) { \n if (headerName == null) {\n return null;\n } else {\n return getResponseHeaderGroup().getCondensedHeader(headerName);\n } \n }", "public java.lang.String getHeaderTableId() {\n java.lang.Object ref = headerTableId_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n headerTableId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public boolean isHeader() {\n return isHeader;\n }", "@Override\n\t\tpublic String getHeader(String name) {\n\t\t\treturn null;\n\t\t}", "public VersionedMap getHeaders ()\n {\n return headers;\n }" ]
[ "0.81287783", "0.80851996", "0.8084662", "0.80684465", "0.80684465", "0.80251044", "0.7986797", "0.7960613", "0.7848827", "0.76528543", "0.7607556", "0.7588483", "0.75224745", "0.7509997", "0.74914503", "0.7382221", "0.73081076", "0.7297561", "0.7236845", "0.7221161", "0.7206036", "0.7147497", "0.71452034", "0.7107407", "0.7093586", "0.7093586", "0.69736713", "0.69551903", "0.6953014", "0.69429547", "0.6931161", "0.69290537", "0.687347", "0.6840091", "0.6838015", "0.68268", "0.6707525", "0.67003757", "0.6695677", "0.6670265", "0.6656638", "0.66553074", "0.6640088", "0.6639896", "0.65487444", "0.65178734", "0.65118825", "0.6507874", "0.6502269", "0.6498625", "0.64772344", "0.6425818", "0.6419103", "0.64107716", "0.6392355", "0.6381124", "0.6365981", "0.6358093", "0.6321293", "0.62821025", "0.62223375", "0.6211208", "0.6200647", "0.6164428", "0.6153908", "0.6146702", "0.6143995", "0.61063933", "0.6103754", "0.61024725", "0.61000454", "0.6098131", "0.6082505", "0.607515", "0.6056918", "0.60549676", "0.6048917", "0.60479295", "0.60270935", "0.60053146", "0.599679", "0.59930867", "0.5989393", "0.5983881", "0.59729606", "0.5970513", "0.5961645", "0.59329176", "0.59320635", "0.59103924", "0.590256", "0.58973926", "0.58869565", "0.5878422", "0.5877338", "0.586626", "0.58659625", "0.58580464", "0.58452886", "0.5841557" ]
0.7092115
26
Returns a list of all the questions in this message.
public List<DnsQuestion> questions() { if (questions == null) { return Collections.emptyList(); } return Collections.unmodifiableList(questions); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Question> getQuestions() {\n\t\treturn this.questions;\n\t}", "public ArrayList<Question> getQuestions() {\r\n\t\treturn this.questions;\r\n\t}", "public List<Question> getQuestions() {\n return questionList;\n }", "public Question[] getQuestions() {\n return this.questions.toArray(new Question[0]);\n }", "public ArrayList<String> getQuestionsList() {\n\t\tArrayList<String> questionsList = new ArrayList<String>();\n\t\t\t\t\n\t\tfor (String line : contentsByLine) {\n\t\t\n\t\t\tif (line.endsWith(\"?\")) {\n\t\t\t\tquestionsList.add(line);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn questionsList;\n\t}", "@Override\n\tpublic List<Question> getQuestions() {\n\t\treturn null;\n\t}", "List<Question> getQuestions();", "public List<Question> getQuestions()\n\t{\n\t\tList<Question> shallowCopy = new ArrayList<>();\n\t\tshallowCopy.addAll(allQuestions);\n\t\treturn shallowCopy;\n\t}", "public List<QuestionEntity> getAllQuestions() {\n try {\n return entityManager.createNamedQuery(\"getAllQuestions\", QuestionEntity.class).getResultList();\n } catch (NoResultException nre) {\n return null;\n }\n }", "public Collection<Question> getQuestions();", "public java.util.List<com.rpg.framework.database.Protocol.Quest> getQuestList() {\n if (questBuilder_ == null) {\n return java.util.Collections.unmodifiableList(quest_);\n } else {\n return questBuilder_.getMessageList();\n }\n }", "List<Question> getQuestionsUsed();", "public void printQuestions() {\n\t\tif (this.questions.size() == 0) {\n\t\t\tSystem.out.println(\"Sorry. There are no questions in this quiz.\");\n\t\t} else {\n\t\t\tfor (Question q : this.questions) {\n\t\t\t\tSystem.out.println(q.getText());\n\t\t\t}\n\t\t}\n\t}", "protected IQuestionCollection getQuestions() {\n\t\treturn fQuestions;\n\t}", "@Override\n\t@Transactional(readOnly=true)\n\tpublic List<QuestionMultiChoice> findAll() {\n\t\treturn Lists.newArrayList(qcmRepository.findAll());\n\t}", "public List<DataQuestion> getAllAnswer(){\n return items;\n }", "public void printQuestions()\r\n\t{\r\n\t\tfor(int i = 0; i < questions.size(); i++)\r\n\t\t{\r\n\t\t\tString q = questions.get(i).toString();\r\n\t\t\tSystem.out.println( (i+1) + \". \" + q);\r\n\t\t}\r\n\t}", "public java.util.List<java.lang.CharSequence> getAnswers() {\n return Answers;\n }", "public static List<Question> getQuestions() {\n if (QUESTION == null) {\n QUESTION = new ArrayList<>();\n List<Option> options = new ArrayList<Option>();\n options.add(new Option(1, \"Radio Waves\"));\n options.add(new Option(2, \"Sound Waves\"));\n options.add(new Option(3, \"Gravity Waves\"));\n options.add(new Option(4, \"Light Waves\"));\n QUESTION.add(new Question(1, \"Which kind of waves are used to make and receive cellphone calls?\", getCategory(4), options, options.get(0)));\n\n List<Option> options2 = new ArrayList<Option>();\n options2.add(new Option(1, \"8\"));\n options2.add(new Option(2, \"6\"));\n options2.add(new Option(3, \"3\"));\n options2.add(new Option(4, \"1\"));\n QUESTION.add(new Question(2, \"How many hearts does an octopus have?\", getCategory(4), options2, options2.get(2)));\n\n List<Option> options3 = new ArrayList<Option>();\n options3.add(new Option(1, \"Newton's Law\"));\n options3.add(new Option(2, \"Hooke's law\"));\n options3.add(new Option(3, \"Darwin's Law\"));\n options3.add(new Option(4, \"Archimedes' principle\"));\n QUESTION.add(new Question(3, \"Whose law states that the force needed to extend a spring by some distance is proportional to that distance?\", getCategory(4), options3, options3.get(1)));\n\n List<Option> options4 = new ArrayList<Option>();\n options4.add(new Option(1, \"M\"));\n options4.add(new Option(2, \"$\"));\n options4.add(new Option(3, \"W\"));\n options4.add(new Option(4, \"#\"));\n QUESTION.add(new Question(4, \"What is the chemical symbol for tungsten?\", getCategory(4), options4, options4.get(2)));\n\n List<Option> options5 = new ArrayList<Option>();\n options5.add(new Option(1, \"Pulsar\"));\n options5.add(new Option(2, \"Draconis\"));\n options5.add(new Option(3, \"Aludra\"));\n options5.add(new Option(4, \"Alwaid\"));\n QUESTION.add(new Question(5, \"What is a highly magnetized, rotating neutron star that emits a beam of electromagnetic radiation?\", getCategory(4), options5, options5.get(0)));\n\n List<Option> options6 = new ArrayList<Option>();\n options6.add(new Option(1, \"2\"));\n options6.add(new Option(2, \"4\"));\n options6.add(new Option(3, \"7\"));\n options6.add(new Option(4, \"10\"));\n QUESTION.add(new Question(6, \"At what temperature is Centigrade equal to Fahrenheit?\", getCategory(4), options6, options6.get(2)));\n\n List<Option> options7 = new ArrayList<Option>();\n options7.add(new Option(1, \"Temperature\"));\n options7.add(new Option(2, \"Distance\"));\n options7.add(new Option(3, \"Light Intensity\"));\n options7.add(new Option(4, \"Noise\"));\n QUESTION.add(new Question(7, \"Kelvin is a unit to measure what?\", getCategory(4), options7, options7.get(2)));\n\n List<Option> options8 = new ArrayList<Option>();\n options8.add(new Option(1, \"Mars\"));\n options8.add(new Option(2, \"Jupiter\"));\n options8.add(new Option(3, \"Saturn\"));\n options8.add(new Option(4, \"Neptune\"));\n QUESTION.add(new Question(8, \"Triton is the largest moon of what planet?\", getCategory(4), options8, options8.get(3)));\n\n List<Option> options9 = new ArrayList<Option>();\n options9.add(new Option(1, \"Brain\"));\n options9.add(new Option(2, \"Heart\"));\n options9.add(new Option(3, \"Lungs\"));\n options9.add(new Option(4, \"Skin\"));\n QUESTION.add(new Question(9, \"What is the human body’s biggest organ?\", getCategory(4), options9, options9.get(3)));\n\n List<Option> options10 = new ArrayList<Option>();\n options10.add(new Option(1, \"Skull\"));\n options10.add(new Option(2, \"Knee Cap\"));\n options10.add(new Option(3, \"Shoulder Joint\"));\n options10.add(new Option(4, \"Backbone\"));\n QUESTION.add(new Question(10, \"What is the more common name for the patella?\", getCategory(4), options10, options10.get(1)));\n\n List<Option> options11 = new ArrayList<Option>();\n options11.add(new Option(1, \"Mother India\"));\n options11.add(new Option(2, \"The Guide\"));\n options11.add(new Option(3, \"Madhumati\"));\n options11.add(new Option(4, \"Amrapali\"));\n QUESTION.add(new Question(11, \"Which was the 1st Indian movie submitted for Oscar?\", getCategory(1), options11, options11.get(0)));\n\n List<Option> options12 = new ArrayList<Option>();\n options12.add(new Option(1, \"Gunda\"));\n options12.add(new Option(2, \"Sholey\"));\n options12.add(new Option(3, \"Satte pe Satta\"));\n options12.add(new Option(4, \"Angoor\"));\n QUESTION.add(new Question(12, \"Which film is similar to Seven Brides For Seven Brothers?\", getCategory(1), options12, options12.get(2)));\n\n List<Option> options13 = new ArrayList<Option>();\n options13.add(new Option(1, \"Rocky\"));\n options13.add(new Option(2, \"Pancham\"));\n options13.add(new Option(3, \"Chichi\"));\n options13.add(new Option(4, \"Chintu\"));\n QUESTION.add(new Question(13, \"Music Director R.D. Burman is also known as?\", getCategory(1), options13, options13.get(1)));\n\n List<Option> options14 = new ArrayList<Option>();\n options14.add(new Option(1, \"Nagarjuna\"));\n options14.add(new Option(2, \"Chiranjeevi\"));\n options14.add(new Option(3, \"Rajinikanth\"));\n options14.add(new Option(4, \"NTR\"));\n QUESTION.add(new Question(14, \"Shivaji Rao Gaikwad is the real name of which actor?\", getCategory(1), options14, options14.get(2)));\n\n List<Option> options15 = new ArrayList<Option>();\n options15.add(new Option(1, \"Geraftaar\"));\n options15.add(new Option(2, \"Hum\"));\n options15.add(new Option(3, \"Andha kanoon\"));\n options15.add(new Option(4, \"Agneepath\"));\n QUESTION.add(new Question(15, \"Name the film in which Amitabh Bachchan, Rajinikanth and Kamal Hasan worked together.\", getCategory(1), options15, options15.get(0)));\n\n List<Option> options16 = new ArrayList<Option>();\n options16.add(new Option(1, \"AR Rahman\"));\n options16.add(new Option(2, \"Bhanu Athaiya\"));\n options16.add(new Option(3, \"Gulzar\"));\n options16.add(new Option(4, \"Rasul Pookutty\"));\n QUESTION.add(new Question(16, \"First Indian to win Oscar award?\", getCategory(1), options16, options16.get(1)));\n\n List<Option> options17 = new ArrayList<Option>();\n options17.add(new Option(1, \"Jab tak hai jaan\"));\n options17.add(new Option(2, \"Rab ne bana di jodi\"));\n options17.add(new Option(3, \"Veer zara\"));\n options17.add(new Option(4, \"Ek tha tiger\"));\n QUESTION.add(new Question(17, \"Which was the last movie directed by Yash Chopra?\", getCategory(1), options17, options17.get(0)));\n\n\n List<Option> options18 = new ArrayList<Option>();\n options18.add(new Option(1, \"‘Thala’ Ajith\"));\n options18.add(new Option(2, \"Arjun Sarja\"));\n options18.add(new Option(3, \"Ashutosh Gawariker\"));\n options18.add(new Option(4, \"AK Hangal\"));\n QUESTION.add(new Question(18, \"\\\"Itna sannata kyun hai bhai?\\\" Who said this, now legendary words, in 'Sholay'?\", getCategory(1), options18, options18.get(3)));\n\n List<Option> options19 = new ArrayList<Option>();\n options19.add(new Option(1, \"Tommy\"));\n options19.add(new Option(2, \"Tuffy\"));\n options19.add(new Option(3, \"Toffy\"));\n options19.add(new Option(4, \"Timmy\"));\n QUESTION.add(new Question(19, \"What was the name of Madhuri Dixit’s dog in Hum Aapke Hain Koun?\", getCategory(1), options19, options19.get(1)));\n\n List<Option> options20 = new ArrayList<Option>();\n options20.add(new Option(1, \"Premnath\"));\n options20.add(new Option(2, \"Dilip Kumar\"));\n options20.add(new Option(3, \"Raj Kapoor\"));\n options20.add(new Option(4, \"Kishore Kumar\"));\n QUESTION.add(new Question(20, \"Beautiful actress Madhubala was married to?\", getCategory(1), options20, options20.get(3)));\n\n\n List<Option> options21 = new ArrayList<Option>();\n options21.add(new Option(1, \"Sher Khan\"));\n options21.add(new Option(2, \"Mufasa\"));\n options21.add(new Option(3, \"Simba\"));\n options21.add(new Option(4, \"Sarabi\"));\n QUESTION.add(new Question(21, \"What is the name of the young lion whose story is told in the musical 'The Lion King'?\", getCategory(2), options21, options21.get(2)));\n\n List<Option> options22 = new ArrayList<Option>();\n options22.add(new Option(1, \"Scotland\"));\n options22.add(new Option(2, \"England\"));\n options22.add(new Option(3, \"Germany\"));\n options22.add(new Option(4, \"Netherland\"));\n QUESTION.add(new Question(22, \"Which country's freedom struggle is portrayed in the Mel Gibson movie 'Braveheart'?\", getCategory(2), options22, options22.get(0)));\n\n List<Option> options23 = new ArrayList<Option>();\n options23.add(new Option(1, \"Letters to Juliet\"));\n options23.add(new Option(2, \"Saving Private Ryan\"));\n options23.add(new Option(3, \"Forest Gump\"));\n options23.add(new Option(4, \"Gone With The Wind\"));\n QUESTION.add(new Question(23, \"Which movie had this dialogue \\\"My mama always said, life was like a box of chocolates. You never know what you're gonna get.\", getCategory(2), options23, options23.get(2)));\n\n List<Option> options24 = new ArrayList<Option>();\n options24.add(new Option(1, \"Die\"));\n options24.add(new Option(2, \"Golden\"));\n options24.add(new Option(3, \"Casino\"));\n options24.add(new Option(4, \"Never\"));\n QUESTION.add(new Question(24, \"Excluding \\\"the\\\", which word appears most often in Bond movie titles?\", getCategory(2), options24, options24.get(3)));\n\n List<Option> options25 = new ArrayList<Option>();\n options25.add(new Option(1, \"Bishop\"));\n options25.add(new Option(2, \"Ash\"));\n options25.add(new Option(3, \"Call\"));\n options25.add(new Option(4, \"Carlos\"));\n QUESTION.add(new Question(25, \"Name the android in movie Alien \", getCategory(2), options25, options25.get(1)));\n\n List<Option> options26 = new ArrayList<Option>();\n options26.add(new Option(1, \"Gone with the wind\"));\n options26.add(new Option(2, \"Home footage\"));\n options26.add(new Option(3, \"With Our King and Queen Through India\"));\n options26.add(new Option(4, \"Treasure Island\"));\n QUESTION.add(new Question(26, \"Which was the first colour film to win a Best Picture Oscar?\", getCategory(2), options26, options26.get(0)));\n\n List<Option> options27 = new ArrayList<Option>();\n options27.add(new Option(1, \"Robert Redford\"));\n options27.add(new Option(2, \"Michael Douglas\"));\n options27.add(new Option(3, \"Harrison Ford\"));\n options27.add(new Option(4, \"Patrick Swayze\"));\n QUESTION.add(new Question(27, \"Who played the male lead opposite Sharon Stone in the hugely successful movie 'The Basic Instinct'?\", getCategory(2), options27, options27.get(1)));\n\n List<Option> options28 = new ArrayList<Option>();\n options28.add(new Option(1, \"10,000 BC\"));\n options28.add(new Option(2, \"Day after tomorrow\"));\n options28.add(new Option(3, \"2012\"));\n options28.add(new Option(4, \"The Noah's Ark Principle\"));\n QUESTION.add(new Question(28, \"Which Roland Emmerich movie portrays fictional cataclysmic events that were to take place in early 21st century?\", getCategory(2), options28, options28.get(2)));\n\n List<Option> options29 = new ArrayList<Option>();\n options29.add(new Option(1, \"Finding Nemo\"));\n options29.add(new Option(2, \"The Incredibles\"));\n options29.add(new Option(3, \"Monsters, Inc.\"));\n options29.add(new Option(4, \"Toy Story\"));\n QUESTION.add(new Question(29, \"What was the first movie by Pixar to receive a rating higher than G in the United States?\", getCategory(2), options29, options29.get(1)));\n\n List<Option> options30 = new ArrayList<Option>();\n options30.add(new Option(1, \"Draco\"));\n options30.add(new Option(2, \"Harry\"));\n options30.add(new Option(3, \"Hermione\"));\n options30.add(new Option(4, \"Ron\"));\n QUESTION.add(new Question(30, \"In the 'Prisoner of Azkaban', who throws rocks at Hagrid's hut so that Harry, Ron and Hermione can leave?\", getCategory(2), options30, options30.get(2)));\n\n List<Option> options31 = new ArrayList<Option>();\n options31.add(new Option(1, \"Brett Lee\"));\n options31.add(new Option(2, \"Adam Gilchrist\"));\n options31.add(new Option(3, \"Jason Gillespie\"));\n options31.add(new Option(4, \"Glenn McGrath\"));\n QUESTION.add(new Question(31, \"'Dizzy' is the nickname of what Australian player?\", getCategory(3), options31, options31.get(2)));\n\n List<Option> options32 = new ArrayList<Option>();\n options32.add(new Option(1, \"1883 between Australia and Wales\"));\n options32.add(new Option(2, \"1844 between Canada and the USA\"));\n options32.add(new Option(3, \"1869 between England and Australia\"));\n options32.add(new Option(4, \"1892 between England and India\"));\n QUESTION.add(new Question(32, \"In what year was the first international cricket match held?\", getCategory(3), options32, options32.get(1)));\n\n List<Option> options33 = new ArrayList<Option>();\n options33.add(new Option(1, \"Salim Durrani\"));\n options33.add(new Option(2, \"Farooq Engineer\"));\n options33.add(new Option(3, \"Vijay Hazare\"));\n options33.add(new Option(4, \"Mansur Ali Khan Pataudi\"));\n QUESTION.add(new Question(33, \"Which former Indian cricketer was nicknamed 'Tiger'?\", getCategory(3), options33, options33.get(3)));\n\n List<Option> options34 = new ArrayList<Option>();\n options34.add(new Option(1, \"Piyush Chawla\"));\n options34.add(new Option(2, \"Gautam Gambhir\"));\n options34.add(new Option(3, \"Irfan Pathan\"));\n options34.add(new Option(4, \"Suresh Raina\"));\n QUESTION.add(new Question(34, \"Who was named as the ICC Emerging Player of the Year 2004?\", getCategory(3), options34, options34.get(2)));\n\n List<Option> options35 = new ArrayList<Option>();\n options35.add(new Option(1, \"Subhash Gupte\"));\n options35.add(new Option(2, \"M.L.Jaisimha\"));\n options35.add(new Option(3, \"Raman Lamba\"));\n options35.add(new Option(4, \"Lala Amarnath\"));\n QUESTION.add(new Question(35, \"Which cricketer died on the field in Bangladesh while playing for Abahani Club?\", getCategory(3), options35, options35.get(2)));\n\n List<Option> options36 = new ArrayList<Option>();\n options36.add(new Option(1, \"V. Raju\"));\n options36.add(new Option(2, \"Rajesh Chauhan\"));\n options36.add(new Option(3, \"Arshad Ayub\"));\n options36.add(new Option(4, \"Narendra Hirwani\"));\n QUESTION.add(new Question(36, \"In 1987-88, which Indian spinner took 16 wickets on his Test debut?\", getCategory(3), options36, options36.get(3)));\n\n List<Option> options37 = new ArrayList<Option>();\n options37.add(new Option(1, \"Ravi Shastri\"));\n options37.add(new Option(2, \"Dilip Vengsarkar\"));\n options37.add(new Option(3, \"Sachin Tendulkar\"));\n options37.add(new Option(4, \"Sanjay Manjrekar\"));\n QUESTION.add(new Question(37, \"Which former Indian Test cricketer equalled Gary Sobers world record of six sixes in an over in a Ranji Trophy match?\", getCategory(3), options37, options37.get(0)));\n\n List<Option> options38 = new ArrayList<Option>();\n options38.add(new Option(1, \"Mohsin khan\"));\n options38.add(new Option(2, \"Wasim Akram\"));\n options38.add(new Option(3, \"Naveen Nischol\"));\n options38.add(new Option(4, \"None Of The Above\"));\n QUESTION.add(new Question(38, \"Reena Roy the Indian film actress married a cricketer?\", getCategory(3), options38, options38.get(0)));\n\n List<Option> options39 = new ArrayList<Option>();\n options39.add(new Option(1, \"London, England\"));\n options39.add(new Option(2, \"Mumbai, India\"));\n options39.add(new Option(3, \"Lahore, Pakistan\"));\n options39.add(new Option(4, \"Nairobi, Kenya\"));\n QUESTION.add(new Question(39, \"Where did Yuvraj Singh make his ODI debut?\", getCategory(3), options39, options39.get(3)));\n\n List<Option> options40 = new ArrayList<Option>();\n options40.add(new Option(1, \"Arvind De Silva\"));\n options40.add(new Option(2, \"Roshan Mahanama\"));\n options40.add(new Option(3, \"Harshan Tilakaratne\"));\n options40.add(new Option(4, \"None Of The Above\"));\n QUESTION.add(new Question(40, \"Kapil Dev's 432 (world) record breaking victim was?\", getCategory(3), options40, options40.get(2)));\n\n List<Option> options41 = new ArrayList<Option>();\n options41.add(new Option(1, \"Vatican\"));\n options41.add(new Option(2, \"Iceland\"));\n options41.add(new Option(3, \"Netherlands\"));\n options41.add(new Option(4, \"Hungary\"));\n QUESTION.add(new Question(41, \"Which country has the lowest population density of any country in Europe?\", getCategory(5), options41, options41.get(1)));\n\n List<Option> options42 = new ArrayList<Option>();\n options42.add(new Option(1, \"Cambodia\"));\n options42.add(new Option(2, \"Thailand\"));\n options42.add(new Option(3, \"Mynamar\"));\n options42.add(new Option(4, \"Bhutan\"));\n QUESTION.add(new Question(42, \"Angkor Wat, the largest religious monument in the world, is in which country?\", getCategory(5), options42, options42.get(0)));\n\n List<Option> options43 = new ArrayList<Option>();\n options43.add(new Option(1, \"Southern\"));\n options43.add(new Option(2, \"Northern and Southern\"));\n options43.add(new Option(3, \"Northern\"));\n options43.add(new Option(4, \"None of the above\"));\n QUESTION.add(new Question(43, \"Is the Tropic of Cancer in the northern or southern hemisphere?\", getCategory(5), options43, options43.get(2)));\n\n List<Option> options44 = new ArrayList<Option>();\n options44.add(new Option(1, \"Bangladesh\"));\n options44.add(new Option(2, \"Nepal\"));\n options44.add(new Option(3, \"Pakistan\"));\n options44.add(new Option(4, \"China\"));\n QUESTION.add(new Question(44, \"The Ganges flows through India and which other country?\", getCategory(5), options44, options44.get(0)));\n\n List<Option> options45 = new ArrayList<Option>();\n options45.add(new Option(1, \"Indian\"));\n options45.add(new Option(2, \"Pacific\"));\n options45.add(new Option(3, \"Arctic\"));\n options45.add(new Option(4, \"Atlantic\"));\n QUESTION.add(new Question(45, \"Which ocean lies on the east coast of the United States?\", getCategory(5), options45, options45.get(3)));\n\n List<Option> options46 = new ArrayList<Option>();\n options46.add(new Option(1, \"Prime Axis\"));\n options46.add(new Option(2, \"Lambert Line\"));\n options46.add(new Option(3, \"Prime Meridian\"));\n options46.add(new Option(4, \"Greenwich\"));\n QUESTION.add(new Question(46, \"What is the imaginary line called that connects the north and south pole?\", getCategory(5), options46, options46.get(2)));\n\n List<Option> options47 = new ArrayList<Option>();\n options47.add(new Option(1, \"Tropic of Cancer\"));\n options47.add(new Option(2, \"Tropic of Capricorn\"));\n QUESTION.add(new Question(47, \"The most northerly circle of latitude on the Earth at which the Sun may appear directly overhead at its culmination is called?\", getCategory(5), options47, options47.get(0)));\n\n List<Option> options48 = new ArrayList<Option>();\n options48.add(new Option(1, \"Nevada\"));\n options48.add(new Option(2, \"Arizona\"));\n options48.add(new Option(3, \"New Mexico\"));\n options48.add(new Option(4, \"San Fransisco\"));\n QUESTION.add(new Question(48, \"Which U.S. state is the Grand Canyon located in?\", getCategory(5), options48, options48.get(1)));\n\n List<Option> options49 = new ArrayList<Option>();\n options49.add(new Option(1, \"Indian Ocean\"));\n options49.add(new Option(2, \"Atlantic Ocean\"));\n options49.add(new Option(3, \"Pacific Ocean\"));\n options49.add(new Option(4, \"Arctic Ocean\"));\n QUESTION.add(new Question(49, \"Which is the largest body of water?\", getCategory(5), options49, options49.get(2)));\n\n List<Option> options50 = new ArrayList<Option>();\n options50.add(new Option(1, \"Maldives\"));\n options50.add(new Option(2, \"Monaco\"));\n options50.add(new Option(3, \"Tuvalu\"));\n options50.add(new Option(4, \"Vatican City\"));\n QUESTION.add(new Question(50, \"Which is the smallest country, measured by total land area?\", getCategory(5), options50, options50.get(3)));\n\n List<Option> options51 = new ArrayList<Option>();\n options51.add(new Option(1, \"1923\"));\n options51.add(new Option(2, \"1938\"));\n options51.add(new Option(3, \"1917\"));\n options51.add(new Option(4, \"1914\"));\n QUESTION.add(new Question(51, \"World War I began in which year?\", getCategory(6), options51, options51.get(3)));\n\n List<Option> options52 = new ArrayList<Option>();\n options52.add(new Option(1, \"France\"));\n options52.add(new Option(2, \"Germany\"));\n options52.add(new Option(3, \"Austria\"));\n options52.add(new Option(4, \"Hungary\"));\n QUESTION.add(new Question(52, \"Adolf Hitler was born in which country?\", getCategory(6), options52, options52.get(2)));\n\n List<Option> options53 = new ArrayList<Option>();\n options53.add(new Option(1, \"1973\"));\n options53.add(new Option(2, \"Austin\"));\n options53.add(new Option(3, \"Dallas\"));\n options53.add(new Option(4, \"1958\"));\n QUESTION.add(new Question(53, \"John F. Kennedy was assassinated in?\", getCategory(6), options53, options53.get(2)));\n\n List<Option> options54 = new ArrayList<Option>();\n options54.add(new Option(1, \"Johannes Gutenburg\"));\n options54.add(new Option(2, \"Benjamin Franklin\"));\n options54.add(new Option(3, \"Sir Isaac Newton\"));\n options54.add(new Option(4, \"Martin Luther\"));\n QUESTION.add(new Question(54, \"The first successful printing press was developed by this man.\", getCategory(6), options54, options54.get(0)));\n\n List<Option> options55 = new ArrayList<Option>();\n options55.add(new Option(1, \"The White Death\"));\n options55.add(new Option(2, \"The Black Plague\"));\n options55.add(new Option(3, \"Smallpox\"));\n options55.add(new Option(4, \"The Bubonic Plague\"));\n QUESTION.add(new Question(55, \"The disease that ravaged and killed a third of Europe's population in the 14th century is known as\", getCategory(6), options55, options55.get(3)));\n\n List<Option> options56 = new ArrayList<Option>();\n options56.add(new Option(1, \"Panipat\"));\n options56.add(new Option(2, \"Troy\"));\n options56.add(new Option(3, \"Waterloo\"));\n options56.add(new Option(4, \"Monaco\"));\n QUESTION.add(new Question(56, \"Napoleon was finally defeated at the battle known as?\", getCategory(6), options56, options56.get(2)));\n\n List<Option> options57 = new ArrayList<Option>();\n options57.add(new Option(1, \"Magellan\"));\n options57.add(new Option(2, \"Cook\"));\n options57.add(new Option(3, \"Marco\"));\n options57.add(new Option(4, \"Sir Francis Drake\"));\n QUESTION.add(new Question(57, \"Who was the first Western explorer to reach China?\", getCategory(6), options57, options57.get(2)));\n\n List<Option> options58 = new ArrayList<Option>();\n options58.add(new Option(1, \"Shah Jahan\"));\n options58.add(new Option(2, \"Chandragupta Maurya\"));\n options58.add(new Option(3, \"Humayun\"));\n options58.add(new Option(4, \"Sher Shah Suri\"));\n QUESTION.add(new Question(58, \"Who built the Grand Trunk Road?\", getCategory(6), options58, options58.get(3)));\n\n List<Option> options59 = new ArrayList<Option>();\n options59.add(new Option(1, \"Jawaharlal Nehru\"));\n options59.add(new Option(2, \"M. K. Gandhi\"));\n options59.add(new Option(3, \"Dr. Rajendra Prasad\"));\n options59.add(new Option(4, \"Dr. S. Radhakrishnan\"));\n QUESTION.add(new Question(59, \"Who was the first President of India?\", getCategory(6), options59, options59.get(2)));\n\n List<Option> options60 = new ArrayList<Option>();\n options60.add(new Option(1, \"8\"));\n options60.add(new Option(2, \"10\"));\n options60.add(new Option(3, \"5\"));\n options60.add(new Option(4, \"18\"));\n QUESTION.add(new Question(60, \"How many days did the battle of Mahabharata last?\", getCategory(6), options60, options60.get(3)));\n }\n return QUESTION;\n }", "public java.util.List<java.lang.CharSequence> getAnswers() {\n return Answers;\n }", "public QuestionElement getQuestion(){\r\n\t\treturn ques;\r\n\t}", "public String[] getAllAnswers() {\n\t\treturn remainingAnswers.clone();\n\t}", "@Override\n\tpublic List<String> getQuestionSpecificsAsList() {\n\t\treturn null;\n\t}", "public ArrayList<String> getQuestionList(){\n if(questionList != null) {\n return questionList;\n }\n else{\n System.out.println(\"No question list defined.\");\n return null;\n }\n }", "public List<String> getFaqElementAnswers() {\n List<String> answersList = new ArrayList<>();\n for(WebElement faqAnswer : faqElementAnswers()) {\n answersList.add(faqAnswer.getText());\n }\n return answersList;\n }", "List<Question> getQuestions(String surveyId);", "public String[] getAnswers()\n\t{\n\t\treturn answers;\t\n\t}", "public java.util.List<? extends com.rpg.framework.database.Protocol.QuestOrBuilder> \n getQuestOrBuilderList() {\n if (questBuilder_ != null) {\n return questBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(quest_);\n }\n }", "public String getQuestionContent() {\n return questionContent;\n }", "public java.util.List<com.rpg.framework.database.Protocol.Quest> getQuestList() {\n return quest_;\n }", "public List<Question> getPrivateQuestions() {\n QueryBase query = new AccessibleQuestions(getDefaultAdminUser(), 5, \n \"desc\", null, 0, Integer.MAX_VALUE);\n\n List<QuestionFilter> filters = new ArrayList<QuestionFilter>(1);\n QuestionFilter filter = new ByStatus();\n filter.include(QuestionStatus.PRIVATE.name());\n filters.add(filter);\n\n QueryFilterListBinder filteredQuery = \n new QueryFilterListBinder(query, filters);\n filteredQuery.init(5, \"desc\", 0, Integer.MAX_VALUE);\n QueryResult result = filteredQuery.executeQuery();\n \n return result.getList();\n }", "public String getQuestioncontent() {\n return questioncontent;\n }", "@GetMapping(value=\"/getAll\")\n\tpublic List<Question> getAll(){\n\t\tLOGGER.info(\"Viewing all questions\");\n\t\treturn questionObj.viewAllQuestions();\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic List<AssesmentQuestion> list() {\r\n\r\n\t\tSession session = sessionFactory.getCurrentSession();\r\n\t\tTransaction tx = session.beginTransaction();\r\n\t\tCriteria criteria = session.createCriteria(AssesmentQuestion.class);\r\n\r\n\t\tList<AssesmentQuestion> assesmentQuestionList = null;\r\n\t\ttry {\r\n\t\t\tassesmentQuestionList = criteria.list();\r\n\t\t\t// tx.commit();\r\n\t\t} catch (HibernateException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} finally {\r\n\t\t\tsession.close();\r\n\t\t}\r\n\r\n\t\treturn assesmentQuestionList;\r\n\r\n\t}", "public List<Question> loadQuestions() {\r\n\t\tScanner scanner = null;\r\n\t\ttry {\r\n\t\t\t// Creating scanner that reads the questions.txt file.\r\n\t\t\tscanner = new Scanner(new File(\"javaQuestions.txt\"));\r\n\t\t\t// Loop that goes over the file and adding each line as a string element to the\r\n\t\t\t// list. The result is full list with the questions.\r\n\t\t\twhile (scanner.hasNextLine()) {\r\n\t\t\t\tQuestion q = new Question();\r\n\t\t\t\tq.setQuestion(scanner.nextLine());\r\n\t\t\t\tquestions.add(q);\r\n\t\t\t}\r\n\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t// Closing the scanner.\r\n\t\tfinally {\r\n\t\t\tscanner.close();\r\n\t\t}\r\n\t\treturn questions;\r\n\t}", "public Map<BigInteger, Question> showQuestions() throws UserException {\n\t\treturn null;\r\n\t}", "@Override\n\tpublic List<Answer> findAll() {\n\t\treturn findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);\n\t}", "public int getQuestionCount() {\r\n\t\treturn this.question.size();\r\n\t}", "@Override\r\n public ArrayList<String> getAnswers() {\r\n return this.answers;\r\n }", "@Override\n\tpublic List<Answer> getAllAnswers() {\n\t\treturn dao.findAll();\n\t}", "@Override\r\n\tpublic List<QuestionRemark> getQuestionRemarkAll() throws Exception {\n\t\treturn null;\r\n\t}", "public static List<FAQ> all(){\n\t\tList<FAQ> faqs = find.findList();\n\t\treturn faqs;\n\t}", "public List<Question> getQuestions(String user) {\n List<Question> messages = new ArrayList<Question>();\n \n Query query =\n new Query(\"Question\")\n //The setFilter line was here originally but not in the Step 3 provided code\n .setFilter(new Query.FilterPredicate(\"user\", FilterOperator.EQUAL, user))\n .addSort(\"timestamp\", SortDirection.DESCENDING);\n PreparedQuery results = datastore.prepare(query);\n \n return questionHelper(user, messages, query, results);\n }", "public java.util.List<? extends com.rpg.framework.database.Protocol.QuestOrBuilder> \n getQuestOrBuilderList() {\n return quest_;\n }", "public List<Questions> getAllQuestionsHard() {\n List<Questions> questionList = new ArrayList<>();\n db = getReadableDatabase();\n Cursor c = db.rawQuery(\"SELECT * FROM \" + QuestionsTable.Table_name + \" WHERE _id BETWEEN 1 AND 10\", null);\n\n if (c.moveToFirst()){\n do {\n Questions question = new Questions();\n question.setQuestion(c.getString(c.getColumnIndex(QuestionsTable.Column_Question)));\n question.setOption1(c.getString(c.getColumnIndex(QuestionsTable.Column_Option1)));\n question.setOption2(c.getString(c.getColumnIndex(QuestionsTable.Column_Option2)));\n question.setOption3(c.getString(c.getColumnIndex(QuestionsTable.Column_Option3)));\n question.setOption4(c.getString(c.getColumnIndex(QuestionsTable.Column_Option4)));\n question.setAnswerNr(c.getInt(c.getColumnIndex(QuestionsTable.Column_Answer_Nr)));\n questionList.add(question);\n } while (c.moveToNext());\n }\n c.close();\n return questionList;\n }", "public synchronized String toString() {\n\t\treturn getTitle() + \" - \" + getQuestions();\n\t}", "@Override\n\tpublic PMQuestions getModel() {\n\t\treturn pmQuestions;\n\t}", "public String getQuestion() {\n return mQuestion;\n }", "public ArrayList<String> loadPostedQuestions() {\n\n\t\tSAVE_FILE = POSTED_QUESTIONS_FILE;\n\t\tArrayList<String> list = new ArrayList<String>();\n\t\tlist = loadIds();\n\t\treturn list;\n\t}", "public List getPrompts() {\n\t\tif (prompts == null) {\n\t\t\tprompts = new ArrayList();\n\t\t\tList nodes = doc.selectNodes(\"/metadataFieldInfo/field/prompts/prompt\");\n\t\t\tif (nodes != null) {\n\t\t\t\tfor (Iterator i = nodes.iterator(); i.hasNext();) {\n\t\t\t\t\tElement promptEl = (Element) i.next();\n\t\t\t\t\tprompts.add(promptEl.getTextTrim());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn prompts;\n\t}", "public List<Question> getData() {\n for (int i = 0; i < data.size(); i++) {\n List<Answer> answers = data.get(i).getAnswers();\n Collections.shuffle(answers);\n data.get(i).setAnswers(answers);\n }\n return data;\n }", "public static void printQuestions(ArrayList<Question> quest) {\n\t\tfor (Question question : quest) {\n\t\t\tquestion.getText();\n\t\t}\n\t}", "public Set<Answer> getAnswers() {\n // TODO implement here\n return null;\n }", "public List<MultQuestion> multChoiceQuestions(int qid);", "@Override\n\tpublic List<Questions> listQuestion(int testId) {\n\t\treturn null;\n\t}", "public String toString() {\n\t\tString s = \"\";\n\t\tif (title != null) {\n\t\t\ts += title + \"\\n\";\n\t\t}\n\t\tfor (Integer number : questions.keySet()) {\n\t\t\ts += questions.get(number) + \"\\n\";\n\t\t}\n\t\treturn s;\n\t}", "public static synchronized ArrayList<QAQuestions> fetchAllQuestions(\n\t\t\tContext context, String query) throws SQLException,\n\t\t\tNullPointerException {\n\n\t\tQADatabaseHelper dbHelper = QADatabaseHelper.getInstance(context);\n\t\tSQLiteDatabase db = dbHelper.getReadableDatabase();\n\n\t\tArrayList<QAQuestions> questionsList = null;\n\n\t\tCursor cursor = null;\n\t\ttry {\n\t\t\tcursor = db.rawQuery(query, null);\n\t\t} catch (Exception exception) {\n\t\t\texception.printStackTrace();\n\t\t}\n\t\tcursor.moveToFirst();\n\t\tif (cursor != null && cursor.getCount() > 0) {\n\t\t\tquestionsList = new ArrayList<QAQuestions>();\n\t\t\tfor (cursor.moveToFirst(); !cursor.isAfterLast(); cursor\n\t\t\t\t\t.moveToNext()) {\n\n\t\t\t\tQAQuestions question = new QAQuestions();\n\n\t\t\t\tquestion.setPrimaryKey(cursor.getInt(cursor\n\t\t\t\t\t\t.getColumnIndex(COLUMN_NAME_PRIMARY_KEY)));\n\t\t\t\tquestion.setQuestion(cursor.getString(cursor\n\t\t\t\t\t\t.getColumnIndex(COLUMN_NAME_QUESTION)));\n\t\t\t\tquestion.setOptionOne(cursor.getString(cursor\n\t\t\t\t\t\t.getColumnIndex(COLUMN_NAME_OPTION1)));\n\t\t\t\tquestion.setOptionTwo(cursor.getString(cursor\n\t\t\t\t\t\t.getColumnIndex(COLUMN_NAME_OPTION2)));\n\t\t\t\tquestion.setOptionThree(cursor.getString(cursor\n\t\t\t\t\t\t.getColumnIndex(COLUMN_NAME_OPTION3)));\n\t\t\t\tquestion.setOptionFour(cursor.getString(cursor\n\t\t\t\t\t\t.getColumnIndex(COLUMN_NAME_OPTION4)));\n\t\t\t\tquestion.setAnswer(cursor.getString(cursor\n\t\t\t\t\t\t.getColumnIndex(COLUMN_NAME_ANSWER)));\n\t\t\t\tquestion.setUpdatedAt(cursor.getString(cursor\n\t\t\t\t\t\t.getColumnIndex(COLUMN_NAME_UPDATED_AT)));\n\t\t\t\tquestion.setFetched((cursor.getInt(cursor\n\t\t\t\t\t\t.getColumnIndex(COLUMN_NAME_IS_FETCHED)) == 1) ? true\n\t\t\t\t\t\t: false);\n\t\t\t\tquestionsList.add(question);\n\t\t\t}\n\t\t}\n\t\tcursor.close();\n\t\treturn questionsList;\n\t}", "public List<Question> getQuestionsByPoints() {\n List<Membership> memberships = (ArrayList<Membership>) this.getMemberships();\n List<Question> questions = new ArrayList<Question>();\n\n for (Membership m : memberships) \n \tfor(Question q: m.getQuestions())\n \t\tquestions.add(q);\n // We want the most recent questions first so reverse the array with\n // Collections.reverse\n // PostPointsComparator returns questions in asc we want desc\n Collections.sort(questions, new PostPointsComparator());\n Collections.reverse(questions);\n\n return questions;\n }", "@Override\r\n\tpublic String toString() {\r\n\t\treturn question;\r\n\t}", "@WebMethod public Vector<Question> getQuestions(Event ev);", "public static QuestionSet getQuestionSet() {\n\t\treturn questionSet;\n\t}", "public List<TextQuestion> TextQuestions(int aid);", "public String getQuestion() {\n return question;\n }", "public List<TemplateExamQuestion> getQuestions(Group group);", "public String getQuestion() {\n return question;\n }", "public List<Questions> getAllQuestionsEasy() {\n List<Questions> questionList = new ArrayList<>();\n db = getReadableDatabase();\n Cursor c = db.rawQuery(\"SELECT * FROM \" + QuestionsTable.Table_name + \" WHERE _id BETWEEN 21 AND 30\", null);\n\n if (c.moveToFirst()){\n do {\n Questions question = new Questions();\n question.setQuestion(c.getString(c.getColumnIndex(QuestionsTable.Column_Question)));\n question.setOption1(c.getString(c.getColumnIndex(QuestionsTable.Column_Option1)));\n question.setOption2(c.getString(c.getColumnIndex(QuestionsTable.Column_Option2)));\n question.setOption3(c.getString(c.getColumnIndex(QuestionsTable.Column_Option3)));\n question.setOption4(c.getString(c.getColumnIndex(QuestionsTable.Column_Option4)));\n question.setAnswerNr(c.getInt(c.getColumnIndex(QuestionsTable.Column_Answer_Nr)));\n questionList.add(question);\n } while (c.moveToNext());\n }\n c.close();\n return questionList;\n }", "public List<Answer> getAnswersList() {\n return answersList;\n }", "public String getQuestion() {\n\t\treturn question;\n\t}", "public List<Question> getQuestionbySid(int sid);", "public List<Questions> getAllQuestionsMedium() {\n List<Questions> questionList = new ArrayList<>();\n db = getReadableDatabase();\n Cursor c = db.rawQuery(\"SELECT * FROM \" + QuestionsTable.Table_name + \" WHERE _id BETWEEN 11 AND 20\", null);\n\n if (c.moveToFirst()){\n do {\n Questions question = new Questions();\n question.setQuestion(c.getString(c.getColumnIndex(QuestionsTable.Column_Question)));\n question.setOption1(c.getString(c.getColumnIndex(QuestionsTable.Column_Option1)));\n question.setOption2(c.getString(c.getColumnIndex(QuestionsTable.Column_Option2)));\n question.setOption3(c.getString(c.getColumnIndex(QuestionsTable.Column_Option3)));\n question.setOption4(c.getString(c.getColumnIndex(QuestionsTable.Column_Option4)));\n question.setAnswerNr(c.getInt(c.getColumnIndex(QuestionsTable.Column_Answer_Nr)));\n questionList.add(question);\n } while (c.moveToNext());\n }\n c.close();\n return questionList;\n }", "public int getSize()\r\n\t{\r\n\t\treturn questions.size();\r\n\t}", "public List<Quiz> getPopularQuizzes()\n\t{\n\t\t//Not implemented yet\n\t\treturn null;\n\t}", "public int numberOfQuestions() {\n\t\treturn getQuestions().size();\n\t}", "List<QuestionPlugin> getQuestionPlugins();", "@WebMethod public List<Question> findAllQuestion(Event ev);", "java.util.List<com.rpg.framework.database.Protocol.Quest> \n getQuestList();", "public List<Integer> getCorrectAnswers() {\n return correctAnswers;\n }", "public List<Hard> getAllHardQuestion()\n\t\t{\n\t\t\tList<Hard> Hard=(List<Hard>)this.hardRepository.findAll();\t\t\n\t\t\treturn Hard;\n\t\t}", "public IAnswer[] getAnswers();", "@Override\n\tpublic List<Questions> listQuestion(long testId1) {\n\t\treturn null;\n\t}", "public List<?> getQuestions(MathConfiguration mathConfig) {\n\r\n\t\tList<Problem> g7ExponentExpression = new ArrayList<Problem>();\r\n\t\t\r\n\t\tfor (int i = 0; i <3; i++)\r\n\t\t\tg7ExponentExpression.add(getProblem1(mathConfig));\r\n\t\tfor (int i = 0; i <4; i++)\r\n\t\t\tg7ExponentExpression.add(getProblem2(mathConfig));\r\n\t\tfor (int i = 0; i <3; i++)\r\n\t\t\tg7ExponentExpression.add(getProblem3(mathConfig));\r\n\t\tfor (int i = 0; i <3; i++)\r\n\t\t\tg7ExponentExpression.add(getProblem4(mathConfig));\r\n\t\tfor (int i = 0; i <3; i++)\r\n\t\t\tg7ExponentExpression.add(getProblem5(mathConfig));\r\n\t\tfor (int i = 0; i <2; i++)\r\n\t\t\tg7ExponentExpression.add(getProblem6(mathConfig));\r\n\t\tfor (int i = 0; i <2; i++)\r\n\t\t\tg7ExponentExpression.add(getProblem7(mathConfig)); \r\n\t\tfor (int i = 0; i <5; i++)\r\n\t\t\tg7ExponentExpression.add(getProblem8(mathConfig));\r\n\t\t\r\n\r\n\t\treturn g7ExponentExpression;\r\n\t}", "public List<String> getAnswersAsList() {\n\t\tString[] data = _answer.split(Question.answerDelimiter);\n\t\tList<String> output = new ArrayList<String>();\n\t\tfor (String answer : data) {\n\t\t\toutput.add(answer);\n\t\t}\n\t\treturn output;\n\t}", "public int getTotalQuestions() {\r\n\t\treturn totalQuestions;\r\n\t}", "public List<Integer> getCorrectAnswers() {\n\t\treturn correctAnswers;\n\t}", "public Question getQuestion() {\n return this.question;\n }", "public IQuestionIterator iterator() {\n\t\treturn getQuestions().iterator();\n\t}", "public List<Answer> getAnswers(Question question) throws Exception {\n DataBaseBroker dbb = new DataBaseBroker();\n dbb.loadDriver();\n dbb.establishConnection();\n List<Answer> answers = dbb.getAnswers(question);\n dbb.commit();\n dbb.closeConnection();\n return answers;\n }", "public java.util.List<WorldUps.UQuery> getQueriesList() {\n if (queriesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(queries_);\n } else {\n return queriesBuilder_.getMessageList();\n }\n }", "public static ArrayList<Question> init() {\r\n\t\t\r\n\t\tArrayList<Question> questionList = new ArrayList<Question>();\r\n\t\t\r\n\t\tquestionList.add(new Question(\"What's the capital of Finland?\", \"Helsinki\", \"Hilsinki\",\r\n\t\t\t\t\"Halsinki\", \"Hulsinki\"));\r\n\t\tquestionList.add(new Question(\"What does the fox say?\", \"Nobody really knows\", \"Woof\", \"Meow\", \"Tweet\"));\r\n\t\tquestionList.add(new Question(\"Which insect inspired the term 'computer bug'?\", \"Moth\", \"Roach\", \"Wasp\", \"Fly\"));\r\n\t\tquestionList.add(new Question(\"Who's the protagonist of the movie 'Die Hard'?\", \"John McClane\", \"Jake Peralta\", \"Harry Stamper\", \"Jake MacClane\"));\r\n\t\tquestionList.add(new Question(\"Which one of the following is NOT a star in the Big Dipper constellation (Otava)?\", \"Altair\", \"Megrez\", \"Alkaid\", \"Phecda\"));\r\n\t\tquestionList.add(new Question(\"Which one of the following is NOT a dragon on the TV-series 'Game of Thrones'?\", \"Nymeria\", \"Drogon\", \"Viserion\", \"Rhaegal\"));\r\n\t\tquestionList.add(new Question(\"How many James Bond films are there (Spectre being the latest)?\", \"24\", \"50\", \"30\", \"26\"));\r\n\t\tquestionList.add(new Question(\"What breed is Sauli Niinistö and Jenni Haukio's dog Lennu?\", \"Boston terrier\", \"French bulldog\", \"Chihuahua\", \"Golden retriever\"));\r\n\t\tquestionList.add(new Question(\"Who has composed the Finnish national anthem, 'Maamme'?\", \"Fredrik Pacius\", \"Jean Sibelius\", \"Robert Kajanus\", \"Armas Launis\"));\r\n\t\tquestionList.add(new Question(\"What is the largest desert in the world called?\", \"Sahara\", \"Kalahari\", \"Thar\", \"Sonoran\"));\r\n\t\tquestionList.add(new Question(\"What is the name of the horse that is often seen in the streets of Turku?\", \"Kullannuppu\", \"Hulmuharja\", \"Ilon Pilke\", \"Valo\"));\r\n\t\tquestionList.add(new Question(\"How many different known species of shark are there?\", \"Over 400\", \"Less than 100\", \"200\", \"340\"));\r\n\t\t\r\n\t\t\r\n\t\treturn questionList;\r\n\t\t\r\n\t}", "public LSPField[] getAnswerFields () {\r\n return answerFields;\r\n }", "List<FAQModel> getFAQs();", "public List<DnsResource> answers() {\n if (answers == null) {\n return Collections.emptyList();\n }\n return Collections.unmodifiableList(answers);\n }", "@Override\n\tpublic List<QA> getQAList() {\n\t\treturn qaDao.getQAList();\n\t}", "@NonNull\n public String[] getPossibleAnswers() {\n return new String[]{firstAnswer, secondAnswer, thirdAnswer, fourthAnswer};\n }", "public String[] getStrings(){\n\t\tArrayList<String> s = new ArrayList<>();\n\t\tif (answertext0!=null && answertext0.isEmpty() == false)\n\t\t\ts.add(answertext0);\n\t\tif (answertext1!=null && answertext1.isEmpty() == false)\n\t\t\ts.add(answertext1);\n\t\tif (answertext2!=null && answertext2.isEmpty() == false)\n\t\t\ts.add(answertext2);\n\t\tif (answertext3!=null && answertext3.isEmpty() == false)\n\t\t\ts.add(answertext3);\n\t\tif (answertext4!=null && answertext4.isEmpty() == false)\n\t\t\ts.add(answertext4);\n\t\tif (answertext5!=null && answertext5.isEmpty() == false)\n\t\t\ts.add(answertext5);\n\t\tif (answertext6!=null && answertext6.isEmpty() == false)\n\t\t\ts.add(answertext6);\n\t\tif (answertext7!=null && answertext7.isEmpty() == false)\n\t\t\ts.add(answertext7);\n\t\tif (answertext8!=null && answertext8.isEmpty() == false)\n\t\t\ts.add(answertext8);\n\t\tif (answertext9!=null && answertext9.isEmpty() == false)\n\t\t\ts.add(answertext9);\n\t\treturn (String[]) s.toArray(new String[0]);\n\t}", "@Test\n\tpublic void testGetAllQuestions() {\n\t\tList<QnaQuestion> questions = questionLogic.getAllQuestions(LOCATION1_ID);\n\t\tAssert.assertEquals(5, questions.size());\n\t\tAssert.assertTrue(questions.contains(tdp.question1_location1));\n\t\tAssert.assertTrue(questions.contains(tdp.question2_location1));\n\t\tAssert.assertTrue(questions.contains(tdp.question3_location1));\n\t\tAssert.assertTrue(questions.contains(tdp.question4_location1));\n\t\tAssert.assertTrue(questions.contains(tdp.question5_location1));\n\t}", "public String[] getReplyStrings()\n {\n return _replyLines.toArray(new String[_replyLines.size()]);\n }", "public int getNumQuestions() {\n\t\treturn noOfQuestions;\n\t}", "public List<Boolean> getGivenAnswers()\n {\n return givenAnswers;\n }", "private List<QuestionDef> getQuestions(List<IFormElement> elements)\n\t{\n\t\t//define the return value\n\t\tArrayList<QuestionDef> questions = new ArrayList<QuestionDef>();\n\t\t//loop over elements\n\t\tif(elements == null)\n\t\t{\n\t\t\treturn questions;\n\t\t}\n\t\tfor(IFormElement element: elements)\n\t\t{\n\t\t\t//is it a question\n\t\t\tif(element instanceof QuestionDef)\n\t\t\t{\n\t\t\t\tquestions.add((QuestionDef)element);\n\t\t\t}\n\t\t\t//recurse\n\t\t\tquestions.addAll(getQuestions(element.getChildren()));\n\t\t}\n\t\t\n\t\treturn questions;\n\t}" ]
[ "0.75889075", "0.73735833", "0.73545605", "0.72211754", "0.7148698", "0.7028417", "0.6955382", "0.6954939", "0.6951715", "0.69383264", "0.69001037", "0.6739443", "0.6702652", "0.6642387", "0.6620608", "0.6618001", "0.6561968", "0.65221226", "0.65001905", "0.6474488", "0.64281666", "0.6350403", "0.63319916", "0.63169634", "0.62522167", "0.6251927", "0.6246785", "0.6231029", "0.6218367", "0.6164136", "0.61324155", "0.61269915", "0.6126562", "0.6117861", "0.61157924", "0.6097696", "0.60620135", "0.60160744", "0.6000794", "0.5987444", "0.59702", "0.59602404", "0.59580743", "0.5957056", "0.59477305", "0.5938546", "0.59038895", "0.58797646", "0.58633506", "0.5855219", "0.5851922", "0.585049", "0.5842349", "0.5828155", "0.5825884", "0.5808634", "0.5791761", "0.57856685", "0.57753766", "0.5770395", "0.57669157", "0.5757602", "0.57538944", "0.5752936", "0.57513666", "0.5730871", "0.572343", "0.57171595", "0.5695369", "0.56849575", "0.5664509", "0.56623626", "0.56500804", "0.56470674", "0.56373996", "0.56222516", "0.56155705", "0.5611942", "0.5602829", "0.5601126", "0.55977696", "0.55774516", "0.55769134", "0.55638844", "0.5558764", "0.555524", "0.55525714", "0.5544898", "0.55393887", "0.5535728", "0.5529363", "0.5525183", "0.5516976", "0.5510589", "0.54973096", "0.54918134", "0.548572", "0.5481463", "0.54635054", "0.5449809" ]
0.75259346
1
Returns a list of all the answer resource records in this message.
public List<DnsResource> answers() { if (answers == null) { return Collections.emptyList(); } return Collections.unmodifiableList(answers); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic List<Answer> findAll() {\n\t\treturn findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);\n\t}", "@Override\n\tpublic List<Answer> getAllAnswers() {\n\t\treturn dao.findAll();\n\t}", "public List<DataQuestion> getAllAnswer(){\n return items;\n }", "public List<Answer> getAnswersList() {\n return answersList;\n }", "public IAnswer[] getAnswers();", "public Set<Answer> getAnswers() {\n // TODO implement here\n return null;\n }", "public ResultSet getAllQuestionnaireResponses () throws Exception {\r\n String sql = \"SELECT * FROM questionnaireresponses;\";\r\n return stmt.executeQuery(sql);\r\n }", "public String[] getAnswers()\n\t{\n\t\treturn answers;\t\n\t}", "public List<MessageResource> listMessageResource();", "public List<Answer> getAnswers(Question question) throws Exception {\n DataBaseBroker dbb = new DataBaseBroker();\n dbb.loadDriver();\n dbb.establishConnection();\n List<Answer> answers = dbb.getAnswers(question);\n dbb.commit();\n dbb.closeConnection();\n return answers;\n }", "QuestionResponse getResponses(String questionId);", "public java.util.List<java.lang.CharSequence> getAnswers() {\n return Answers;\n }", "public ArrayList<ArrayList<String>> reportAnswers() { \n\n\t\ttry {\n\t\t\tAnswers myAnswers = new Answers(myQuestions.getData());\n\n\t\t\tSystem.out.println(\"Basic analysis:\" + myAnswers);\n\t\t\tSystem.out.println(myAnswers.getJSON());\n\n//\t\t\tShowImageFromURL.show(myAnswers.getBarChartURL());\n\t\t\t\n\t\t\treturn myAnswers.getJSON();\n\t\t} catch (RemoteException e) {\n\t\t\tSystem.out.println(\"Something went wrong: \"+e.toString());\n\t\t\te.printStackTrace();\n\t\t\treturn null; \n\t\t}\n\t\t\n\t}", "public java.util.List<java.lang.CharSequence> getAnswers() {\n return Answers;\n }", "public List<Answer> answersOfQuestion(Question question){\n\t\treturn this.aRepo.findAllByQuestion(question);\n\t}", "@RequestMapping(value = \"/answers\", method = RequestMethod.GET)\n\tpublic @ResponseBody List<Answer>getAllAnswers(){\n\t\treturn (List<Answer>)answerRepository.findAll();\n\t}", "@Override\n public List<Answer> getAnswers() {\n\n return AnswerFactory.create(\n 1, 0, -1\n );\n }", "public ArrayList<StudentAnswer> getAnswers() {\n TeacherDBCommands tdbc = new TeacherDBCommands(ctx);\n QuestionDBCommands qdbc = new QuestionDBCommands(ctx);\n\n ArrayList<StudentAnswer> answers = null;\n try {\n answers = tdbc.getStudentAnswers(this.studentId, this.quizId);\n } catch (SQLException e) {\n log.log(Level.SEVERE, e.getMessage(), e);\n }\n tdbc.closeConnection();\n\n if(answers != null){\n\n for (int i = 0; i < answers.size(); i++) {\n try {\n answers.get(i).setQuestion(qdbc.getQuestionById(answers.get(i).getQuizTestModuleQuestionId()));\n } catch (SQLException e) {\n log.log(Level.SEVERE, e.getMessage(), e);\n break;\n }\n }\n }\n qdbc.closeConnection();\n return answers;\n }", "public LSPField[] getAnswerFields () {\r\n return answerFields;\r\n }", "@Override\r\n public ArrayList<String> getAnswers() {\r\n return this.answers;\r\n }", "public String[] getAllAnswers() {\n\t\treturn remainingAnswers.clone();\n\t}", "public ArrayList<AnswerElement> getAnswer() {\r\n\t\treturn ans;\r\n\t}", "List<AnswerList> findAllAnsList();", "public List<ResourceItem> resourceList() {\n return this.resourceList;\n }", "public List<Answer> findByQuestionRef (ObjectId questionRef);", "public ArrayList<String> getAnswerList(){\n if(answerList != null) {\n return answerList;\n }\n else{\n System.out.println(\"Answer list is undefined.\");\n return null;\n }\n }", "public com.google.protobuf.ProtocolStringList\n getResourcesList() {\n return resources_;\n }", "public List<AbsRecord> getRecords()\n\t{\n\t\treturn getRecordBy(null, new HBRecordRowMapper());\n\t}", "@Override\r\n\tpublic List<ZyAnswer> getAnswersByQuestion(int questionId) {\n\t\treturn answerDao.getAnswersByquestion(questionId);\r\n\t}", "ReadResponseMessage fetchAllMessages();", "public ArrayList<Resource> getResources(){\n\t\treturn _resources;\n\t}", "public AttendeeCollection getResources() throws ServiceLocalException {\n\t\treturn (AttendeeCollection) this.getPropertyBag()\n\t\t\t\t.getObjectFromPropertyDefinition(AppointmentSchema.Resources);\n\t}", "public List<QnA_Reply> qnareplyread(QnA_Reply qnA_Reply) {\n\t\treturn session.selectList(namespace+\".qnareplyread\", qnA_Reply);\r\n\t}", "public ExitQuestions[] getQuestionsWithAnswers(int exitId) {\n\t\t// declare variables\n\t\tfinal boolean isConnSupplied = (userConn != null);\n\t\tConnection conn = null;\n\t\tPreparedStatement stmt = null;\n\t\tResultSet rs = null;\n\t\ttry{\n\t\t\t// get the user-specified connection or get a connection from the ResourceManager\n\t\t\tconn = isConnSupplied ? userConn : ResourceManager.getConnection();\n\t\t\t// construct the SQL statement\n\t\t\tfinal String SQL = \"SELECT E.*,ANSWER FROM EXIT_QUESTIONS E LEFT OUTER JOIN EXIT_QUESTIONS_MAP EQM ON EQM.EXIT_QUESTION_ID=E.ID AND EQM.EXIT_ID=?\";\n\t\t\tif (logger.isDebugEnabled()){\n\t\t\t\tlogger.debug(\"Executing \" + SQL);\n\t\t\t}\n\t\t\t// prepare statement\n\t\t\tstmt = conn.prepareStatement(SQL);\n\t\t\tstmt.setInt(1, exitId);\n\t\t\t// bind parameters\n\t\t\trs = stmt.executeQuery();\n\t\t\t// fetch the results\n\t\t\tCollection<ExitQuestions> resultList = new ArrayList<ExitQuestions>();\n\t\t\twhile (rs.next())\n\t\t\t\tresultList.add(new ExitQuestions(rs.getInt(1), rs.getString(2), rs.getString(3), rs.getString(4)));\n\t\t\tExitQuestions ret[] = new ExitQuestions[resultList.size()];\n\t\t\tresultList.toArray(ret);\n\t\t\treturn ret;\n\t\t} catch (Exception _e){\n\t\t\tlogger.error(\"Exception: \" + _e.getMessage(), _e);\n\t\t\treturn new ExitQuestions[] {};\n\t\t} finally{\n\t\t\tResourceManager.close(rs);\n\t\t\tResourceManager.close(stmt);\n\t\t\tif (!isConnSupplied){\n\t\t\t\tResourceManager.close(conn);\n\t\t\t}\n\t\t}\n\t}", "public String getResourceIds() {\n return resourceIds;\n }", "List<Question> getQuestions(String surveyId);", "public List<Answer> loadAnswers() {\r\n\t\tScanner scanner = null;\r\n\t\ttry {\r\n\t\t\t// Creating scanner that reads the questions.txt file.\r\n\t\t\tscanner = new Scanner(new File(\"javaAnswers.txt\"));\r\n\t\t\t// Loop that goes over the file and adding each line as a string element to the\r\n\t\t\t// list. The result is full list with the questions.\r\n\t\t\twhile (scanner.hasNextLine()) {\r\n\t\t\t\tAnswer a = new Answer();\r\n\t\t\t\ta.setPossibleAnswer(scanner.nextLine());\r\n\t\t\t\tpossibleAnswers.add(a);\r\n\t\t\t}\r\n\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t// Closing the scanner.\r\n\t\tfinally {\r\n\t\t\tscanner.close();\r\n\t\t}\r\n\t\treturn possibleAnswers;\r\n\t}", "public List<Resources> getAllResources()\r\n\t{\r\n\t\tList<Resources> l = resourceRepository.findByResource();\r\n\t\treturn l;\r\n\t}", "public List<ITranslationResource> getResources(){\n\t\treturn resources;\n\t}", "public com.google.protobuf.ProtocolStringList\n getResourcesList() {\n return resources_.getUnmodifiableView();\n }", "List<Question> getQuestions();", "public Resource[] getResourceArray() {\n return resource;\n }", "public RegTapResource[] getResources() {\n return resMap_.values().toArray( new RegTapResource[ 0 ] );\n }", "public List<AbsRecord> getRecords()\n\t{\n\t\treturn getRecordBy(null, new GAZRecordRowMapper());\n\t}", "public Resources resources() {\n return this.resources;\n }", "public List<Question> getQuestions() {\n return questionList;\n }", "public FSArray getAnswers() {\n if (Problem_Type.featOkTst && ((Problem_Type)jcasType).casFeat_answers == null)\n jcasType.jcas.throwFeatMissing(\"answers\", \"hw1.qa.Problem\");\n return (FSArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((Problem_Type)jcasType).casFeatCode_answers)));}", "@Override\n\tpublic List<Answer> findAll(int start, int end) {\n\t\treturn findAll(start, end, null);\n\t}", "public Collection<Resource> getResources() {\n return resourceRegistry.getEntries().values();\n }", "public List<String> getAnswersAsList() {\n\t\tString[] data = _answer.split(Question.answerDelimiter);\n\t\tList<String> output = new ArrayList<String>();\n\t\tfor (String answer : data) {\n\t\t\toutput.add(answer);\n\t\t}\n\t\treturn output;\n\t}", "public List<MessageResource> listMessageResourceByLocale(String locale);", "public FSList getAnswers() {\n if (AnswerList_Type.featOkTst && ((AnswerList_Type)jcasType).casFeat_answers == null)\n jcasType.jcas.throwFeatMissing(\"answers\", \"model.AnswerList\");\n return (FSList)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((AnswerList_Type)jcasType).casFeatCode_answers)));}", "public int[] getAllAnswers() {\n return myIndices;\n }", "List<ExamGrSubMeta> getAnswerSheetMeta();", "public String[] getReplyStrings()\n {\n return _replyLines.toArray(new String[_replyLines.size()]);\n }", "public org.semanticwb.model.GenericIterator<org.semanticwb.model.Resource> listResources()\r\n {\r\n return new org.semanticwb.model.GenericIterator<org.semanticwb.model.Resource>(getSemanticObject().listObjectProperties(swb_hasPTResource));\r\n }", "public List<MessageResourceHistory> listMessageResourceHistory(Long messageResource) throws Exception;", "@ApiModelProperty(value = \"A property definition for all answers. If included each answer must match this definition's type and be valid\")\n public PropertyDefinitionResource getAnswerProperty() {\n return answerProperty;\n }", "public Answer getAnswer(){\n\t\treturn answer; /** use relation -> DecideAnswer.java */\n\t}", "@RequestMapping(value=\"api/messages\", method=RequestMethod.GET)\n\tpublic List<Recording> getAllMessages() {\n\t\treturn this.service.getAllMessages();\n\t}", "public ArrayList<Answer> getAllAnswersByQuestionId(int id) {\n \t\tArrayList<Answer> questionAnswers = new ArrayList<Answer>();\n \t\tfor (Answer answer : answers) {\n \t\t\tif (answer.getQuestionId() == id) {\n \t\t\t\tquestionAnswers.add(answer);\n \t\t\t}\n \t\t}\n \t\treturn questionAnswers;\n \t}", "List<Resource> resources();", "public List<String> getRecordings(){\n findRecordings();\n return _records;\n }", "public List<String> getResources() {\n return resources;\n }", "public List<MessageResource> listMessageResourceByLocaleReferenceId(Long localeReferenceId);", "public List<Integer> getCorrectAnswers() {\n return correctAnswers;\n }", "List<ReportDescriptor> getReportDescriptors();", "public List<Resource> getAvailableResources();", "public List<MessageResource> listMessageResourceByViewId(Long viewId);", "public List<Integer> getCorrectAnswers() {\n\t\treturn correctAnswers;\n\t}", "@Override\n\tpublic List<EngageAnswerDetails> findAllEngageAnswerDetails() {\n\t\treturn engageAnswerDetailsMapper.selectAllEngageAnswerDetails();\n\t}", "public int getAnswers() {\n return answers;\n }", "@ApiModelProperty(value = \"List of attributes to return with decisions. These attributes are known as response attributes\")\n public List<Object> getResourceAttributes() {\n return resourceAttributes;\n }", "@GetMapping(\"/administrator/replies\")\n\tpublic List<ReactReply> getAllRepliesa() {\n\t\tSystem.out.println(\"get all replies (employee) request received\");\n\t\t\treturn replyService.getAllReplies(); //no logic here, just a call to service when the request is received.\n\n\t}", "public ResourceSet getAllResources() {\n return getAllResourcesExcept(null);\n }", "ArrayList<Integer> getAnswers (Integer q) {\n\t\tif (results.containsKey(q)) {\n\t\t\treturn results.get(q);\n\t\t} else {\n\t\t\tSystem.out.println(\"No answers found.\");\n\t\t\treturn null;\n\t\t}\n\t}", "public AnswerRecord() {\n super(Answer.ANSWER);\n }", "@Override\n public Class<ResourcesRecord> getRecordType() {\n return ResourcesRecord.class;\n }", "private ArrayList<Answer> createAnswers(){\n\t\tlong[] timestamps = getTimestamps();\n\t\t\n\t\t//get questions\n\t\tQuestionDAO questionDAO = new QuestionDAO();\n \t\tList<Question> questions = questionDAO.getAllEntities();\n\t\t\n\t\t//get users\n\t\tString[] users = getTestUsers();\n\t\t\n\t\t//create answers for each user, timestamp with random rating\n\t\tArrayList<Answer> answers = new ArrayList<Answer>();\n\t\tAnswerDAO answerDAO = new AnswerDAO();\n\t\t\n\t\tfor(Question question : questions){\n\t\t\tfor(String user : users){\n\t\t\t\tfor(long timestamp : timestamps){\n\t\t\t\t\tAnswer answer = new Answer();\n\t\t\t\t\tanswer.setCreationTimestamp(timestamp);\n\t\t\t\t\tanswer.setQuestionCategory(question.getCategory());\n\t\t\t\t\tanswer.setQuestionCategoryId(question.getCategoryId());\n\t\t\t\t\tanswer.setQuestionId(question.getId());\n\t\t\t\t\tanswer.setQuestionText(question.getDescription());\n\t\t\t\t\tanswer.setRating(getRandomRating(0,10));\n\t\t\t\t\tanswer.setUser(user);\n\t\t\t\t\tanswers.add(answerDAO.createEntity(answer));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn answers;\n\t}", "public Collection<Question> getQuestions();", "public List<Question> getData() {\n for (int i = 0; i < data.size(); i++) {\n List<Answer> answers = data.get(i).getAnswers();\n Collections.shuffle(answers);\n data.get(i).setAnswers(answers);\n }\n return data;\n }", "@Override\n public FeedbackReportResource getFeedbackReportData(int questionId) {\n QuestionModel byQuestionId = questionRepository.findByQuestionId(questionId);\n if (byQuestionId != null) {\n List<AnswerModel> answerList = answerRepository.findAllById(questionId);\n List<Integer> answerIds = answerList.stream().map(AnswerModel::getId).collect(Collectors.toList());\n List<FeedbackReportModel> feedbackReportModelList = feedbackRepository.getFeedbackCountByQuestionId(answerIds);\n\n FeedbackReportResource feedbackReportResource = new FeedbackReportResource();\n feedbackReportResource.setQuestion(byQuestionId.getQuestion());\n\n\n List<FeedbackReportResource.FeedbackAnswerReportResource> answerReportList = feedbackReportModelList.stream().map(feedbackReportModel -> {\n String answerById = answerRepository.getAnswerById(feedbackReportModel.getAnswerId());\n FeedbackReportResource.FeedbackAnswerReportResource reportResource = new FeedbackReportResource.FeedbackAnswerReportResource();\n reportResource.setAnswer(answerById);\n reportResource.setAnswerCount(feedbackReportModel.getCount());\n return reportResource;\n\n }).collect(Collectors.toList());\n feedbackReportResource.setAnswerReportResources(answerReportList);\n return feedbackReportResource;\n }\n return null;\n }", "@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic List<AssesmentQuestion> list() {\r\n\r\n\t\tSession session = sessionFactory.getCurrentSession();\r\n\t\tTransaction tx = session.beginTransaction();\r\n\t\tCriteria criteria = session.createCriteria(AssesmentQuestion.class);\r\n\r\n\t\tList<AssesmentQuestion> assesmentQuestionList = null;\r\n\t\ttry {\r\n\t\t\tassesmentQuestionList = criteria.list();\r\n\t\t\t// tx.commit();\r\n\t\t} catch (HibernateException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} finally {\r\n\t\t\tsession.close();\r\n\t\t}\r\n\r\n\t\treturn assesmentQuestionList;\r\n\r\n\t}", "public ArrayList<Record> getRecords() {\r\n\t\treturn records;\r\n\t}", "@Override\n public List<SoapEvent> readAll() {\n final ReadAllSoapEventOutput output = serviceProcessor.process(ReadAllSoapEventInput.builder().build());\n\n for(SoapEvent soapEvent : output.getSoapEvents()){\n final String resourceLink = generateResourceLink(soapEvent);\n soapEvent.setResourceLink(resourceLink);\n }\n\n return output.getSoapEvents();\n }", "@ApiModelProperty(value = \"List of the resource name pattern strings to which the policy applies. Must conform to the pattern templates provided by the associated Managing Resource Types resource type\")\n public List<String> getResources() {\n return resources;\n }", "@GetMapping(\"/employee/replies\")\n\tpublic List<ReactReply> getAllReplies() {\n\t\tSystem.out.println(\"get all replies (employee) request received\");\n\t\t\tList<ReactReply> rreplies = replyService.getAllReplies(); //no logic here, just a call to service when the request is received.\n\t\t\tSystem.out.println(rreplies);\n\t\t\treturn rreplies;\n\t\t\t\n\t}", "@GetMapping(value=\"/getAll\")\n\tpublic List<Question> getAll(){\n\t\tLOGGER.info(\"Viewing all questions\");\n\t\treturn questionObj.viewAllQuestions();\n\t}", "public String getAnswerBy() {\n return answerBy;\n }", "public List<Questions> getAllQuestionsHard() {\n List<Questions> questionList = new ArrayList<>();\n db = getReadableDatabase();\n Cursor c = db.rawQuery(\"SELECT * FROM \" + QuestionsTable.Table_name + \" WHERE _id BETWEEN 1 AND 10\", null);\n\n if (c.moveToFirst()){\n do {\n Questions question = new Questions();\n question.setQuestion(c.getString(c.getColumnIndex(QuestionsTable.Column_Question)));\n question.setOption1(c.getString(c.getColumnIndex(QuestionsTable.Column_Option1)));\n question.setOption2(c.getString(c.getColumnIndex(QuestionsTable.Column_Option2)));\n question.setOption3(c.getString(c.getColumnIndex(QuestionsTable.Column_Option3)));\n question.setOption4(c.getString(c.getColumnIndex(QuestionsTable.Column_Option4)));\n question.setAnswerNr(c.getInt(c.getColumnIndex(QuestionsTable.Column_Answer_Nr)));\n questionList.add(question);\n } while (c.moveToNext());\n }\n c.close();\n return questionList;\n }", "public List<Hard> getAllHardQuestion()\n\t\t{\n\t\t\tList<Hard> Hard=(List<Hard>)this.hardRepository.findAll();\t\t\n\t\t\treturn Hard;\n\t\t}", "@Override\n\t@Transactional(readOnly=true)\n\tpublic List<QuestionMultiChoice> findAll() {\n\t\treturn Lists.newArrayList(qcmRepository.findAll());\n\t}", "List<Question> getQuestionsUsed();", "@Override\r\n\tpublic List<QuestionRemark> getQuestionRemarkAll() throws Exception {\n\t\treturn null;\r\n\t}", "public List<MessageResource> listMessageResourceByMessageKey(String messageKey);", "public List<Resource> listResources() throws IOException,\n\t\t\tClassNotFoundException {\n\t\treturn list(Resource.class);\n\t}", "public Vector getResourceIds()\n {\n return mResourceIds;\n }", "@Override\n public void addResponses() {\n for(answerChoice a: this.userAnswers) {\n this.addResponseHelper(a.getAnswerText());\n //this.savedResponses. //add(a.getAnswerText());\n //try {\n\n //} catch(Exception e) {\n // e.printStackTrace();\n\n //}\n\n }\n }", "public ArrayList<CIPsResponse> getResponsesList() {\n createAllResponses();\n return responsesList;\n }", "public DnsMessage addAnswer(DnsResource answer) {\n if (answers == null) {\n answers = new LinkedList<DnsResource>();\n }\n answers.add(answer);\n return this;\n }" ]
[ "0.6642069", "0.6599485", "0.6544519", "0.6321325", "0.6078469", "0.6042053", "0.60397595", "0.60162693", "0.6002967", "0.59677064", "0.595668", "0.5930868", "0.5926348", "0.59110445", "0.58713055", "0.583462", "0.57732755", "0.5772151", "0.5738174", "0.57148993", "0.5712773", "0.56836075", "0.5583584", "0.5580775", "0.55556303", "0.55466795", "0.55322766", "0.54628366", "0.5442878", "0.54348797", "0.5400701", "0.5399719", "0.53994197", "0.5387167", "0.53762156", "0.5375937", "0.53623176", "0.5353005", "0.53037095", "0.52850413", "0.52745104", "0.5274301", "0.5251295", "0.5248687", "0.52458745", "0.5241752", "0.5235452", "0.52341145", "0.52271324", "0.5226003", "0.5224322", "0.5217771", "0.52170944", "0.52104837", "0.52087456", "0.52058333", "0.5205368", "0.52011883", "0.5198245", "0.51847076", "0.5181251", "0.5165793", "0.5157571", "0.5150374", "0.5147911", "0.5146679", "0.5131708", "0.5123393", "0.51124907", "0.51107085", "0.51051515", "0.51020813", "0.5101689", "0.5094996", "0.50942296", "0.50875604", "0.508722", "0.50841254", "0.5080834", "0.50688916", "0.50658906", "0.5062969", "0.5057694", "0.50455195", "0.5041428", "0.5035334", "0.50346255", "0.50340015", "0.503385", "0.5033707", "0.50302976", "0.50197977", "0.5012379", "0.50118345", "0.50098956", "0.5009291", "0.5007597", "0.5007542", "0.5002803", "0.4999685" ]
0.6835417
0
Returns a list of all the authority resource records in this message.
public List<DnsResource> authorityResources() { if (authority == null) { return Collections.emptyList(); } return Collections.unmodifiableList(authority); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@RequestMapping(value = \"/authority\", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)\n\tpublic ResponseEntity<List<String>> getAll() throws URISyntaxException {\n\t\tlog.debug(\"REST request to get all authority\");\n\t\treturn new ResponseEntity<>(authorityRepository.findAll().stream().map(Authority::getName).collect(Collectors.toList()), HttpStatus.OK);\n\t}", "public List<ACR> getAcrs() {\n return acrs;\n }", "@Transactional(readOnly=true)\r\n\t@Override\r\n\tpublic List<Map<String, Object>> getAuthorityByQueryAuthority(AuthorityQuery record) {\n\t\treturn authorityMapper.getAuthorityByQueryAuthority(record);\r\n\t}", "Collection<? extends GrantedAuthority> getAuthorities();", "public String getAuthorities() {\n return authorities;\n }", "@Override\n\tpublic Collection<? extends GrantedAuthority> getAuthorities() {\n\t\treturn authenrities;\n\t}", "@Override\n public Collection<? extends GrantedAuthority> getAuthorities() {\n return Arrays.stream(authority.getAuthority().split(\",\"))\n .map(SimpleGrantedAuthority::new)\n .collect(Collectors.toList());\n }", "public GrantedAuthority[] getAuthorities() {\n\t\treturn null;\r\n\t}", "public Collection<? extends GrantedAuthority> getAuthorities() {\n\t\treturn null;\n\t}", "public com.google.protobuf.ProtocolStringList\n getAuthoritiesList() {\n return authorities_;\n }", "public com.google.protobuf.ProtocolStringList\n getAuthoritiesList() {\n authorities_.makeImmutable();\n return authorities_;\n }", "@Override\n\t\t\t\tpublic Collection<? extends GrantedAuthority> getAuthorities() {\n\t\t\t\t\treturn null;\n\t\t\t\t}", "@Override\n public Collection<? extends GrantedAuthority> getAuthorities() {\n return authorities;\n }", "public List<ApplicationProviderAuthorization> authorizations() {\n return this.authorizations;\n }", "public List<AbsRecord> getRecords()\n\t{\n\t\treturn getRecordBy(null, new GAZRecordRowMapper());\n\t}", "@Override\r\n\tpublic Collection<? extends GrantedAuthority> getAuthorities() {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic List<Authority> getList(Authority authority) throws Exception {\n\t\treturn mapper.getList(authority);\r\n\t}", "java.util.List<java.lang.String>\n getAuthoritiesList();", "@Override\n\tpublic Collection<? extends GrantedAuthority> getAuthorities() {\n\t\treturn null;\n\t}", "@Override\n\tpublic Collection<? extends GrantedAuthority> getAuthorities() {\n\t\treturn null;\n\t}", "@Override\n\tpublic Collection<? extends GrantedAuthority> getAuthorities() {\n\t\treturn null;\n\t}", "@Override\n\tpublic Collection<? extends GrantedAuthority> getAuthorities() {\n\t\treturn null;\n\t}", "@Override\n\tpublic Collection<? extends GrantedAuthority> getAuthorities() {\n\t\treturn null;\n\t}", "@Override\n\tpublic Collection<? extends GrantedAuthority> getAuthorities() {\n\t\treturn null;\n\t}", "@Override\n\tpublic Collection<? extends GrantedAuthority> getAuthorities() {\n\t\treturn null;\n\t}", "@Override\n\tpublic Collection<? extends GrantedAuthority> getAuthorities() {\n\t\treturn null;\n\t}", "@Nonnull @NonnullElements @Live public Collection<String> getAuthorities() {\n return authorities;\n }", "@Override\n\tpublic Collection<? extends GrantedAuthority> getAuthorities() {\n\t\tSimpleGrantedAuthority authority = new SimpleGrantedAuthority(appUserRole.name());\n\t\treturn Collections.singletonList(authority);\n\t}", "public List<arnList> getGetArnListResponses() {\n\t\treturn arnList;\n\t}", "@Override\npublic Collection<? extends GrantedAuthority> getAuthorities() {\n\t// TODO Auto-generated method stub\n\treturn null;\n}", "@Override\n @JsonIgnore\n public Collection<? extends GrantedAuthority> getAuthorities() {\n return null;\n }", "public List<Alarmv3Cur> listAlarms() {\n\t\treturn null;\n\t}", "List <Aid> getAllAids();", "@Override\n\tpublic Collection<? extends GrantedAuthority> getAuthorities() {\n\t\treturn profiles;\n\t}", "@ModelAttribute(name = \"existingAuthorities\")\n public List<String> getExistingAuthorities(){\n List<String> authoritiesInString = new ArrayList<>();\n authorityService.getExistingAuthorities()\n .stream()\n .filter(auth -> !auth.getAuthority().equals(\"ROLE_ADMIN\"))\n .forEach(auth -> authoritiesInString.add(auth.getAuthority()));\n return authoritiesInString;\n }", "@JsonIgnore\n @Override\n public Collection<? extends GrantedAuthority> getAuthorities() {\n Collection<SimpleGrantedAuthority> authorities = new ArrayList<>();\n authorities.add(new SimpleGrantedAuthority(user.getRole()));\n return authorities;\n }", "@GET\r\n @Produces(\"text/plain\")\r\n public Response getResearchObjectList() {\r\n UserProfile user = (UserProfile) request.getAttribute(Constants.USER);\r\n \r\n Set<URI> list;\r\n if (user.getRole() == Role.PUBLIC) {\r\n list = ROSRService.SMS.get().findResearchObjects();\r\n } else {\r\n list = ROSRService.SMS.get().findResearchObjectsByCreator(user.getUri());\r\n }\r\n StringBuilder sb = new StringBuilder();\r\n for (URI id : list) {\r\n sb.append(id.toString());\r\n sb.append(\"\\r\\n\");\r\n }\r\n \r\n ContentDisposition cd = ContentDisposition.type(\"text/plain\").fileName(\"ROs.txt\").build();\r\n \r\n return Response.ok().entity(sb.toString()).header(\"Content-disposition\", cd).build();\r\n }", "List<Agent> listEnrollmentAgentsHaveCredential();", "public Cursor getAllAgencies() {\n\t\t\treturn db.query(AGENCIES_TABLE, new String[] {\n\t\t\t\t\t// importing only needed columns instead of all\n\t\t\t\t\tKEY_ROWID,\n\t\t\t\t\tKEY_AGENCYNAME},\n\t\t\t\t\tnull,\n\t\t\t\t\tnull,\n\t\t\t\t\tnull,\n\t\t\t\t\tnull,\n\t\t\t\t\tnull);\t\t\t\t\n\t\t}", "@Override\n\tpublic Collection<? extends GrantedAuthority> getAuthorities() {\n\t\tSet<GrantedAuthority> authorities = new HashSet<>();\n\t\tauthorities.add(new SimpleGrantedAuthority(role.getName()));\n\t\t\n\t\treturn authorities;\n\t}", "public java.util.List<com.example.grpc.SimpleServiceOuterClass.Aois> getAoisList() {\n if (aoisBuilder_ == null) {\n return java.util.Collections.unmodifiableList(aois_);\n } else {\n return aoisBuilder_.getMessageList();\n }\n }", "public List<Accessory> getAllAccessories() throws PersistenceException {\n return dao.findAll();\n }", "@Override\n\tpublic Collection<? extends GrantedAuthority> getAuthorities() {\n\t\tSet<GrantedAuthority> authorities = new HashSet<GrantedAuthority>();\n\n\t\troles.forEach(r -> {\n\t\t\tauthorities.add(new SimpleGrantedAuthority(r.getRole()));\n\t\t\tr.getPermissions().forEach(p -> {\n\t\t\t\tauthorities.add(new SimpleGrantedAuthority(p.getName()));\n\t\t\t});\n\t\t});\n\n\t\treturn authorities;\n\t}", "@Override\n\tpublic List<Role> getAllRoleInfo() {\n\t\treturn roleMapper.queryAll();\n\t}", "public List<NacAlarm> getActiveAlarmsNow()\n\t{\n\t\tFuture<?> future = this.doGetActiveAlarmsNow();\n\n\t\treturn NacRepository.getAlarmListFromFuture(future);\n\t}", "public List<AbsRecord> getRecords()\n\t{\n\t\treturn getRecordBy(null, new HBRecordRowMapper());\n\t}", "public java.util.List<MetadataEntry> getAuthList() {\n if (authBuilder_ == null) {\n return java.util.Collections.unmodifiableList(auth_);\n } else {\n return authBuilder_.getMessageList();\n }\n }", "@Override\n\t@JsonIgnore\n\tpublic default Collection<? extends GrantedAuthority> getAuthorities() {\n\t\treturn Collections.singleton(new SimpleGrantedAuthority(getRolle()));\n\t}", "@Override\n public Collection<? extends GrantedAuthority> getAuthorities() {\n return null;\n }", "@Override\n public Collection<? extends GrantedAuthority> getAuthorities() {\n return null;\n }", "@Override\n public Collection<? extends GrantedAuthority> getAuthorities() {\n return null;\n }", "@Override\n public Collection<? extends GrantedAuthority> getAuthorities() {\n return null;\n }", "@Override\r\n\tpublic List<Author> getAllAuthorDetails() {\n\t\treturn authorDAO.findAll();\r\n\t\t\r\n\t}", "public LiveData<List<NacAlarm>> getAllAlarms()\n\t{\n\t\treturn this.mAllAlarms;\n\t}", "@Override\n public Collection<? extends GrantedAuthority> getAuthorities() {\n List<GrantedAuthority> grantedAuthorityList = new ArrayList<>();\n //make a List of the roles\n List<Role> userRoles = user.getRoles();\n //add each role to the grantedAuthorityList\n for (Role role: userRoles) {\n grantedAuthorityList.add(new SimpleGrantedAuthority(role.getName()));\n }\n // then return grantedAuthority instances\n return grantedAuthorityList;\n }", "public List getAllAccounts() {\n\t\treturn null;\r\n\t}", "public List<NacAlarm> getAllAlarmsNow()\n\t{\n\t\tFuture<?> future = this.doGetAllAlarmsNow();\n\n\t\treturn NacRepository.getAlarmListFromFuture(future);\n\t}", "@Transactional\n\t@Override\n\tpublic List<ApplicantModel> viewAllApplicants() {\n\t\treturn applicantRepo.findAll().stream().map(course -> parser.parse(course))\n\t\t\t\t.collect(Collectors.toList());\n\t}", "@MetadataValueMatcher(metadataValue=110)\n\tpublic List<String> getAriesIds() {\n\t\treturn ariesIds;\n\t}", "public LiveData<List<NacAlarm>> getActiveAlarms()\n\t{\n\t\treturn this.getAlarmDao().getActiveAlarms();\n\t}", "public List<String> getAuids() {\n return auids;\n }", "private Resource[] getAllPolicyResource() throws EntitlementException {\n\n String path = null;\n Collection collection = null;\n List<Resource> resources = new ArrayList<Resource>();\n String[] children = null;\n\n if (log.isDebugEnabled()) {\n log.debug(\"Retrieving all entitlement policies\");\n }\n\n try {\n path = policyStorePath;\n\n if (!registry.resourceExists(path)) {\n if (log.isDebugEnabled()) {\n log.debug(\"Trying to access an entitlement policy which does not exist\");\n }\n return null;\n }\n collection = (Collection) registry.get(path);\n children = collection.getChildren();\n\n for (String aChildren : children) {\n resources.add(registry.get(aChildren));\n }\n\n } catch (RegistryException e) {\n log.error(\"Error while retrieving entitlement policy\", e);\n throw new EntitlementException(\"Error while retrieving entitlement policies\", e);\n }\n\n return resources.toArray(new Resource[resources.size()]);\n }", "@Override\n\tpublic Collection<? extends GrantedAuthority> getAuthorities() {\n\t\treturn roles;\n\t}", "@Transactional\r\n\t@Override\r\n\tpublic List<Authorities> list() {\r\n\t\tList<Authorities> list = null;\r\n\t\ttry {\r\n\t\t\tlist = new ArrayList<Authorities>();\r\n\t\t\tQuery<Authorities> query = sessionFactory.getCurrentSession().createQuery(\"from Authorities\");\r\n\t\t\tlist = query.getResultList();\r\n\t\t}catch(HibernateException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn list;\r\n\t}", "@Override\n\tpublic Collection<? extends GrantedAuthority> getAuthorities() {\n\t\t final List<GrantedAuthority> authorities = new ArrayList<GrantedAuthority>();\n\t for (final Role role : user.getRoles()){\n\t authorities.add(new SimpleGrantedAuthority(role.getRole()));\n\t }\n\t return authorities;\n\t}", "@Override\n\tpublic List<Map<String, Object>> readAll() {\n\t\treturn rolDao.readAll();\n\t}", "public List<ReviewApplicationResourceRole> getResourceRoles() {\n return resourceRoles;\n }", "public Object[] getGlobalResourceARList() {\n return this.getList(AbstractGIS.INQUIRY_GLOBAL_RESOURCE_AR_LIST);\n }", "public Long getAuthorityId() {\n return authorityId;\n }", "public AccessControlList getAcl()\n {\n return acl;\n }", "public List<AuthorizationItem> getAuthorizationsExternal() {\n List sortedList = new ArrayList(getAuthorizations());\n Collections.sort(sortedList);\n return Collections.unmodifiableList(sortedList);\n }", "@ZAttr(id=659)\n public String[] getACE() {\n return getMultiAttr(Provisioning.A_zimbraACE);\n }", "public ArrayList<Athlete> getAllAthletes() {\n populateData();\n return athletes;\n }", "public ArrayList<Record> getRecords() {\r\n\t\treturn records;\r\n\t}", "@Override\npublic Collection<? extends GrantedAuthority> getAuthorities() {\n\treturn null;\n}", "public AccessControlList getAccessControlList() {\n\t\treturn acl;\n\t}", "public List<Autor> getAll() {\n return repo.getAll();\n }", "public List<Alarm> getAllAlarm() {\n ArrayList<Alarm> alarmList = new ArrayList<>();\n SQLiteDatabase database = this.getReadableDatabase();\n String queryGetAll = \"SELECT * FROM \" + TABLE_NAME;\n\n Cursor cursor = database.rawQuery(queryGetAll, null);\n\n\n // Move cursor to the first row from querying, then iterator to each row.\n if (cursor.moveToFirst()) {\n do {\n // Get alarms from its ID, then add to list\n Alarm alarm = getAlarm(cursor.getInt(cursor.getColumnIndex(KEY_ID)));\n alarmList.add(alarm);\n } while (cursor.moveToNext());\n }\n cursor.close();\n return alarmList;\n }", "@Override\n\tpublic List<Arco> obtenerArcos() {\n\t\treturn arcos;\n\t}", "@Override\n\tpublic String getAuthority() {\n\t\treturn authority;\n\t}", "Set<Authority> getAuthorities(User user);", "public ResourceRole[] getAllResourceRoles() throws ResourceManagementException {\r\n return this.port.getAllResourceRoles();\r\n }", "public List<Client> findAll() throws DataAccessLayerException {\n try {\n Subject.doAs(LoginController.getLoginContext().getSubject(), new MyPrivilegedAction(\"CLIENT\", Permission.READ));\n return super.findAll(Client.class);\n } catch (AccessControlException e) {\n e.printStackTrace();\n }\n return new ArrayList<>();\n }", "@Override\n public Collection<? extends GrantedAuthority> getAuthorities() {\n List<GrantedAuthority> list = new ArrayList<>();\n GrantedAuthority a = new SimpleGrantedAuthority(\"ROLE_USER\");\n list.add(a);\n return list;\n }", "public List<Resident> getAllResidents();", "public RoleResources roleResources() {\n return this.roleResources;\n }", "@Override\n public List<ReporteAccidente> getAll() {\n return (List<ReporteAccidente>) repr.findAll();\n }", "@Override\r\n\tpublic List<Logbook> viewRecords() {\n\t\treturn user.viewRecords();\r\n\t}", "Collection<Account> getAll();", "public List<Record> listAllRecords();", "List<Accessprofile> listAll();", "@RequestMapping(value = \"/accompagnants/getAll\", method = RequestMethod.GET, headers = \"Accept=application/json\")\r\n\tpublic List<Accompagnant> getAllAccompagnants() {\r\n\t\tList<Accompagnant> listeAccompagnants = accompagnantService.getAllAccompagnant();\r\n\t\treturn listeAccompagnants;\r\n\t}", "List<Acquest> getAllAcquests();", "public String getAuthority() {\n return this.authority;\n }", "public Set<SimpleGrantedAuthority> getAuthorities() {\n return permissions.stream()\n .map(p -> new SimpleGrantedAuthority(p.getPermission()))\n .collect(Collectors.toSet());\n }", "private List<GrantedAuthority> buildAuthorities() {\n List<GrantedAuthority> auths = new ArrayList<>();\n auths.add(new SimpleGrantedAuthority(\"User\")); //When User get an Role attribute, change it here\n return new ArrayList<>(auths);\n }", "public ArrayList getAccountList() throws RemoteException, SQLException, Exception;", "public List<ControlAcceso> findAll() {\n\t\treturn controlA.findAll();\n\t}", "public java.util.List<com.example.grpc.SimpleServiceOuterClass.Aois> getAoisList() {\n return aois_;\n }", "public java.util.List<MetadataEntry> getAuthList() {\n return auth_;\n }" ]
[ "0.6185105", "0.61287606", "0.61229247", "0.59720355", "0.59546936", "0.5906978", "0.5875893", "0.5868714", "0.58588344", "0.5850568", "0.58390355", "0.5746716", "0.57350886", "0.56940883", "0.56682056", "0.56542885", "0.5648558", "0.5626836", "0.5617145", "0.5617145", "0.5617145", "0.5617145", "0.5617145", "0.5617145", "0.5617145", "0.5617145", "0.5604627", "0.55749327", "0.55640733", "0.55606294", "0.5559777", "0.55452156", "0.55286485", "0.5528201", "0.5519106", "0.5500523", "0.54932976", "0.54825515", "0.5439286", "0.5434737", "0.5431326", "0.54050314", "0.5404054", "0.5398074", "0.5385383", "0.5383509", "0.53797233", "0.53773695", "0.5348488", "0.5348488", "0.5348488", "0.5348488", "0.53481245", "0.5338884", "0.53385", "0.53319573", "0.5327093", "0.5321046", "0.5319072", "0.53190637", "0.53135335", "0.5312871", "0.5306898", "0.52865046", "0.5273761", "0.52695286", "0.52481246", "0.5240676", "0.5240064", "0.5238477", "0.52358377", "0.5233088", "0.5229844", "0.5227976", "0.5217672", "0.5210793", "0.5193202", "0.51879007", "0.5169127", "0.5169101", "0.5164474", "0.5163519", "0.5151641", "0.5150802", "0.5150586", "0.5140245", "0.5137057", "0.51361847", "0.5118961", "0.5109589", "0.5107289", "0.51027155", "0.510237", "0.5089908", "0.50781715", "0.5077418", "0.50672287", "0.50608295", "0.5054814", "0.50534666" ]
0.7403497
0
Returns a list of all the additional resource records in this message.
public List<DnsResource> additionalResources() { if (additional == null) { return Collections.emptyList(); } return Collections.unmodifiableList(additional); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<MessageResource> listMessageResource();", "public Collection<Resource> getAdditionalDefinitionProperties() {\n\t\treturn additionalDefinitionProperties;\n\t}", "public DnsMessage addAdditionalResource(DnsResource resource) {\n if (additional == null) {\n additional = new LinkedList<DnsResource>();\n }\n additional.add(resource);\n return this;\n }", "public List<ResourceItem> resourceList() {\n return this.resourceList;\n }", "public IPath[] getAdditionalResources();", "@Override\n\tpublic Vector<String[]> getResourceList() throws RemoteException {\n\t\tVector<String[]> resourceList = new Vector<String[]>();\n\t\tfor (Resource singleResource : resourceModel.getResources()) {\n\t\t\tresourceList.add(singleResource.toArrayStrings());\n\t\t}\n\t\treturn resourceList;\n\t}", "public List<String> getRecordings(){\n findRecordings();\n return _records;\n }", "public List<MessageResourceHistory> listMessageResourceHistory(Long messageResource) throws Exception;", "public AttendeeCollection getResources() throws ServiceLocalException {\n\t\treturn (AttendeeCollection) this.getPropertyBag()\n\t\t\t\t.getObjectFromPropertyDefinition(AppointmentSchema.Resources);\n\t}", "public ArrayList<Record> getRecords() {\r\n\t\treturn records;\r\n\t}", "@Override\n/// @XmlElement(name = \"resource\", namespace = Namespaces.SRV)\n public Collection<DataIdentification> getResources() {\n return resources = nonNullCollection(resources, DataIdentification.class);\n }", "public List<AbsRecord> getRecords()\n\t{\n\t\treturn getRecordBy(null, new HBRecordRowMapper());\n\t}", "public ArrayList<Resource> getResources(){\n\t\treturn _resources;\n\t}", "private ArrayList<Record> getItemsToAdd() {\r\n\t\tArrayList<Record> list = new ArrayList<Record>();\r\n\r\n\t\tlist = myConn.populateRecords();\r\n\t\t//myConn.connectionClose();\r\n\r\n\t\treturn list;\r\n\t}", "public List<AbsRecord> getRecords()\n\t{\n\t\treturn getRecordBy(null, new GAZRecordRowMapper());\n\t}", "public com.google.protobuf.ProtocolStringList\n getResourcesList() {\n return resources_;\n }", "public List<Resource> getAvailableResources();", "@ApiModelProperty(value = \"History items custom additional properties\")\n public Map<String, String> getAdditionalProperties() {\n return additionalProperties;\n }", "public ResourceSet getAllResources() {\n return getAllResourcesExcept(null);\n }", "public List<Record> getAllCallRecords() {\n return new ArrayList<>(mCallRecords);\n }", "public List<Resources> getAllResources()\r\n\t{\r\n\t\tList<Resources> l = resourceRepository.findByResource();\r\n\t\treturn l;\r\n\t}", "@RequestMapping(value=\"api/messages\", method=RequestMethod.GET)\n\tpublic List<Recording> getAllMessages() {\n\t\treturn this.service.getAllMessages();\n\t}", "public List<ScheduleResource> neededSpecificResources();", "public Set<String> getAdditionals() {\n\t\tif (additionals == null || additionals.isEmpty())\n\t\t\tadditionals = getAdditionalsFromMiapes();\n\t\tif (additionals != null && !additionals.isEmpty()) {\n\t\t\tfinal Set<String> ret = new THashSet<String>();\n\t\t\tfor (final String additional : additionals) {\n\t\t\t\tret.add(ProteomeXchangeFilev2_1.MTD + TAB + \"additional\" + TAB + additional);\n\t\t\t}\n\t\t\treturn ret;\n\t\t}\n\t\treturn null;\n\t}", "private ArrayList getEnabledResources() {\n ArrayList enabledResourceList = new ArrayList();\n String meterData;\n JsonRepresentation responseJson;\n int meterNameIndex = 0;\n int meterStatusIndex = 0;\n JSONArray columnArr, tagArr, pointsArr;\n // Get the active meters from the meter API from UDR Service\n try {\n logger.debug(\"Attempting to get the Enabled Resources\");\n meterData = udrServiceClient.getActiveResources();\n responseJson = new JsonRepresentation(meterData);\n JSONObject jsonObj = responseJson.getJsonObject();\n columnArr = jsonObj.getJSONArray(\"columns\");\n //tagArr = jsonObj.getJSONArray(\"tags\");\n for (int i = 0; i < columnArr.length(); i++) {\n if (\"metername\".equals(columnArr.get(i))) {\n meterNameIndex = i;\n }\n if (\"status\".equals(columnArr.get(i))) {\n meterStatusIndex = i;\n }\n }\n pointsArr = jsonObj.getJSONArray(\"points\");\n HashMap<String, String> enabledResourceMap = new HashMap<String, String>();\n for (int j = 0; j < pointsArr.length(); j++) {\n JSONArray arr = (JSONArray) pointsArr.get(j);\n if (Integer.parseInt(arr.get(meterStatusIndex).toString()) == 1) {\n if (!enabledResourceList.contains(arr.get(meterNameIndex)))\n enabledResourceList.add(arr.get(meterNameIndex));\n }\n }\n } catch (Exception e) {\n logger.error(\"Error while getting the Enabled Resources: \"+e.getMessage());\n e.printStackTrace();\n }\n return enabledResourceList;\n }", "@NonNull\n public Map<String, byte[]> getAdditionalProperties() {\n Map<String, byte[]> additionalProps = new HashMap<>();\n\n for (KeyValuePair pair : mProto.additionalProps) {\n byte[] value = pair.value != null ? pair.value.toByteArray() : null;\n additionalProps.put(pair.name, value);\n }\n\n return additionalProps;\n }", "public AccountResources accountResources() {\n return this.accountResources;\n }", "public Resource[] getResourceArray() {\n return resource;\n }", "public AccountResourcesHistory accountResourcesHistory() {\n return this.accountResourcesHistory;\n }", "public org.semanticwb.model.GenericIterator<org.semanticwb.model.Resource> listResources()\r\n {\r\n return new org.semanticwb.model.GenericIterator<org.semanticwb.model.Resource>(getSemanticObject().listObjectProperties(swb_hasPTResource));\r\n }", "public AllRecords getAllRecords() {\n\t\treturn fileService.withFile(FILE_NAME, new AllRecords(), file -> {\n\t\t\tvar records = fileService.readFile(file, AllRecords.class);\n\t\t\trecords.easy = sort(records.easy);\n\t\t\trecords.medium = sort(records.medium);\n\t\t\trecords.hard = sort(records.hard);\n\t\t\treturn records;\n\t\t});\n\t}", "List<Resource> resources();", "@Override\n public Class<ResourcesRecord> getRecordType() {\n return ResourcesRecord.class;\n }", "public Object[] getGlobalResourceList() {\n return this.getList(AbstractGIS.INQUIRY_GLOBAL_RESOURCE_LIST);\n }", "public Map<String, String> getAdditionalData() {\n return additionalData;\n }", "public com.google.protobuf.ProtocolStringList\n getResourceNamesList() {\n return resourceNames_;\n }", "public SimpleResList getResourceList() {\r\n\t\treturn new SimpleResList(resList);\r\n\t}", "public List<MessageResource> listMessageResourceByLocale(String locale);", "@Override\n public List<SoapEvent> readAll() {\n final ReadAllSoapEventOutput output = serviceProcessor.process(ReadAllSoapEventInput.builder().build());\n\n for(SoapEvent soapEvent : output.getSoapEvents()){\n final String resourceLink = generateResourceLink(soapEvent);\n soapEvent.setResourceLink(resourceLink);\n }\n\n return output.getSoapEvents();\n }", "public Vector getResourceIds()\n {\n return mResourceIds;\n }", "public java.util.List<com.google.cloud.recommender.v1.Impact> getAdditionalImpactList() {\n if (additionalImpactBuilder_ == null) {\n return java.util.Collections.unmodifiableList(additionalImpact_);\n } else {\n return additionalImpactBuilder_.getMessageList();\n }\n }", "public final Record[] getRecords() {\n Record[] myRecords = new Record[records.size()];\n\n Iterator iterator = records.iterator();\n for (int i = 0; i < records.size(); i++) {\n myRecords[i] = (Record) iterator.next();\n }\n\n return myRecords;\n }", "public String getResourceIds() {\n return resourceIds;\n }", "public Collection<Resource> getResources() {\n return resourceRegistry.getEntries().values();\n }", "public ResourcesHistory resourcesHistory() {\n return this.resourcesHistory;\n }", "public ObservableList<MapItemData> getAdditionalData() {\n\n\t\treturn additionalData;\n\n\t}", "public Resources resources() {\n return this.resources;\n }", "public Vector getAllRecord() throws SQLException, Exception {\n\t\tString query = \"Select * from tblDRARes order by Resource\";\n\t\t\n\t\tVector v=new Vector();\n\t\t\n\t\tConnection con = null;\n\t\tStatement st = null;\n\t\tResultSet rs = null;\n\n\t\ttry{\n\t\t\tcon=ConnectionBean.getConnection();\n\t\t\tst=con.createStatement();\n\t\t\trs=st.executeQuery(query);\n\t\t\twhile(rs.next()){\n\t\t\t\tvotblDRARES vo=new votblDRARES();\n\t\t\t\tvo.setCompetencyID(rs.getInt(\"CompetencyID\"));\n\t\t\t\t\n\t\t\t\tvo.setFKCompanyID(rs.getInt(\"FKCompanyID\"));\n\t\t\t\tvo.setFKOrganizationID(rs.getInt(\"FKOrganizationID\"));\n\t\t\t\tvo.setIsSystemGenerated(rs.getInt(\"IsSystemGenerated\"));\n\t\t\t\tvo.setResID(rs.getInt(\"ResID\"));\n\t\t\t\tvo.setResource(rs.getString(\"Resource\"));\n\t\t\t\tvo.setResType(rs.getInt(\"ResType\"));\n\t\t\t\t\n\t\t\t\tv.add(vo);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}catch(Exception e){\n\t\t\tSystem.out.println(\"DevelpmentResources.java - getAllRecord- \"+e);\n\t\t}finally{\n\t\t\tConnectionBean.closeRset(rs); //Close ResultSet\n\t\t\tConnectionBean.closeStmt(st); //Close statement\n\t\t\tConnectionBean.close(con); //Close connection\n\n\t\t}\n\t\treturn v;\n\t}", "public Object[] getGlobalResourceARList() {\n return this.getList(AbstractGIS.INQUIRY_GLOBAL_RESOURCE_AR_LIST);\n }", "public List<MessageResource> listMessageResourceByMessageKey(String messageKey);", "public java.lang.String getAdditionalEmailAddresses() {\n return additionalEmailAddresses;\n }", "public com.google.protobuf.ProtocolStringList\n getResourcesList() {\n return resources_.getUnmodifiableView();\n }", "public String recordDetails() {\r\n\t\tString recordDetails = \"RENTAL RECORD\\n\";\r\n\t\tString line = \"\\n--------------------------------------\\n\";\r\n\t\tfor (int i = 0; i < records.size(); i++) {\r\n\t\t\trecordDetails = recordDetails + records.get(records.size() - 1 - i).getDetails() + line;\r\n\t\t}\r\n\t\treturn recordDetails;\r\n\t}", "public List<Record> listAllRecords();", "public List<String> getResources() {\n return resources;\n }", "public List<MessageResource> listMessageResourceByMessage(String message);", "ResourceCollection<SubscriptionDailyUsageRecord> get();", "@JsonProperty(\"Records\") abstract List<?> getRecords();", "protected Map<String, Object> getAdditionalProperties()\n {\n return additionalProperties;\n }", "public ArrayList<Resource> getStaticInfo() {\n\t\tArrayList<Resource> resources = new ArrayList<Resource>();\n\n\t\t// ~~~ CPU\n\t\tResource cpuResource = new Resource();\n\t\tcpuResource.setResourceType(ResourceType.CPU);\n\t\tcpuResource.setName(clientStaticInfo.getCPUVendor() + \" CPU\");\n\n\t\tAttribute cpuSpeedAttribute = new Attribute();\n\t\tcpuSpeedAttribute.setAttributeType(AttributeType.CPUSpeed);\n\t\tcpuSpeedAttribute.setValue(Double.parseDouble(clientStaticInfo\n\t\t\t\t.getCPUSpeed()));\n\t\tcpuSpeedAttribute.setDate(new Date());\n\t\tcpuResource.addAttribute(cpuSpeedAttribute);\n\n\t\tresources.add(cpuResource);\n\t\t// ~~~ RAM\n\t\tResource ramResource = new Resource();\n\t\tramResource.setResourceType(ResourceType.RAM);\n\t\tramResource.setName(\"RAM\");\n\n\t\tAttribute ramTotalAttribute = new Attribute();\n\t\tramTotalAttribute.setAttributeType(AttributeType.TotalMemory);\n\t\tramTotalAttribute.setValue(Double.parseDouble(clientStaticInfo\n\t\t\t\t.getRAMInfo()));\n\t\tramTotalAttribute.setDate(new Date());\n\t\tramResource.addAttribute(ramTotalAttribute);\n\n\t\tresources.add(ramResource);\n\t\t// ~~~ OS\n\t\tResource osResource = new Resource();\n\t\tosResource.setResourceType(ResourceType.OS);\n\t\tosResource.setName(clientStaticInfo.getOSInfo());\n\n\t\tresources.add(osResource);\n\t\t// ~~~ SStorage\n\t\tResource sstorageResource = new Resource();\n\t\tsstorageResource.setResourceType(ResourceType.SStorage);\n\t\tsstorageResource.setName(\"SSTORAGE\");\n\n\t\tAttribute sstorageTotalAttribute = new Attribute();\n\t\tsstorageTotalAttribute.setAttributeType(AttributeType.TotalStorage);\n\t\tsstorageTotalAttribute.setValue(Double.parseDouble(clientStaticInfo\n\t\t\t\t.getSStorageInfo()));\n\t\tsstorageTotalAttribute.setDate(new Date());\n\t\tsstorageResource.addAttribute(sstorageTotalAttribute);\n\n\t\tresources.add(sstorageResource);\n\n\t\treturn resources;\n\t}", "com.microsoft.schemas.crm._2011.contracts.ArrayOfRequiredResource getRequiredResources();", "public List<Recordings> getRecordings() {\r\n\r\n\t\tList<Recordings> recordingsList = new ArrayList<Recordings>();\r\n\r\n\t\tList<Map<String, Object>> rows = jdbcTemplate.queryForList(\"Select * from RECORDINGS\");\r\n\r\n\t\tfor (Map<String, Object> row : rows) {\r\n\t\t\tRecordings recordings = new Recordings();\r\n\t\t\trecordings.setFileName((String)row.get(\"FILENAME\"));\r\n\t\t\trecordings.setSourceURL((String)row.get(\"SOURCEURL\"));\r\n\t\t\trecordings.setId(((BigDecimal)row.get(\"ID\")).longValue());\r\n\t\t\trecordingsList.add(recordings);\r\n\t\t}\r\n\t\treturn recordingsList;\r\n\t}", "public List<PrimaryType> getResources() {\n return resources;\n }", "@GetMapping(\"findALlRMS\")\n public String findAllRms(){\n return JSONObject.toJSONString(recordmaService.queryAll(null));\n }", "private Resource[] getAllPolicyResource() throws EntitlementException {\n\n String path = null;\n Collection collection = null;\n List<Resource> resources = new ArrayList<Resource>();\n String[] children = null;\n\n if (log.isDebugEnabled()) {\n log.debug(\"Retrieving all entitlement policies\");\n }\n\n try {\n path = policyStorePath;\n\n if (!registry.resourceExists(path)) {\n if (log.isDebugEnabled()) {\n log.debug(\"Trying to access an entitlement policy which does not exist\");\n }\n return null;\n }\n collection = (Collection) registry.get(path);\n children = collection.getChildren();\n\n for (String aChildren : children) {\n resources.add(registry.get(aChildren));\n }\n\n } catch (RegistryException e) {\n log.error(\"Error while retrieving entitlement policy\", e);\n throw new EntitlementException(\"Error while retrieving entitlement policies\", e);\n }\n\n return resources.toArray(new Resource[resources.size()]);\n }", "@RequestMapping(value = \"/messageresource/all\", method = RequestMethod.GET)\n\tpublic String showAllMessageResource(Model model, Locale locale) {\n\n\t\tlogger.debug(\"showAllMessageResource()\");\n\t\t\t\n\t\treturn \"messages/messageresource_table\";\n\n\t}", "public DocumentationSchema getAdditionalProperties()\n\t{\n\t\treturn additionalProperties;\n\t}", "@Override\r\n\tpublic List<T> getRecords() {\n\t\treturn null;\r\n\t}", "@JsonAnyGetter\n\tpublic Map<String, Object> getAdditionalProperties() {\n\t\treturn this.additionalProperties;\n\t}", "@Override\n\t\t\tpublic List<RecordReference> getOtherIdentifiers() {\n\t\t\t\treturn Collections.emptyList();\n\t\t\t}", "@GET\n\t\t\t@Path(\"/{id}/record\")\n\t\t\t@Produces({\"application/xml\"})\n\t\t\tpublic Rows getAttachmentRecord() {\n\t\t\t\tRows rows = null;\n\t\t\t\ttry {\n\t\t\t\t\trows=new AttachmentDao(uriInfo,header).getAttachmentRows();\n\t\t\t\t} catch (AuthenticationException e) {\n\t\t\t\t\t rows=new TemplateUtility().getFailedMessage(e.getMessage());\n\t\t\t\t\t e.printStackTrace();\n\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\t logger.info( \"Error calling getAttachmentRecord()\"+ ex.getMessage());\n\t\t\t\t\t ex.printStackTrace();\n\t\t\t\t}\n\t\t\t\treturn rows;\n\t\t\t}", "public String[] getAdditionalErrorData() {\n\t\treturn additionalErrorData;\n\t}", "public ArrayList<Resource> getDynamicInfo() {\n\t\tArrayList<Resource> resources = new ArrayList<Resource>();\n\t\t// ~~~ CPU\n\t\tResource cpuResource = new Resource();\n\t\tcpuResource.setResourceType(ResourceType.CPU);\n\t\tcpuResource.setName(clientDynamicInfo.getCPUVendor() + \" CPU\");\n\n\t\tAttribute cpuUtilizationAttribute = new Attribute();\n\t\tcpuUtilizationAttribute.setAttributeType(AttributeType.CPUUtilization);\n\t\tcpuUtilizationAttribute.setValue(Double.parseDouble(clientDynamicInfo\n\t\t\t\t.getCPUUsage()));\n\t\tcpuUtilizationAttribute.setDate(new Date());\n\t\tcpuResource.addAttribute(cpuUtilizationAttribute);\n\n\t\tresources.add(cpuResource);\n\t\t// ~~~ RAM\n\t\tResource ramResource = new Resource();\n\t\tramResource.setResourceType(ResourceType.RAM);\n\t\tramResource.setName(\"RAM\");\n\n\t\tAttribute ramFreeAttribute = new Attribute();\n\t\tramFreeAttribute.setAttributeType(AttributeType.FreeMemory);\n\t\tramFreeAttribute.setValue(Double.parseDouble(clientDynamicInfo\n\t\t\t\t.getRAMFreeInfo()));\n\n\t\tramResource.addAttribute(ramFreeAttribute);\n\n\t\tramFreeAttribute.setDate(new Date());\n\n\t\tAttribute ramUtilizationAttribute = new Attribute();\n\t\tramUtilizationAttribute\n\t\t\t\t.setAttributeType(AttributeType.MemoryUtilization);\n\t\tramUtilizationAttribute.setValue(Double.parseDouble(clientDynamicInfo\n\t\t\t\t.getRAMUtilizationInfo()));\n\t\tramResource.addAttribute(ramUtilizationAttribute);\n\n\t\tresources.add(ramResource);\n\t\t// ~~~ SStorage\n\t\tResource sstorageResource = new Resource();\n\t\tsstorageResource.setResourceType(ResourceType.SStorage);\n\t\tsstorageResource.setName(\"SSTORAGE\");\n\n\t\tAttribute sstorageFreeAttribute = new Attribute();\n\t\tsstorageFreeAttribute.setAttributeType(AttributeType.FreeStorage);\n\t\tsstorageFreeAttribute.setValue(Double.parseDouble(clientDynamicInfo\n\t\t\t\t.getSStorageFreeInfo()));\n\t\tsstorageFreeAttribute.setDate(new Date());\n\t\tsstorageResource.addAttribute(sstorageFreeAttribute);\n\n\t\tAttribute sstorageUtilizationAttribute = new Attribute();\n\t\tsstorageUtilizationAttribute\n\t\t\t\t.setAttributeType(AttributeType.StorageUtilization);\n\t\tsstorageUtilizationAttribute.setValue(Double\n\t\t\t\t.parseDouble(clientDynamicInfo.getSStorageUtilizationInfo()));\n\t\tsstorageUtilizationAttribute.setDate(new Date());\n\t\tsstorageResource.addAttribute(sstorageUtilizationAttribute);\n\n\t\tresources.add(sstorageResource);\n\n\t\treturn resources;\n\t}", "public List<ITranslationResource> getResources(){\n\t\treturn resources;\n\t}", "public RecordsList listRecords(ResumptionToken resumptionToken) throws OAIException {\n try {\n \tString query = builder.buildListRecordsQuery(resumptionToken);\n \tDocument document = reader.read(query);\n return new RecordsList(document);\n } catch (ErrorResponseException e) {\n \tthrow e;\n } catch (Exception e) {\n throw new OAIException(e);\n }\n }", "public ArrayList<MedEntry> allPrescriptions() {\n\n ArrayList<MedEntry> prescriptions = new ArrayList<MedEntry>();\n String query = \"SELECT * FROM \" + TABLE_NAME;\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor cursor = db.rawQuery(query, null);\n MedEntry pres = null;\n\n if (cursor.moveToFirst()) {\n do {\n pres = new MedEntry(cursor.getString(1),cursor.getInt(2), cursor.getInt(3), cursor.getInt(4));\n prescriptions.add(pres);\n } while (cursor.moveToNext());\n }\n\n return prescriptions;\n }", "public ArrayList<Record> getAllSavedRecords() {\n ArrayList<Record> resultList = new ArrayList<>();\n\n File baseFolder = getBaseFolder();\n if (baseFolder != null) {\n String[] allRecords = baseFolder.list();\n if (allRecords == null || allRecords.length == 0) {\n return resultList;\n }\n\n for (String eachRecord : allRecords) {\n Record record = loadRecordFromFolderName(eachRecord);\n if (record == null) {\n continue;\n }\n updateRecordCurrentSize(record);\n updateRecordCurrentImageCount(record);\n resultList.add(record);\n }\n }\n\n if (resultList.size() > 0) {\n sortRecordList(resultList);\n }\n return resultList;\n }", "public RoleResourcesHistory roleResourcesHistory() {\n return this.roleResourcesHistory;\n }", "@Override\n/// @XmlElement(name = \"resourceReference\", namespace = Namespaces.SRV)\n public Collection<Citation> getResourceReferences() {\n return resourceReferences = nonNullCollection(resourceReferences, Citation.class);\n }", "public String[] getRecordIDs() throws RemoteException\n\t{\n\t\treturn StaffRecords.getRecordIDs();\n\t}", "private List<ChunkGroupMetadata> getAppendedRowMetadata() {\n List<ChunkGroupMetadata> append = new ArrayList<>();\n if (lastFlushedChunkGroupIndex < chunkGroupMetadataList.size()) {\n append.addAll(\n chunkGroupMetadataList.subList(\n lastFlushedChunkGroupIndex, chunkGroupMetadataList.size()));\n lastFlushedChunkGroupIndex = chunkGroupMetadataList.size();\n }\n return append;\n }", "public List<SecretMetadata> resources() {\n return resources;\n }", "private MessageResources getMessageResources(PageContext pageContext) {\n return ((MessageResources)\n pageContext.getRequest().getAttribute(Globals.MESSAGES_KEY));\n }", "public List<MessageResource> listMessageResourceByLocaleReferenceId(Long localeReferenceId);", "Collection<? extends Resource> getResources();", "protected void addMissingResources()\n {\n WebLogicResourceRules.addMissingJmsResources(this);\n }", "public Set<Record> getRecords() {\n /*\n returns newly allocated Set\n to prevent sort of violations,\n like adding something to the returned value\n */\n return Collections.unmodifiableSet(records);\n }", "public RoleResources roleResources() {\n return this.roleResources;\n }", "public SchemaOrBoolean getAdditionalProperties() {\n\t\treturn additionalProperties;\n\t}", "public String[] getDisplayedResources(){\n\t\tString resources =\n\t\t\tHub.localCfg.get(PreferenceConstants.AG_RESOURCESTOSHOW,\n\t\t\t\tStringTool.join(agenda.getResources(), \",\")); //$NON-NLS-1$\n\t\tif (resources == null) {\n\t\t\treturn new String[0];\n\t\t} else {\n\t\t\treturn resources.split(\",\"); //$NON-NLS-1$\n\t\t}\n\t}", "public ArrayList<String> getAlerts() {\n ArrayList<String> finalList = new ArrayList<>();\n finalList.addAll(priorityAlerts);\n finalList.addAll(alerts);\n return finalList;\n }", "public ReactorResult<DataObject> getAllAttachedPicture_as() {\r\n\t\treturn Base.getAll_as(this.model, this.getResource(), ATTACHEDPICTURE, DataObject.class);\r\n\t}", "@RequestMapping(value = \"/customer-addres\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public List<CustomerAddres> getAllCustomerAddres() {\n log.debug(\"REST request to get all CustomerAddres\");\n List<CustomerAddres> customerAddres = customerAddresRepository.findAll();\n return customerAddres;\n }", "@GET\n\t\t\t@Path(\"/rows\")\n\t\t\t@Produces({\"application/xml\"})\n\t\t\tpublic Rows getAttachmentRows() {\n\t\t\t\tRows rows = null;\n\t\t\t\ttry {\n\t\t\t\t\trows=new AttachmentDao(uriInfo,header).getAttachmentRows();\n\t\t\t\t} catch (AuthenticationException e) {\n\t\t\t\t\t rows=new TemplateUtility().getFailedMessage(e.getMessage());\n\t\t\t\t\t e.printStackTrace();\n\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\t logger.info( \"Error calling getAttachmentRows()\"+ ex.getMessage());\n\t\t\t\t\t ex.printStackTrace();\n\t\t\t\t}\n\t\t\t\treturn rows;\n\t\t\t}", "public Iterable<MedicalRecord> list() {\n return medicalRecordList;\n }", "public ae.etisalat.www.Middleware.INCommunicationManagement.GetRechargeDetailsRequest_xsd.GetRechargeDetailsRequestDataHeaderAddtionalInfo[] getAddtionalInfo() {\n return addtionalInfo;\n }", "ReadResponseMessage fetchAllMessages();", "public String getAdditionalData() {\n return additionalData;\n }", "public ArrayList<Message> getAllmessage(){return allmessage;}", "public RegTapResource[] getResources() {\n return resMap_.values().toArray( new RegTapResource[ 0 ] );\n }" ]
[ "0.62207514", "0.6006105", "0.5756539", "0.56891567", "0.56865746", "0.56788886", "0.5603595", "0.5603138", "0.5566479", "0.5487618", "0.54533184", "0.5429252", "0.5418551", "0.53880185", "0.53807", "0.53684896", "0.53191304", "0.5309922", "0.52986616", "0.5270657", "0.52420926", "0.52417326", "0.52390987", "0.52130795", "0.5200451", "0.5183196", "0.51663387", "0.51656526", "0.51641136", "0.51574236", "0.5140143", "0.5122351", "0.51186746", "0.51113904", "0.51052403", "0.50965405", "0.5090968", "0.50759894", "0.50746363", "0.5074064", "0.5071428", "0.50689864", "0.5067438", "0.50647265", "0.50565", "0.5052414", "0.50506467", "0.5046455", "0.5040767", "0.5039227", "0.5038474", "0.50332844", "0.50303483", "0.5028326", "0.5024906", "0.5023574", "0.50205827", "0.5016374", "0.5007815", "0.49935293", "0.49650785", "0.49548894", "0.49530086", "0.49431252", "0.4936606", "0.4933185", "0.49276543", "0.49206084", "0.49133468", "0.49125233", "0.49121693", "0.49058917", "0.4895967", "0.4893517", "0.48921454", "0.48809162", "0.4866414", "0.48620188", "0.48597738", "0.48557666", "0.4846997", "0.48434", "0.48432174", "0.48422557", "0.4842071", "0.4839969", "0.48379534", "0.48345768", "0.48337352", "0.482619", "0.48194805", "0.48130733", "0.48069593", "0.48008668", "0.47987404", "0.47934705", "0.47904542", "0.4789986", "0.47867897", "0.47645617" ]
0.73858654
0
Adds an answer resource record to this message.
public DnsMessage addAnswer(DnsResource answer) { if (answers == null) { answers = new LinkedList<DnsResource>(); } answers.add(answer); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void addQuestionAnswer(Answer answer);", "public void addAnswer(Answer answer) {\n \t\tanswer.setId(answerIdCounter);\n \t\tanswers.add(answer);\n \t\tanswerIdCounter++;\n \t}", "void addAnswer(Answer answer);", "@Override\r\n public void addAnswer(String answer) {\r\n this.answers.add(answer);\r\n }", "public void addAnswer(Answer ans) {\n // TODO implement here\n }", "public AnswerRecord() {\n super(Answer.ANSWER);\n }", "public void add( IAnswer possibleAnswer );", "@Override\n public void add(String question, String answer){\n questions.add(question);\n answers.add(answer);\n\n }", "public void addQuestion(Question question);", "void addRecordToCache(DNSQuestion question, DNSRecord answer){\n cache.put(question, answer);\n System.out.println(\"Answer added to cache!\");\n }", "public void addQuestionAndAnswer(String question, String answer){\n this.questionList.add(question);\n this.answerList.add(answer);\n }", "public DnsMessage addAdditionalResource(DnsResource resource) {\n if (additional == null) {\n additional = new LinkedList<DnsResource>();\n }\n additional.add(resource);\n return this;\n }", "public DnsMessage addQuestion(DnsQuestion question) {\n if (questions == null) {\n questions = new LinkedList<DnsQuestion>();\n }\n questions.add(question);\n return this;\n }", "public static com.jhu.cvrg.portal.survey.model.SurveyAnswer addSurveyAnswer(\n\t\tcom.jhu.cvrg.portal.survey.model.SurveyAnswer surveyAnswer)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException {\n\t\treturn getService().addSurveyAnswer(surveyAnswer);\n\t}", "public void setAnswer(String answer) {\r\n this.answer = answer;\r\n }", "public void addQ (Question Q)\n {\n newQuestion = Q;\n \n enqueue();\n }", "public DnsMessage addAuthorityResource(DnsResource resource) {\n if (authority == null) {\n authority = new LinkedList<DnsResource>();\n }\n authority.add(resource);\n return this;\n }", "public void addResource(Resource res, int roll) {\n\t\t_resources.add(res);\n\t\t_rolls.add(roll);\n\t}", "public void addAnswer(AnswerElement ans) {\r\n\t\tthis.ans.add(ans);\r\n\t}", "public void addQuestion(Question question) {\n \t\tquestion.setId(questionIdCounter);\n \t\tquestions.add(question);\n \t\tquestionIdCounter++;\n \t}", "public void addResource(TIdentifiable resource) {\r\n // make sure that the resource doesn't exists already\r\n\t if (resourceExists(resource)) return;\t \r\n\t \r\n // check to see if we need to expand the array:\r\n\t if (m_current_resources_count == m_current_max_resources) expandTable(1, 2);\t \t \r\n\t m_resources.addID(resource);\r\n\t m_current_resources_count++;\r\n }", "@Override\n\tpublic Answer create(long answerId) {\n\t\tAnswer answer = new AnswerImpl();\n\n\t\tanswer.setNew(true);\n\t\tanswer.setPrimaryKey(answerId);\n\n\t\tanswer.setCompanyId(CompanyThreadLocal.getCompanyId());\n\n\t\treturn answer;\n\t}", "public void setAnswerId(int answerId) {\r\n this.answerId = answerId;\r\n }", "public AnswerRecord(Integer id, Integer seq, String answer, String correctText, String incorrectText, String selectedText, Boolean isCorrect, Integer questionId) {\n super(Answer.ANSWER);\n\n set(0, id);\n set(1, seq);\n set(2, answer);\n set(3, correctText);\n set(4, incorrectText);\n set(5, selectedText);\n set(6, isCorrect);\n set(7, questionId);\n }", "public void saveSurveyAnswer(HttpServletRequest request, Answers answers, long userId);", "private void setAnswerForLastQuestion() {\n\n DbHelper dbhelper = new DbHelper(context);\n questionNo = questionNo + 1;\n QuizAnswer answer = new QuizAnswer();\n answer.setQuizId(quizId);\n answer.setQuestionId(questionId);\n int optionId = shareprefs.getInt(\"optionId\", 0);\n answer.setOptionId(optionId);\n int correctAns = shareprefs.getInt(\"correctAns\", 0);\n answer.setAnswer(correctAns);\n answer.setContentId(contentId);\n boolean flage = dbhelper.upsertQuizAnswerEntity(answer);\n if (flage) {\n shareprefs.edit().clear().commit();//clear select OptionPreferences\n Intent mIntent = new Intent(this, QuizResultActivity.class);\n mIntent.putExtra(\"quizId\", quizId);\n mIntent.putExtra(\"contentId\", contentId);\n mIntent.putExtra(\"totalQuestion\", questionList.size());\n startActivityForResult(mIntent,1);\n }\n }", "public void addResource(PSResource res) {\n/* 72 */ prepareResourceSet();\n/* 73 */ this.resources.add(res);\n/* */ }", "public void addResource(Resource resource) {\n\t\tresources.add(resource);\n\t}", "public static void addResource(ArrayList<Resource> resource){\n String id;\n String type;\n String name;\n String genre;\n String author;\n String year;\n String userID = \"0\";\n Boolean checkedOut = false;\n\n int nextID = Resource.getLastID() + 1;\n id = \"\" + nextID;\n type = stringInput(\"What type is the resource\");\n name = stringInput(\"What is the name of the resource\");\n genre = stringInput(\"What genre is the resource\");\n author = stringInput(\"Who is the author\");\n year = stringInput(\"What year is it published\");\n\n resource.add(new Resource(id, type, name, genre, author, year, userID, checkedOut));\n }", "private void addQuestion(Questions question) {\n ContentValues cv = new ContentValues();\n cv.put(QuestionsTable.Column_Question, question.getQuestion());\n cv.put(QuestionsTable.Column_Option1, question.getOption1());\n cv.put(QuestionsTable.Column_Option2, question.getOption2());\n cv.put(QuestionsTable.Column_Option3, question.getOption3());\n cv.put(QuestionsTable.Column_Option4, question.getOption4());\n cv.put(QuestionsTable.Column_Answer_Nr, question.getAnswerNr());\n db.insert(QuestionsTable.Table_name, null, cv);\n }", "public void addResource(ResourceInterface resource) {\n if (resource != null && !this.resources.contains(resource)) {\n this.resources.add(resource);\n forceUpdate();\n }\n }", "public void setAnswerid(Integer answerid) {\n this.answerid = answerid;\n }", "public void addQuestion(Question question) {\n\t\tquestions.add(question);\n\t}", "public void saveAnswer(Element element, boolean patientAnswer, String patientAnswerStr){\n getTestAnswers().add( new TestAnswer(patientAnswer, element, patientAnswerStr) ); \r\n }", "public void addQuestionNote(int qId){\r\n SQLiteDatabase db = this.getWritableDatabase();\r\n\r\n ContentValues values = new ContentValues();\r\n values.put(KEY_QID, qId);\r\n\r\n db.insert(TABLE_QUESTION_NOTES, null, values);\r\n\r\n db.close();\r\n }", "public void addOpenAnswerQuestion(String question) {\n cmbQuestionType.select(questionType);\n txbQuestion.type(question);\n btnAddQuestion.clickAndWait();\n }", "public void addResource(ITranslationResource resource){\n\t\tresources.add(resource);\n\t}", "private void setAnswer() {\n DbHelper dbhelper = new DbHelper(context);\n questionNo = questionNo + 1;\n QuizAnswer answer = new QuizAnswer();\n answer.setQuizId(quizId);\n answer.setQuestionId(questionId);\n int optionId = shareprefs.getInt(\"optionId\", 0);\n answer.setOptionId(optionId);\n int correctAns = shareprefs.getInt(\"correctAns\", 0);\n answer.setAnswer(correctAns);\n answer.setContentId(contentId);\n boolean flage = dbhelper.upsertQuizAnswerEntity(answer);\n if (flage) {\n shareprefs.edit().clear().commit();//clear select OptionPreferences\n setValue();\n }\n }", "public void addResource(Resource resource) {\n this.resources.clear();\n this.resources.add(resource);\n }", "public void add(BindResource resource) {\n \tif(resource==null)\n \t\tthrow new IllegalArgumentException(\"resourceProperties cannot be null\");\n \tif(resources==null)\n \t\tresources = new ArrayList<BindResource>();\n \t\n \tresources.add(resource);\n }", "public void saveAnswer(long answerTime, Element element, boolean patientAnswer, String patientAnswerStr){\n getTestAnswers().add( new TestAnswer(answerTime, patientAnswer, element, patientAnswerStr) ); \r\n }", "public void addAnswer(Group group, Question question, Answer answer, LocalDateTime date) {\n \tGroup realGroup = answer.getQuestion().getGroup();\n \tif(realGroup != null)\n \t\tif(!realGroup.getTitle().equals(group.getTitle()))\n \t\t\treturn;\n \tMembership temp = memberships.get(group.getTitle());\n \tif(temp == null)\n \t\treturn;\n \tanswer.setMembership(temp);\n temp.addAnswer(answer);\n question.addAnswer(answer);\n group.addAnswer(answer);\n }", "@Override\n\tpublic boolean addQuestion(QuestionObject question) {\n\t\tif (question != null && !questionComposite.checkExist(question)) {\n\t\t\tquestionComposite.add(question);\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t\treturn false;\n\t}", "private void addQuestion() {\n if (modifiable()) {\n try {\n this.questions.add(Question.fromInput(gradeable()));\n } catch (UserInputException e) {\n System.err.println(e.getMessage());\n }\n } else {\n System.err.println(\"Can not modify this by add a question.\");\n }\n }", "@Override\n public void addResponses() {\n for(answerChoice a: this.userAnswers) {\n this.addResponseHelper(a.getAnswerText());\n //this.savedResponses. //add(a.getAnswerText());\n //try {\n\n //} catch(Exception e) {\n // e.printStackTrace();\n\n //}\n\n }\n }", "public AnswerEntity createAnswer(AnswerEntity answerEntity) {\n entityManager.persist(answerEntity);\n return answerEntity;\n }", "public void addResource(Resource res) {\n \tresourceDisplay.getChildren().add(new ResourceContainer(res));\r\n }", "public void addQuestion(Question quest) {\n ContentValues values = new ContentValues();\n values.put(KEY_QUES, quest.getQUESTION());\n values.put(KEY_ANSWER, quest.getANSWER());\n values.put(KEY_OPTA, quest.getOPTA());\n values.put(KEY_OPTB, quest.getOPTB());\n values.put(KEY_OPTC, quest.getOPTC());\n // Inserting Row\n db.insert(TABLE_NAME_QUEST, null, values);\n }", "public void answerUQ(String question, String id, String answer) throws Exception {\n\t\tWebAppDBEngine webDB = new WebAppDBEngine();\r\n\t\twebDB.answerUQ(question,id,answer);\r\n\t}", "public static void insertAnswers(String username, int id, String answer) {\n\t\tString user = username;\n \ttry {\n \t\tint rs = Messages.connect().executeUpdate(\"INSERT INTO Answers (Q_id, B_Username, Answer)\" +\n \t \t\"VALUES ('\" + id + \"', '\" + user +\"', '\" + answer +\"')\");\n \t\tMessages.connect().close();\n \t} catch (Exception e) {\n \t\te.printStackTrace();\n \t}\n\t}", "public void addAnswerListener(AnswerListener anw){\n\t\tlisteners.add(anw);\n\t}", "@Override\n public void add(Question q) {\n try {\n c = DBConncetion.getConnection();\n int type = q.getType() == MultipleChoice ? 1 : 2; // 1 = MC , 2 = FB\n System.out.println(type);\n String sql = \"Insert into mainquestion \\n\" +\n \"Values (?,?,?,?,0,0,0)\";\n PreparedStatement pstmt = c.prepareStatement(sql);\n pstmt.setString(1,String.valueOf(q.getId()));\n pstmt.setString(2,q.getTitle());\n pstmt.setString(3,String.valueOf(q.getTime()));\n pstmt.setString(4,String.valueOf(type));\n pstmt.executeUpdate();\n if (type == 1) {\n sql = \"Insert into multiplechoice \\n\" +\n \"Values (?,?,?,?,?,?)\";\n MultipleChoice mc = (MultipleChoice) q;\n String[] answers = mc.getAnswers();\n pstmt = c.prepareStatement(sql);\n pstmt.setString(1,String.valueOf(q.getId()));\n pstmt.setString(2,answers[0]);\n pstmt.setString(3,answers[1]);\n pstmt.setString(4,answers[2]);\n pstmt.setString(5,answers[3]);\n pstmt.setString(6,mc.getCorrectAnswers());\n pstmt.executeUpdate();\n } else {\n sql = \"Insert into fill_blank Values(?,?)\";\n FillBlank fb = (FillBlank) q;\n pstmt = c.prepareStatement(sql);\n pstmt.setString(1,String.valueOf(q.getId()));\n pstmt.setString(2,fb.getCorrectAnswer());\n pstmt.executeUpdate();\n }\n } catch (Exception e) {\n throw new LoadSaveException(\"Error while adding\");\n }\n }", "public String getAnswerId() {\n return answerId;\n }", "public void setAnswer(String newAnswer){\n this.answer = newAnswer; \n }", "public void addQuestion()\r\n\t{\r\n\t\tScanner in = new Scanner (System.in);\r\n\t\tString question, a1, a2, a3, a4, correctAnswer;\r\n\r\n\t\tSystem.out.println(\"Please enter a question: \");\r\n\t\tquestion = in.nextLine();\r\n\t\t\r\n\t\tSystem.out.println(\"Please enter answer choice #1: \");\r\n\t\ta1 = in.nextLine();\r\n\t\t\r\n\t\tSystem.out.println(\"Please enter answer choice #2: \");\r\n\t\ta2 = in.nextLine();\r\n\t\t\r\n\t\tSystem.out.println(\"Please enter answer choice #3: \");\r\n\t\ta3 = in.nextLine();\r\n\t\t\r\n\t\tSystem.out.println(\"Please enter answer choice #4: \");\r\n\t\ta4 = in.nextLine();\r\n\t\t\r\n\t\tSystem.out.println(\"Please enter the correct answer (number): \");\r\n\t\tcorrectAnswer = in.nextLine();\r\n\t\t\r\n\t\t//checks input\r\n\t\twhile( !( correctAnswer.equalsIgnoreCase(\"1\") || correctAnswer.equalsIgnoreCase(\"2\") || correctAnswer.equalsIgnoreCase(\"3\") || correctAnswer.equalsIgnoreCase(\"4\") ) )\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Invalid entry. Enter again:\");\r\n\t\t\tcorrectAnswer = in.nextLine();\r\n\t\t}\r\n\t\tQuestion q = new Question ( question, a1, a2, a3, a4, correctAnswer );\r\n\t\t\r\n\t\tquestions.add(q);\r\n\t}", "public AnswerComposite(Answer answer, Question question, QuestionComposite composite) {\n\t\tbuildMainLayout();\n\t\tsetCompositionRoot(mainLayout);\n\n\t\t// TODO add user code here\n this.answer = answer;\n this.question = question;\n parentComposite = composite;\n setData();\n addButtonListeners();\n\t}", "public ReAuthAnswer createReAuthAnswer(Answer answer) {\n return null;\r\n }", "public void addResource(Resource resource) {\n\t\tif (resource != null) {\n\t\t\tthis.getResources().add(resource);\n\t\t\tresource.setSystem(this);\n\t\t}\n\t}", "public Menutable(String question, String answer) {\r\n\t\tthis.question = question;\r\n\t\tthis.answer = answer;\r\n\t}", "public Answers(String answer, Questions questions, Integer answerWeight) {\r\n this.answer = answer;\r\n this.questions = questions;\r\n this.answerWeight = answerWeight;\r\n }", "public void saveAnswer(Answer answer) throws Exception {\n DataBaseBroker dbb = new DataBaseBroker();\n dbb.loadDriver();\n dbb.establishConnection();\n dbb.saveAnswer(answer);\n dbb.commit();\n dbb.closeConnection();\n }", "private void creatingNewQuestion() {\r\n AbstractStatement<?> s;\r\n ListQuestions lq = new ListQuestions(ThemesController.getThemeSelected());\r\n switch ((String) typeQuestion.getValue()) {\r\n case \"TrueFalse\":\r\n // just to be sure the answer corresponds to the json file\r\n Boolean answer = CorrectAnswer.getText().equalsIgnoreCase(\"true\");\r\n s = new TrueFalse<>(Text.getText(), answer);\r\n break;\r\n\r\n case \"MCQ\":\r\n s = new MCQ<>(Text.getText(), TextAnswer1.getText(), TextAnswer2.getText(), TextAnswer3.getText(), CorrectAnswer.getText());\r\n break;\r\n\r\n default:\r\n s = new ShortAnswer<>(Text.getText(), CorrectAnswer.getText());\r\n break;\r\n }\r\n lq.addQuestion(new Question(s, ThemesController.getThemeSelected(), Difficulty.fromInteger((Integer) difficulty.getValue()) ));\r\n lq.writeJson(ThemesController.getThemeSelected());\r\n }", "public void answerPoll(Poll poll, Response response){\n poll.getResponses().add(response);\n }", "public void answer(Properties answers) {\n/* 56 */ setAnswer(answers);\n/* 57 */ QuestionParser.parseManageAllianceQuestion(this);\n/* */ }", "@Override\r\n\tpublic void addReply(CommentVO vo) throws Exception {\n\t\tsession.insert(namespace + \".addReply\", vo);\r\n\t}", "public void addRecord();", "public void addPlayerReply(final Player player, Reply reply, final ChoiceDescriptor choiceDescriptor, final QuestionDescriptor questionDescriptor) throws JsonProcessingException {\n if (player.getGame() instanceof DebugGame\n || Helper.isNullOrEmpty(player.getGameModel().getProperties().getLogID())\n || !dbUp) {\n return;\n }\n String key = nodeKey(player, TYPE.QUESTION);\n ObjectNode newNode = createJsonNode(player, reply, choiceDescriptor, questionDescriptor);\n createLinkedToYoungest(key, \"gamelink\", newNode, player.getGameModel().getName());\n }", "void add(String question, long time, boolean correct);", "@Override\n\tprotected boolean addResourceToDataStore(ExampleResource resource) {\n\t\tHALLink selfLink = resource.getSelf();\n\t\tif (selfLink == null){\n\t\t\tUUID resourceID = UUID.randomUUID();\n\t\t\tselfLink = createSelfLinkWithUUID(resourceID, resource.getProfile());\n\t\t\tresource.setSelf(selfLink);\n\t\t\tresourceMapping.put(selfLink.getHref(), resourceID);\n\t\t}\n\t\tString resourceURI = selfLink.getHref();\n\t\tUUID dataID = resourceMapping.get(resourceURI);\n\t\tif (dataID == null){\n\t\t\tdataID = UUID.randomUUID();\n\t\t\tresourceMapping.put(resourceURI, dataID);\n\t\t}\n\t\treturn dataStore.getData().add(convert(resource));\n\t}", "public void createQuestion(int sid,int qid,String qtype,String qtitle,String answer_a,String answer_b,String answer_c,String answer_d);", "public void setAnswerId(String answerId) {\n this.answerId = answerId == null ? null : answerId.trim();\n }", "public void setAnswer(MCQChoice answer)\n\t{\n\t\tmcqAnswer = answer;\n\t}", "public final EObject entryRuleAnswer() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleAnswer = null;\n\n\n try {\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:576:2: (iv_ruleAnswer= ruleAnswer EOF )\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:577:2: iv_ruleAnswer= ruleAnswer EOF\n {\n newCompositeNode(grammarAccess.getAnswerRule()); \n pushFollow(FollowSets000.FOLLOW_ruleAnswer_in_entryRuleAnswer1153);\n iv_ruleAnswer=ruleAnswer();\n\n state._fsp--;\n\n current =iv_ruleAnswer; \n match(input,EOF,FollowSets000.FOLLOW_EOF_in_entryRuleAnswer1163); \n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "public void createAnswerStatistics(int sid,int qid);", "void addQuestions(String surveyId, List<Question> questions);", "public Question(String statement, String answer){\n this.statement = statement;\n this.answer = answer;\n }", "public Cif addResourcesItem(String resourcesItem) {\n if (this.resources == null) {\n this.resources = new ArrayList<String>();\n }\n this.resources.add(resourcesItem);\n return this;\n }", "private void add(EResource resource) {\n switch (resource) {\n case BRICK:\n brick++;\n break;\n case GRAIN:\n grain++;\n break;\n case LUMBER:\n lumber++;\n break;\n case ORE:\n ore++;\n break;\n case WOOL:\n wool++;\n break;\n }\n }", "private void addRecord() {\n\t\tContactData cd = new ContactData(contactDataId, aName, aLastname,\n\t\t\t\taDate, aAdress, aGender, aImage);\n\t\tIntent intent = getIntent();\n\t\tintent.putExtra(\"ContactData\", cd);\n\t\tsetResult(RESULT_OK, intent);\n\t\tfinish();\n\t\tonDestroy();\n\t}", "public static com.jhu.cvrg.portal.survey.model.SurveyAnswer createSurveyAnswer(\n\t\tlong surveyAnswerId) {\n\t\treturn getService().createSurveyAnswer(surveyAnswerId);\n\t}", "public void giveResourcesToPlayer(Resource resource){\n resources.addResource(resource);\n }", "public Long createAndStoreMessageResource(MessageResource messageResource, Long userID)\n throws MessageResourceSaveException;", "public void createEssay() {\n Question q = new Essay(this.in,this.o);\n this.o.setDisplay(\"Enter the prompt for your Essay question:\\n\");\n this.o.getDisplay();\n\n q.setPrompt(this.in.getUserInput());\n\n int numAns = 0;\n while (numAns == 0) {\n this.o.setDisplay(\"How many answers does this question have?\\n\");\n this.o.getDisplay();\n\n try {\n numAns = Integer.parseInt(this.in.getUserInput());\n if (numAns > numChoices || numAns < 1) {\n numAns = 0;\n } else {\n q.setMaxResponses(numAns);\n }\n } catch (NumberFormatException e) {\n numAns = 0;\n }\n }\n\n if (isTest) {\n RCA ca = new RCA(this.in,this.o);\n Test t = (Test)this.survey;\n String ans;\n\n this.o.setDisplay(\"Enter correct answer(s)\\n\");\n this.o.getDisplay();\n\n for (int j=0; j < q.getMaxResponses(); j++){\n\n ans = this.in.getUserInput();\n\n ca.addResponse(ans);\n }\n t.addAnswer(ca);\n }\n\n this.survey.addQuestion(q);\n }", "@RequestMapping(value = \"/messageresource/add\", method = RequestMethod.GET)\n\tpublic String showAddMessageResourceForm(Model model, Locale locale) {\n\n\t\tlogger.debug(\"showAddMessageResourceForm()\");\n\n\t\tMessageResource messageResource = new MessageResourceImpl();\n\t\t\n\t\tmessageResource.setCurrentMode(MessageResource.CurrentMode.ADD);\n\n\t\tmodel.addAttribute(\"messageResourceFormModel\", messageResource);\n\n\t\tsetDropDownContents(model, messageResource, locale);\n\n\t\treturn \"messages/messageresource\";\n\n\t}", "public void addAnsweredQuestions (int index) {\n\n\t\t_answeredQuestions[index]=_answeredQuestions[index]+1;\n\t\tBashCmdUtil.bashCmdNoOutput(\"rm data/answered_questions\");\n\t\tBashCmdUtil.bashCmdNoOutput(\"touch data/answered_questions\");\n\t\tString answeredQuestions = \"\";\n\t\tfor (int i = 0;i<5;i++) {\n\t\t\tansweredQuestions = answeredQuestions + \" \" + String.valueOf(_answeredQuestions[i]);\n\t\t}\n\t\tBashCmdUtil.bashCmdNoOutput(String.format(\"echo \\\"%s\\\" >> data/answered_questions\", answeredQuestions));\n\n\n\n\t}", "@Override\r\n\tpublic void add(Resources resources) {\n\t\t\r\n\t}", "public void setAnswer(Answer v) {\n if (AnswerScore_Type.featOkTst && ((AnswerScore_Type)jcasType).casFeat_answer == null)\n jcasType.jcas.throwFeatMissing(\"answer\", \"edu.cmu.lti.f13.hw1.sji.AnswerScore\");\n jcasType.ll_cas.ll_setRefValue(addr, ((AnswerScore_Type)jcasType).casFeatCode_answer, jcasType.ll_cas.ll_getFSRef(v));}", "@Override\n public void addResource(String resourceKey, Object resource)\n {\n synchronized(InProcessCache.class) {\n if(!hasResource(resourceKey)) {\n WeakReference weak = new WeakReference(resource);\n _cache.put(resourceKey, weak);\n }\n }\n }", "public void add(IQuestion question) throws IllegalArgumentException {\n\t\tgetQuestions().add(question);\n\t}", "public org.hl7.fhir.ResourceReference addNewMedication()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.ResourceReference target = null;\n target = (org.hl7.fhir.ResourceReference)get_store().add_element_user(MEDICATION$10);\n return target;\n }\n }", "public void addQuestion(String questionText, String correctChoice,\n String incorrectChoice1, String incorrectChoice2, String incorrectChoice3,\n String explanation, String user) {\n Question question = new Question();\n question.setQuestionText(questionText);\n question.setCorrectChoice(correctChoice);\n question.setIncorrectChoice1(incorrectChoice1);\n question.setIncorrectChoice2(incorrectChoice2);\n question.setIncorrectChoice3(incorrectChoice3);\n question.setExplanation(explanation);\n question.setCreatedBy(user);\n questionDao.create(question);\n\n }", "public Answer getAnswer(){\n\t\treturn answer; /** use relation -> DecideAnswer.java */\n\t}", "public FAQ(String question, String answer){\n\t\tthis.question = question;\n\t\tthis.answer = answer;\n\t}", "public void addQuestion(Question a) {\n quesCollec.add(a);\n }", "@PostMapping(value=\"/add\")\n\tpublic Question addQuestion(@RequestBody Question question) throws EmptyInputException{\n\t\t Question t = questionObj.addQuestion(question);\n\t\t LOGGER.info(\"Adding Questions\");\n\t\t return t;\n\t}", "void newAnswer (Integer q, Integer a) {\n\t\tif (results.get(q)==null) {\n\t\t\tArrayList<Integer> newEntry = new ArrayList<Integer>();\n\t\t\tnewEntry.add(a);\n\t\t\tresults.put(q, newEntry);\n\t\t} else {\n\t\t\t// append to existing list\n\t\t\tresults.get(q).add(a);\n\t\t}\n\t}", "public void addQuestions() {\n\t\tboolean addNewQuestion = true;\n\t\tString text;\n\t\tQuestion q;\n\t\tString promptResponse;\n\t\t\n\t\twhile (addNewQuestion) {\n\t\t\tSystem.out.print(\"Enter question: \");\n\t\t\ttext = System.console().readLine();\n\t\t\tq = new QuestionImpl(questionId, text);\n\t\t\tthis.questionId++;\n\t\t\tq.addAnswers();\n\t\t\tthis.questions.add(q);\n\n\t\t\tSystem.out.print(\"Hit Return to add another question or q to quit: \");\n\t\t\tpromptResponse = System.console().readLine();\n\t\t\tif (promptResponse.equals(\"q\") ||\n\t\t\t\t\tpromptResponse.equals(\"Q\") ||\n\t\t\t\t\tpromptResponse.equals(\"quit\") ||\n\t\t\t\t\tpromptResponse.equals(\"Quit\")) {\n\t\t\t\taddNewQuestion = false;\n\t\t\t}\n\t\t}\n\t}", "void put(String question, String answer) {\n map.put(question, answer);\n }", "public Integer addQuestionToSurvey(String questionDesc, String option, Boolean status) { \n\t\tInteger val = null;\n\t\ttry {\n\t\t\tval = myQuestions.addQuestionToSurvey(questionDesc, option, status);\n\t\t} catch (RemoteException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn val; \n\t}", "public Builder addResource(ResourceConfig resource) {\n _resourceMap.put(resource.getId(), resource);\n return this;\n }" ]
[ "0.6713576", "0.6691464", "0.66405237", "0.64692765", "0.61697704", "0.6028735", "0.56496924", "0.5640897", "0.56059337", "0.5491348", "0.5484367", "0.5483683", "0.5460599", "0.5454003", "0.5387567", "0.5381038", "0.5350936", "0.5330491", "0.5313302", "0.52857935", "0.5249004", "0.5228373", "0.5214815", "0.521036", "0.5191419", "0.516632", "0.5150467", "0.5142436", "0.5137536", "0.5109454", "0.5108764", "0.51074356", "0.51021624", "0.50751245", "0.5066015", "0.50625604", "0.5060255", "0.5060098", "0.505471", "0.50481963", "0.50308406", "0.49936345", "0.4961584", "0.49612874", "0.49601254", "0.49527887", "0.4948368", "0.49454683", "0.49442786", "0.4934947", "0.49324852", "0.49311835", "0.49305046", "0.49297312", "0.49255285", "0.49254477", "0.4919484", "0.4914356", "0.48964822", "0.4894584", "0.4863125", "0.4862723", "0.48604968", "0.4860459", "0.4856394", "0.48478788", "0.48415408", "0.48293626", "0.48290592", "0.4817255", "0.48160523", "0.48135433", "0.48130828", "0.48106474", "0.48078328", "0.47909647", "0.47803205", "0.47717905", "0.47656986", "0.4763041", "0.47603825", "0.47468472", "0.474383", "0.47416696", "0.4725468", "0.4708137", "0.4699404", "0.46849138", "0.46748585", "0.4672137", "0.46574444", "0.4656135", "0.46496302", "0.4636085", "0.46346766", "0.4633613", "0.46248835", "0.46209368", "0.4619285", "0.46130458" ]
0.7830685
0
Adds a question to this message.
public DnsMessage addQuestion(DnsQuestion question) { if (questions == null) { questions = new LinkedList<DnsQuestion>(); } questions.add(question); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addQuestion(Question question) {\n\t\tquestions.add(question);\n\t}", "public void addQuestion(Question question);", "public void addQ (Question Q)\n {\n newQuestion = Q;\n \n enqueue();\n }", "public void addQuestion(Question question) {\n \t\tquestion.setId(questionIdCounter);\n \t\tquestions.add(question);\n \t\tquestionIdCounter++;\n \t}", "public void addQuestion(Question a) {\n quesCollec.add(a);\n }", "private void addQuestion() {\n if (modifiable()) {\n try {\n this.questions.add(Question.fromInput(gradeable()));\n } catch (UserInputException e) {\n System.err.println(e.getMessage());\n }\n } else {\n System.err.println(\"Can not modify this by add a question.\");\n }\n }", "private void addQuestion(Questions question) {\n ContentValues cv = new ContentValues();\n cv.put(QuestionsTable.Column_Question, question.getQuestion());\n cv.put(QuestionsTable.Column_Option1, question.getOption1());\n cv.put(QuestionsTable.Column_Option2, question.getOption2());\n cv.put(QuestionsTable.Column_Option3, question.getOption3());\n cv.put(QuestionsTable.Column_Option4, question.getOption4());\n cv.put(QuestionsTable.Column_Answer_Nr, question.getAnswerNr());\n db.insert(QuestionsTable.Table_name, null, cv);\n }", "public void add(IQuestion question) throws IllegalArgumentException {\n\t\tgetQuestions().add(question);\n\t}", "void addQuestionAnswer(Answer answer);", "@Override\r\n public void addAnswer(String answer) {\r\n this.answers.add(answer);\r\n }", "@Override\n public void add(String question, String answer){\n questions.add(question);\n answers.add(answer);\n\n }", "public void addQuestion(Question quest) {\n ContentValues values = new ContentValues();\n values.put(KEY_QUES, quest.getQUESTION());\n values.put(KEY_ANSWER, quest.getANSWER());\n values.put(KEY_OPTA, quest.getOPTA());\n values.put(KEY_OPTB, quest.getOPTB());\n values.put(KEY_OPTC, quest.getOPTC());\n // Inserting Row\n db.insert(TABLE_NAME_QUEST, null, values);\n }", "public void addOpenAnswerQuestion(String question) {\n cmbQuestionType.select(questionType);\n txbQuestion.type(question);\n btnAddQuestion.clickAndWait();\n }", "@Override\n\tpublic boolean addQuestion(QuestionObject question) {\n\t\tif (question != null && !questionComposite.checkExist(question)) {\n\t\t\tquestionComposite.add(question);\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t\treturn false;\n\t}", "public void setQuestion(String question) {\n this.question = question;\n }", "void addAnswer(Answer answer);", "public void setQuestion(String question) {\n\t\tthis.question = question;\n\t}", "public void addQuestions() {\n\t\tboolean addNewQuestion = true;\n\t\tString text;\n\t\tQuestion q;\n\t\tString promptResponse;\n\t\t\n\t\twhile (addNewQuestion) {\n\t\t\tSystem.out.print(\"Enter question: \");\n\t\t\ttext = System.console().readLine();\n\t\t\tq = new QuestionImpl(questionId, text);\n\t\t\tthis.questionId++;\n\t\t\tq.addAnswers();\n\t\t\tthis.questions.add(q);\n\n\t\t\tSystem.out.print(\"Hit Return to add another question or q to quit: \");\n\t\t\tpromptResponse = System.console().readLine();\n\t\t\tif (promptResponse.equals(\"q\") ||\n\t\t\t\t\tpromptResponse.equals(\"Q\") ||\n\t\t\t\t\tpromptResponse.equals(\"quit\") ||\n\t\t\t\t\tpromptResponse.equals(\"Quit\")) {\n\t\t\t\taddNewQuestion = false;\n\t\t\t}\n\t\t}\n\t}", "public void addQuestionAndAnswer(String question, String answer){\n this.questionList.add(question);\n this.answerList.add(answer);\n }", "public void addQuestion()\r\n\t{\r\n\t\tScanner in = new Scanner (System.in);\r\n\t\tString question, a1, a2, a3, a4, correctAnswer;\r\n\r\n\t\tSystem.out.println(\"Please enter a question: \");\r\n\t\tquestion = in.nextLine();\r\n\t\t\r\n\t\tSystem.out.println(\"Please enter answer choice #1: \");\r\n\t\ta1 = in.nextLine();\r\n\t\t\r\n\t\tSystem.out.println(\"Please enter answer choice #2: \");\r\n\t\ta2 = in.nextLine();\r\n\t\t\r\n\t\tSystem.out.println(\"Please enter answer choice #3: \");\r\n\t\ta3 = in.nextLine();\r\n\t\t\r\n\t\tSystem.out.println(\"Please enter answer choice #4: \");\r\n\t\ta4 = in.nextLine();\r\n\t\t\r\n\t\tSystem.out.println(\"Please enter the correct answer (number): \");\r\n\t\tcorrectAnswer = in.nextLine();\r\n\t\t\r\n\t\t//checks input\r\n\t\twhile( !( correctAnswer.equalsIgnoreCase(\"1\") || correctAnswer.equalsIgnoreCase(\"2\") || correctAnswer.equalsIgnoreCase(\"3\") || correctAnswer.equalsIgnoreCase(\"4\") ) )\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Invalid entry. Enter again:\");\r\n\t\t\tcorrectAnswer = in.nextLine();\r\n\t\t}\r\n\t\tQuestion q = new Question ( question, a1, a2, a3, a4, correctAnswer );\r\n\t\t\r\n\t\tquestions.add(q);\r\n\t}", "private void addQuestion() {\n Question q = new Question(\n \"¿Quien propuso la prueba del camino básico ?\", \"Tom McCabe\", \"Tom Robert\", \"Tom Charlie\", \"Tom McCabe\");\n this.addQuestion(q);\n\n\n Question q1 = new Question(\"¿Qué es una prueba de Caja negra y que errores desean encontrar en las categorías?\", \"Hace una cobertura de declaraciones del código, ramas, caminos y condiciones\", \"esta basada en la funcionalidad de los módulos del programa\", \" determina la funcionalidad del sistema\", \" determina la funcionalidad del sistema\");\n this.addQuestion(q1);\n Question q2 = new Question(\"¿Qué es la complejidad ciclomática es una métrica de calidad software?\", \"Hace una cobertura de declaraciones del código, ramas, caminos y condiciones\", \"esta basada en la funcionalidad de los módulos del programa\", \"basada en el cálculo del número\", \"basada en el cálculo del número\");\n this.addQuestion(q2);\n //preguntas del quiz II\n Question q3=new Question(\"Las pruebas de caja blanca buscan revisar los caminos, condiciones, \" +\n \"particiones de control y datos, de las funciones o módulos del sistema; \" +\n \"para lo cual el grupo de diseño de pruebas debe:\",\n \"Conformar un grupo de personas para que use el sistema nuevo\",\n \"Ejecutar sistema nuevo con los datos usados en el sistema actual\",\n \"Generar registro de datos que ejecute al menos una vez cada instrucción\",\n \"Generar registro de datos que ejecute al menos una vez cada instrucción\");\n this.addQuestion(q3);\n Question q4=new Question(\"¿Las pruebas unitarias son llamadas?\",\n \"Pruebas del camino\", \"Pruebas modulares\",\n \"Pruebas de complejidad\", \"Pruebas modulares\");\n this.addQuestion(q4);\n Question q5=new Question(\"¿Qué es una prueba de camino básico?\",\n \"Hace una cobertura de declaraciones del código\",\n \"Permite determinar si un modulo esta listo\",\n \"Técnica de pueba de caja blanca\",\n \"Técnica de pueba de caja blanca\" );\n this.addQuestion(q5);\n Question q6=new Question(\"Prueba de camino es propuesta:\", \"Tom McCabe\", \"McCall \", \"Pressman\",\n \"Tom McCabe\");\n this.addQuestion(q6);\n Question q7=new Question(\"¿Qué es complejidad ciclomatica?\",\"Grafo de flujo\",\"Programming\",\n \"Metrica\",\"Metrica\");\n this.addQuestion(q7);\n //preguntas del quiz III\n Question q8 = new Question(\n \"¿Se le llama prueba de regresión?\", \"Se tienen que hacer nuevas pruebas donde se han probado antes\",\n \"Manten informes detallados de las pruebas\", \"Selección de los usuarios que van a realizar las pruebas\",\n \"Se tienen que hacer nuevas pruebas donde se han probado antes\");\n this.addQuestion(q8);\n Question q9 = new Question(\"¿Cómo se realizan las pruebas de regresión?\",\n \"Selección de los usuarios que van a realizar las pruebas\",\n \"Se tienen que hacer nuevas pruebas donde se han probado antes\", \"A través de herramientas de automatización de pruebas\", \"A través de herramientas de automatización de pruebas\");\n this.addQuestion(q9);\n Question q10 = new Question(\"¿Cuándo ya hay falta de tiempo para ejecutar casos de prueba ya ejecutadas se dejan?\",\n \"En primer plano\", \"En segundo plano\", \"En tercer plano\", \"En segundo plano\");\n this.addQuestion(q10);\n //preguntas del quiz IV\n Question q11 = new Question(\n \"¿En qué se enfocan las pruebas funcionales?\",\n \"Enfocarse en los requisitos funcionales\", \"Enfocarse en los requisitos no funcionales\",\n \"Verificar la apropiada aceptación de datos\", \"Enfocarse en los requisitos funcionales\");\n this.addQuestion(q11);\n Question q12 = new Question(\"Las metas de estas pruebas son:\", \"Verificar la apropiada aceptación de datos\",\n \"Verificar el procesamiento\", \"Verificar la apropiada aceptación de datos, procedimiento y recuperación\",\n \"Verificar la apropiada aceptación de datos, procedimiento y recuperación\");\n this.addQuestion(q12);\n Question q13 = new Question(\"¿En qué estan basadas este tipo de pruebas?\",\n \"Hace una cobertura de declaraciones del código, ramas, caminos y condiciones\",\n \"Esta basada en la funcionalidad de los módulos del programa\",\n \"Técnicas de cajas negra\", \"Técnicas de cajas negra\");\n this.addQuestion(q13);\n //preguntas del quiz V\n Question q14 = new Question(\n \"¿Cúal es el objetivo de esta técnica?\", \"Identificar errores introducidos por la combinación de programas probados unitariamente\",\n \"Decide qué acciones tomar cuando se descubren problemas\",\n \"Verificar que las interfaces entre las componentes de software funcionan correctamente\",\n \"Identificar errores introducidos por la combinación de programas probados unitariamente\");\n this.addQuestion(q14);\n Question q15 = new Question(\"¿Cúal es la descripción de la Prueba?\",\n \"Hace una cobertura de declaraciones del código, ramas, caminos y condiciones\",\n \"Esta basada en la funcionalidad de los módulos del programa\",\n \"Describe cómo verificar que las interfaces entre las componentes de software funcionan correctamente\",\n \"Describe cómo verificar que las interfaces entre las componentes de software funcionan correctamente\");\n this.addQuestion(q15);\n Question q16 = new Question(\"Por cada caso de prueba ejecutado:\",\n \"Hace una cobertura de declaraciones del código, ramas, caminos y condiciones\",\n \"Esta basada en la funcionalidad de los módulos del programa\",\n \"Comparar el resultado esperado con el resultado obtenido\", \"Comparar el resultado esperado con el resultado obtenido\");\n this.addQuestion(q16);\n //preguntas del quiz VI\n Question q17 = new Question(\n \"Este tipo de pruebas sirven para garantizar que la calidad del código es realmente óptima:\",\n \"Pruebas Unitarias\", \"Pruebas de Calidad de Código\",\n \"Pruebas de Regresión\", \"Pruebas de Calidad de Código\");\n this.addQuestion(q17);\n Question q18 = new Question(\"Pruebas de Calidad de código sirven para: \",\n \"Hace una cobertura de declaraciones del código, ramas, caminos y condiciones\",\n \"Verificar que las especificaciones de diseño sean alcanzadas\",\n \"Garantizar la probabilidad de tener errores o bugs en la codificación\", \"Garantizar la probabilidad de tener errores o bugs en la codificación\");\n this.addQuestion(q18);\n Question q19 = new Question(\"Este análisis nos indica el porcentaje que nuestro código desarrollado ha sido probado por las pruebas unitarias\",\n \"Cobertura\", \"Focalización\", \"Regresión\", \"Cobertura\");\n this.addQuestion(q19);\n\n Question q20 = new Question( \"¿Qué significa V(G)?\",\n \"Número de Regiones\", \"Número de Aristas\", \"Número de Nodos\", \"Número de Regiones\");\n this.addQuestion(q20);\n\n Question q21 = new Question( \"¿Qué significa A?\",\n \"Número de Regiones\", \"Número de Aristas\", \"Número de Nodos\", \"Número de Aristas\");\n this.addQuestion(q21);\n\n Question q22 = new Question( \"¿Qué significa N?\",\n \"Número de Regiones\", \"Número de Aristas\", \"Número de Nodos\", \"Número de Nodos\");\n this.addQuestion(q22);\n\n Question q23 = new Question( \"¿Qué significa P?\",\n \"Número de Regiones\", \"Número de Aristas\", \"Número de Nodos Predicado\", \"Número de Nodos Predicado\");\n this.addQuestion(q23);\n Question q24 = new Question( \"De cuantás formas se puede calcular la complejidad ciclomatica V(G):\",\n \"3\", \"1\", \"2\", \"3\");\n this.addQuestion(q24);\n\n // END\n }", "public void addQuestionNote(int qId){\r\n SQLiteDatabase db = this.getWritableDatabase();\r\n\r\n ContentValues values = new ContentValues();\r\n values.put(KEY_QID, qId);\r\n\r\n db.insert(TABLE_QUESTION_NOTES, null, values);\r\n\r\n db.close();\r\n }", "@Override\n\tpublic Questions addQuestion(BigInteger testId, Questions question) throws UserException {\n\t\treturn null;\n\t}", "void add(String question, long time, boolean correct);", "public void setQuestion(String newQuestion) {\n question = newQuestion;\n }", "public void addAnswer(Answer answer) {\n \t\tanswer.setId(answerIdCounter);\n \t\tanswers.add(answer);\n \t\tanswerIdCounter++;\n \t}", "@Override\r\n\tpublic void add(AssesmentQuestion assesmentQuestion) {\r\n\r\n\t\tSession session = sessionFactory.getCurrentSession();\r\n\t\tTransaction tx = session.beginTransaction();\r\n\t\ttry {\r\n\t\t\tsession.save(assesmentQuestion);\r\n\t\t\ttx.commit();\r\n\t\t} catch (HibernateException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "@Override\n public void add(Question q) {\n try {\n c = DBConncetion.getConnection();\n int type = q.getType() == MultipleChoice ? 1 : 2; // 1 = MC , 2 = FB\n System.out.println(type);\n String sql = \"Insert into mainquestion \\n\" +\n \"Values (?,?,?,?,0,0,0)\";\n PreparedStatement pstmt = c.prepareStatement(sql);\n pstmt.setString(1,String.valueOf(q.getId()));\n pstmt.setString(2,q.getTitle());\n pstmt.setString(3,String.valueOf(q.getTime()));\n pstmt.setString(4,String.valueOf(type));\n pstmt.executeUpdate();\n if (type == 1) {\n sql = \"Insert into multiplechoice \\n\" +\n \"Values (?,?,?,?,?,?)\";\n MultipleChoice mc = (MultipleChoice) q;\n String[] answers = mc.getAnswers();\n pstmt = c.prepareStatement(sql);\n pstmt.setString(1,String.valueOf(q.getId()));\n pstmt.setString(2,answers[0]);\n pstmt.setString(3,answers[1]);\n pstmt.setString(4,answers[2]);\n pstmt.setString(5,answers[3]);\n pstmt.setString(6,mc.getCorrectAnswers());\n pstmt.executeUpdate();\n } else {\n sql = \"Insert into fill_blank Values(?,?)\";\n FillBlank fb = (FillBlank) q;\n pstmt = c.prepareStatement(sql);\n pstmt.setString(1,String.valueOf(q.getId()));\n pstmt.setString(2,fb.getCorrectAnswer());\n pstmt.executeUpdate();\n }\n } catch (Exception e) {\n throw new LoadSaveException(\"Error while adding\");\n }\n }", "public DnsMessage addAnswer(DnsResource answer) {\n if (answers == null) {\n answers = new LinkedList<DnsResource>();\n }\n answers.add(answer);\n return this;\n }", "private void creatingNewQuestion() {\r\n AbstractStatement<?> s;\r\n ListQuestions lq = new ListQuestions(ThemesController.getThemeSelected());\r\n switch ((String) typeQuestion.getValue()) {\r\n case \"TrueFalse\":\r\n // just to be sure the answer corresponds to the json file\r\n Boolean answer = CorrectAnswer.getText().equalsIgnoreCase(\"true\");\r\n s = new TrueFalse<>(Text.getText(), answer);\r\n break;\r\n\r\n case \"MCQ\":\r\n s = new MCQ<>(Text.getText(), TextAnswer1.getText(), TextAnswer2.getText(), TextAnswer3.getText(), CorrectAnswer.getText());\r\n break;\r\n\r\n default:\r\n s = new ShortAnswer<>(Text.getText(), CorrectAnswer.getText());\r\n break;\r\n }\r\n lq.addQuestion(new Question(s, ThemesController.getThemeSelected(), Difficulty.fromInteger((Integer) difficulty.getValue()) ));\r\n lq.writeJson(ThemesController.getThemeSelected());\r\n }", "public void addAnswer(Answer ans) {\n // TODO implement here\n }", "void addQuest(Question quest){\r\n\t\t//if the test bank does not contain this topic, create a new one and add question\r\n\t\tif(!bank.containsKey(quest.getTopic())){\r\n\t\t\tquest.setID(0);\r\n\t\t\tbank.put(quest.getTopic(), new ArrayList<Question>());\r\n\t\t\tbank.get(quest.getTopic()).add(quest);\r\n\t\t}else{\r\n\t\t\tquest.setID(bank.get(quest.getTopic()).size());\r\n\t\t\tbank.get(quest.getTopic()).add(quest);\r\n\t\t}\r\n\t}", "private void insertToSentList(Question question) {\r\n\t\tdListOfQuestions.append(new QuestionWithAns(question));\r\n\t\tbTreeOfQuestions.addNode(question.getQnNum(), question);\r\n\t}", "public void createQuestion(int sid,int qid,String qtype,String qtitle,String answer_a,String answer_b,String answer_c,String answer_d);", "@Override\n\tpublic Questions addQuestions(long testId, Questions question) throws TestMSException {\n\t\treturn null;\n\t}", "private void addComment(Question q)\n\t{\n\t\tQuestion q_comm = new Question(q);\n\t\tq_comm.setQid(q_comm.getQid().concat(\"comment\"));\n\t\tq_comm.setQuestion(q_comm.getQuestion().concat(\" comment\"));\n\t\tq_comm.setType(\"T\");\n\t\t/*\tCond: SE-StudyEventOID/F-FormOID[RepeatKey]/IG-ItemGroupOID/I-ItemOID == \"-oth-\"\n\t\t */\n\t\tString cond_oid = q.getQid().concat(prop.getProperty(\"ext.cond\"));\n\t\tString cond_str = \"$(SE-\" + prop.getProperty(\"dummy.study_event_oid\") + \"/F-\" + survey.getId() + \"/IG-\" + q.getGid() + \"/I-\" + q.getQid() + \")==NULL\";\n\t\tsurvey.addCondition(new Condition(prop.getProperty(\"imi.syntax_name\"), cond_oid, cond_str));\n\t\tq_comm.setCond(cond_oid);\n\t\tsurvey.addQuestion(q_comm);\n\t}", "public void addQuestionOS(QuestionOS quest) {\n ContentValues values = new ContentValues();\n values.put(KEY_QUES, quest.getQUESTION());\n values.put(KEY_ANSWER, quest.getANSWER());\n values.put(KEY_OPTA, quest.getOPTA());\n values.put(KEY_OPTB, quest.getOPTB());\n values.put(KEY_OPTC, quest.getOPTC());\n values.put(KEY_OPTD, quest.getOPTD());\n // Inserting Row\n dbase.insert(TABLE_QUEST, null, values);\n }", "@Override\n public void edit(Question q) {\n delete(q);\n add(q);\n }", "@PostMapping(value=\"/add\")\n\tpublic Question addQuestion(@RequestBody Question question) throws EmptyInputException{\n\t\t Question t = questionObj.addQuestion(question);\n\t\t LOGGER.info(\"Adding Questions\");\n\t\t return t;\n\t}", "void addQuestions(String surveyId, List<Question> questions);", "public void addQuestion(String questionText, String correctChoice,\n String incorrectChoice1, String incorrectChoice2, String incorrectChoice3,\n String explanation, String user) {\n Question question = new Question();\n question.setQuestionText(questionText);\n question.setCorrectChoice(correctChoice);\n question.setIncorrectChoice1(incorrectChoice1);\n question.setIncorrectChoice2(incorrectChoice2);\n question.setIncorrectChoice3(incorrectChoice3);\n question.setExplanation(explanation);\n question.setCreatedBy(user);\n questionDao.create(question);\n\n }", "public void setOkToAddQuestion(String string) {\r\n\t\t_okToAddQuestion = string;\r\n\t}", "public void addTopicQuestion(int id, int tId, int qId){\r\n SQLiteDatabase db = this.getWritableDatabase();\r\n\r\n ContentValues values = new ContentValues();\r\n values.put(KEY_ID, id);\r\n values.put(KEY_TID, tId);\r\n values.put(KEY_QID, qId);\r\n\r\n db.insert(TABLE_TOPICS_QUESTIONS, null, values);\r\n\r\n db.close();\r\n }", "public final void question() throws RecognitionException {\r\n Token a=null;\r\n\r\n try {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:190:10: ( (a= QUESTION ) )\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:190:12: (a= QUESTION )\r\n {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:190:12: (a= QUESTION )\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:190:13: a= QUESTION\r\n {\r\n a=(Token)match(input,QUESTION,FOLLOW_QUESTION_in_question1155); \r\n out(\" ? \");\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n finally {\r\n }\r\n return ;\r\n }", "public boolean isAddQuestion() {\n return isAddQuestion;\n }", "public void add( IAnswer possibleAnswer );", "public void addExamTopicQuestion(int id, int eId, int tId, int qId){\r\n SQLiteDatabase db = this.getWritableDatabase();\r\n\r\n ContentValues values = new ContentValues();\r\n values.put(KEY_ID, id);\r\n values.put(KEY_EID, eId);\r\n values.put(KEY_TID, tId);\r\n values.put(KEY_QID, qId);\r\n\r\n db.insert(TABLE_EXAMS_TOPICS_QUESTIONS, null, values);\r\n\r\n db.close();\r\n }", "@Override\n public void askQuestion(final EJQuestion question)\n {\n final EJQuestionButton[] optionsButtons = getOptions(question);\n String[] options = new String[optionsButtons.length];\n for (int i = 0; i < optionsButtons.length; i++)\n {\n options[i] = question.getButtonText(optionsButtons[i]);\n }\n MessageDialog dialog = new MessageDialog(manager.getShell(), question.getTitle(), null, question.getMessageText(), MessageDialog.QUESTION, options, 2)\n {\n\n @Override\n public boolean close()\n {\n boolean close = super.close();\n\n int answer = getReturnCode();\n\n try\n {\n \n if (answer > -1)\n {\n question.setAnswer(optionsButtons[answer]);\n question.getActionProcessor().questionAnswered(question);\n \n }\n \n }\n catch (EJApplicationException e)\n {\n handleException(e);\n }\n\n return close;\n }\n\n };\n dialog.setBlockOnOpen(false);\n\n dialog.open();\n }", "private void setQuestion() {\n Question.setText(gen.getQuestion() + \"\\t\\tProblem # \" + currentQuestion + \"/\" + numQuestions);\n }", "public void setQuestionText(String questionText) {\n this.questionText = questionText;\n }", "public boolean addQuestion(EcardServiceCondition condition) {\n//\t\tString questionInfo = CodeUtil.decodeBase64(getCondition(condition)\n//\t\t\t\t.getContent());\n\t\t\n\t\tString values[] = ConnectionMessage.getValue(getCondition(condition).getMessage(), \"u_id\",\n\t\t\t\t\"u_ip\", \"g_id\", \"q_title\", \"q_content\", \"q_time\", \"q_value\",\n\t\t\t\t\"province_id\", \"q_stats\");\n\t\tQuestion question = new Question();\n\t\tquestion.getUser().setUid(StringValueUtils.getInt(values[0]));\n\t\tquestion.setQuestion_ip(values[1]);\n\t\tquestion.getLawCategory().setCatId(StringValueUtils.getInt(values[2]));\n\t\tquestion.setTitle(values[3]);\n\t\tquestion.setContent(StringUtils.replace(values[4], \"\\\\\\\\\", \"\\\\\"));\n\t\ttry {\n\t\t\tquestion.setCreatetime(DateUtil.parseDate(values[5]));\n\t\t} catch (ParseException e) {\n\t\t\tquestion.setCreatetime(new Date());\n\t\t}\n\t\tquestion.setScore(StringValueUtils.getInt(values[6]));\n\t\tquestion.getProvince().setAreaId(StringValueUtils.getInt(values[7]));\n\t\tquestion.setVisible(values[8]);\n\t\tif(questionServices.addQuestion(question)>0)return true;\n\t\telse \n\t\t\treturn false;\n\t}", "public void addQuestion(Group group, Question question, LocalDateTime date) {\n \tMembership temp = memberships.get(group.getTitle());\n \tif(temp == null)\n \t\treturn;\n \tquestion.setMembership(temp);\n temp.addQuestion(question);\n group.addQuestion(question);\n }", "public FAQ(String question, String answer){\n\t\tthis.question = question;\n\t\tthis.answer = answer;\n\t}", "public void setQuestion(Question q)\n {\n currentQuestion=q;\n questionLabel.setText(q.getQuestion());\n feedbackLabel.setVisible(false);\n }", "public void setQuestion(final List<Question> question) {\n\t\tthis.question = question;\n\t}", "public void setQuestion(Question v) {\n if (Problem_Type.featOkTst && ((Problem_Type)jcasType).casFeat_question == null)\n jcasType.jcas.throwFeatMissing(\"question\", \"hw1.qa.Problem\");\n jcasType.ll_cas.ll_setRefValue(addr, ((Problem_Type)jcasType).casFeatCode_question, jcasType.ll_cas.ll_getFSRef(v));}", "public void enqueue ()\n {\n count++;\n questionList.add(newQuestion);\n //System.out.println(\"Question #\"+ totNumQ + \" is added to the queue.\");\n }", "public Question(String statement, String answer){\n this.statement = statement;\n this.answer = answer;\n }", "@Override\n\tpublic int topicAdd(QuestionBean q) {\n\t\tString sql = \"insert into topic(title,result,subjectName,difficulty,type,score) values('\"+q.getTitle()+\"','\"+q.getResult()+\"',\"+q.getSubjectName()+\",'\"+q.getDifficulty()+\"',\"+q.getType()+\",\"+q.getScore()+\")\";\n\t\t//int result = jt.update(sql, q.getTitle(),q.getResult(),q.getSubjectName(),q.getDifficulty(),q.getType(),q.getScore());\n\t\tKeyHolder keyHolder = new GeneratedKeyHolder();\n\t\tjt.update(new PreparedStatementCreator() {\n\t\t\t@Override\n\t\t\tpublic java.sql.PreparedStatement createPreparedStatement(java.sql.Connection arg0) throws SQLException {\n\t\t\t\tPreparedStatement ps = arg0.prepareStatement(sql, Statement.RETURN_GENERATED_KEYS);\n\t\t\t\treturn ps;\n\t\t\t}\n\t\t}, keyHolder);\n\t\tSystem.out.println(\"新增加的primarykey:\"+keyHolder.getKey().intValue());\n\t\treturn keyHolder.getKey().intValue();\n\t}", "void put(String question, String answer) {\n map.put(question, answer);\n }", "public String getQuestion() {\n\t\treturn question;\n\t}", "private void addQuestionFromJSON(JSONObject question) {\n try {\n this.questions.add(Question.fromJSON(question, gradeable()));\n } catch (JSONFormatException e) {\n System.err.println(\"Question JSON is malformed:\");\n System.err.println(e.getMessage());\n }\n }", "protected void insertQuestion(final QuestionImpl question)\n\t{\n\t\tthis.sqlService.transact(new Runnable()\n\t\t{\n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\tinsertQuestionTx(question);\n\t\t\t}\n\t\t}, \"insertQuestion: \" + question.getId());\n\t}", "public Question(String q, String a){ //initializes the question and answer\n\t\t\tquestion = q;\n\t\t\tanswer = a;\n\t\t}", "@Override\n\tpublic void execute() {\n\t\tthis.receiver.add(this.question, 42);\n\t}", "public void saveQuestion(Questions q) {\n\t\tSession session = HibernateUtil.getSessionFactory().openSession();\n\t\tTransaction tx = session.beginTransaction();\n\t\tsession.save(q);\n\t\ttx.commit();\n\t\tsession.close();\n\t}", "private void addQuestionMatrix(Question q)\n\t{\n\t\tHashMap<String, String> sq_x = new HashMap<>();\n\t\tHashMap<String, String> sq_y = new HashMap<>();\n\t\tList<String> sqids = getSqIds(q.getQid());\n\n\t\t// Sort Questions into X and y Axis (if <relevance/> contains any text the question is on the Y Axis)\n\t\tfor (String sqid : sqids) {\n\t\t\tString question = q_l10ns_node.selectSingleNode(\"row[qid=\" + sqid + \"]/question\").getText();\n\t\t\tif (sq_node.selectSingleNode(\"row[qid=\" + sqid + \"]/relevance\").getText().equals(\"\")) {\n\t\t\t\tsq_x.put(sqid, question);\n\t\t\t} else {\n\t\t\t\tsq_y.put(sqid, question);\n\t\t\t}\n\t\t}\n\n\t\t// Add each cell of the matrix as an individual question\n\t\tQuestion sq;\n\t\tfor (Map.Entry<String, String> x_entry : sq_x.entrySet()) {\n\t\t\tfor (Map.Entry<String, String> y_entry : sq_y.entrySet()) {\n\t\t\t\tString y_title = sq_node.selectSingleNode(\"row[qid=\" + y_entry.getKey() + \"]/title\").getText();\n\t\t\t\tString x_title = sq_node.selectSingleNode(\"row[qid=\" + x_entry.getKey() + \"]/title\").getText();\n\t\t\t\tsq = new Question(q);\n\t\t\t\tsq.setQid(q.getQid() + y_title + \"_\" + x_title);\n\t\t\t\tsq.setQuestion(q.question + \" \" + y_entry.getValue() + \" \" + x_entry.getValue());\n\t\t\t\tsq.setTitle(y_entry.getKey() + \"/\" + x_entry.getKey());\n\t\t\t\tsurvey.addQuestion(sq);\n\t\t\t}\n\t\t}\n\t}", "public void setQuestionContent(String questionContent) {\n this.questionContent = questionContent;\n }", "public void modifyQuestion(String text) {\n // TODO implement here\n }", "@Override\n public final void activateQuestion(final GameQuestion question) {\n this.activeQuestion = question;\n fireActiveQuestionUpdate();\n }", "public void storeQuestion(Question message) {\n Entity messageEntity = new Entity(\"Question\", message.getId().toString());\n messageEntity.setProperty(\"user\", message.getUser());\n messageEntity.setProperty(\"text\", message.getText());\n messageEntity.setProperty(\"timestamp\", message.getTimestamp());\n messageEntity.setProperty(\"children\", message.getKidsToString());\n messageEntity.setProperty(\"privacy\", message.getAccess());\n datastore.put(messageEntity);\n }", "Question(String ques, String opt1, String opt2, String opt3, String opt4) {\n this.ques = ques;\n this.opt1 = opt1;\n this.opt2 = opt2;\n this.opt3 = opt3;\n this.opt4 = opt4;\n }", "public String getQuestion() {\n return question;\n }", "public void addChoice(String _choice, boolean _correct)\n {\n m_choices.add(_choice);\n if (_correct) {\n // Convert choices.size() to string\n String choiceString = \"\" + m_choices.size();\n setAnswer(choiceString);\n }\n }", "private void addOtherQuestion(Question q)\n\t{\n\t\tQuestion q_other = new Question(q);\n\t\tq_other.setQid(q_other.getQid().concat(\"other\"));\n\t\tq_other.setQuestion(q_other.getQuestion().concat(\" other\"));\n\t\tq_other.setType(\"T\");\n\t\tsurvey.addQuestion(q_other);\n\t\t/*\tCond: SE-StudyEventOID/F-FormOID[RepeatKey]/IG-ItemGroupOID/I-ItemOID == \"-oth-\"\n\t\t *\n\t\t */\n\t\tString cond_oid = q.getQid().concat(prop.getProperty(\"ext.cond\"));\n\t\tlog.debug(\"Added cond_oid\");\n\t\tString cond_str = \"$(SE-\" + prop.getProperty(\"dummy.study_event_oid\") + \"/F-\" + survey.getId() + \"/IG-\" + q.getGid() + \"/I-\" + q.getQid() + \")!=\\\"-oth-\\\"\";\n\t\tlog.debug(\"added cond_str\");\n\t\tsurvey.addCondition(new Condition(prop.getProperty(\"imi.syntax_name\"), cond_oid, cond_str));\n\t\tq_other.setCond(cond_oid);\n\t}", "public void question() {\n\t\tlead.answer(this);\n\t}", "public void addQue(String test_name,String que_type,String que,ArrayList<String> options,String ans,String points)\n\t{\n\t\t \n\t Entity xyz=new Entity(\"question\");\n\t xyz.setProperty(\"test_name\",test_name);\n\t xyz.setProperty(\"que_type\",que_type);\n\t xyz.setProperty(\"que\",que);\n\t xyz.setProperty(\"options\",options);\n\t xyz.setProperty(\"ans\",ans);\n\t xyz.setProperty(\"points\",points);\n\t ds.put(xyz);\n\t \n //For question_count and total points. Added in Test entity\t \n\t \n\t long count=0;\n\t double total=0;\n\t Filter test_nameFilter = new FilterPredicate(\"test_name\", FilterOperator.EQUAL,test_name);\n\n\t Query q = new Query(\"Test\").setFilter(test_nameFilter);\n\t\t PreparedQuery pq = ds.prepare(q);\n\t\t Entity abc=pq.asSingleEntity();\n\t\t if(abc!=null)\n\t\t {\n\t\t\t count=(long)abc.getProperty(\"que_count\")+1;\n\t\t\t total=(double)abc.getProperty(\"total_points\")+Double.parseDouble(points);\n\t\t\t abc.setProperty(\"que_count\",count);\n\t\t\t abc.setProperty(\"total_points\",total);\n\t\t ds.put(abc);\n\t\t }\n\t\t \n\t}", "QuestionPick addPickDetail(Question question);", "public Integer addQuestionToSurvey(String questionDesc, String option, Boolean status) { \n\t\tInteger val = null;\n\t\ttry {\n\t\t\tval = myQuestions.addQuestionToSurvey(questionDesc, option, status);\n\t\t} catch (RemoteException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn val; \n\t}", "public Menutable(String question, String answer) {\r\n\t\tthis.question = question;\r\n\t\tthis.answer = answer;\r\n\t}", "public void setQuestions(){\r\n question.setTestname(test.getText().toString());\r\n question.setQuestion(ques.getText().toString());\r\n question.setOption1(opt1.getText().toString());\r\n question.setOption2(opt2.getText().toString());\r\n question.setOption3(opt3.getText().toString());\r\n int num = Integer.parseInt(correct.getText().toString());\r\n question.setAnswerNumber(num);\r\n long check = db.addToDb(question);\r\n if(check == -1){\r\n Toast.makeText(getBaseContext(), \"Question already exists\", Toast.LENGTH_LONG).show();\r\n }else{\r\n Toast.makeText(getBaseContext(), \"Question added\", Toast.LENGTH_LONG).show();\r\n }\r\n }", "public final void mQUESTION() throws RecognitionException {\n try {\n int _type = QUESTION;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // /Users/cbinnig/Workspace/DHBW_FirstDB_Loesung3/src/de/dhbw/db2/firstdb/sql/FirstSQL.g:35:10: ( '?' )\n // /Users/cbinnig/Workspace/DHBW_FirstDB_Loesung3/src/de/dhbw/db2/firstdb/sql/FirstSQL.g:35:12: '?'\n {\n match('?'); \n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public void addMessage(String message);", "public Question() {\n\t\tthis(\"QUESTION\", null);\n\t}", "protected abstract void insertQuestionTx(QuestionImpl question);", "public void addAnsweredQuestions (int index) {\n\n\t\t_answeredQuestions[index]=_answeredQuestions[index]+1;\n\t\tBashCmdUtil.bashCmdNoOutput(\"rm data/answered_questions\");\n\t\tBashCmdUtil.bashCmdNoOutput(\"touch data/answered_questions\");\n\t\tString answeredQuestions = \"\";\n\t\tfor (int i = 0;i<5;i++) {\n\t\t\tansweredQuestions = answeredQuestions + \" \" + String.valueOf(_answeredQuestions[i]);\n\t\t}\n\t\tBashCmdUtil.bashCmdNoOutput(String.format(\"echo \\\"%s\\\" >> data/answered_questions\", answeredQuestions));\n\n\n\n\t}", "public final void mQUESTION() throws RecognitionException {\n\t\ttry {\n\t\t\tint _type = QUESTION;\n\t\t\tint _channel = DEFAULT_TOKEN_CHANNEL;\n\t\t\t// /Users/Sarah/Projects/ontop/obdalib-core/src/main/java/it/unibz/krdb/obda/parser/Datalog.g:421:9: ( '?' )\n\t\t\t// /Users/Sarah/Projects/ontop/obdalib-core/src/main/java/it/unibz/krdb/obda/parser/Datalog.g:421:16: '?'\n\t\t\t{\n\t\t\tmatch('?'); \n\t\t\t}\n\n\t\t\tstate.type = _type;\n\t\t\tstate.channel = _channel;\n\t\t}\n\t\tfinally {\n\t\t\t// do for sure before leaving\n\t\t}\n\t}", "public String getQuestion() {\n return question;\n }", "public void add(Person person) {\n\t\tQ.add(person);\n\t\ttimeOfNextEvent = storeTick + getCurrentVenueTime() + 1;\n\t\tthis.updateListeners();\n\t\tif (Q.size() > maxQlength)\n\t\t\tmaxQlength = Q.size();\n\t}", "@Override\n public String ask(String question) {\n return answers[position++];\n }", "public void addNewQuestionInputTextArea(final String question) {\n if (isQuestionEditMode || getQuestions().isEmpty()) {\n if (getNumberOfQuestions() <= (MAX_NUMBER_OF_QUESTIONS - 1)) {\n UIComponent questionsPanel = FacesContext.getCurrentInstance().getViewRoot().findComponent(\"tabsView:tabViewTasksSettings:viewEditPerformanceAppraisalSettingForm:questionsPerformanceAppraisalPanel\");\n ResourceBundle resourceBundle = PropertyResourceBundle.getBundle(\"messages/messages\");\n//\n// /*****************************QUESTION*TEXT*AREA***************************************************/\n// OutputLabel outputLabel = new OutputLabel();\n// outputLabel.setValue(String.format(\"%d. %s\", questions.indexOf(question) + 1, question));\n// outputLabel.setValueExpression(\"rendered\",\n// createValueExpression(\"#{!performanceAppraisalSettingBean.questionEditMode}\", boolean.class));\n// outputLabel.setStyle(\"width:310px;height:auto\"); //width:335px - default\n//\n// InputTextarea inputTextarea = new InputTextarea();\n// inputTextarea.setId(\"question\" + getNumberOfQuestions());\n// inputTextarea.setRows(1);\n// inputTextarea.setCols(56);\n// inputTextarea.setStyle(\"width:310px;height:auto\"); //width: 335px - default\n// inputTextarea.setValueExpression(\"rendered\",\n// createValueExpression(\"#{performanceAppraisalSettingBean.questionEditMode}\", boolean.class));\n// inputTextarea.setValue(question);\n// inputTextarea.addValidator(new QuestionValidator());\n//\n// AjaxBehavior ajaxBehavior = new AjaxBehavior();\n// ajaxBehavior.setUpdate(\"questionMessage\" + getNumberOfQuestions() + \", performanceAppraisalSettingSave\");\n// inputTextarea.addClientBehavior(\"keyup\", ajaxBehavior);\n// /**************************************************************************************************/\n//\n// column.getChildren().add(outputLabel);\n// column.getChildren().add(inputTextarea);\n//\n// row.getChildren().add(column);\n//\n// questionsPanel.getChildren().add(row);\n\n Row rowMessage = new Row();\n Column columnMessage = new Column();\n columnMessage.setStyle(\"height:30px!important\");\n Message message = new Message();\n message.setFor(\"question\" + getNumberOfQuestions());\n message.setId(\"questionMessage\" + getNumberOfQuestions());\n message.setDisplay(\"text\");\n columnMessage.getChildren().add(message);\n\n rowMessage.getChildren().add(columnMessage);\n\n questionsPanel.getChildren().add(rowMessage);\n\n setNumberOfQuestions(getNumberOfQuestions() + 1); //add one more question | need to iterate all questions and check max of questions\n } else {\n ResourceBundle resourceBundle = PropertyResourceBundle.getBundle(\"messages/messages\");\n String lastQuestionId = \"question\" + (MAX_NUMBER_OF_QUESTIONS - 1);\n FacesContext.getCurrentInstance().addMessage(\"tabsView:tabViewTasksSettings:viewEditPerformanceAppraisalSettingForm:\" + lastQuestionId,\n new FacesMessage(FacesMessage.SEVERITY_ERROR, \"\", resourceBundle.getString(\"AdminTask.PerformanceAppraisal.MaxNumberQuestions\")));\n }\n }\n }", "@WebMethod Question createQuestion(Event event, String question, float betMinimum) throws EventFinished, QuestionAlreadyExist;", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif(edit_add.getText().toString().length()>0){\n\t\t\t\t\taddQuestion(UrlUtils.USERQUESTIONADD, edit_add.getText().toString());\n\t\t\t\t}\n\t\t\t}", "public void setQuestion(){\n txt_question.setText(arrayList.get(quesAttempted).getQuestion());\n txt_optionA.setText(arrayList.get(quesAttempted).getOptionA());\n txt_optionB.setText(arrayList.get(quesAttempted).getOptionB());\n txt_optionC.setText(arrayList.get(quesAttempted).getOptionC());\n txt_optionD.setText(arrayList.get(quesAttempted).getOptionD());\n txt_que_count.setText(\"Que: \"+(quesAttempted+1)+\"/\"+totalQues);\n txt_score.setText(\"Score: \"+setScore);\n }", "public QueryQuestions saveQuestion(String question) {\n String uniqueId = UUID.randomUUID().toString();\n QueryQuestions queryQuestions1 = new QueryQuestions(uniqueId,question);\n QueryQuestions savedQueryQuestions = questionRepository.save(queryQuestions1);\n return savedQueryQuestions;\n }", "public boolean appendQuestionToCategory(String category, String question) {\n return appendQuestion(question, category);\n }", "public void setQuestions(Vector<Question> q){\n\t\t\tquestions = q;\n\t\t}", "@SuppressLint(\"NewApi\")\n\t@Override\n\tpublic void questionReceivedFromDoctor(QuestionData question) {\n\t\tlogger.info(\"questionReceivedFromDoctor(): prompting participant for question: '\" + question.getQuestion()\n\t\t\t\t+ \"'\");\n\n\t\t// TODO Expand this to include responses other than yes / no.\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(WorkoutActivity.this);\n\t\tfinal Boolean[] answer = new Boolean[1];\n\t\tanswer[0] = null;\n\t\tbuilder.setTitle(\"question\").setMessage(question.getQuestion())\n\t\t\t\t.setPositiveButton(QuestionData.RESPONSE_YES, new DialogInterface.OnClickListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tanswer[0] = Boolean.TRUE;\n\t\t\t\t\t}\n\n\t\t\t\t}).setNegativeButton(QuestionData.RESPONSE_NO, new DialogInterface.OnClickListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tanswer[0] = Boolean.FALSE;\n\t\t\t\t\t}\n\n\t\t\t\t}).setOnDismissListener(new DialogInterface.OnDismissListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onDismiss(DialogInterface dialog) {\n\t\t\t\t\t\tAnswerData answerData = new AnswerData();\n\t\t\t\t\t\tif (answer[0] == Boolean.TRUE) {\n\t\t\t\t\t\t\tanswerData.setAnswer(QuestionData.RESPONSE_YES);\n\t\t\t\t\t\t} else if (answer[0] == Boolean.FALSE) {\n\t\t\t\t\t\t\tanswerData.setAnswer(QuestionData.RESPONSE_NO);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tanswerData.setAnswer(QuestionData.DID_NOT_RESPOND);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tworkoutService.getService().replyToQuestion(answerData);\n\t\t\t\t\t}\n\t\t\t\t});\n\t}", "public void addAnswer(AnswerElement ans) {\r\n\t\tthis.ans.add(ans);\r\n\t}", "public void drawQuestion(){\n\t\tfont.draw(batch, ques, screenWidth / 5 , 75 );\n\t}" ]
[ "0.7657272", "0.7617168", "0.7518517", "0.7255216", "0.7008824", "0.69841003", "0.69256", "0.6922477", "0.6879726", "0.6796011", "0.6728129", "0.67147297", "0.67030674", "0.6593441", "0.62943685", "0.62908953", "0.6284343", "0.62481934", "0.62357354", "0.62092966", "0.61616206", "0.60655797", "0.6032292", "0.6014842", "0.59974134", "0.59674877", "0.5961024", "0.5955861", "0.59263563", "0.59149456", "0.59120756", "0.59093326", "0.58930093", "0.5878908", "0.58721316", "0.58708864", "0.58619136", "0.5854811", "0.5816322", "0.5802003", "0.57064456", "0.57049286", "0.56763536", "0.5650083", "0.56353694", "0.5622609", "0.5612245", "0.5580525", "0.55656785", "0.5565397", "0.5554591", "0.55529547", "0.5526708", "0.54985666", "0.54802585", "0.5432907", "0.5432166", "0.5413723", "0.5413171", "0.54089284", "0.5403792", "0.5379397", "0.53702426", "0.5361991", "0.53615206", "0.5353698", "0.53532666", "0.5347175", "0.5334896", "0.5327312", "0.5320911", "0.5315607", "0.5312264", "0.5307559", "0.5298501", "0.52791095", "0.5275146", "0.5272384", "0.52623755", "0.525937", "0.52585685", "0.52526206", "0.5240987", "0.52345824", "0.5233204", "0.5215833", "0.52150244", "0.521384", "0.52071273", "0.5204646", "0.5188424", "0.5179599", "0.5179492", "0.51641345", "0.5152584", "0.51456183", "0.5136665", "0.51346177", "0.5132646", "0.51283205" ]
0.7629333
1
Adds an authority resource record to this message.
public DnsMessage addAuthorityResource(DnsResource resource) { if (authority == null) { authority = new LinkedList<DnsResource>(); } authority.add(resource); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic int addAuthority(Authority authority) throws Exception {\n\t\treturn mapper.addAuthority(authority);\r\n\t}", "public void addAuthority(Authorities auth){\r\n\t\tauth.setUsers(this);\r\n\t\tauthorities.add(auth);\r\n\t}", "public void setAuthority(String authority) {\n this.authority = authority;\n }", "public Builder addAuthorities(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureAuthoritiesIsMutable();\n authorities_.add(value);\n bitField0_ |= 0x00000020;\n onChanged();\n return this;\n }", "void create(Authority authority) throws ExTrackDAOException;", "public Builder addAuthoritiesBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n ensureAuthoritiesIsMutable();\n authorities_.add(value);\n bitField0_ |= 0x00000020;\n onChanged();\n return this;\n }", "org.hl7.fhir.ResourceReference addNewSubject();", "@Override\n\tpublic void addRole_Activity(Integer rid, Integer aid) {\n\t\tlogger.debug(\"RoleServiceImpl::addRole_Activity rid = {},aid = {}\", rid, aid);\n\t\troleMapper.addRole_Activity(rid, aid);\n\t}", "public void setAuthority(StandardAuthority authority)\n {\n this.authority = authority;\n }", "int insert(RoleResource record);", "static void setAuthority(String authority) {\n mAuthority = authority;\n }", "public void addSubcontractorRecord(String[] record) { \n \tthis.records.add(record);\n }", "public DnsMessage addAdditionalResource(DnsResource resource) {\n if (additional == null) {\n additional = new LinkedList<DnsResource>();\n }\n additional.add(resource);\n return this;\n }", "public ResourceAddress add(ResourceAddress address) {\n if (address != null) {\n for (Property property : address.asPropertyList()) {\n add(property.getName(), property.getValue().asString());\n }\n }\n return this;\n }", "@Override\n public void addAuthorizationLog(EncryptionAuthorization auth) {\n if (auth.getAuthResult() == null)\n throw new RuntimeException();\n addEncryptionAuthorizationLog(auth.getAuthBundle(),\n auth.getAuthResult(), AuthorizationProcess.DATA_SUBJECT_RULES);\n }", "public Long getAuthorityId() {\n return authorityId;\n }", "public void setAuthorityId(Long authorityId) {\n this.authorityId = authorityId;\n }", "public void addResource(ITranslationResource resource){\n\t\tresources.add(resource);\n\t}", "@ZAttr(id=659)\n public void addACE(String zimbraACE) throws com.zimbra.common.service.ServiceException {\n HashMap<String,Object> attrs = new HashMap<String,Object>();\n StringUtil.addToMultiMap(attrs, \"+\" + Provisioning.A_zimbraACE, zimbraACE);\n getProvisioning().modifyAttrs(this, attrs);\n }", "public void addRecord();", "public void addResource(TIdentifiable resource) {\r\n // make sure that the resource doesn't exists already\r\n\t if (resourceExists(resource)) return;\t \r\n\t \r\n // check to see if we need to expand the array:\r\n\t if (m_current_resources_count == m_current_max_resources) expandTable(1, 2);\t \t \r\n\t m_resources.addID(resource);\r\n\t m_current_resources_count++;\r\n }", "@Transactional(propagation=Propagation.REQUIRED)\r\n\t@Override\r\n\tpublic int insert(Authority record) {\n\t\tint count = authorityMapper.getAuthorityCountByCodeOrName(record.getAuthorityCode(), record.getAuthorityName());\r\n\t\tif(count > 0){\r\n\t\t\treturn 2;\r\n\t\t}\r\n\t\treturn authorityMapper.insert(record);\r\n\t}", "public AuthorRecord() {\n super(Author.AUTHOR);\n }", "int insert(RoleSystemauthority record);", "@Override\r\n\tpublic void addCredential(String role) {\n\r\n\t}", "@PostMapping(\"/authority\")\n @Timed\n @PreAuthorize(\"hasRole(\\\"\" + AuthoritiesConstants.ADMIN + \"\\\")\")\n public ResponseEntity<Authority> createAuthority(@Valid @RequestBody Authority authority) throws URISyntaxException {\n log.debug(\"REST request to save Authority : {}\", authority);\n\n Authority newAuthority = userService.createAuthority(authority);\n return ResponseEntity.created(new URI(\"/api/authority/\" + newAuthority.getName()))\n .headers(HeaderUtil.createAlert( \"userManagement.created\", newAuthority.getName()))\n .body(newAuthority);\n }", "org.hl7.fhir.ResourceReference addNewPerformer();", "public void setAuthority(final String authority) throws EpDomainException {\n\t\tif (authority == null) {\n\t\t\t//throw new EpDomainException(\"CustomerRole authority can not be null.\");\n\t\t\treturn;\n\t\t}\n\t\tif (authority.trim().length() == 0) {\n\t\t\tthrow new EpDomainException(\"Empty String is not allowed as CustomerRole authority.\");\n\t\t}\n\t\tthis.authority = authority;\n\t}", "gov.nih.nlm.ncbi.www.CodeBreakDocument.CodeBreak.Aa addNewAa();", "@SuppressWarnings(\"unchecked\")\n public final void addRecord(final Record record) {\n // TODO check if attributes present in report are also\n // present in record.\n // record.;\n// for (int i = 0; i < attributes.length; i++) {\n// if (!record.getAttributesString().contains(attributes[i])) {\n // launch new query to update list of attributes.\n// }\n// }\n records.add(record);\n }", "@Override\n\tpublic void addRole(Role r) {\n\t\t\n\t}", "private void addRecord() {\n\t\tContactData cd = new ContactData(contactDataId, aName, aLastname,\n\t\t\t\taDate, aAdress, aGender, aImage);\n\t\tIntent intent = getIntent();\n\t\tintent.putExtra(\"ContactData\", cd);\n\t\tsetResult(RESULT_OK, intent);\n\t\tfinish();\n\t\tonDestroy();\n\t}", "public void addData(AggregateRecord record) {\n this.data.add(record);\n }", "public static void addResource(ArrayList<Resource> resource){\n String id;\n String type;\n String name;\n String genre;\n String author;\n String year;\n String userID = \"0\";\n Boolean checkedOut = false;\n\n int nextID = Resource.getLastID() + 1;\n id = \"\" + nextID;\n type = stringInput(\"What type is the resource\");\n name = stringInput(\"What is the name of the resource\");\n genre = stringInput(\"What genre is the resource\");\n author = stringInput(\"Who is the author\");\n year = stringInput(\"What year is it published\");\n\n resource.add(new Resource(id, type, name, genre, author, year, userID, checkedOut));\n }", "@Override\r\n\tpublic int addRoleAuth(RRoleAuth rRoleAuth) {\n\t\treturn rerationMapper.addRoleAuth(rRoleAuth);\r\n\t}", "public SubjectareasRecord() {\n\t\tsuper(Subjectareas.SUBJECTAREAS);\n\t}", "public void addAuthInfo(AuthInfo info);", "@Override\n\tpublic String getAuthority() {\n\t\treturn authority;\n\t}", "@Override\n \tpublic void addAuthor(Author author) {\n \t\tList<Author> authorList = getAuthorList();\n \t\t// check for existing relationship\n \t\tif (author == null || authorList.contains(author))\n \t\t\treturn;\n \t\t// add both sides of relationship\n \t\tauthor.getAuthorReferences().add(this);\n \t\tauthorList.add(author);\n \t}", "public void addAmigo() {\n\t\tusuarioidentificado.enviar_solicitud(Parametros.getIdUsuario(), amigo.getIdUsuario());\n\t}", "public void setAcr(String acr) {\n this.acr = acr;\n }", "org.hl7.fhir.Instant addNewIssued();", "public List<DnsResource> authorityResources() {\n if (authority == null) {\n return Collections.emptyList();\n }\n return Collections.unmodifiableList(authority);\n }", "public SysPermissionRoleRecord(String roleid, String rolecode, String resourcesid) {\n super(SysPermissionRole.SYS_PERMISSION_ROLE);\n\n set(0, roleid);\n set(1, rolecode);\n set(2, resourcesid);\n }", "public void addResource(Resource resource) {\n\t\tresources.add(resource);\n\t}", "public void addResource(Resource resource) {\n\t\tif (resource != null) {\n\t\t\tthis.getResources().add(resource);\n\t\t\tresource.setSystem(this);\n\t\t}\n\t}", "@Override\n public void addParticipant(Participant participant) throws AlfredException {\n this.participantList.add(participant);\n }", "public void addAuthor(Author author){\n authors.add(author);\n }", "@Override\r\n\tpublic void addAuth(Authorities auth) {\n\t\t\r\n\t\tsessionFactory.getCurrentSession().saveOrUpdate(auth);\r\n\t\tsessionFactory.getCurrentSession().flush();\r\n\t\t\r\n\t}", "public ResultMessage addCreditRecord(CreditRecordPO po) throws RemoteException {\n\t\treturn null;\n\t}", "private void addToCalendar() {\r\n if (!requireCalendarPermissions())\r\n return;\r\n\r\n if (CalendarUtil.createEntry(this, event))\r\n onAddToCalendarSuccess();\r\n else\r\n onRequireCalendarPermissionsDenied();\r\n }", "@ZAttr(id=659)\n public Map<String,Object> addACE(String zimbraACE, Map<String,Object> attrs) {\n if (attrs == null) attrs = new HashMap<String,Object>();\n StringUtil.addToMultiMap(attrs, \"+\" + Provisioning.A_zimbraACE, zimbraACE);\n return attrs;\n }", "public void setAuthority(double authority) {\n \tthis.CTCAuthority = authority;\n }", "@Override\n\tpublic JsonElement addAI(AddAIRequest addAIreq) {\n\t\treturn null;\n\t}", "public static void add(int level, String resourceID, Object info) {\n\tadd(level, resourceID, new Object[] { info });\n\t\t\t\n }", "public void onResourceAdded(final ResourceEvent resourceEvent);", "public void addRelation(String R, int arity) {\n if (R.equals(\"E\")) return;\n this.relations.put(R, new BitSet());\n this.arity.put(R, arity);\n }", "public void giveResourcesToPlayer(Resource resource){\n resources.addResource(resource);\n }", "public static void add(int level, String resourceID) {\n\tif (logLevel >= level) {\n\t addInfo(I18N.loadString(resourceID));\n\t}\n }", "public ProAddAttrRecord() {\n super(ProAddAttr.PRO_ADD_ATTR);\n }", "public void addRecipient(){\n //mRATable.insert();\n }", "public void addActor(){\n actorProfileList.add(new ActorProfile());\n }", "public void addResource(Resource res, int roll) {\n\t\t_resources.add(res);\n\t\t_rolls.add(roll);\n\t}", "private void add(EResource resource) {\n switch (resource) {\n case BRICK:\n brick++;\n break;\n case GRAIN:\n grain++;\n break;\n case LUMBER:\n lumber++;\n break;\n case ORE:\n ore++;\n break;\n case WOOL:\n wool++;\n break;\n }\n }", "@Override\n public void addAuthorizationLog(DecryptionAuthorization auth) {\n if (auth.getAuthResult() == null)\n throw new RuntimeException();\n addDecryptionAuthorizationLog(auth.getAuthBundle(),\n auth.getAuthResult(), AuthorizationProcess.DATA_SUBJECT_RULES);\n }", "void enlistResource(ExoResource xares) throws RollbackException, SystemException;", "public void addResource(Resource res) {\n \tresourceDisplay.getChildren().add(new ResourceContainer(res));\r\n }", "public void addEditorRoleToIndividualAcl(Individual i);", "protected void addListenerTo(BioResource BioResource) {\n\t\t\tBioResource.addListener(this);\n\t\t}", "public void addAuthor(final Author author) {\n if (authors.containsKey(author))\n //TODO improve error message\n throw new IllegalArgumentException(\"this publication is already associated to the given author\");\n authors.put(author, author);\n }", "org.hl7.fhir.ObservationReliability addNewReliability();", "public static void addRealtor(String[] attribs) { \n double commission = Double.parseDouble(attribs[6]);\n Realtor realtor = new Realtor(attribs[2], attribs[3], attribs[4],\n attribs[5], commission); \n String added = realtorLogImpl.add(realtor) ? \"added\" : \"not added\";\n System.out.println(\"Realtor \" + added); \n }", "public void add() {\n\t\ttry (RandomAccessFile raf = new RandomAccessFile(\"Address.dat\", \"rw\")) // Create RandomAccessFile object\n\t\t{\n\t\t\traf.seek(raf.length()); // find index in raf file\n\t\t\t // # 0 -> start from 0\n\t\t\t // # 1 -> start from 93 (32 + 32 + 20 + 2 + 5 + '\\n')\n\t\t\t // # 2 -> start from 186 (32 + 32 + 20 + 2 + 5 + '\\n') * 2\n\t\t\t // # 3 -> start from 279 (32 + 32 + 20 + 2 + 5 + '\\n') * 3\n\t\t \twrite(raf); // store the contact information at the above position\n\t\t}\n\t\tcatch (FileNotFoundException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t\tcatch (IOException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t\tcatch (IndexOutOfBoundsException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t}", "ResourceRole createResourceRole();", "public void addSuccessor(AllocatableAction successor) {\n this.resourceSuccessors.add(successor);\n }", "public void addResearchCompany(ResearchCompany rc) {\r\n\t\ttry{\r\n\t\t\tcompanyDirectory.add(rc);\r\n\t\t} catch(IllegalArgumentException e) {\r\n\t\t\tthrow new IllegalArgumentException(e.getMessage());\r\n\t\t}\r\n\t\t\r\n\t}", "protected void objAdded(UserId principal, ObjLoc objLoc, ObjectMeta objectMeta) {\r\n\r\n }", "@Override\n\tpublic void add(Savable savable) {\n\t\tif (savable instanceof Contact) {\n\t\t\tContact contact = (Contact)savable;\n\t\t\tthis.contacts.put(contact.getId(), contact);\n\t\t}\n\t}", "@Log(\"集中授权(RESOURCE)admin authority granted >> Role : Resource = m:n\")\n @ApiOperation(\"集中授权(RESOURCE)\")\n @PostMapping(value = \"/authorization/resource\")\n public ResponseEntity<Object> doAuthorizationResource(@Validated @RequestBody List<RoleResourceVo> roleResourceVo, HttpServletRequest request) {\n return ResponseEntity.ok(roleResourceService.grantAuthorizater(roleResourceVo));\n }", "org.hl7.fhir.Identifier addNewIdentifier();", "void addItem(DataRecord record);", "void addAttributeReport(AttributeReport attributeReport){\n attributeReports.add(attributeReport);\n }", "public static void add(int level, String resourceID, Object[] obj){\n\tif (logLevel >= level){\n\t MessageFormat mf = new MessageFormat(I18N.loadString(resourceID));\n\t mf.setLocale(I18N.locale);\t\n\t for (int i = 0; i < obj.length; i++) {\n\t\tobj[i] = obj[i].toString();\n\t }\n\t addInfo(mf.format(obj));\n\t}\n }", "public String aadAuthority() {\n return this.aadAuthority;\n }", "public PutAuthorization authorizePutRecord(SecureRecord record) throws SecurityLibraryException {\n return new PutAuthorization(\n record,\n this.getCertificate(),\n record.getDoctorCertificate(),\n record.getPatientCertificate(),\n signBytes(record.getBytes())\n );\n }", "public DnsMessage addAnswer(DnsResource answer) {\n if (answers == null) {\n answers = new LinkedList<DnsResource>();\n }\n answers.add(answer);\n return this;\n }", "public void addResource(PSResource res) {\n/* 72 */ prepareResourceSet();\n/* 73 */ this.resources.add(res);\n/* */ }", "public ResourceCertificateAndAadDetails withAadAuthority(String aadAuthority) {\n this.aadAuthority = aadAuthority;\n return this;\n }", "public RecordObject addEvent(String token, Object record) throws RestResponseException;", "public String getAuthority() {\n return this.authority;\n }", "public void newApointment(Appointment ap){\n\n this.appointments.add(ap);\n }", "public StandardAuthority getAuthority()\n {\n return authority;\n }", "public SubjectareasRecord(Integer id, Integer nedid, Integer typeid, Timestamp created, Timestamp lastmodified) {\n\t\tsuper(Subjectareas.SUBJECTAREAS);\n\n\t\tsetValue(0, id);\n\t\tsetValue(1, nedid);\n\t\tsetValue(2, typeid);\n\t\tsetValue(3, created);\n\t\tsetValue(4, lastmodified);\n\t}", "public void add(Role e) {\r\n \tsubordinates.addElement(e);\r\n }", "public void createIndividualAcl(Individual i);", "public void addRR(Request req) {\n\n }", "@Override\r\n\tpublic void AddReceita(Receita r) throws RemoteException {\n\t\tthis.receitas.add(r);\r\n\t}", "public void add(BindResource resource) {\n \tif(resource==null)\n \t\tthrow new IllegalArgumentException(\"resourceProperties cannot be null\");\n \tif(resources==null)\n \t\tresources = new ArrayList<BindResource>();\n \t\n \tresources.add(resource);\n }", "public void add(Subject e) {\n\t\tsubjectdao.add(e);\n\t}", "public au.gov.asic.types.DocumentIdentifierType addNewAsicIdentifier()\n {\n synchronized (monitor())\n {\n check_orphaned();\n au.gov.asic.types.DocumentIdentifierType target = null;\n target = (au.gov.asic.types.DocumentIdentifierType)get_store().add_element_user(ASICIDENTIFIER$0);\n return target;\n }\n }" ]
[ "0.60862136", "0.5666913", "0.52209723", "0.5193961", "0.51355714", "0.51284873", "0.50695014", "0.5016117", "0.5015239", "0.49612653", "0.4911115", "0.48867065", "0.48489517", "0.48434782", "0.48394552", "0.48248595", "0.48202667", "0.48168436", "0.47947085", "0.47708422", "0.47621793", "0.47545", "0.47202408", "0.47145858", "0.47110888", "0.46980253", "0.4687942", "0.46590912", "0.46324793", "0.4613311", "0.46124616", "0.4604084", "0.4599786", "0.4596491", "0.45946807", "0.45929512", "0.45876583", "0.45765093", "0.45393148", "0.4524309", "0.4520373", "0.45167306", "0.4515891", "0.45015752", "0.4498567", "0.44915003", "0.44858572", "0.44766492", "0.44720677", "0.44705135", "0.44690827", "0.4466036", "0.4460881", "0.44487035", "0.44390452", "0.4429164", "0.4426919", "0.44254118", "0.44250098", "0.44196507", "0.4414997", "0.44109398", "0.44108295", "0.43906242", "0.43878162", "0.4385223", "0.4382978", "0.43763345", "0.43738043", "0.43737048", "0.43681514", "0.43539307", "0.43366", "0.43250257", "0.43218923", "0.43212995", "0.43157467", "0.4315097", "0.4309911", "0.43093458", "0.43036294", "0.43000898", "0.42967692", "0.42886233", "0.42805478", "0.42790008", "0.42720023", "0.42699882", "0.42692268", "0.42689553", "0.42670175", "0.42632046", "0.42597803", "0.42585364", "0.42494437", "0.42422923", "0.42405847", "0.4237147", "0.42349502", "0.42332977" ]
0.7194462
0
Adds an additional resource record to this message.
public DnsMessage addAdditionalResource(DnsResource resource) { if (additional == null) { additional = new LinkedList<DnsResource>(); } additional.add(resource); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addResource(TIdentifiable resource) {\r\n // make sure that the resource doesn't exists already\r\n\t if (resourceExists(resource)) return;\t \r\n\t \r\n // check to see if we need to expand the array:\r\n\t if (m_current_resources_count == m_current_max_resources) expandTable(1, 2);\t \t \r\n\t m_resources.addID(resource);\r\n\t m_current_resources_count++;\r\n }", "public void addResource(Resource resource) {\n\t\tresources.add(resource);\n\t}", "public void addResource(Resource resource) {\n\t\tif (resource != null) {\n\t\t\tthis.getResources().add(resource);\n\t\t\tresource.setSystem(this);\n\t\t}\n\t}", "public void addResource(PSResource res) {\n/* 72 */ prepareResourceSet();\n/* 73 */ this.resources.add(res);\n/* */ }", "public void add(BindResource resource) {\n \tif(resource==null)\n \t\tthrow new IllegalArgumentException(\"resourceProperties cannot be null\");\n \tif(resources==null)\n \t\tresources = new ArrayList<BindResource>();\n \t\n \tresources.add(resource);\n }", "public DnsMessage addAuthorityResource(DnsResource resource) {\n if (authority == null) {\n authority = new LinkedList<DnsResource>();\n }\n authority.add(resource);\n return this;\n }", "public void onResourceAdded(final ResourceEvent resourceEvent);", "public void addResource(Resource r,int max){\n t.put(r.getName(),new SupplyNode(r,max));\n }", "public void giveResourcesToPlayer(Resource resource){\n resources.addResource(resource);\n }", "public void addResource(Resource resource) {\n this.resources.clear();\n this.resources.add(resource);\n }", "public void addResource(ITranslationResource resource){\n\t\tresources.add(resource);\n\t}", "public void addResource(ResourceInterface resource) {\n if (resource != null && !this.resources.contains(resource)) {\n this.resources.add(resource);\n forceUpdate();\n }\n }", "private void add(EResource resource) {\n switch (resource) {\n case BRICK:\n brick++;\n break;\n case GRAIN:\n grain++;\n break;\n case LUMBER:\n lumber++;\n break;\n case ORE:\n ore++;\n break;\n case WOOL:\n wool++;\n break;\n }\n }", "public void addResource(DataGridResource resource) {\n\t\tif (this.resources == null) {\n\t\t\tthis.resources = new ArrayList<>();\n\t\t}\n\t\tthis.resources.add(resource);\n\t}", "public static void addResource(ArrayList<Resource> resource){\n String id;\n String type;\n String name;\n String genre;\n String author;\n String year;\n String userID = \"0\";\n Boolean checkedOut = false;\n\n int nextID = Resource.getLastID() + 1;\n id = \"\" + nextID;\n type = stringInput(\"What type is the resource\");\n name = stringInput(\"What is the name of the resource\");\n genre = stringInput(\"What genre is the resource\");\n author = stringInput(\"Who is the author\");\n year = stringInput(\"What year is it published\");\n\n resource.add(new Resource(id, type, name, genre, author, year, userID, checkedOut));\n }", "public void addResource(Resource res) {\n \tresourceDisplay.getChildren().add(new ResourceContainer(res));\r\n }", "@Override\n public void addedResource( ResourceEvent event )\n {\n }", "public void addRecord();", "public Closeable add(final Resource resource) {\n final ResourceWrapper resourceWrapper = new ResourceWrapper(resource);\n \n synchronized (m_reservableListMutex) {\n m_reservables.add(resourceWrapper);\n }\n \n m_listeners.apply(\n new ListenerSupport.Informer() {\n public void inform(Object listener) {\n ((Listener)listener).resourceAdded(resource);\n }\n });\n \n return resourceWrapper;\n }", "@Override\n\tprotected boolean addResourceToDataStore(ExampleResource resource) {\n\t\tHALLink selfLink = resource.getSelf();\n\t\tif (selfLink == null){\n\t\t\tUUID resourceID = UUID.randomUUID();\n\t\t\tselfLink = createSelfLinkWithUUID(resourceID, resource.getProfile());\n\t\t\tresource.setSelf(selfLink);\n\t\t\tresourceMapping.put(selfLink.getHref(), resourceID);\n\t\t}\n\t\tString resourceURI = selfLink.getHref();\n\t\tUUID dataID = resourceMapping.get(resourceURI);\n\t\tif (dataID == null){\n\t\t\tdataID = UUID.randomUUID();\n\t\t\tresourceMapping.put(resourceURI, dataID);\n\t\t}\n\t\treturn dataStore.getData().add(convert(resource));\n\t}", "public void addResource(Resource res, int roll) {\n\t\t_resources.add(res);\n\t\t_rolls.add(roll);\n\t}", "@Override\n public void addResource(String resourceKey, Object resource)\n {\n synchronized(InProcessCache.class) {\n if(!hasResource(resourceKey)) {\n WeakReference weak = new WeakReference(resource);\n _cache.put(resourceKey, weak);\n }\n }\n }", "public static void add(int level, String resourceID, Object info) {\n\tadd(level, resourceID, new Object[] { info });\n\t\t\t\n }", "@Override\r\n\tpublic void add(Resources resources) {\n\t\t\r\n\t}", "void addItem(DataRecord record);", "public org.hl7.fhir.ResourceReference addNewMedication()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.ResourceReference target = null;\n target = (org.hl7.fhir.ResourceReference)get_store().add_element_user(MEDICATION$10);\n return target;\n }\n }", "@Override\r\n\tpublic boolean addSource(Resource resource) {\n\t\treturn this.excuteDb(\"insert into resource (style_id,title,size,language,banben,text,inputtime,res_add,image_add) values(?,?,?,?,?,?,?,?,?)\",new Object[]{\r\n\t\t\t\tresource.getStyleid(),\r\n\t\t\t\tresource.getTitle(),\r\n\t\t\t\tresource.getSize(),\r\n\t\t\t\tresource.getLanguage(),\r\n\t\t\t\tresource.getBanben(),\r\n\t\t\t\tresource.getText(),\r\n\t\t\t\tresource.getInputtime(),\r\n\t\t\t\tresource.getResadd(),\r\n\t\t\t\tresource.getImageadd()\r\n\t\t} );\r\n\t}", "public DataResourceBuilder _resourcePart_(Resource _resourcePart_) {\n this.dataResourceImpl.getResourcePart().add(_resourcePart_);\n return this;\n }", "public void add(Resource resource, Integer multiplicity) {\n productionPowerInput.put(resource, multiplicity);\n }", "org.hl7.fhir.ResourceReference addNewPerformer();", "public void addServiceRequestResource(ServiceRequestResource serviceRequestResource) {\r\n\t\tthis.serviceRequestResources.put(serviceRequestResource.getName(), serviceRequestResource);\r\n\t}", "public void addDisposableResource(Disposable disposableResource)\n {\n this.disposableObjects.add(disposableResource);\n }", "public DnsMessage addAnswer(DnsResource answer) {\n if (answers == null) {\n answers = new LinkedList<DnsResource>();\n }\n answers.add(answer);\n return this;\n }", "org.hl7.fhir.ObservationRelated addNewRelated();", "com.microsoft.schemas.crm._2011.contracts.ArrayOfRequiredResource addNewRequiredResources();", "public Builder addResource(ResourceConfig resource) {\n _resourceMap.put(resource.getId(), resource);\n return this;\n }", "public void addResource(S... resources) {\r\n\t\tfor (S resource : resources) {\r\n\t\t\tthis.resourcesList.add(resource);\r\n\t\t}\t\t\r\n\t}", "org.hl7.fhir.ResourceReference addNewSubject();", "public static void add(int level, String resourceID) {\n\tif (logLevel >= level) {\n\t addInfo(I18N.loadString(resourceID));\n\t}\n }", "public Cif addResourcesItem(String resourcesItem) {\n if (this.resources == null) {\n this.resources = new ArrayList<String>();\n }\n this.resources.add(resourcesItem);\n return this;\n }", "@Override\n\tpublic int addMediaRecord(MediaRecord record) {\n\t\treturn mediaRecordMapper.insertSelective(record);\n\t}", "void addElement(String newSubResourceName, ResourceBase newSubResource);", "@Override\n\tpublic void addRec() {\n\t\t\n\t}", "@Override\r\n\tpublic int addResources(Resources resources) {\n\t\treturn resourcesDao.addResources(resources);\r\n\t}", "public static void add(int level, String resourceID, Object info1,\n\t\t\t\tObject info2) {\n\tadd(level, resourceID, new Object[] { info1, info2 });\n }", "public ResourceAddress add(ResourceAddress address) {\n if (address != null) {\n for (Property property : address.asPropertyList()) {\n add(property.getName(), property.getValue().asString());\n }\n }\n return this;\n }", "public RecordObject addSubNetwork(String token, Object record) throws RestResponseException;", "@Experimental\n default void addGeneratedResource(String resource) {\n info(\"EXPERIMENTAL: Compile time resource contribution to the context is experimental\", null);\n }", "@SuppressWarnings(\"unchecked\")\n public final void addRecord(final Record record) {\n // TODO check if attributes present in report are also\n // present in record.\n // record.;\n// for (int i = 0; i < attributes.length; i++) {\n// if (!record.getAttributesString().contains(attributes[i])) {\n // launch new query to update list of attributes.\n// }\n// }\n records.add(record);\n }", "private void addRecord() {\n\t\tContactData cd = new ContactData(contactDataId, aName, aLastname,\n\t\t\t\taDate, aAdress, aGender, aImage);\n\t\tIntent intent = getIntent();\n\t\tintent.putExtra(\"ContactData\", cd);\n\t\tsetResult(RESULT_OK, intent);\n\t\tfinish();\n\t\tonDestroy();\n\t}", "public <T extends Closeable> T addResource(String id, T c) {\n\t\trks.add(id);\n\t\trvs.add(c);\n\t\treturn c;\n\t}", "public void addExtHybridResourceRelationship(TaxonModel taxonModel, DwcaWriter dwcaWriter) throws IOException{\n\t\tMap<Term,String> recordValues = new HashMap<Term,String>();\t\t\n\t\tfor(TaxonModel currHybridParent : taxonModel.getHybridparents()){\n\t\t\trecordValues.put(DwcTerm.resourceID, taxonModel.getId().toString());\n\t\t\trecordValues.put(DwcTerm.relatedResourceID, currHybridParent.getId().toString());\n\t\t\trecordValues.put(DwcTerm.relationshipOfResource, HYBRID_PARENT_RELATIONSHIP);\n\t\t\trecordValues.put(DwcTerm.scientificName, currHybridParent.getLookup().getCalnameauthor());\n\t\t\tdwcaWriter.addExtensionRecord(DwcTerm.ResourceRelationship, recordValues);\n\t\t\trecordValues.clear();\n\t\t}\n\t}", "public void addRessource(Ressource r, int qte){\n this.ressource.put(r, this.ressource.get(r)+qte);\n }", "public static void add(int level, String resourceID, Object info1,\n\t\t\t\tObject info2, Object info3) {\n\tadd(level, resourceID, new Object[] { info1, info2, info3 });\n }", "public ResourceCollection add(EResource resource, int amount) {\n for (int n = 0; n < amount; n++) add(resource);\n return this;\n }", "public void addExtResDependency(ExtensionResource extRes){\n\t\t\n\t\textResDepsID.add(extRes.getExtID());\n\t}", "public Long createAndStoreMessageResource(MessageResource messageResource, Long userID)\n throws MessageResourceSaveException;", "public static void add(int level, String resourceID, Object[] obj){\n\tif (logLevel >= level){\n\t MessageFormat mf = new MessageFormat(I18N.loadString(resourceID));\n\t mf.setLocale(I18N.locale);\t\n\t for (int i = 0; i < obj.length; i++) {\n\t\tobj[i] = obj[i].toString();\n\t }\n\t addInfo(mf.format(obj));\n\t}\n }", "org.hl7.fhir.Attachment addNewValueAttachment();", "public RecordObject addEvent(String token, Object record) throws RestResponseException;", "void add(CallRecordAddReqDto req);", "org.hl7.fhir.ObservationReliability addNewReliability();", "public void addResourceSpace(Resource r,int srt){\n t.put(r.getName(),new SupplyNode(r,srt));\n t.get(r.getName()).setCurrent(srt);\n }", "public File addResource(String id, File f) {\n\t\trks.add(id);\n\t\trvs.add(f);\n\t\treturn f;\n\t}", "public void merge( Resource r )\n\t{\n\t\tr.transter(this, r.amount);\n\t\tr.recycle();\n\t}", "void addRecord(HistoryRecord record) throws IOException;", "private void push(Node resource) {\r\n if (seen.add(resource)) {\r\n lookahead[nAvailable++] = new Triple(resource, TYPE, RESOURCE);\r\n }\r\n }", "@RequestMapping(value = \"/messageresource/add\", method = RequestMethod.GET)\n\tpublic String showAddMessageResourceForm(Model model, Locale locale) {\n\n\t\tlogger.debug(\"showAddMessageResourceForm()\");\n\n\t\tMessageResource messageResource = new MessageResourceImpl();\n\t\t\n\t\tmessageResource.setCurrentMode(MessageResource.CurrentMode.ADD);\n\n\t\tmodel.addAttribute(\"messageResourceFormModel\", messageResource);\n\n\t\tsetDropDownContents(model, messageResource, locale);\n\n\t\treturn \"messages/messageresource\";\n\n\t}", "public void addRecord(Record record) {\n if (records.add(record)) {\n // if record has been added, then changing balance\n if (record.getType() == RecordType.WITHDRAW)\n balance -= record.getAmount();\n else if (record.getType() == RecordType.DEPOSIT)\n balance += record.getAmount();\n }\n }", "protected void recordResourceMacro(ResourceMacro macro) {\n super.recordResourceMacro(macro);\n }", "public List<DnsResource> additionalResources() {\n if (additional == null) {\n return Collections.emptyList();\n }\n return Collections.unmodifiableList(additional);\n }", "public void addRR(Request req) {\n\n }", "public void addInput(ResourceMRInput input) {\n\t\tsuper.add(input.getId());\n\t}", "protected void add(ResourceMapping mapping) throws CoreException {\n SyncInfoTree set = getUnaddedResource(mapping);\n add(new ResourceMapping[] { mapping });\n assertAdded(mapping, set);\n }", "public org.hl7.fhir.ResourceReference addNewPatient()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.ResourceReference target = null;\n target = (org.hl7.fhir.ResourceReference)get_store().add_element_user(PATIENT$2);\n return target;\n }\n }", "public Resource storeResource( Resource r );", "protected void addResource(String resource, String httpMethod, ServiceCall serviceCall) {\n dispatcher.addResource(resource, httpMethod, serviceCall);\n }", "public void assignAddingResource(final boolean val) {\n addingResource = val;\n }", "void addCustomAnnotationToResource(BLangFunction resourceNode, SymbolEnv env) {\n if (isHttpResource(resourceNode)) {\n addOrderParamConfig(resourceNode, env);\n }\n }", "public void addSubcontractorRecord(String[] record) { \n \tthis.records.add(record);\n }", "public ResultMessage addCreditRecord(CreditRecordPO po) throws RemoteException {\n\t\treturn null;\n\t}", "int insert(ResourcePojo record);", "@Override\n\tpublic void addRecords(Records record) {\n\t\trecordsDAO.addRecords(record);\n\n\t}", "void addCapeResource(String parGroup, ResourceLocation parResource)\n {\n if (getCapeResource(parGroup) == null)\n {\n capeResources.put(parGroup, parResource);\n }\n }", "int insert(RoleResource record);", "public void addData(AggregateRecord record) {\n this.data.add(record);\n }", "public RecordObject addGroup(String token, Object record) throws RestResponseException;", "public void resourceCreated(Resource resource)\n {\n event(\"ResourceCreation\",\n resource.getId(),\n -1,\n -1,\n false);\n }", "@Override\n public <L> void resourcesAdded(InventoryEvent<L> event) {\n return;\n }", "protected void addMissingResources()\n {\n WebLogicResourceRules.addMissingJmsResources(this);\n }", "@Override\r\n\tpublic void increaseAmount(ResourceType resource) {\n\t\t\r\n\t}", "private void addVehicle(Vehicle v){\n\t\tthis.putResource(v);\n\t}", "protected void addListenerTo(BioResource BioResource) {\n\t\t\tBioResource.addListener(this);\n\t\t}", "@Test\n\tpublic void testAddResource()\n\t{\n\t\tLocalDate resDate = null;\n\t\t\n\t\tCategory cat = new Category();\n\t\tcat.setCatId(10);\n\t\tcat.setCatName(\"Clothing\");\n\t\t\n\t\tResource res = new Resource();\n\t\tres.setResId(10);\n\t\tres.setResDate(resDate);\n\t\tres.setCategory(cat);\n\t\tres.setResDescription(\"100% Cotton\");\n\t\tres.setResTitle(\"Shirt\");\n\t\tres.setResPrice(1000);\n\t\t\n\t\tMockito.when(resourceRepository.save(res)).thenReturn(res);\n\t\tassertEquals(res, resourceService.addResource(res)); //check the expected result with actual result.\n\t}", "private void addrec() {\n\t\tnmfkpinds.setPgmInd34(false);\n\t\tnmfkpinds.setPgmInd36(true);\n\t\tnmfkpinds.setPgmInd37(false);\n\t\tstateVariable.setActdsp(replaceStr(stateVariable.getActdsp(), 1, 8, \"ADDITION\"));\n\t\tstateVariable.setXwricd(\"INV\");\n\t\ttransactionTypeDescription.retrieve(stateVariable.getXwricd());\n\t\tnmfkpinds.setPgmInd99(! lastIO.isFound());\n\t\t// BR00003 Trn_Hst_Trn_Type not found on Transaction_type_description\n\t\tif (nmfkpinds.pgmInd99()) {\n\t\t\tstateVariable.setXwtdsc(all(\"-\", 20));\n\t\t}\n\t\tstateVariable.setXwa2cd(\"EAC\");\n\t\tstateVariable.setUmdes(replaceStr(stateVariable.getUmdes(), 1, 11, um[1]));\n\t\taddrec0();\n\t}", "public void addRecord(ListGridRecord record) {\r\n\t\tthis.addData(record);\r\n\t}", "@Override\n\tpublic Resource insert(Resource resource) {\n\t\treturn null;\n\t}", "public Builder addResourcesBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n ensureResourcesIsMutable();\n resources_.add(value);\n onChanged();\n return this;\n }", "int insert(TUserResources record);", "public native void addResourcePath(final String name, final String resourcePath, final int type);" ]
[ "0.6509125", "0.6351414", "0.61768186", "0.61680806", "0.6148225", "0.6118356", "0.6076704", "0.5995019", "0.5984204", "0.59810936", "0.5922705", "0.5911337", "0.5873335", "0.5818188", "0.5817784", "0.58059895", "0.57732576", "0.5766045", "0.57610923", "0.5728338", "0.56927496", "0.5674835", "0.5652838", "0.56399137", "0.56284267", "0.55678475", "0.55517954", "0.5539096", "0.5534554", "0.55022615", "0.5496779", "0.5486381", "0.5457997", "0.544802", "0.54464144", "0.5442109", "0.54413164", "0.54140127", "0.5411235", "0.5408908", "0.53833854", "0.53812575", "0.537284", "0.5360708", "0.53540933", "0.53340983", "0.53330755", "0.5303371", "0.52888346", "0.52794945", "0.52744967", "0.5272521", "0.52307093", "0.5229031", "0.52175725", "0.51887846", "0.51871735", "0.51869214", "0.5186303", "0.51862276", "0.51820314", "0.5180087", "0.5159512", "0.5116501", "0.5109931", "0.50984865", "0.50955355", "0.5076505", "0.50634456", "0.5060541", "0.5056058", "0.50353926", "0.5029352", "0.501678", "0.5014117", "0.5011423", "0.5010769", "0.5006114", "0.49914175", "0.49885422", "0.49601015", "0.4951683", "0.49499628", "0.49428245", "0.4939932", "0.4938816", "0.49248874", "0.49227366", "0.4914294", "0.49087745", "0.48976576", "0.488708", "0.48775992", "0.48763213", "0.48744458", "0.48725122", "0.48694664", "0.4851914", "0.48504904", "0.48497498" ]
0.7701043
0
Handles request to change user's password.
private boolean userAuthPasswordChangeRequest(Session session, byte[] password) throws Exception { _buffer.getInt(); _buffer.getShort(); byte[] instruction = _buffer.getString(); _buffer.getString(); // Language tag if( !(_userinfo instanceof UIKeyboardInteractive) ) { if( _userinfo != null ) { _userinfo.showMessage(MessageConstants.PASSWORD_MUST_CHANGE); } return false; // Can't change password without keyboard-interactive } UIKeyboardInteractive kbi = (UIKeyboardInteractive) _userinfo; byte[][] response = kbi.promptKeyboardInteractive( _passwordPrompt, "Password Change Required", Util.byte2str(instruction), new String[]{"New Password: "}, new boolean[]{false}); if( response == null ) { throw new AuthCancelException("UserAuth 'password' canceled by user during change request"); } // send the change password request with old and new passwords // byte SSH_MSG_USERAUTH_REQUEST(50) // string user name // string service name ("ssh-connection") // string "password" // boolean TRUE // string plaintext old password (ISO-10646 UTF-8) // string plaintext new password (ISO-10646 UTF-8) _packet.reset(); _buffer.putByte(SSH_MSG_USERAUTH_REQUEST); _buffer.putString(session.getUserName()); _buffer.putString(SSH_CONNECTION); _buffer.putString(UserAuth.PASSWORD); _buffer.putByte((byte) 1); _buffer.putString(password); // Original password byte[] newpassword = response[0]; _buffer.putString(newpassword); Util.bzero(newpassword); session.write(_packet); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean changePassword(HttpServletRequest request, HttpServletResponse response);", "void updateUserPassword(User user);", "@Override\r\n\tpublic void modifyPassword(String username, String password, String confirmPassword, String oldPassword) {\n\t}", "@PostMapping(path = \"/account/change_password\",\n produces = MediaType.TEXT_PLAIN_VALUE)\n @Timed\n public ResponseEntity changePassword(@RequestBody String password) {\n if (!checkPasswordLength(password)) {\n return new ResponseEntity<>(\"Incorrect password\", HttpStatus.BAD_REQUEST);\n }\n userService.changePassword(password);\n return new ResponseEntity<>(HttpStatus.OK);\n }", "private void changePassword() throws EditUserException {\n String userIDInput = userID.getText();\n String passwordInput = passwordChange.getText();\n try {\n Admin.changeUserPassword(userIDInput, passwordInput);\n JOptionPane.showMessageDialog(null, \"Change Password Success: \" + userIDInput + \" password successfully changed\");\n // Reset Values\n userID.setText(\"\");\n passwordChange.setText(\"\");\n } catch (EditUserException e) {\n JOptionPane.showMessageDialog(null, e.getMessage());\n throw new EditUserException(e.getMessage());\n } catch (SQLException throwables) {\n throw new EditUserException(\"Change Password Error: Cannot Change\" + userIDInput + \" password\");\n } catch (NullPointerException e) {\n String msg = \"Change Password Error: User ID \" + userIDInput + \" is an invalid userID.\";\n JOptionPane.showMessageDialog(null, msg);\n throw new EditUserException(\"Change Password Error: User ID \" + userIDInput + \" is an invalid userID.\");\n }\n }", "void changePassword(String userName, @Nullable String oldPassword, @Nullable String newPassword) throws PasswordNotMatchException;", "public void receiveResultChangeUserPassword(\r\n\t\t\tcom.autometrics.analytics.v9.j2ee.webservices.v1_0.ChangeUserPasswordResponse result) {\r\n\t}", "public String changePassword()\n \t{\n \t\tUser u = getSessionUser();\n \n \t\ttry {\n \t\t\tu.changePassword(getParam(\"oldPassword\"), getParam(\"newPassword\"));\n \t\t\treturn Action.SUCCESS;\n \t\t}\n \t\tcatch (InvalidPasswordException e) {\n \t\t\taddActionError(getText(\"error.invalid.password\"));\n \t\t\treturn Action.ERROR;\n \t\t}\n \t\tcatch (Exception e) {\n \t\t\taddActionError(getText(\"internal.app.error\"));\n \t\t\t_log.error(\"Exception changing password!\", e);\n \t\t\treturn \"internal.app.error\";\n \t\t}\n \t}", "@Override\n\tpublic void modifyUserPassword(String user_id, String user_password) {\n\t\tuserInfoDAO.modifyPassword(user_id, user_password);\n\t}", "@Override\n\tpublic int modifyPassword(User user) {\n\t\treturn userDao.modifyPassword(user);\n\t}", "@MasterLogAnnotation\r\n\t@RequestMapping(value = \"/changePass\", method = RequestMethod.GET)\r\n\tpublic String changePass(HttpServletRequest request) {\r\n\t\tLoggedUserData lud = ContextHolder.getLoggedUser();\r\n\t\tboolean isFromLoginPage = lud.isForcePasswordChange();\r\n\r\n\t\treturn isFromLoginPage ? \"changePassAfterLogin\" : \"changePass\";\r\n\t}", "@GET(\"/index_production.php\")\n void changePassword(@Query(\"action\") String action,\n @Query(\"tabella\") String tabella,\n @Query(\"existing_password\") String existing_password,\n @Query(\"new_password\") String new_password,\n @Query(\"confirm_password\") String confirm_password,\n @Query(\"user_id\") String user_id,\n Callback<JsonObject> response);", "@Override\n\tpublic void alterpassword(User user) throws Exception {\n\n\t}", "@RequestMapping(value = \"/reikningur/breyta-lykilordi\", method = RequestMethod.POST)\n private String changePasswordHandler (\n HttpSession session, @RequestParam Map<String,String> params, ModelMap model) \n throws PasswordVerificationException, HashException {\n String oldPassword = params.get(\"old-password\");\n String newPassword1 = params.get(\"new-password1\");\n String newPassword2 = params.get(\"new-password2\");\n \n String loggedInUserEmail = (String) session.getAttribute(\"user\");\n \n if (!newPassword1.equals(newPassword2)) {\n model.addAttribute(\"message\", \"Ný lykilorð eru ekki eins, reyndu aftur.\");\n }\n else if (!accountService.verifyPassword(loggedInUserEmail, oldPassword)) {\n model.addAttribute(\"message\", \"Lykilorð er ekki rétt, reyndu aftur.\");\n }\n else if (accountService.changePassword(loggedInUserEmail, newPassword1)) {\n model.addAttribute(\"message\", \"Lykilorði þínu hefur verið breytt.\");\n \n } else {\n model.addAttribute(\"message\", \"Úúúps! Eitthvað fór úrskeiðis. Reyndu aftur síðar.\");\n }\n \n return \"settings\";\n }", "public void setPassword(java.lang.String newPassword);", "public void update() {\n user.setNewPassword(newPassword.getText().toString());\n user.setPassword(password.getText().toString());\n reauthenticate();\n }", "@Override\n\tpublic void updatePassword(AdminUser userModel) {\n\n\t}", "void onChangePasswordSuccess(ConformationRes data);", "void resetPassword(HttpServletRequest request, String userId, String password) ;", "@PostMapping(\"/login/{id}/changePassword\")\n public String changeUserPassword(@PathVariable(name = \"id\") Long id, TempUser tempUser, Model model, HttpSession session)\n throws Exception {\n\n User user = userService.getUser(id);\n\n userService.changePassword(tempUser,user);\n session.setAttribute(\"password\", tempUser.getNewPass());\n model.addAttribute(\"tempUser\", tempUser);\n model.addAttribute(\"user\", user);\n return \"redirect:/login/\" + user.getId();\n }", "public void changePassword(String passwordChange){\n\t this.password = passwordChange;\n\t}", "void setPassword(Password newPassword, String plainPassword) throws NoUserSelectedException;", "public void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n\r\n String apikey = (String) request.getSession().getAttribute(\"apikey\");\r\n String oldPass = request.getParameter(\"oldPassword\");\r\n String newPass = request.getParameter(\"newPassword\");\r\n String confirmation = request.getParameter(\"confirmation\");\r\n \r\n if (!newPass.equals(confirmation)) {\r\n request.setAttribute(\"error\", \"The new password and the confirmation don't match.\");\r\n this.getServletContext().getRequestDispatcher(\"/WEB-INF/change.jsp\").forward(request, response);\r\n }\r\n boolean passwordUpdated = false;\r\n try {\r\n YamDatabaseConnector dbConnector = new YamDatabaseConnector();\r\n passwordUpdated = dbConnector.updatePassword(apikey, oldPass, newPass);\r\n } catch (ClassNotFoundException ex) {\r\n Logger.getLogger(ChangePassword.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n\r\n if (passwordUpdated) {\r\n request.setAttribute(\"success\", \"Password successfully updated.\");\r\n } else {\r\n request.setAttribute(\"error\", \"Error updating the password.\");\r\n }\r\n // send response\r\n this.getServletContext().getRequestDispatcher(\"/WEB-INF/sign.jsp\").forward(request, response);\r\n }", "private void changePassword(){\n\t\tif (changeCancelButton.getText().equals(\"Anuluj\")){\n\t\t\thidePassword();\n\t\t\tchangeCancelButton.setText(\"Zmień hasło\");\n\t\t\tchangePassword = false;\n\t\t}\t\n\t\telse {\n\t\t\tif (usersTable.getSelectionModel().getSelectedIndex() > -1) {\n\t\t\t\tchangePassword = true;\n\t\t\t\tchangeCancelButton.setText(\"Anuluj\");\n\t\t\t\tuserPasswordField.setText(\"\");\n\t\t\t\tuserConfirmPasswordField.setText(\"\");\n\t\t\t\tlackUserPasswordLabel.setVisible(false);\n\t\t\t\tlackUserConfirmPasswordLabel.setVisible(false);\t\t\t\t\n\t\t\t\tshowPassword();\n\t\t\t}\n\t\t}\n\t}", "@RequestMapping(value = \"password/change\", method= RequestMethod.POST)\n public ResponseEntity<?> passwordChange(@AuthenticationPrincipal User user,\n @RequestBody PasswordChange change)\n {\n Optional<User> ou = userRepository.findById(user.getId());\n boolean isMatch = bCryptPasswordEncoder.matches(change.oldPassword, ou.get().getPassword());\n if (isMatch) {\n ou.get().setPassword(bCryptPasswordEncoder.encode(change.password));\n userRepository.save(ou.get());\n return new ResponseEntity<>(null, HttpStatus.OK);\n }\n return new ResponseEntity<>(null, HttpStatus.NOT_FOUND);\n }", "@PreAuthorize(\"hasAnyRole('DERMATOLOGIST', 'PHARMACIST', 'PH_ADMINISTRATOR', 'SYS_ADMINISTRATOR', 'SUPPLIER')\")\n\t@RequestMapping(value = \"/changeUserPassword\", method = RequestMethod.POST)\n\t public ResponseEntity<?> changeUserPassword(@RequestBody PasswordChanger passwordChanger) {\n\t\t\tUser user = userService.findByEmail(passwordChanger.email);\n\t\t\n\t\t\tif (user.getEmail().equals(null)) {\n\t\t\t\tthrow new IllegalArgumentException(\"Invalid email or password\");\n\t\t\t}\n\t\t\t//System.out.println(passwordChanger.email); \n\t\t\t\n\t\t\tif(passwordChanger.newPassword.equals(passwordChanger.oldPassword)) {\n\t\t\t\tthrow new IllegalArgumentException(\"Password can not be same as old.\");\n\t\t }\n\t\t\tif(!passwordChanger.newPassword.equals(passwordChanger.rewritePassword)) {\n\t throw new IllegalArgumentException(\"Password must match!\");\n\t }\n\t if(passwordChanger.newPassword.isEmpty() || passwordChanger.rewritePassword.isEmpty()|| passwordChanger.oldPassword.isEmpty()) {\n\t throw new IllegalArgumentException(\"Fill all the required fields!\");\n\t }\n\t\t\tif (!passwordChanger.newPassword.equals(passwordChanger.rewritePassword)) {\n\t\t\t\tthrow new IllegalArgumentException(\"Password must match!\");\n\t\t\t}\n\t\n\t\t\tStringBuilder oldPasswordWithSalt = new StringBuilder();\n\t\t\toldPasswordWithSalt.append(passwordChanger.oldPassword);\n\t\t\toldPasswordWithSalt.append(user.getSalt());\n\t\n\t\t\t// Ovo je razlika, pozivamo metodu za obicno mijenjanje lozinke\n\t\t\tuserDetailsService.changeUserPassword(oldPasswordWithSalt.toString(), passwordChanger.newPassword);\n\t\n\t\t\tMap<String, String> result = new HashMap<>();\n\t\t\tresult.put(\"result\", \"success\");\n\t\t\treturn new ResponseEntity<>(result, HttpStatus.ACCEPTED);\n\t}", "public static void changePassword(User user, String password, String sender) {\n logMessage(LOGLEVEL_NORMAL, \"Password change request from \" + sender + \".\");\n // Query to check if the username already exists\n String checkQuery = \"SELECT `username` FROM \" + mysql_db + \".`login` WHERE `username` = ?\";\n\n // Query to update password\n String executeQuery = \"UPDATE \" + mysql_db + \".`login` SET `password` = ? WHERE `username` = ?\";\n try (Connection con = getConnection(); PreparedStatement cs = con.prepareStatement(checkQuery); PreparedStatement xs = con.prepareStatement(executeQuery)) {\n // Query and check if see if the username exists\n cs.setString(1, Bot.getUserName(user));\n ResultSet r = cs.executeQuery();\n\n if (!r.next()) {\n bot.blockingIRCMessage(sender, \"Username does not exist.\");\n } else {\n xs.setString(1, \"\");\n xs.setString(2, r.getString(\"username\"));\n if (xs.executeUpdate() == 1) {\n bot.blockingIRCMessage(sender, \"Successfully changed your password!\");\n } else {\n bot.blockingIRCMessage(sender, \"There was an error changing your password (executeUpdate error). Try again or contact an administrator with this message.\");\n }\n }\n } catch (SQLException e) {\n System.out.println(\"ERROR: SQL_ERROR in 'changePassword()'\");\n logMessage(LOGLEVEL_IMPORTANT, \"SQL_ERROR in 'changePassword()'\");\n\n bot.blockingIRCMessage(sender, \"There was an error changing your password account (thrown SQLException). Try again or contact an administrator with this message.\");\n }\n }", "private void changePassword(String newPassword) {\n FirebaseUser firebaseUser = mAuth.getCurrentUser();\n firebaseUser.updatePassword(newPassword).addOnCompleteListener(this, new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n if (task.isSuccessful()) {\n Toast.makeText(ProfileSettingsActivity.this, PASSWORD_CHANGED_SUCCESSFUL, Toast.LENGTH_LONG).show();\n }\n }\n });\n }", "@Override\n\tpublic void changePasswordForUser(String userId, String password)\n\t\t\tthrows EntityNotFoundException {\n\t}", "@Override\r\n\tpublic void changePassword() throws NoSuchAlgorithmException\r\n\t{\r\n\t\tSystem.out.print(\"Enter user ID you wish to change: \");\r\n\t\tString idInput = scan.next();\r\n\t\tboolean isUnique = isUniqueID(idInput);\r\n\t\tif (isUnique == false)\r\n\t\t{\r\n\t\t\tSystem.out.print(\"Enter password for \" + idInput + \": \");\r\n\t\t\tString oldPassInput = scan.next();\r\n\t\t\tString oldHash = hashFunction(oldPassInput + database.get(idInput));\r\n\t\t\tboolean isValidated = validatePassword(oldHash);\r\n\t\t\tif (isValidated == true)\r\n\t\t\t{\r\n\t\t\t\thm.remove(oldHash);\r\n\t\t\t\tSystem.out.print(\"Enter new password for \" + idInput + \": \");\r\n\t\t\t\tmakePassword(idInput, scan.next());\r\n\t\t\t\tSystem.out.println(\"The password for \" + idInput + \" was successfully changed.\");\r\n\t\t\t}\r\n\t\t\telse if (isValidated == false)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"The ID or password you entered does not exist in the database.\");\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if (isUnique == true)\r\n\t\t{\r\n\t\t\tSystem.out.print(\"Enter password for \" + idInput + \": \");\r\n\t\t\tscan.next();\r\n\t\t\tSystem.out.println(\"Authentication fail\");\r\n\t\t\tSystem.out.println(\"The ID or password you entered does not exist in the database.\");\r\n\t\t}\r\n\t}", "public void updatePassword(String account, String password);", "@RequestMapping(value = \"/changepassword/{id}\", method = RequestMethod.GET)\n\n\tpublic ModelAndView changePassword(HttpServletRequest request, HttpSession session, @PathVariable int id,\n\t\t\t@ModelAttribute(\"edituser\") UserBean edituser, Model model) {\n\t\tString adminId = (String) request.getSession().getAttribute(\"adminId\");\n\t\tif (adminId != null) {\n\t\t\tUserBean user = userdao.getUserById(id);\n\t\t\tmodel.addAttribute(\"user\", user);\n\n\t\t\treturn new ModelAndView(\"changePasswordView\");\n\t\t} else\n\t\t\treturn new ModelAndView(\"redirect:Login\");\n\t}", "public int editPassword(User user) {\n User currentUser = userRepository.findByUsername(user.getUsername());\n if (currentUser == null)\n return 0;\n currentUser.setPassword(user.getPassword());\n userRepository.save(currentUser);\n return 1;\n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tHttpSession session = request.getSession(true);\n \tUser curUser = (User) session.getAttribute(\"user\");\n\t\tint userId = curUser.getUserID();\n\t\tString username = curUser.getUsername();\n\t\tString profileImage = curUser.getProfileImage();\n\t\tString curPass = curUser.getPassword();\n\t\t\n//\t\tSystem.out.println(profileImage);\n\t\t\n\t\trequest.setAttribute(\"username\", username);\n\t\trequest.setAttribute(\"profileImage\", profileImage);\n\t\t\n\t\tString oldPass = request.getParameter(\"oldPass\");\n\t\tString newPass = request.getParameter(\"newPass\");\n\t\tString newPassConfirm = request.getParameter(\"newPassConfirm\");\n\t\t\n\t\tif(!oldPass.equals(curPass)) {\n\t\t\trequest.setAttribute(\"error\", \"Old password is not correct!\");\n\t\t}\n\t\telse {\n\t\t\tif(!newPass.equals(newPassConfirm)){\n\t\t\t\trequest.setAttribute(\"error\", \"New passwords does not match!\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tDBUtil dbUtil = new DBUtil();\n\t\t\t\tdbUtil.changePassword(userId, newPassConfirm);\n\t\t\t\trequest.setAttribute(\"success\", \"Change password successfully!\");\n\t\t\t\tdbUtil.close();\n\t\t\t}\n\t\t}\n\t\t\n\n \t\tString pageTo = \"/changePass.jsp\";\n\t\tRequestDispatcher dispatcher = getServletContext().getRequestDispatcher(pageTo);\n\t\tdispatcher.forward(request, response);\n\t}", "@Override\n public boolean changeCurrentUserPassword(String password) {\n return changeUserPassword(getUserName(), password);\n }", "void setPassword(String password);", "void setPassword(String password);", "void setPassword(String password);", "@Override\n\tpublic int changePWD(User user) {\n\t\treturn userDao.changePWD(user);\n\t}", "@POST\n @Consumes(MediaType.APPLICATION_FORM_URLENCODED)\n @Path(\"user/account/password\")\n public void updatePassword(@FormParam(\"password\") String password, @FormParam(\"con_password\") String confirmPassword, @FormParam(\"new_password\") String newPassword) {\n System.out.println(password);\n System.out.println(confirmPassword);\n System.out.println(newPassword);\n }", "@Headers({\n \"Content-Type:application/json\"\n })\n @PUT(\"users/{id}/password\")\n Call<Void> setPassword(\n @retrofit2.http.Path(\"id\") Integer id, @retrofit2.http.Body PasswordChangeRequest passwordRequest\n );", "@NeedAuthorize(value = \"user:pwreset\")\n @PostMapping(\"/user/reset/password\")\n @ResponseBody\n public XfaceCmsAdminUserResetPasswordResponseDTO userModifyPassword(XfaceCmsAdminUserResetPasswordRequestDTO requestDTO,\n HttpServletRequest request)\n {\n XfaceCmsAdminUserResetPasswordResponseDTO responseDTO = cmsAdminUserMicroService.userResetPassword(requestDTO);\n return responseDTO;\n }", "public void setPassword(String pass);", "@GetMapping(\"/login/{id}/changePassword\")\n public String showChangePasswordForm(@PathVariable(name = \"id\") Long id, Model model){\n User user = userService.getUser(id);\n model.addAttribute(\"tempUser\", new TempUser());\n model.addAttribute(\"user\", user);\n return \"changePassword\";\n }", "public void changePassword(View view) {\n }", "@PutMapping(\"/updatePass/{username}\")\n public ResponseEntity<passModified> setUserPass(@RequestParam(\"username\") String user, @RequestBody userAccount account) {\n accountRepo.updatePassword(user,account.getPassword());\n passModified modified = new passModified(\"Changed\");\n return ResponseEntity.ok().body(modified);\n }", "@Override\n\tpublic void changePassword(String old, String newpswd)\n\t\t\tthrows HFModuleException {\n\t\tLog.d(\"HFModuleManager\", \"changePassword\");\n\t\tif (!this.isCloudChannelLive()) {\n\t\t\tthrow new HFModuleException(HFModuleException.ERR_USER_OFFLINE,\n\t\t\t\t\t\"User is not online\");\n\t\t}\n\n\t\ttry {\n\t\t\tJSONObject joReq = new JSONObject();\n\t\t\tJSONObject pl = new JSONObject();\n\t\t\tjoReq.put(\"CID\", 10241);\n\t\t\tjoReq.put(\"SID\", getsid());\n\t\t\tpl.put(\"oldPwd\", old);\n\t\t\tpl.put(\"newPwd\", newpswd);\n\t\t\tjoReq.put(\"PL\", pl);\n\n\t\t\tString req = joReq.toString();\n\n\t\t\tString rsp = HttpProxy.reqByHttpPost(req);\n\t\t\tJSONObject jo = new JSONObject(rsp);\n\n\t\t\tif (jo.isNull(\"RC\")) {\n\t\t\t\tthrow new HFModuleException(HFModuleException.ERR_CHANGE_PSWD,\n\t\t\t\t\t\t\"can not change passwd\");\n\t\t\t}\n\t\t\tif (jo.getInt(\"RC\") != 1) {\n\t\t\t\tthrow new HFModuleException(HFModuleException.ERR_CHANGE_PSWD,\n\t\t\t\t\t\t\"can not change passwd\");\n\t\t\t}\n\t\t} catch (JSONException e) {\n\t\t\tthrow new HFModuleException(HFModuleException.ERR_CHANGE_PSWD,\n\t\t\t\t\t\"can not change passwd\");\n\t\t}\n\t}", "public RecordObject userChangePassword(String token, Object record) throws RestResponseException;", "@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n String newpass = resetpass.getText().toString();\n user.updatePassword(newpass).addOnSuccessListener(new OnSuccessListener<Void>() {\n @Override\n public void onSuccess(Void aVoid) {\n Toast.makeText(Profile.this, \"Password reset successfully\", Toast.LENGTH_SHORT).show();\n }\n }).addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Toast.makeText(Profile.this, \"Password reset failed\", Toast.LENGTH_SHORT).show();\n }\n });\n }", "public void changePassword(String password) {\n userRepository.findOneByLogin(SecurityUtils.getCurrentUserLogin()).ifPresent(user -> {\n String encryptedPassword = passwordEncoder.encode(password);\n user.setPassword(encryptedPassword);\n log.debug(\"Changed password for User: {}\", user);\n });\n }", "public String modifyPassword(ActionEvent evt) {\r\n\r\n\t\tString v$navigation = null;\r\n\r\n\t\tString v$oldPwd = getDefaultVue().getOldPassword();\r\n\t\tString v$newPwd = getDefaultVue().getNewPassword();\r\n\t\tString v$confirmPwd = getDefaultVue().getConfirmNewPassword();\r\n\t\t\r\n\t\tif(v$newPwd == null || v$newPwd.isEmpty()){\r\n\t\t\tFacesUtil.addInfoMessage(\"\", \"Nouveau mot de passe vide\");\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tif(v$newPwd.length()>30){\r\n\t\t\tFacesUtil.addInfoMessage(\"\", \"Taille du nouveau mot de passe trés longue, moins de 30 caractéres\");\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tif(v$oldPwd.equals(v$newPwd)){\r\n\t\t\tFacesUtil.addInfoMessage(\"\", \"Ancien mot de passe identique au nouveau\");\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\t\r\n\t\tif (v$newPwd.equals(v$confirmPwd)) {\r\n\t\t\ttry {\r\n\r\n\t\t\t\tAdminSvcoDeleguate.getSvcoUsr().modifierPwd(getDefaultVue().getLogin(), v$oldPwd, v$newPwd, SysGehoToolBox.getInfoUser());\r\n\r\n\t\t\t\t getDefaultVue().setModified(true);\r\n\t\t\t\t FacesUtil.addInfoMessage(\"\", \"Modification de mot de passe réussie\");\r\n\t\t\t}\r\n\r\n\t\t\tcatch (SysGehoAppException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} catch (ServiceLocatorException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\r\n\t\t} else {\r\n\t\t\tFacesUtil.addWarnMessage(\"\", \"Confirmation différente du nouveau mot de passe\");\r\n\t\t}\r\n\r\n\t\treturn v$navigation;\r\n\t}", "@Override\n public void updatePassword(int userId, String password) {\n logger.info(\"Updating password...\");\n userDaoInterface.updatePassword(userId,password);\n }", "public void changingPassword(String un, String pw, String secureQ, String secureA) {\n MongoCollection<Document> collRU = db.getCollection(\"registeredUser\");\n\n // get SHA value of given password\n SHAEncryption sha = new SHAEncryption();\n String shaPW = sha.getSHA(pw);\n\n // updating user database\n collRU.findOneAndUpdate(\n and(\n eq(\"username\", un),\n eq(\"secureQ\", secureQ),\n eq(\"secureA\", secureA)\n ),\n Updates.set(\"password\", shaPW)\n );\n\n // test (print out user after update)\n //getUser(un);\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n String newPassword = resetPassword.getText().toString();\n user.updatePassword(newPassword).addOnSuccessListener(new OnSuccessListener<Void>() {\n @Override\n public void onSuccess(Void unused) {\n Toast.makeText(profile.this, \"Password Reset Successfully\", Toast.LENGTH_SHORT).show();\n }\n }).addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Toast.makeText(profile.this, \"Password Reset Failed.\", Toast.LENGTH_SHORT).show();\n }\n });\n }", "@Override\n\t\t\tpublic void onClick(View v) \n\t\t\t{\n\t\t\t\t\n\t\t\t\tchange_pass(Singleton.user_id, old_pass.getText().toString(), new_pass.getText().toString(), \n\t\t\t\t\t\tnew_pass.getText().toString());\n\t\t\t\t\n\t\t\t}", "@Override\n\tpublic boolean setNewPassword(BigInteger tUserFId,String password) {\n\t\tint res = accountManageDao.updateApplyPwdWithMainUser(tUserFId,password);\n\t\treturn res>0?true:false;\n\t}", "HttpStatus resetPassword(final UserRepresentation userRepresentation, final String password);", "@Override\r\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\tUser u = user;\r\n\t\t\t\t\t\tuser.setUser_password(NewPassword.getText());\r\n\t\t\t\t\t\tif (NewPassword.getText().equals(surePassword.getText())) {\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\tDAOFactory.getIUserDAOInstance().update(u);\r\n\t\t\t\t\t\t\t} catch (Exception e1) {\r\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(UserFrame.this, \"更改成功\", \"提示\", \r\n\t\t\t\t\t\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(UserFrame.this, \"两次输入不同\", \"提示\", \r\n\t\t\t\t\t\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}", "private void sendPasswordToUser(UserForm userForm) {\n }", "@Override\n public ResponseEntity<String> changePassword(@ApiParam(value = \"\" ,required=true ) @Valid @RequestBody User user) {\n String bearerJWT = request.getHeader(\"Authorization\");\n if(bearerJWT == null) {\n return new ResponseEntity<>(\"Missing http header: Authorization: Bearer <jwt_token>\",\n HttpStatus.BAD_REQUEST);\n }\n\n //verify that user is valid\n String problem = detectFormatProblemInUser(user);\n if(problem != null) {\n return new ResponseEntity<>(\"user is malformed\", HttpStatus.BAD_REQUEST);\n }\n\n //verify that request has authorization to change user password\n if(!JWTUtils.verifyToken(bearerJWT, user.getEmail())){\n return new ResponseEntity<>(\"user not found or unauthorized access\", HttpStatus.NOT_FOUND);\n }\n\n //retrieve the user whose password has to be changed\n Optional<UserEntity> oUE = userRepository.findById(user.getEmail());\n if(oUE.isPresent()) {\n // we update the user entity by setting the new password\n UserEntity uE = oUE.get();\n uE.setPassword(user.getPassword());\n userRepository.save(uE);\n return new ResponseEntity<>(\"password changed successfully\", HttpStatus.OK);\n } else {\n //the user does not exist\n return new ResponseEntity<>(\"user not found or unauthorized access\", HttpStatus.NOT_FOUND);\n }\n }", "@Override\n\tpublic void changePassword(LoginForm login) {\n\t\tuserRepository.changePassword(encoder.encode(login.getPassword()), login.getUsername());\n\n\t}", "@Override\n public boolean updatePassword(int userId, String password, String oldPassword){\n return userDAO.updatePassword(userId,password, oldPassword);\n }", "@Override\n\tpublic boolean resetPassword(Context ctx) {\n\t\tString username = ctx.sessionAttribute(\"access\"); \n\t\tString password = ctx.formParam(\"password\");\n\t\tboolean result = authService.resetPassword(username, password);//check if username works\n\t\treturn result;\n\t}", "@Override\r\n public void changePassword(String password) {\r\n this.studente.setPassword(password);\r\n this.studenteFacade.edit(this.studente);\r\n }", "ChangePassword.Rsp getChangePasswordRsp();", "public void changePassword() {\n showProgressDialog();\n IApiClient client = ApiClient.getApiClient();\n ReqChangePassword reqChangePassword = new ReqChangePassword();\n reqChangePassword.setServiceKey(mAppSharedPreference.getString(PreferenceKeys.KEY_SERVICE_KEY, ServiceConstants.SERVICE_KEY));\n reqChangePassword.setMethod(MethodFactory.CHANGE_PASSWORD.getMethod());\n reqChangePassword.setUserID(mAppSharedPreference.getString(PreferenceKeys.KEY_USER_ID, \"\"));\n reqChangePassword.setOldPassword(mOldPassword);\n reqChangePassword.setNewPassword(mNewPassword);\n Call<ResBase> resChangePasswordCall = client.changePassword(reqChangePassword);\n resChangePasswordCall.enqueue(new Callback<ResBase>() {\n @Override\n public void onResponse(Call<ResBase> call, Response<ResBase> response) {\n dismissProgressDialog();\n ResBase resBase = response.body();\n if (resBase != null) {\n if (resBase.getSuccess() == ServiceConstants.SUCCESS) {\n ToastUtils.showShortToast(SettingsActivity.this, resBase.getErrstr());\n etNewPassword.setText(\"\");\n etOldPassword.setText(\"\");\n tvChangePassword.setSelected(false);\n llChangePassword.setVisibility(View.GONE);\n SocialNetworkUtils.getInstance(SettingsActivity.this).logoutFromFb(SettingsActivity.this, SimpleFacebook.getInstance(SettingsActivity.this));\n mAppSharedPreference.clearEditor();\n Intent intent = new Intent(SettingsActivity.this, TutorialActivity.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(intent);\n finish();\n } else {\n ToastUtils.showShortToast(SettingsActivity.this, resBase.getErrstr());\n }\n } else {\n ToastUtils.showShortToast(SettingsActivity.this, R.string.err_network_connection);\n }\n }\n\n @Override\n public void onFailure(Call<ResBase> call, Throwable t) {\n dismissProgressDialog();\n ToastUtils.showShortToast(SettingsActivity.this, R.string.err_network_connection);\n }\n });\n }", "public void savePasswordChange(ActionEvent actionEvent) throws SQLException {\n if (validPasswordInput()) {\n DatabaseManager.passwordChange(user.getDatabaseConnection(), user.getUser(), firstPasswordField.getText());\n displayMessage(messagePane,\"Password is changed\", false);\n closeChangePasswordPane(actionEvent);\n }\n }", "void setUserPasswordHash(String passwordHash);", "private void setChangePasswordRsp(ChangePassword.Rsp value) {\n if (value == null) {\n throw new NullPointerException();\n }\n rsp_ = value;\n rspCase_ = 15;\n }", "public void setUserPassword(String newPassword) {\n profile.setPassword(currentUser, newPassword);\n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n response.setContentType(\"text/html;charset=UTF-8\");\r\n \r\n //grab form and session variables\r\n session = request.getSession(false);\r\n email = (String) session.getAttribute(\"email\");\r\n user_id = (int) session.getAttribute(\"user_id\");\r\n oldPassword = request.getParameter(\"oldPass\");\r\n newPassword = request.getParameter(\"newPass\");\r\n newPasswordConfirm = request.getParameter(\"newPassConfirm\");\r\n \r\n if(checkPasswordForm(request)) {//check if inputs are good\r\n if(changePassword()) { //if password updates successfully\r\n message = \"Password updated successfully.\";\r\n messageType = \"SystemMessage\";\r\n redirectPage = \"account.jsp\";\r\n } else { //if password fails to update\r\n message = \"Password failed to update. Try again later.\";\r\n messageType = \"ErrorMessage\";\r\n redirectPage = \"account.jsp\";\r\n }\r\n } else if (lockout) {\r\n message = \"You have been locked out of your account.\";\r\n messageType = \"ErrorMessage\";\r\n redirectPage = \"logout.jsp\";\r\n } else {\r\n message = \"Bad form input detected. Correct all fields and try again.\";\r\n messageType = \"ErrorMessage\";\r\n redirectPage = \"account.jsp\";\r\n }\r\n redirectUser(request, response, messageType, redirectPage, message); \r\n }", "private void updateUserWithNewPassword() throws ClassNotFoundException, NoSuchAlgorithmException{\n\t\tint currentPositionInTableView = usersTable.getSelectionModel().getSelectedIndex(); // zapamiętaj bieżące podświetlenie w tabeli\n\t\tif ((isAllFieldsAreFull()) \n\t\t\t\t&& (isTheSamePassword())\n\t\t\t\t&& (isLoginUnique(usersTable.getSelectionModel().getSelectedItem().getId()))){\t\n\t\t\t\t\tcurrentPositionInTableView = usersTable.getSelectionModel().getSelectedIndex(); // zapamiętaj bieżące podświetlenie w tabeli\n\t\t\t\t\tMain.getMMUser().update(\t\t\t\t \n\t\t\t\t\t\t\tnew User(\n\t\t\t\t\t\t\t\t\tusersTable.getSelectionModel().getSelectedItem().getId(),\n\t\t\t\t\t\t\t\t\tuserLoginField.getText(), \n\t\t\t\t\t\t\t\t\tHelper.encryptPassword(userPasswordField.getText()), \n\t\t\t\t\t\t\t\t\tuserNameField.getText(), \n\t\t\t\t\t\t\t\t\tuserLastNameField.getText(), \n\t\t\t\t\t\t\t\t\tpermission,\n\t\t\t\t\t\t\t\t\teditingCheck.isSelected(),\n\t\t\t\t\t\t\t\t\treminderCheck.isSelected()));\n\t\t\t\t\t// pokaż aktualny stan bazy pracowników\n\t\t\t\t\treadUsers();\n\t\t\t\t\tshowUsers();\n\t\t\t\t\tusersTable.getSelectionModel().select(currentPositionInTableView); // ustaw podswietlenie na bieżący wiersz\n\t\t\t\t\tnew AlertDialog(\"Operacja zakończona\", \"Zaktualizowano dane\", AlertType.INFORMATION);\n\t\t\t\t\tchangePassword = false;\n\t\t}\n\t}", "@Override\n\tpublic boolean changePassword(String lEmail, String lPassword) {\n\t\treturn dao.changePassword(lEmail, lPassword);\n\t}", "private void updateData() {\n user.setNewPassword(newPassword.getText().toString());\n user.setPassword(password.getText().toString());\n\n FirebaseUser firebaseUser = mAuth.getCurrentUser();\n\n if (firebaseUser == null) {\n return;\n }\n\n firebaseUser\n .updatePassword(user.getNewPassword())\n .addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n\n if (task.isSuccessful()) {\n newPassword.setText(Util.EMPTY);\n password.setText(Util.EMPTY);\n\n Toast.makeText(\n getContext(), getResources().getString(R.string.password_updated),\n Toast.LENGTH_SHORT\n ).show();\n }\n }\n })\n .addOnFailureListener((Activity) getContext(), new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n FirebaseCrash.report(e);\n Toast.makeText(\n getContext(),\n e.getMessage(),\n Toast.LENGTH_SHORT\n ).show();\n }\n });\n }", "@POST\n\t@Path(\"/password-change\")\n\t@Consumes(MediaType.APPLICATION_JSON)\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic Response changeUserPassword(PasswordChangeObject passwordChangeObject){\n\t\tAdminLogins adminLogins = adminLoginsDao.findAdminLoginsByEmail(passwordChangeObject.getEmail());\n\n\t\tif(adminLogins == null){\n\t\t\treturn Response.status(Response.Status.NOT_FOUND).\n\t\t\t\t\tentity(\"Email doesn't exist: \" + passwordChangeObject.getEmail()).build();\n\t\t}\n\n boolean matched = false;\n try{\n \tString reqPass = passwordChangeObject.getOldPassword();\n \t\tString saltStr = passwordChangeObject.getEmail().substring(0, passwordChangeObject.getEmail().length()/2);\n \t\tString originalPassword = reqPass+saltStr;\n \tmatched = SCryptUtil.check(originalPassword,adminLogins.getAdminPassword());\n } catch (Exception e){\n \treturn Response.status(Response.Status.UNAUTHORIZED).\n\t\t\t\t\tentity(\"Incorrect Password\").build();\n }\n \n\t\tif(matched){\n\t\t\tString newPass = passwordChangeObject.getNewPassword();\n \t\tString saltnewStr = passwordChangeObject.getEmail().substring(0, passwordChangeObject.getEmail().length()/2);\n \t\tString updatePassword = newPass+saltnewStr;\n String generatedSecuredPasswordHash = SCryptUtil.scrypt(updatePassword, 16, 16, 16);\n adminLogins.setAdminPassword(generatedSecuredPasswordHash);\n\t\t\tadminLoginsDao.updateAdminLogin(adminLogins);\n\n\t\t\treturn Response.status(Response.Status.OK).\n\t\t\t\t\tentity(\"Password Changed Succesfully!\" ).build();\n\t\t}else{\n\t\t\treturn Response.status(Response.Status.BAD_REQUEST).\n\t\t\t\t\tentity(\"Incorrect Password: \").build();\n\t\t}\n\t}", "private void ensureChangePasswd(String userid, String rslMsg)\n/* */ {\n/* 252 */ WebContext webContext = LfwRuntimeEnvironment.getWebContext();\n/* 253 */ HttpSession session = null;\n/* 254 */ String challlid = UUID.randomUUID().toString();\n/* 255 */ if (webContext != null) {\n/* 256 */ HttpServletRequest httpServRequest = webContext.getRequest();\n/* 257 */ if (httpServRequest != null) {\n/* 258 */ session = httpServRequest.getSession();\n/* 259 */ if (session != null) {\n/* 260 */ session.setAttribute(\"USER_SESSION_ID\", userid);\n/* */ }\n/* */ }\n/* */ }\n/* 264 */ StringBuffer urlBuf = new StringBuffer();\n/* 265 */ urlBuf.append(\"/portal/app/mockapp/passwordmng?model=nc.uap.portal.mng.pwdmng.PasswordManagerModel\");\n/* 266 */ urlBuf.append(\"&otherPageUniqueId=\" + LfwRuntimeEnvironment.getWebContext().getWebSession().getWebSessionId());\n/* 267 */ AppLifeCycleContext.current().getApplicationContext().popOuterWindow(urlBuf.toString(), rslMsg, \"480\", \"280\", \"TYPE_DIALOG\");\n/* */ }", "@Override\n\tpublic int updateUserPwd(User user) {\n\t\treturn this.userDao.updateUserPwd(user);\n\t}", "@Override\n\tpublic void modPasswd(String tenantId, String serverId, String userName,\n\t\t\tString passwd, String type) throws Exception {\n\t\t\n\t}", "public void changePassword(String username, String newPassword, String oldPassword) {\n\t\tm_tcpSession.write(\"c\" + username + \",\" + (getPasswordHash(username, newPassword)) + \",\" + (getPasswordHash(username, oldPassword)));\n\t}", "private String processChangePassword(\n\t\t\tChangePasswordFormBean changePasswordFormBean,\n\t\t\tHttpServletRequest request, boolean isLoggedInUser)\n\t\t\tthrows Exception {\n\t\tlogger.info(\" Started...\");\n\t\tHttpSession session = request.getSession();\n\t\tUserSessionContext userSessionContext = (UserSessionContext) session\n\t\t\t\t.getAttribute(Constants.AUTHENTICATED_USER);\n\t\tlogger.info(\" Request to change Password by user \"\n\t\t\t\t+ userSessionContext.getId());\n\t\tActionErrors errors = new ActionErrors();\n\t\tAuthenticationService authenticationService = new AuthenticationServiceImpl();\n\t\tChangePasswordDto changePasswordDto = new ChangePasswordDto();\n\t\tDPCreateAccountService accountService = new DPCreateAccountServiceImpl();\n\t\ttry {\n\t\t\t\n\t\t\t/* call to check junk password in new or confirm new password */\n\t\t\tchangePasswordDto.setNewPassword(changePasswordFormBean.getNewPassword());\n\t\t\tchangePasswordDto.setOldPassword(changePasswordFormBean.getOldPassword());\n\t\t\tchangePasswordDto.setConfirmPassword(changePasswordFormBean.getConfirmPassword());\n\t\t\tauthenticationService.validateChangePassword(changePasswordDto);\n//\t\t\tset the requesting system IP Address as cell ID\n\t\t\tchangePasswordDto.setCellId(request.getRemoteAddr());\n\t\t\tGSDService gSDService = new GSDService();\n\t\t\t/* call gsdService to check password history and gsd compliance. */\n\t\t\tlogger.info(\" Calling GSD to validate change password.\");\n\t\t\tif (userSessionContext.getLoginName() == null) {\n\t\t\t\tuserSessionContext.setLoginName(changePasswordFormBean\n\t\t\t\t\t\t.getLoginName());\n\n\t\t\t}\n//\t\t\taccountService.checkConsectiveChars(userSessionContext.getLoginName(), \n//\t\t\t\t\tchangePasswordFormBean.getNewPassword(), Constants.consecutiveChars);\n//\t\t\t check for special, lower case and upper case characters.\n\t\t\taccountService.checkChars(changePasswordFormBean.getNewPassword());\t\t\t\n\t\t\tgSDService.validateChangePwd(userSessionContext.getLoginName(),\n\t\t\t\t\tchangePasswordFormBean.getNewPassword(),\n\t\t\t\t\tchangePasswordFormBean.getOldPassword());\n\t\t\t\n\t\t\t\n\t\t\tlogger.info(\" GSD validation successful for change password.\");\n\t\t\t/* Encrypt passwords entered by the user */\n\t\t\tIEncryption encrypt = new Encryption();\n\t\t\tString newDigest = encrypt.generateDigest(changePasswordFormBean\n\t\t\t\t\t.getNewPassword());\n\t\t\tString oldDigest = encrypt.generateDigest(changePasswordFormBean\n\t\t\t\t\t.getOldPassword());\n\t\n\t\t\t/* call changePassword method of ChangePasswordService */\n\t\t\tauthenticationService.changePassword(userSessionContext.getId(),\n\t\t\t\t\toldDigest, newDigest);\n\t\t\t\n\t\t\t\n\n\t\t\t/* show message for successful password change */\n\t\t\terrors.add(\"message\", new ActionError(\n\t\t\t\t\t\"message.changepassword.success\"));\n\t\t\tsaveErrors(request, errors);\n\t\t\tlogger.info(\" Change password successful.\");\n\n\t\t\tif (isLoggedInUser) {\n\t\t\t\tlogger.info(\" Password updated successfully redirect to :\"\n\t\t\t\t\t\t+ CHANGE_PASSWD_SUCCESS);\n\t\t\t\treturn CHANGE_PASSWD_SUCCESS;\n\t\t\t} else {\n\n\t\t\t\tlogger.info(\" Password updated successfully redirect to :\"\n\t\t\t\t\t\t+ NON_CONTEXT_CHANGE_PASSWD_SUCCESS);\n\n\t\t\t\treturn NON_CONTEXT_CHANGE_PASSWD_SUCCESS;\n\t\t\t}\n\n\t\t} catch (ValidationException valExp) {\n\t\t\tvalExp.printStackTrace();\n\t\t\t\n//\t\t\tif(valExp.getMessage().equalsIgnoreCase(\"checkConsectiveChars\")){\n//\t\t\t\terrors.add(\"validationerror\", new ActionError(\n//\t\t\t\t\"checkConsectiveChars\"));\n//\t\t\t}\n\t\t\tif(valExp.getMessage().equalsIgnoreCase(\"noUppercase\")){\n\t\t\t\terrors.add(\"validationerror\", new ActionError(\n\t\t\t\t\"noUppercase\"));\n\t\t\t}\n\t\t\tif(valExp.getMessage().equalsIgnoreCase(\"noSpecialCharacter\")){\n\t\t\t\terrors.add(\"validationerror\", new ActionError(\n\t\t\t\t\"noSpecialCharacter\"));\n\t\t\t}\n\t\t\tif(valExp.getMessage().equalsIgnoreCase(\"noLowerCase\")){\n\t\t\t\terrors.add(\"validationerror\", new ActionError(\n\t\t\t\t\"noLowerCase\"));\n\t\t\t}\t\t\t\n\t\t\tif (\"msg.security.id02\".equalsIgnoreCase(valExp.getMessageId())) {\n\t\t\t\terrors.add(\"validationerror\", new ActionError(\n\t\t\t\t\t\t\"msg.security.id02\"));\n\t\t\t\treturn PASSWORD_EXPIRED;\n\n\t\t\t} else {\n\t\t\t\tString application_user = ResourceReader.getWebResourceBundleValue(\"application.user\");\n\t\t\t\terrors.add(\"validationerror\", new ActionError(valExp\n\t\t\t\t\t\t.getMessageId(), application_user));\n\t\t\t}\n\t\t} catch (VirtualizationServiceException virtualSerExp) {\n\t\t\tvirtualSerExp.printStackTrace();\n\t\t\t\t\t\t\tlogger.error(\" VirtualizationException occured for \"\n\t\t\t\t\t+ userSessionContext.getId());\n\t\t\terrors.add(\"error\", new ActionError(virtualSerExp.getMessage()));\n\t\t\tsaveErrors(request, errors);\n\t\t}\n\t\tif (!errors.isEmpty()) {\n\t\t\tsaveErrors(request, errors);\n\t\t}\n\t\tif (isLoggedInUser) {\n\t\t\tlogger.info(\" Password updation failed redirect to :\"\n\t\t\t\t\t+ CHANGE_PASSWD_FAILURE);\n\t\t\tlogger.info(\" Executed... \");\n\t\t\treturn CHANGE_PASSWD_FAILURE;\n\n\t\t} else {\n\n\t\t\tlogger.info(\" Password updation failed redirect to :\"\n\t\t\t\t\t+ NON_CONTEXT_CHANGE_PASSWD_FAILURE);\n\t\t\tlogger.info(\" Executed... \");\n\t\t\treturn NON_CONTEXT_CHANGE_PASSWD_FAILURE;\n\n\t\t}\n\n\t}", "@Override\r\n\tpublic boolean updatepwd(User user) {\n\t\tString sql = \"update user set user_psw = ? where user_id = ?\";\r\n\t\tlist.clear();\r\n\t\tlist.add(user.getUser_psw());\r\n\t\tlist.add(user.getUser_id());\r\n\t\treturn BaseDaoImpl.updateInfo(sql, list);\r\n\t}", "private void editPassword() {\n\t\t// Which password entry has been selected?\n\t\tint iRow = passwordsTable.getSelectedRow();\n\t\tif (iRow == -1) { // no row currently selected\n\t\t\treturn;\n\t\t}\n\n\t\t// Get current values for service URI, username and password\n\t\tURI serviceURI = URI.create((String) passwordsTable.getValueAt(iRow, 1)); // current entry's service URI\n\n\t\tString username = (String) passwordsTable.getValueAt(iRow, 2); // current entry's username\n\n\t\t/*\n\t\t * Because the password column is not visible we call the getValueAt\n\t\t * method on the table model rather than at the JTable\n\t\t */\n\t\tString password = (String) passwordsTable.getModel()\n\t\t\t\t.getValueAt(iRow, 4); // current entry's password value\n\n\t\twhile (true) { // loop until user cancels or enters everything correctly\n\t\t\t// Let the user edit service URI, username or password of a password entry\n\t\t\tNewEditPasswordEntryDialog editPasswordDialog = new NewEditPasswordEntryDialog(\n\t\t\t\t\tthis, \"Edit username and password for a service\", true,\n\t\t\t\t\tserviceURI, username, password, credManager);\n\n\t\t\teditPasswordDialog.setLocationRelativeTo(this);\n\t\t\teditPasswordDialog.setVisible(true);\n\n\t\t\t// New values\n\t\t\tURI newServiceURI = editPasswordDialog.getServiceURI(); // get new service URI\n\t\t\tString newUsername = editPasswordDialog.getUsername(); // get new username\n\t\t\tString newPassword = editPasswordDialog.getPassword(); // get new password\n\n\t\t\tif (newPassword == null) // user cancelled - any of the above three\n\t\t\t\t// fields is null\n\t\t\t\t// do nothing\n\t\t\t\treturn;\n\n\t\t\t// Is anything actually modified?\n\t\t\tboolean isModified = !serviceURI.equals(newServiceURI)\n\t\t\t\t\t|| !username.equals(newUsername)\n\t\t\t\t\t|| !password.equals(newPassword);\n\n\t\t\tif (isModified) {\n\t\t\t\t/*\n\t\t\t\t * Check if a different password entry with the new URI (i.e.\n\t\t\t\t * alias) already exists in the Keystore We ask this here as the\n\t\t\t\t * user may wish to overwrite that other password entry.\n\t\t\t\t */\n\n\t\t\t\t// Get list of URIs for all passwords in the Keystore\n\t\t\t\tList<URI> serviceURIs = null;\n\t\t\t\ttry {\n\t\t\t\t\tserviceURIs = credManager\n\t\t\t\t\t\t\t.getServiceURIsForAllUsernameAndPasswordPairs();\n\t\t\t\t} catch (CMException cme) {\n\t\t\t\t\tshowMessageDialog(this, \"Failed to get service URIs for all username and password pairs \"\n\t\t\t\t\t\t\t+ \"to check if the modified entry already exists\",\n\t\t\t\t\t\t\tERROR_TITLE,\n\t\t\t\t\t\t\tERROR_MESSAGE);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\t// If the modified service URI already exists and is not the\n\t\t\t\t// currently selected one\n\t\t\t\tif (!newServiceURI.equals(serviceURI)\n\t\t\t\t\t\t&& serviceURIs.contains(newServiceURI)) {\n\t\t\t\t\tint answer = showConfirmDialog(\n\t\t\t\t\t\t\tthis,\n\t\t\t\t\t\t\t\"The Keystore already contains username and password pair for the entered service URI.\\n\"\n\t\t\t\t\t\t\t\t\t+ \"Do you want to overwrite it?\",\n\t\t\t\t\t\t\tALERT_TITLE, YES_NO_OPTION);\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (answer == YES_OPTION) {\n\t\t\t\t\t\t\t/*\n\t\t\t\t\t\t\t * Overwrite that other entry entry and save the new\n\t\t\t\t\t\t\t * one in its place. Also remove the current one\n\t\t\t\t\t\t\t * that we are editing - as it is replacing the\n\t\t\t\t\t\t\t * other entry.\n\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\tcredManager\n\t\t\t\t\t\t\t\t\t.deleteUsernameAndPasswordForService(serviceURI);\n\t\t\t\t\t\t\tcredManager.addUsernameAndPasswordForService(\n\t\t\t\t\t\t\t\t\tnew UsernamePassword(newUsername,\n\t\t\t\t\t\t\t\t\t\t\tnewPassword), newServiceURI);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (CMException cme) {\n\t\t\t\t\t\tshowMessageDialog(\n\t\t\t\t\t\t\t\tthis,\n\t\t\t\t\t\t\t\t\"Failed to update the username and password pair in the Keystore\",\n\t\t\t\t\t\t\t\tERROR_TITLE, ERROR_MESSAGE);\n\t\t\t\t\t}\n\t\t\t\t\t// Otherwise show the same window with the entered\n\t\t\t\t\t// service URI, username and password values\n\t\t\t\t} else\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (!newServiceURI.equals(serviceURI))\n\t\t\t\t\t\t\tcredManager\n\t\t\t\t\t\t\t\t\t.deleteUsernameAndPasswordForService(serviceURI);\n\t\t\t\t\t\tcredManager.addUsernameAndPasswordForService(\n\t\t\t\t\t\t\t\tnew UsernamePassword(newUsername, newPassword), newServiceURI);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} catch (CMException cme) {\n\t\t\t\t\t\tshowMessageDialog(\n\t\t\t\t\t\t\t\tthis,\n\t\t\t\t\t\t\t\t\"Failed to update the username and password pair in the Keystore\",\n\t\t\t\t\t\t\t\tERROR_TITLE, ERROR_MESSAGE);\n\t\t\t\t\t}\n\t\t\t} else // nothing actually modified\n\t\t\t\tbreak;\n\t\t}\n\t}", "User resetPassword(User user);", "@RequestMapping(value = \"updatepassword\", method = RequestMethod.POST)\n public String processUpdatePassword(HttpServletRequest request,\n @RequestParam(\"email\") String userEmail,\n Model model, String password, String verifypassword,\n User user) {\n if (userService.isUserAlreadyPresent(user) == false) {\n model.addAttribute(\"error\", \"User not found\");\n }\n\n boolean passwordsMatch = true;\n if (password == null || verifypassword == null\n || !password.equals(verifypassword)) {\n passwordsMatch = false;\n model.addAttribute(\"verifyError\", \"Passwords must match\");\n }\n\n if (passwordsMatch) {\n userService.changeUserPassword(user, password);\n return \"redirect:/login\";\n }\n model.addAttribute(\"title\", \"Reset Password\");\n return \"updatepassword\";\n }", "@Override\r\n\tpublic int changePw(HashMap<String, String> map) {\n\t\treturn mDAO.changePw(sqlSession, map);\r\n\t}", "public void setPassword(String pw)\n {\n this.password = pw;\n }", "public void setPassword(String password)\n {\n _password = password;\n }", "private void changePasswordListener() {\n String newPassword = changePasswordField.getText().toString();\n if (newPassword.length() < MIN_PASSWORD_LENGTH) {\n Toast.makeText(ProfileSettingsActivity.this, INVALID_PASSWORD_ERROR, Toast.LENGTH_LONG).show();\n } else {\n changePassword(newPassword);\n }\n }", "@Override\r\n\tpublic void updatePassword(Integer id, String password) {\n\t\t\r\n\t}", "public void changePassword(String email, String pass) {\n\tStudentDAO studentDAO=new StudentDAO();\n\tstudentDAO.changePassword(email,pass);\n\t\n}", "private String processResetIPassword(\n\t\t\tChangePasswordFormBean changePasswordFormBean,\n\t\t\tHttpServletRequest request)\n\t\t\tthrows Exception {\n\t\tlogger.info(\" Started...\");\n\t\tHttpSession session = request.getSession();\n\t\tUserSessionContext userSessionContext = (UserSessionContext) session\n\t\t\t\t.getAttribute(Constants.AUTHENTICATED_USER);\n\t\tlogger.info(\" Request to reset Password by user \"\n\t\t\t\t+ userSessionContext.getId());\n\t\tActionErrors errors = new ActionErrors();\n\t\ttry {\n\t\t\t\t\n\t\t\tGSDService gSDService = new GSDService();\n\t\t\t/* call gsdService to check password history and gsd compliance. */\n\t\t\tlogger.info(\" Calling GSD to validate reset password.\");\n\t\t\n\t\t\tgSDService.validateChangePwd(changePasswordFormBean.getLoginName(),\n\t\t\t\t\tchangePasswordFormBean.getNewPassword(),\n\t\t\t\t\tchangePasswordFormBean.getOldPassword());\n\t\t\tlogger.info(\" GSD validation successful for reset password.\");\n\t\t\t/* Encrypt passwords entered by the user */\n\t\t\tIEncryption encrypt = new Encryption();\n\t\t\tString newDigest = encrypt.generateDigest(changePasswordFormBean\n\t\t\t\t\t.getNewPassword());\n\t\t\tString oldDigest = encrypt.generateDigest(changePasswordFormBean\n\t\t\t\t\t.getOldPassword());\n\t\t\tAuthenticationService authenticationService = new AuthenticationServiceImpl();\n\t\t\t\n\t\t\t/* call changePassword method of ChangePasswordService */\n\t\t\tauthenticationService.changePassword(userSessionContext.getId(),\n\t\t\t\t\toldDigest, newDigest);\n\t\t\t\n\t\t\t/* show message for successful password change */\n\t\t\terrors.add(\"message\", new ActionError(\n\t\t\t\t\t\"message.changepassword.success\"));\n\t\t\tsaveErrors(request, errors);\n\t\t\tlogger.info(\" Change password successful.\");\n\n\t\t\t\n\n\t\t} catch (ValidationException valExp) {\n\t\t\tif (\"msg.security.id02\".equalsIgnoreCase(valExp.getMessageId())) {\n\t\t\t\terrors.add(\"validationerror\", new ActionError(\n\t\t\t\t\t\t\"msg.security.id02\"));\n\t\t\t\treturn PASSWORD_EXPIRED;\n\n\t\t\t} else {\n\t\t\t\tString application_user = ResourceReader.getWebResourceBundleValue(\"application.user\");\n\t\t\t\terrors.add(\"validationerror\", new ActionError(valExp\n\t\t\t\t\t\t.getMessageId(), application_user));\n\t\t\t}\n\t\t} catch (VirtualizationServiceException virtualSerExp) {\n\t\t\tlogger.error(\" VirtualizationException occured for \"\n\t\t\t\t\t+ userSessionContext.getId());\n\t\t\terrors.add(\"error\", new ActionError(virtualSerExp.getMessage()));\n\t\t\tsaveErrors(request, errors);\n\t\t}\n\t\tif (!errors.isEmpty()) {\n\t\t\tsaveErrors(request, errors);\n\t\t}\n\t\treturn \"\";\n\n\t}", "@PutMapping(\"/password\")\n @CrossOrigin\n public ResponseEntity<?> updatePassword(@RequestParam String oldPassword, @RequestParam String newPassword, @RequestHeader String accessToken) {\n //Converting oldPassword and newPassword into Sha 256\n String oldPwdSha = Hashing.sha256()\n .hashString(oldPassword, Charsets.US_ASCII)\n .toString();\n String newPwdSha = Hashing.sha256()\n .hashString(newPassword, Charsets.US_ASCII)\n .toString();\n if (userAuthTokenService.isUserLoggedIn(accessToken) == null) {\n return new ResponseEntity<>(\"Please Login first to access this endpoint!\", HttpStatus.UNAUTHORIZED);\n } else if (userAuthTokenService.isUserLoggedIn(accessToken).getLogoutAt() != null) {\n return new ResponseEntity<>(\"You have already logged out. Please Login first to access this endpoint!\", HttpStatus.UNAUTHORIZED);\n } else {\n int userId = userAuthTokenService.getUserId(accessToken);\n if (!userService.getUserById(userId).getPassword().equalsIgnoreCase(oldPwdSha)) {\n return new ResponseEntity<>(\"Your password did not match to your old password!\", HttpStatus.BAD_REQUEST);\n } else if (!isPasswordStrong(newPassword)) { \n return new ResponseEntity<>(\"Weak password!\", HttpStatus.BAD_REQUEST);\n } else { \n userService.updatePwd(newPwdSha, userId);\n return new ResponseEntity<>(\"Password updated successfully!\", HttpStatus.OK);\n }\n }\n }", "public static void changePassword(String password) {\n try {\n buildSocket();\n ClientService.sendMessageToServer(connectionToServer, ClientService.changePassword(password));\n closeSocket();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "void updateMasterPassword(String password, User userInSession) throws BusinessException;", "public void setPassword(String password)\r\n/* 26: */ {\r\n/* 27:42 */ this.password = password;\r\n/* 28: */ }", "public void setPassword(String newPassword) {\n this.password = newPassword;\n \n //make the changes in the database\n db.updateUserProperty(username, Property.PASSWORD, newPassword);\n }", "@Override\n\tpublic User changePasswordUser(User user) throws CustomException {\n\t\tlog.info(\"change password!\");\n\t\tUser existingUser=userRepository.findByLoginId(user.getLoginId());\n\t\tif(existingUser!=null) {\n\t\t\texistingUser.setPassword(user.getPassword());\n\t\t\treturn userRepository.save(existingUser);\n\t\t}else {\n\t\t\tthrow new CustomException(\"User doesnt exists.Please Register to login\");\n\t\t}\n\t}", "public ActionForward changeMPassword(ActionMapping mapping,\n\t\t\tActionForm form, HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws Exception {\n\t\tlogger.info(\" Started... \");\n\n\t\tChangePasswordFormBean changePasswordFormBean = (ChangePasswordFormBean) form;\n\t\tActionErrors errors = new ActionErrors();\n\t\tHttpSession session = request.getSession();\n\t\tUserSessionContext userSessionContext = (UserSessionContext) session\n\t\t\t\t.getAttribute(Constants.AUTHENTICATED_USER);\n\n\t\ttry {\n\t\t\t\n\t\t\t\n\t\t\t/* Encrypt passwords entered by the user */\n\t\t\tIEncryption encrypt = new Encryption();\n\t\t\tString newDigest = encrypt.generateDigest(changePasswordFormBean\n\t\t\t\t\t.getNewPassword());\n\t\t\tString oldDigest = encrypt.generateDigest(changePasswordFormBean\n\t\t\t\t\t.getOldPassword());\n\t\t\tChangePasswordMessageBean changePasswordMessageBean = new ChangePasswordMessageBean();\n\t\t\t\n\t\t\tchangePasswordMessageBean.setRequestTime(Utility.getRequestTimeDateFormat() );\n\t\t\t// in case of sync change m password\n\t\t\tif (!changePasswordFormBean.getAsync()) {\n\t\t\t\tAuthenticationService authenticationService = new AuthenticationServiceImpl();\n\n\t\t\t\t/* call changeMPassword method of ChangePasswordService */\n\t\t\t\tlogger.info(\" Request to change M-Password by Account \"\n\t\t\t\t\t\t+ userSessionContext.getId());\n\t\t\t\tSequenceService sequenceService = new SequenceServiceImpl();\n\t\t\t\tChangePasswordDto changePasswordDto = new ChangePasswordDto();\n\t\t\t\tchangePasswordDto\n\t\t\t\t\t\t.setSourceAccountId(userSessionContext.getId());\n\t\t\t\tchangePasswordDto.setOldDigest(oldDigest);\n\t\t\t\tchangePasswordDto.setNewDigest(newDigest);\n\t\t\t\tchangePasswordDto.setTransactionId(sequenceService\n\t\t\t\t\t\t.getNextTransID());\n\t\t\t\tchangePasswordDto.setRequestType(RequestType.CHANGEMPWD);\n\t\t\t\tchangePasswordDto.setChannelType(ChannelType.WEB);\n\t\t\t\tchangePasswordDto\n\t\t\t\t\t\t.setTransactionStatus(TransactionStatus.PENDING);\n\t\t\t\tchangePasswordDto.setTransactionState(TransactionState.WEB);\n//\t\t\t\tset the requesting system IP Address as cell ID\n\t\t\t\tchangePasswordDto.setCellId(request.getRemoteAddr());\n\t\t\t\tauthenticationService.changeMPassword(changePasswordDto);\n\n\t\t\t\t/* show message for successful M-password change */\n\t\t\t\terrors.add(\"message\", new ActionError(\n\t\t\t\t\t\t\"message.changempassword.success\"));\n\t\t\t\tsaveErrors(request, errors);\n\t\t\t}\n\t\t\t// in case of async change m password\n\t\t\telse {\n\n\t\t\t\tAccountService accountService = new AccountServiceImpl();\n\t\t\t\tAccount account = accountService.getAccount(userSessionContext\n\t\t\t\t\t\t.getId());\n\t\t\t\t// Generate Transaction ID\n\t\t\t\tSequenceService seqService = new SequenceServiceImpl();\n\n\t\t\t\tchangePasswordMessageBean.setTransactionId(seqService\n\t\t\t\t\t\t.getNextTransID());\n\t\t\t\tchangePasswordMessageBean.setChannelType(ChannelType.WEB);\n\t\t\t\tchangePasswordMessageBean.setPassword(oldDigest);\n\t\t\t\tchangePasswordMessageBean.setNewMPassword(newDigest);\n\t\t\t\tchangePasswordMessageBean\n\t\t\t\t\t\t.setTransactionStatus(TransactionStatus.SUCCESS);\n\t\t\t\tchangePasswordMessageBean.setRequesterMobileNo(account\n\t\t\t\t\t\t.getMobileNumber());\n//\t\t\t\tset the requesting system IP Address as cell ID\n\t\t\t\tchangePasswordMessageBean.setCellId(request.getRemoteAddr());\n\t\t\t\tchangePasswordMessageBean.setSourceAccountId(account\n\t\t\t\t\t\t.getAccountId());\n\t\t\t\tif (!Utility.putToQ(changePasswordMessageBean, connBeanAcc)) {\n\t\t\t\t\t// Print the response back to the servlet\n\t\t\t\t\tlogger.info(\"Message processing failed.\");\n\t\t\t\t\terrors.add(\"genericError\", new ActionError(\n\t\t\t\t\t\t\tExceptionCode.ERROR_TRANSACTION_FAILED));\n\t\t\t\t} else {\n\t\t\t\t\tlogger\n\t\t\t\t\t\t\t.info(\"::Message put Successfully in Q with parameters::\\nSourceMobileNumber=\"\n\t\t\t\t\t\t\t\t\t+ changePasswordMessageBean\n\t\t\t\t\t\t\t\t\t\t\t.getRequesterMobileNo()\n\t\t\t\t\t\t\t\t\t+ \"\\n Transaction Id = \"\n\t\t\t\t\t\t\t\t\t+ changePasswordMessageBean\n\t\t\t\t\t\t\t\t\t\t\t.getTransactionId());\n\n\t\t\t\t\terrors.add(\"genericError\", new ActionError(\n\t\t\t\t\t\t\tConstants.SUCCESS_TRANSACTION,\n\t\t\t\t\t\t\tchangePasswordMessageBean.getTransactionId()));\n\t\t\t\t}\n\t\t\t}\n\t\t\tlogger.info(\" updation successful.\");\n\t\t} catch (EncryptionException encrypt) {\n\n\t\t\tlogger.error(\n\t\t\t\t\t\" M-Password updation failed due to encryption error redirect to :\"\n\t\t\t\t\t\t\t+ CHANGE_MPASSWD_FAILURE, encrypt);\n\n\t\t\t/*\n\t\t\t * show message for m-password change failure due to encryption\n\t\t\t * exception in gsd\n\t\t\t */\n\t\t\terrors.add(\"validationerror\", new ActionError(\n\t\t\t\t\t\"message.changempassword.failure\"));\n\t\t\tsaveErrors(request, errors);\n\t\t\tif (changePasswordFormBean.getAsync()) {\n\t\t\t\treturn mapping.findForward(INIT_MPASSWORD_ASYNC);\n\t\t\t} else {\n\t\t\t\treturn mapping.findForward(CHANGE_MPASSWD_FAILURE);\n\t\t\t}\n\t\t} catch (VirtualizationServiceException virtualServExp) {\n\t\t\tlogger.error(\" M-Password updation failed redirect to :\"\n\t\t\t\t\t+ CHANGE_MPASSWD_FAILURE);\n\n\t\t\terrors.add(\"error\", new ActionError(virtualServExp.getMessage()));\n\t\t\t/* show message for m-password change failure */\n\t\t\terrors.add(\"message\", new ActionError(\n\t\t\t\t\t\"message.changempassword.failure\"));\n\t\t\tsaveErrors(request, errors);\n\t\t\tif (changePasswordFormBean.getAsync()) {\n\t\t\t\treturn mapping.findForward(INIT_MPASSWORD_ASYNC);\n\t\t\t} else {\n\t\t\t\treturn mapping.findForward(CHANGE_MPASSWD_FAILURE);\n\t\t\t}\n\t\t}\n\n\t\tlogger.info(\" Executed... \");\n\t\tsaveErrors(request, errors);\n\t\tif (changePasswordFormBean.getAsync()) {\n\t\t\treturn mapping.findForward(INIT_MPASSWORD_ASYNC);\n\t\t} else {\n\t\t\treturn mapping.findForward(CHANGE_MPASSWD_SUCCESS);\n\t\t}\n\t}", "public void changePassword(View v){\n Intent intent = new Intent();\n intent.setClass(ProfileModify.this,ChangePassword.class);\n startActivity(intent);\n }", "private void changePassword(final String password) throws ParseException{\n executeRequest((BoxRequestItem)getCreatedSharedLinkRequest().setPassword(password));\n }" ]
[ "0.7848946", "0.73261833", "0.72362995", "0.7068718", "0.69921046", "0.69286525", "0.69058174", "0.6901659", "0.6884648", "0.6883201", "0.68800175", "0.68779004", "0.686698", "0.6836067", "0.6835074", "0.6823319", "0.68187964", "0.6817294", "0.6756161", "0.6724872", "0.6670896", "0.66704977", "0.6669454", "0.66693085", "0.66549766", "0.66314733", "0.66288894", "0.6596085", "0.652974", "0.65265495", "0.6491934", "0.6464818", "0.6464387", "0.64569014", "0.6451121", "0.6424415", "0.6424415", "0.6424415", "0.6417395", "0.6415417", "0.6412547", "0.63868535", "0.63809144", "0.63732463", "0.6371973", "0.6356356", "0.6333863", "0.6327231", "0.63172436", "0.631375", "0.63128805", "0.62878734", "0.6287152", "0.6266434", "0.62653375", "0.6261951", "0.6257901", "0.6250385", "0.62498325", "0.6219377", "0.6216961", "0.6216681", "0.6213244", "0.6212935", "0.6208843", "0.6205418", "0.6202356", "0.61999804", "0.61988574", "0.61979514", "0.61956525", "0.61794466", "0.6167587", "0.616652", "0.616535", "0.61513907", "0.6140102", "0.61375624", "0.61359054", "0.6133325", "0.6131339", "0.6129872", "0.61296225", "0.6125674", "0.61256146", "0.61169267", "0.6107773", "0.6100379", "0.60948753", "0.60793024", "0.60773975", "0.6075281", "0.60713047", "0.6064533", "0.606289", "0.6059549", "0.6046288", "0.60411745", "0.60378593", "0.6027367" ]
0.6998823
4
Returns the color that is used for drawing the highlight indicators.
int getHighLightColor();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Color getHighlightColor() {\n return highlightColor;\n }", "public Color getHighlight();", "public Color getColor() {\n\t\treturn Color.GRAY;\n\t}", "public Color getColor() {\n return Color.YELLOW;\n }", "public Integer getColor() {\n\t\treturn color;\n\t}", "public static Color getTextHighlightColor() {\n return TEXT_HIGHLIGHT;\n }", "public static Color getButtonColorHighlight() {\n return BUTTONCOLOR_HIGHLIGHT;\n }", "public Color getColor() {\r\n return Color.GRAY;\r\n }", "public Color getCurrentColor();", "@Override\r\n\tpublic Color getHighlightColor(Object rel) {\n\t\treturn DARK_RED;\r\n\t}", "public int getColor();", "public int getColor();", "public int getColor() {\n \t\treturn color;\n \t}", "@Override\n Color getColor() {\n return new Color(32, 83, 226, 255);\n }", "public PDColor getInteriorColor() {\n/* 435 */ return getColor(COSName.IC);\n/* */ }", "public String getColor() {\r\n\t\treturn color;\r\n\t}", "public String getColor() {\n\t\treturn color;\n\t}", "public String getColor() {\n\t\treturn color;\n\t}", "public Paint getPaintHighlight() {\n return mHighlightPaint;\n }", "public int getColor() {\n return color;\n }", "Color getColor();", "Color getColor();", "Color getColor();", "Color getColor();", "Color getColor();", "public String getColor()\n {\n return color;\n }", "public String getColor()\n {\n return color;\n }", "java.awt.Color getColor();", "public String getColor() {\n return color;\n }", "public String getColor() {\n return color;\n }", "public String getColor() {\n return color;\n }", "public String getColor() {\n return color;\n }", "public String getColor() {\n return color;\n }", "public String getColor() {\n return color;\n }", "public String getColor() {\n return color;\n }", "public String getColor() {\n return color;\n }", "public Color getLineColor();", "public String getColor() {\r\n return color;\r\n }", "@Override\n public Color getHighlightedColor() { return getLine().getMapColor(); }", "public int getColor(){\r\n\t\treturn color;\r\n\t}", "public Color getColor();", "public Color getColor();", "public Color getColor();", "public int getColorValue() {\r\n\t\treturn color;\r\n\t}", "public int getColor() {\r\n return Color;\r\n }", "public int getColor(){\n\t\treturn color;\n\t}", "public int getColor(){\n\t\treturn color;\n\t}", "default Color getColor() {\r\n\t\treturn Color.RED;\r\n\t}", "public String getColor() {\n return currentLocation.getNodeColor();\n }", "public short getColor()\n {\n return font.getColorPaletteIndex();\n }", "public Color getColor() {\n switch(this.value) {\n case 2: return new Color(0xEEE4DA);\n case 4: return new Color(0xEDE0C8);\n case 8: return new Color(0xF2B179);\n case 16: return new Color(0xF59563);\n case 32: return new Color(0xF67C5F);\n case 64: return new Color(0xF65E3B);\n case 128: return new Color(0xEDCF72);\n case 256: return new Color(0xEDCC61);\n case 512: return new Color(0xEDC850);\n case 1024: return new Color(0xEDC53F);\n case 2048: return new Color(0xEDC22E);\n \n }\n // Default color for null tiles\n return new Color(0xCDC1B4);\n }", "public String getColor() {\n\t\treturn null;\n\t}", "@NoProxy\n @NoWrap\n @NoDump\n public String getColor() {\n return color;\n }", "public RMColor getColor()\n {\n return getStyle().getColor();\n }", "String getColor();", "public String getColor(){\n\t\treturn color;\n\t}", "public Color getColor() {\n\t\treturn Color.RED;\n\t}", "public Color color() {\n\t\tswitch (this) {\n\t\tcase FATAL: {\n\t\t\tColor c = UIManager.getColor(\"nb.errorForeground\"); // NOI18N\n\t\t\tif (c == null) {\n\t\t\t\tc = Color.RED.darker();\n\t\t\t}\n\t\t\treturn c;\n\t\t}\n\t\tcase WARNING:\n\t\t\treturn Color.BLUE.darker();\n\t\tcase INFO:\n\t\t\treturn UIManager.getColor(\"textText\");\n\t\tdefault:\n\t\t\tthrow new AssertionError();\n\t\t}\n\t}", "@ColorInt\n public int getColor() {\n return Color.HSVToColor(mColorHSV);\n }", "private int getCurrentMainColor () {\n int translatedHue = 255 - ( int ) ( mCurrentHue * 255 / 360 );\n int index = 0;\n for ( float i = 0; i < 256; i += 256 / 42 ) {\n if ( index == translatedHue )\n return Color.rgb( 255, 0, ( int ) i );\n index++;\n }\n for ( float i = 0; i < 256; i += 256 / 42 ) {\n if ( index == translatedHue )\n return Color.rgb( 255 - ( int ) i, 0, 255 );\n index++;\n }\n for ( float i = 0; i < 256; i += 256 / 42 ) {\n if ( index == translatedHue )\n return Color.rgb( 0, ( int ) i, 255 );\n index++;\n }\n for ( float i = 0; i < 256; i += 256 / 42 ) {\n if ( index == translatedHue )\n return Color.rgb( 0, 255, 255 - ( int ) i );\n index++;\n }\n for ( float i = 0; i < 256; i += 256 / 42 ) {\n if ( index == translatedHue )\n return Color.rgb( ( int ) i, 255, 0 );\n index++;\n }\n for ( float i = 0; i < 256; i += 256 / 42 ) {\n if ( index == translatedHue )\n return Color.rgb( 255, 255 - ( int ) i, 0 );\n index++;\n }\n return Color.RED;\n }", "public static Color getColor() { return lblColor.getBackground(); }", "public Color getColor() {\n\t\treturn (Color)p.getPaint();\n\t}", "public Color getColor() {\r\n\t\tColor retVal = theColor;\r\n\t\treturn retVal;\r\n\t}", "public ColorUIResource getPrimaryControlHighlight() { return fPrimaryHighlight;}", "public final Color getColor() {\n return color;\n }", "public int getSelectionColor()\n\t{\n\t\treturn getObject().getSelectionColor();\n\t}", "@Override\n\tpublic String getColor() {\n\t\treturn \"blue\";\n\t}", "public Color getColor() {\r\n return currentColor;\r\n }", "public final Color getColor() {\n\t\treturn color;\n\t}", "@Override\n\tpublic String getColor() {\n\t\treturn \"red\";\n\t}", "public final Color getColor() {\r\n return color;\r\n }", "public int getDrawingsColor(){\n return mPaintLine.getColor();\n }", "public int getColor() {\n return this.color;\n }", "public String getColor()\n {\n return this.color;\n }", "public String getColor() { \n return color; \n }", "@Override\r\n\tpublic String getColor() {\n\t\treturn \"white\";\r\n\t}", "@Override\n public Color getColor() {\n return Utils.Pion.BLANC.getCouleur();\n }", "public int getColorInt () {\r\n return this.colorReturned;\r\n }", "public int getColor()\r\n {\r\n return m_iColor;\r\n }", "public GraphColor getColor( ) {\n return color;\n }", "public String getColor() {\n return this.color;\n }", "public Color getColor() \n\t{\n\t\treturn color;\n\t}", "public Color getColor() {\n \t\treturn color;\n \t}", "public Color getColor()\r\n {\r\n return currentColor;\r\n }", "public CMYKColors getColor() {\n return this.color;\n }", "@Override\n public String getColor() {\n return this.color.name();\n }", "@Override\n public String getColor() {\n return this.color;\n }", "public ColorCallback<DatasetContext> getColorCallback() {\n\t\treturn colorCallback;\n\t}", "public Color getColor() {\r\n\t\treturn new Color(Color.HSBtoRGB(hsb[0], hsb[1], hsb[2]));\r\n\t}", "public int getColor() {\n\t\treturn getMappedColor(color);\n\t}", "public Color getColor() {\r\n\t\treturn color;\r\n\t}", "public Color getColor() {\r\n\t\treturn color;\r\n\t}", "public Color getColor()\n {\n return color;\n }", "public Color getColor()\r\n\t{\r\n\t\treturn _g2.getColor();\r\n\t}", "@Override\n public Color getColor() {\n return color;\n }", "public int color() {\n\t\treturn color;\n\t}", "public int getColorIndex() {\n return colorIndex;\n }", "public Color getColor() {\n return color;\r\n }", "public Color getForegroundColor() {\n return foreColor;\n }", "public final String getColorCode() {\n\t\treturn colorCode;\n\t}" ]
[ "0.7632842", "0.76286024", "0.70849985", "0.7049137", "0.7016964", "0.6997186", "0.6981725", "0.6980207", "0.69381374", "0.6878604", "0.6873199", "0.6873199", "0.68433166", "0.6827176", "0.68224025", "0.6784763", "0.6771196", "0.6771196", "0.6760901", "0.67419267", "0.6736818", "0.6736818", "0.6736818", "0.6736818", "0.6736818", "0.67335945", "0.67335945", "0.67200536", "0.67054075", "0.67054075", "0.67054075", "0.67054075", "0.67054075", "0.67054075", "0.67054075", "0.67054075", "0.67008543", "0.6700634", "0.66840273", "0.6676052", "0.6675285", "0.6675285", "0.6675285", "0.6673605", "0.6657107", "0.6653505", "0.6653505", "0.66506004", "0.6633392", "0.6629758", "0.661896", "0.66177464", "0.66142404", "0.6595632", "0.6595401", "0.6594857", "0.6575303", "0.6572604", "0.6566607", "0.6556918", "0.65565246", "0.6556354", "0.65458864", "0.65389234", "0.65361756", "0.653402", "0.65223986", "0.65203154", "0.65196764", "0.651089", "0.65030175", "0.6501782", "0.64959675", "0.6490731", "0.64867234", "0.64861286", "0.64783394", "0.6476394", "0.64760375", "0.64666444", "0.6445992", "0.6445678", "0.6442586", "0.6438288", "0.6427516", "0.64197654", "0.63948995", "0.6394838", "0.63919646", "0.63770425", "0.63764614", "0.63764614", "0.63763535", "0.6370762", "0.63694996", "0.636475", "0.63579017", "0.6356248", "0.63543594", "0.63470155" ]
0.68593735
12
The constructor of the cards.
public Seed() { cards = new Cards(); seedCards = new ArrayList<Cards>(); description = ""; autoSummary = ""; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Card () {}", "Cards(String cardName, String cardDes, int puntosHabilidad) {\n this.nombre = cardName;\n this.descripcion = cardDes;\n this.puntos = puntosHabilidad;\n }", "public Card() { this(12, 3); }", "public Card()\n {}", "public CardGameFramework()\n {\n this(1, 0, 0, null, 4, 13);\n }", "Card(){\t \n}", "public CardGameFramework() {\n this(1, 0, 0, null, 4, 13);\n }", "public PlayingCard(){\n\t\tsuper();\n\t}", "public BaseballCard(){\r\n\r\n\t}", "public Card()\n {\n\t// Local constants\n\n\t// Local variables\n\n\t/************ Start Card Method *****************/\n\n\t// Set face value to null\n\tfaceValue = null;\n\n\t// Set true value to 0\n\ttrueValue = 0;\n\n\t// Set suit to null\n\tsuit = null;\n\n\t// Set picture to null\n\tpicture = null;\n\n }", "Cards(String cardName, String cardDes, int ataque, int defensa) {\n this.nombre = cardName;\n this.descripcion = cardDes;\n this.puntos = ataque;\n this.def = defensa;\n }", "public BlackjackHand() {\n super(0);\n aceCount = 0;\n cards = new ArrayList<>();\n }", "public Card()\n {\n suit = 0;\n rank = Card.ACE;\n }", "public CardCollection() {\n cards = new ArrayList<>();\n }", "public Card() {\n this(new Random().nextInt(54));\n establishHierarchicalValue();\n }", "public Card(){\n suit = 0;\n rank = 0;\n }", "public Card(){\n this.name = \"\";\n this.description = \"\";\n this.element = null;\n this.img = \"\";\n }", "public Hand()\n {\n cards = new ArrayList<Card>();\n }", "public Card(String id, String name) {\n \t\tsameID = new String[MINILEN];\n \t\tfor (int i = 0; i < sameID.length; i++) {\n \t\t\tsameID[i] = \"\";\n \t\t}\n \t\tsetID(id);\n \t\t// setName(id);\n \t\tsetCardName(name);\n \n \t\trealCardName = name;\n \n \t\teffects = new ArrayList<String>();\n \t\teffects_e = new ArrayList<String>();\n \t\tflavorText = \"\";\n \t\tflavorText_e = \"\";\n \t\tsetCurrentState(State.NONE);\n \t\t// imageFile = new File(\"FieldImages/cardBack-s.jpg\");\n \t\timageResource = \"/resources/FieldImages/cardBack-s.jpg\";\n \t\tbackResource = \"/resources/FieldImages/cardBack-s.jpg\";\n \t\tsetAssociatedCards(new ArrayList<Card>());\n \t\tsetAttributes(new ArrayList<Attribute>());\n \t\t// addMouseListener(this);\n \t}", "public Card (int aRank , int aSuit)\n {\n this.ranks = aRank;\n this.suits = aSuit;\n }", "public Hand(){\n cards = new ArrayList<Card>();\n }", "public Card()\n {\n suite = \"\";\n number = \"\";\n value = 0;\n aceValue = 1;\n hasBeenPicked = false;\n }", "public Card()\n {\n // initialise instance variables\n message = new ArrayList<String>();\n message.add(\"Sorry!\");\n message.add(\"One\");\n message.add(\"Two\");\n message.add(\"Three\");\n message.add(\"Four\");\n }", "public Deck( ) {\r\n int ordinal;\r\n alalSets = new ArrayList<>();\r\n \r\n // load the cards\r\n for ( ordinal = 1; ordinal <= 13; ordinal++) {\r\n for( int iCount = 1; iCount <= 4; iCount++) {\r\n // the deck adds one set which contains one card\r\n \r\n ArrayList<Card> redCardSet = new ArrayList<>();\r\n Card redCard = new Card();\r\n redCard.value = ordinal;\r\n redCard.color = Enums.RED;\r\n redCardSet.add(redCard); // add card to set\r\n alalSets.add( redCardSet ); // add set to deck\r\n\r\n ArrayList<Card> blackCardSet = new ArrayList<>();\r\n Card blackCard = new Card();\r\n blackCard.value = ordinal;\r\n blackCard.color = Enums.BLACK;\r\n blackCardSet.add(blackCard);\r\n alalSets.add( blackCardSet );\r\n }\r\n }\r\n }", "public LaundryCard() {\n\t}", "public Card() {\n var random = new SecureRandom();\n var allTypes = Type.values();\n var allSuits = Suit.values();\n this.type = allTypes[random.nextInt(10)];\n this.suit = allSuits[random.nextInt(4)];\n }", "public Card(String name) {\n setValue(name);\n }", "public Deck() {\n cards = new Card[52];\n size = 0;\n for (int suit = Card.SPADES; suit <= Card.CLUBS; suit++) {\n for (int rank = Card.ACE; rank <= Card.KING; rank++) {\n cards[size] = new Card(rank, suit);\n size += 1;\n }\n }\n }", "public card(){\n\t\tname = \"blank\";\n\t\ttype = \"blank\";\n\t\tcost = 0;\n\t\tgold = 0;\n\t\tvictory_points = 0;\n\t\taction = 0;\n\t\tbuy = 0;\n\t\tcard= 0;\n\t\tattack = false;\n\t}", "public Deck() {\n System.out.println(\"Inside deck\");\n cards = new ArrayList<>();\n fillDeck();\n }", "Card(int num,String suit){\n this.number = num;\n this.suits = suit;\n }", "public Deck()\r\n\t{\r\n\t\tcards = new String[DECK_SIZE];\r\n\t\t\r\n\t\tnewDeck();\r\n\t}", "public Card(int value)\n {\n //initialize the value instance variable\n this.value = value;\n }", "public Deck(){\n\t\tcount = 51;\n\t\tcards = new Card[52];\n\t\trand = new Random();\n\t\tfor(Suit suit : Suit.values()){\n\t\t\tfor (int i = 2; i < 15; i++) {\n\t\t\t\tcards[suit.ordinal()*13 + i - 2] = new Card(suit,i);\n\t\t\t}\n\t\t}\n\t}", "Hand()\r\n {\r\n myCards = new Card[MAX_CARDS];\r\n numCards = 0;\r\n }", "public Card(String cardFace, String cardSuit) {\r\n this.face = cardFace; // initialize face of card\r\n this.suit = cardSuit; // initialize suit of card\r\n }", "public Deck() {\n deck = new ArrayList<>();\n for (Color d : Color.values()) {\n for (Value e : Value.values()) {\n Card c = new Card(d, e);\n deck.add(c);\n }\n }\n }", "public Hand(Shuffleable cards) {\n this.setLayout(new BorderLayout());\n this.cards = cards;\n this.busted = false; //Player not busted by default\n this.value = 0; //Value starts at 0\n values.add(0);\n nameLabel = new JLabel(\"\", SwingConstants.LEFT); //Initializes name label\n valueLabel = new JLabel(\"Value: \" + value, SwingConstants.LEFT); //Initilizes value label\n cardPane = new JPanel(new FlowLayout());\n cardPane.setBackground(Color.GREEN); //Background color green\n this.add(nameLabel, BorderLayout.NORTH);\n this.add(valueLabel, BorderLayout.SOUTH);\n this.add(cardPane, BorderLayout.CENTER);\n }", "public Card() {\n\t\tthis.suit = \" \";\n this.rank = 0;\n this.face = \" \";\n this.color = \" \";\n\t}", "public CardStack()\n {\n cards = new Vector<Card>();\n }", "public DeckOfCards() {\n\n String faces[] = {\"Ace\", \"Deuce\", \"Three\", \"Four\", \"Five\", \"Six\", \"Seven\", \"Eight\", \"Nine\", \"Ten\", \"Jack\", \"Queen\", \"King\"};\n String suits[] = {\"Hearts\", \"Diamonds\", \"Clubs\", \"Spades\"};\n\n deck = new Card[NUMBER_OF_CARDS]; //create an array of card objects (52)\n currentCard = 0;\n randomNumbers = new Random();\n\n //Populate deck with card objects\n for(int count = 0; count < deck.length; count++){\n deck[count] = new Card(faces[count % 13], suits[count / 13]);\n //first 13 cards will be ace through king of hearts then ace though king of diamonds etc...\n\n }\n\n }", "public Deck() {\n generateDeckOfCards();\n }", "public Deck(){\n\t\tcards = new ArrayList<>(deckSize);\n\t\tdeck = new int[deckSize];\n\t}", "public MenuCards(Gui gui, Cards cards)\n {\n super(\"Karty\");\n setMnemonic('K');\n\n this.gui = gui;\n this.cards = cards;\n\n createCardsEditingItem();\n }", "public Hand()\n\t{\n\t\thand = new Card[12];\n\t\tnumCards = 0;\n\t\tscore = 0;\n\t}", "public PaymentCard() {\n\t}", "public CardGame(){\n this.handOne = new Hand();\n this.handTwo = new Hand();\n this.gameDeck = new Deck();\n this.playerScore = 0;\n this.oppoScore = 0;\n }", "public Cards( boolean fullPack)\r\n {\r\n cards = new Card[ NOOFCARDSINFULLPACK ];\r\n valid = 0;\r\n \r\n if ( fullPack)\r\n createFullPackOfCards();\r\n }", "public Card(int cardNumber, JButton jButton) {//upon creation;\n this.cardNumber = cardNumber;//set the card number of this card;\n this.jButton = jButton;//set the JButton of this card;\n// System.out.println(cardNumber);//SOUT the card numbers;\n }", "private Card(Color c, Rank r) {\n this.nbCard = pack(c,r);\n }", "public Card(){\n\t\trank = (int) (Math.random()*(13-1));\n\t\tsuit = (int) (Math.random()*4);\n\t}", "public Deck() { // This constructor creates a standard deck\n\n\tcards = new Card[52];\n\tint k=0;\n\t\n\tfor (int i=0; i<4; i++)\n\t for (int j=2; j<15; j++){\n\t\tcards[k]= new Card (j, i);\n\t\tk++;\n\t\t }\n\t \n\n\tshuffle();\n\t\n\tcardsLeft = 52;\n\t/*\tfor (int i=0; i<52; i++)\n\t\tSystem.out.println (cards[i]);*/\n }", "public Deck()\n {\n deck = new Stack<Card>();\n /* Increments through each suit, and then for each suit through each rank,\n * and pushes a\n * new card with the corresponding information onto the deck.\n */\n /* The above comment did not show up in the checkstyle. */\n for (Suit suit : Suit.values())\n {\n /* Increments through each card value. */\n for (CardValue value : CardValue.values())\n {\n deck.push(new Card(suit, value));\n }\n }\n Collections.shuffle(deck);\n }", "public void init() {\r\n\t\tcards = new ArrayList<Card>();\r\n\t\tfor(Card card : Card.values()) {\r\n\t\t\tcards.add(card);\r\n\t\t}\r\n\t}", "public Hand () //No arg\n\t{\n\t\tthis.cardsInHand = 0;\n\t\tthis.handSize = 5;\n\t}", "public Hand() {\n cards = new int[16];\n numSoft = 0;\n score = 0;\n numCards = 0;\n }", "public Player(){\r\n cards = new ArrayList<String>();\r\n indexes = new ArrayList<Integer>();\r\n }", "Card(Color color) {\n this.color = color;\n }", "public Card(int cardType){\r\n\r\n\t\tScanner inputFile = null;\r\n\r\n\t\ttry {\r\n\r\n\t\t\tinputFile = new Scanner(new File(\"cards.txt\")).useDelimiter(\",\");\r\n\t\t\t\r\n\t\t\t//reads in text file by row\r\n\t\t\tfor(int row = 1; row < cardType; row++){\r\n\t\t\t\tinputFile.nextLine();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//sets the card name, number of cards and the coin values\r\n\t\t\tsetCardName(inputFile.next());\r\n\t\t\tsetNumberOfCards(Integer.valueOf(inputFile.next()));\r\n\t\t\tfor(int coinNumber = 1; coinNumber < 5; coinNumber++)\r\n\t\t\t\tcoin[coinNumber] = Integer.valueOf(inputFile.next());\r\n\t\t\t\r\n\r\n\t\t} catch (FileNotFoundException error) {\r\n\r\n\t\t\tSystem.err.println(\"File not found - check the file name\");\r\n\r\n\t\t}\r\n\t\t\r\n\t}", "public Card(String[] card) {\r\n\t\tthis.deckIndex = Integer.parseInt(card[0]);\r\n\t\tthis.suit = (char) Integer.parseInt(card[1]);\r\n\t\tthis.name = (char) Integer.parseInt(card[2]);\r\n\t\tthis.ordinal = Integer.parseInt(card[3]);\r\n\t\tthis.value = Integer.parseInt(card[4]);\r\n\t}", "public Cardholder(String name, String address, int cardNumber){\n this.name = name;\n this.address = address;\n this.cardNumber = cardNumber;\n }", "public Card(int x) {\n\t\tid = x;\n\t}", "public Card(int v, Suit s) {\n this.value = v;\n this.suit = s;\n //this.specialTypeOfCard = NOT_FACE_NOT_ACE;\n\n }", "Card(String n, int ps[], int pr[], int y, ImageIcon i){\r\n\t\tname = n;\r\n\t\tprereqSkill = ps;\r\n\t\tprereqRoom = pr;\r\n\t\tyear = y;\r\n\t\timg = i;\r\n\t\tretCA = CardAction.NONE;\t\t\r\n\t}", "public PokerHand(Card... cards) {\n for (Card c : cards) {\n this.cards.add(c);\n }\n }", "public Card(int value, int suit)\n {\n cardValue = value;\n cardSuit = suit;\n }", "public CreditCard ()\r\n\t{\r\n\t\t\r\n\t}", "public Game() {\r\n\t\tcards = new ArrayList<Card>();\r\n\t\tfor (int i = 0; i < NBCARDS; i++) {\r\n\t\t\tcards.add(new Card());\r\n\t\t}\r\n\t\tplayers = new ArrayList<Player>();\r\n\t\tfor (int i = 0; i < NBPLAYER; i++) {\r\n\t\t\tplayers.add(new Player(i + 1));\r\n\t\t}\r\n\t}", "public Deck() {\n this.cards = new Card[STANDARD_DECK_SIZE];\n this.topCardIndex = 0;\n int cardIndex = 0;\n int DeckLength = this.cards.length;\n for (Card.Suit suit : Card.Suit.values() ) {\n for (int i = Card.ACE ; i <= Card.KING ; i++ ) {\n cards[cardIndex] = new Card (i, suit);\n cardIndex++;\n }\n }\n }", "public MageTowerCard() {\n\t\tsuper(cardName, cardId, cardCost);\n\t}", "public Deck(String name){\r\n\t\tthis(name, new ArrayList<Card>());\r\n\t}", "public Deck( Card c1, Card c2, Card c3, Card c4, Card c5, Card c6, Card c7, Card c8, Card c9,\n\t\t\t\t Card c10, Card c11, Card c12, Card c13, Card c14, Card c15, Card c16, Card c17, Card c18,\n\t\t\t\t Card c19, Card c20, Card c21, Card c22, Card c23, Card c24, Card c25, Card c26, Card c27, \n\t\t\t\t Card c28, Card c29, Card c30, Card c31, Card c32, Card c33, Card c34, Card c35, Card c36, \n\t\t\t\t Card c37, Card c38, Card c39, Card c40, Card c41, Card c42, Card c43, Card c44, Card c45, \n\t\t\t\t Card c46, Card c47, Card c48, Card c49, Card c50, Card c51, Card c52 ) \n\t{\n\t\tCard[] tempDeck = { c1, c2, c3, c4, c5, c6, c7, c8, c9,\n\t\t\t\t\t\t\tc10, c11, c12, c13, c14, c15, c16, c17, c18,\n\t\t\t\t\t\t\tc19, c20, c21, c22, c23, c24, c25, c26, c27,\n\t\t\t\t\t\t\tc28, c29, c30, c31, c32, c33, c34, c35, c36, c37,\n\t\t\t\t\t\t\tc38, c39, c40, c41, c42, c43, c44, c45, c46, \n\t\t\t\t\t\t\tc47, c48, c49, c50, c51, c52 };\n\t\t\n\t\tdeck = new Card[tempDeck.length];\n\t\t\n\t\tfor( int i = 0; i < tempDeck.length; i++ ) {\n\t\t\tdeck[i] = tempDeck[i];\n\t\t}\n\t}", "private void initCards() {\n for(int i = 0; i< noOfColumns; i++) {\n for (int j = 0; j < noOfRows; j++) {\n cards[i][j] = new Card(new Paint(), CardState.FACE_DOWN);\n }\n }\n setRandomColors();\n }", "public CardButton(Context context) {\n super(context);\n }", "public Deck()\n\t{\n\t\t//call other Constructor defining one deck with out shuffling\n\t\tthis(false);\n\t}", "public CardInformationExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "public Card(int tempNum, int tempSuit)\n {\n num = tempNum;\n suit = tempSuit;\n }", "public Hand() {\n this.hole1 = new BlankCard();\n this.hole2 = new BlankCard();\n showCards = false;\n }", "public poker_class ()\n\t{\n\t face = \"Two\";\n\t suit = \"Clubs\";\n\t}", "public PileOfCards(int numCards) {\n descriptors = CardFactory.getDescriptorKeySet();\n pile = new ArrayList<Card>(numCards);\n for(int i = 0; i < numCards; i++)\n pile.add(CardFactory.drawCard());\n }", "public Card build() {\n return new Card(frontFace, backFace);\n }", "public Card (Rank rank, Suit suit)\n {\n this.rank = rank;\n this.suit = suit;\n }", "public CardRequest() {\r\n card = new MSRData(); // an empty one\r\n }", "public Deck () {\r\n int arrayPlace = 51;\r\n cardDeck = new Card [52];\r\n String [] suits = {\"Clubs\", \"Diamonds\", \"Hearts\", \"Spades\"};\r\n for (int index = 0; index < suits.length; index++) {\r\n for (int i = 1; i < 14; i++) {\r\n cardDeck [arrayPlace] = new Card (i, suits[index]);\r\n arrayPlace--;\r\n }\r\n }\r\n }", "public Game() {\n //Create the deck of cards\n cards = new Card[52 * numDecks];\n cards = initialize(cards, numDecks);\n cards = shuffleDeck(cards, numDecks);\n }", "public Player()\r\n\t{\r\n\t\tpCards = new String[DECK_SIZE];\r\n\t\thandCount = 0;\r\n\t\tstand = false;\r\n\t}", "public Card(String s, int c)\r\n { suit = s;\r\n count = c;\r\n }", "public Card(String suit, int value)\n {\n this.suit = suit;\n this.value = value;\n \n }", "public Card(int cardRank, int cardSuit){\n this.rank = cardRank;\n this.suit = cardSuit;\n }", "public CardPile() {\n \n this.pila = new Stack<ICard>();\n this.tamano = 0;\n }", "public Deck() {\n deck = new LinkedList<>();\n for (int i = 1; i < FACE_VALUES + 1; i++) {\n deck.add(new Card(i, SPADES));\n deck.add(new Card(i, CLUB));\n deck.add(new Card(i, DIAMOND));\n deck.add(new Card(i, HEART));\n }\n }", "public void initializeCards() {\n\t\tcardSet.clear();\n\t\tfor (Suit suit : Suit.values()) {\n\t\t\tfor (Rank rank : Rank.values()) {\n\t\t\t\tCard card = new Card(suit, rank);\n\t\t\t\tcardSet.add(card);\n\t\t\t}\n\t\t}\n\t}", "public DrawableCard(Context context, AttributeSet attrs) {\n super(context, attrs);\n\n //initially the card is not selected\n this.selected = -1;\n init();\n }", "public Card(Card card) {\n this.set(card.value, card.suit);\n }", "private void makeCards() {\n //make number cards(76 cards)\n for (int i = 0; i < 10; i++) {\n String s = i + \"\";\n cards.add(new NumberCard(s, Color.RED, i));\n cards.add(new NumberCard(s, Color.GREEN, i));\n cards.add(new NumberCard(s, Color.BLUE, i));\n cards.add(new NumberCard(s, Color.YELLOW, i));\n if(i > 0) {\n cards.add(new NumberCard(s, Color.RED, i));\n cards.add(new NumberCard(s, Color.GREEN, i));\n cards.add(new NumberCard(s, Color.BLUE, i));\n cards.add(new NumberCard(s, Color.YELLOW, i));\n }\n }\n\n //make wild cards(8 cards)⨁\n for (int i = 0; i < 4; i++) {\n cards.add(new WildCard(\"W\", Color.BLACK));\n cards.add(new WildDrawCard(\"W+4\", Color.BLACK));\n }\n\n //make reverse cards(8 cards)⤤⤦\n for (int i = 0; i < 2; i++) {\n cards.add(new ReverseCard(\"Rev\", Color.RED));\n cards.add(new ReverseCard(\"Rev\", Color.GREEN));\n cards.add(new ReverseCard(\"Rev\", Color.BLUE));\n cards.add(new ReverseCard(\"Rev\", Color.YELLOW));\n }\n\n //make draw cards(8 cards)⧉\n for (int i = 0; i < 2; i++) {\n cards.add(new Draw2Card(\"D+2\", Color.RED));\n cards.add(new Draw2Card(\"D+2\", Color.GREEN));\n cards.add(new Draw2Card(\"D+2\", Color.BLUE));\n cards.add(new Draw2Card(\"D+2\", Color.YELLOW));\n }\n\n //make skip cards(8 cards)🚫\n for (int i = 0; i < 2; i++) {\n cards.add(new SkipCard(\"Ski\", Color.RED));\n cards.add(new SkipCard(\"Ski\", Color.GREEN));\n cards.add(new SkipCard(\"Ski\", Color.BLUE));\n cards.add(new SkipCard(\"Ski\", Color.YELLOW));\n }\n //Shuffling cards list\n Collections.shuffle(cards);\n }", "public Cards(String cardFace, String cardSuit) {\n\t\t// face of the card\n\t\tface = cardFace;\n\t\t// suit of the card\n\t\tsuit = cardSuit;\n\t}", "public Player() {\n//\t\thand = new Hand();\n\t\tthis.cardsInhand = new ArrayList<Card>();\n\t}", "public Card (Suit s, int v) {\n suit = s;\n val = v;\n }", "private Deck()\n\t{\n\t\tfor (Suit s : Suit.values())\n\t\t\tfor(Rank r : Rank.values())\n\t\t\t\tcards.add(new Card(s,r));\n\t}", "public CardFigure() {\n setAlpha(30);\n setBorder(new MarginBorder(1));\n setBackgroundColor(ColorConstants.lightGray);\n setOpaque(false);\n }", "public SpadeCard(int value)\n\t{\n\t\tsuper(value);\n\t\tweight = 0;\n\t\t\n\t\tswitch(value)\n\t\t{\n\t\tcase 0:\n\t\t\tpicPath = \"pictures/cards_PNG/3_of_spades.png\";\n\t\t\tbreak;\t\t\n\t\tcase 1:\n\t\t\tpicPath = \"pictures/cards_PNG/4_of_spades.png\";\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tpicPath = \"pictures/cards_PNG/5_of_spades.png\";\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\tpicPath = \"pictures/cards_PNG/6_of_spades.png\";\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\tpicPath = \"pictures/cards_PNG/7_of_spades.png\";\n\t\t\tbreak;\n\t\tcase 5:\n\t\t\tpicPath = \"pictures/cards_PNG/8_of_spades.png\";\n\t\t\tbreak;\n\t\tcase 6:\n\t\t\tpicPath = \"pictures/cards_PNG/9_of_spades.png\";\n\t\t\tbreak;\n\t\tcase 7:\n\t\t\tpicPath = \"pictures/cards_PNG/10_of_spades.png\";\n\t\t\tbreak;\n\t\t\n\t\t\t\n\t\tcase 8:\n\t\t\tpicPath = \"pictures/cards_PNG/jack_of_spades.png\";\n\t\t\tbreak;\n\t\tcase 9:\n\t\t\tpicPath = \"pictures/cards_PNG/queen_of_spades.png\";\n\t\t\tbreak;\n\t\tcase 10:\n\t\t\tpicPath = \"pictures/cards_PNG/king_of_spades.png\";\n\t\t\tbreak;\n\t\tcase 11:\n\t\t\tpicPath = \"pictures/cards_PNG/ace_of_spades.png\";\n\t\t\tbreak;\n\t\t\t\n\t\tcase 12:\n\t\t\tpicPath = \"pictures/cards_PNG/2_of_spades.png\";\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tpicPath = \"pictures/cards_PNG/black_joker.png\";\n\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\ttry {\n\t\t\timg = ImageIO.read(new File(picPath));\n\t\t}catch (IOException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}" ]
[ "0.82698804", "0.8090971", "0.8024289", "0.7941208", "0.7937103", "0.78673434", "0.7838852", "0.77329975", "0.77255434", "0.7706336", "0.76491004", "0.76264614", "0.7534664", "0.7515921", "0.7506903", "0.7476161", "0.7439754", "0.74045163", "0.7389043", "0.7372293", "0.7370789", "0.7356968", "0.7355027", "0.7337348", "0.7321736", "0.7319335", "0.72959894", "0.7288532", "0.72504693", "0.72349316", "0.72077906", "0.7181601", "0.7165802", "0.71631485", "0.71418166", "0.7137276", "0.71322876", "0.7122915", "0.71162593", "0.71076125", "0.70858604", "0.70750713", "0.7071065", "0.70673555", "0.7063285", "0.70587265", "0.70439345", "0.704342", "0.7025165", "0.70236343", "0.701464", "0.7011401", "0.6994623", "0.69868994", "0.6985915", "0.6970825", "0.695501", "0.69534117", "0.69472855", "0.69454056", "0.6930771", "0.69194704", "0.6918799", "0.6904381", "0.69003534", "0.68776274", "0.6871504", "0.6871295", "0.6870432", "0.6863151", "0.6853545", "0.6836281", "0.6834494", "0.6833442", "0.6831841", "0.6831364", "0.6826963", "0.6819869", "0.68181854", "0.68098414", "0.6796074", "0.6791512", "0.677935", "0.6774862", "0.6771049", "0.67640626", "0.67639655", "0.67636454", "0.6757129", "0.67486405", "0.67414945", "0.67405415", "0.6734474", "0.67247796", "0.672142", "0.6717187", "0.6693793", "0.66862065", "0.6685459", "0.66804504", "0.6679415" ]
0.0
-1
Get the Cards of the seed.
public Cards getCards() { return cards; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ArrayList<Cards> getSeedCards() {\r\n\t\treturn seedCards;\r\n\t}", "public List<Card> getCards() throws RemoteException {\n return mainScreenProvider.getCards();\n }", "@Override\n\tpublic Cards getCards() {\n\t\treturn cards;\n\t}", "public List<Card> getCards() {\n\t\treturn new ArrayList<Card>(this.content);\n\t}", "public Color[] getCards() {\n\t\treturn cards;\n\t}", "public List<Card> getCards() {\n\t\treturn cards;\n\t}", "public List<Card> getCards() {\n return new ArrayList<Card>(cards);\n }", "public int[] getCards() {\n \t\treturn cards;\n \t}", "public Card getAllCards() {\n\t\tfor (Card cardInDeck : cards) {\n\t\t\tSystem.out.println(\"Rank: \" + cardInDeck.getRank() + \"\\n\"\n\t\t\t\t\t+ \"Suit: \" + cardInDeck.getSuit()+ \"\\n\");\n\t\t\t//System.out.println(i++);\n\t\t}\n\t\treturn null;\n\t}", "public List<Card> getCards(){\r\n\t\treturn cards;\r\n\t}", "public List<Card> getCards()\n {\n // RETURN the CardMessage's list of <code>ClueCards</code>\n return this.cards;\n }", "public List<Card> getCards()\n {\n return this.deckOfCards;\n }", "public ArrayList<Card> getCards()\n\t{\n\t\treturn cards;\n\t}", "public ArrayList<Card> getCards() {\n\n return cards;\n }", "private ArrayList<Card> getDeckCards(){\n\t\t\t\tArrayList<Card> getdeck = new ArrayList<>();\r\n\t\t\t\t// deck = new ArrayList(52);\r\n\r\n\t\t\t\t// create cards in the deck (0-51)\r\n\t\t\t\tfor (int i = 0; i <= 10; i++) {\r\n\t\t\t\t\tgetdeck.add(new Card(i));\r\n\t\t\t\t}\r\n\t\t\t\t//Collections.shuffle(getdeck);\r\n\t\t\t\t// shuffle the cards\r\n\t\t\t\tfor (int i = 0; i <= getdeck.size()-1; i++) {\r\n\t\t\t\t\tint newindex = (int) (Math.random() * 51);\r\n\t\t\t\t\tCard temp = getdeck.get(i);\r\n\t\t\t\t\tgetdeck.set(i, getdeck.get(newindex));\r\n\t\t\t\t\tgetdeck.set(newindex, temp);\r\n\t\t\t\t}\r\n\t\t\t\t//TODO delete println\r\n\t\t\t\t// print shuffled deck\r\n\t\t\t\tfor (int i = 0; i <= getdeck.size()-1; i++) {\r\n\t\t\t\t\tSystem.out.println(getdeck.get(i).getCardNbr());\r\n\t\t\t\t}\r\n\t\t\t\treturn getdeck;\r\n\t}", "@Override\n\tpublic List<Card> findAllCard() {\n\t\treturn cb.findAllCard();\n\t}", "public Cards get(int i) {\r\n\t\treturn seedCards.get(i);\r\n\t}", "@JsonIgnore\n\tpublic List<Card> getAvailableCards() {\n\t\tList<Card> availableCards = new ArrayList<>();\n\t\tfor (int i = dealtCards.get(); i < Deck.DECK_SIZE; i++) {\n\t\t\tCard card = cards.get(i);\n\t\t\tavailableCards.add(card);\n\t\t}\n\t\treturn availableCards;\n\t}", "public com.google.protobuf.ByteString getCards() {\n return cards_;\n }", "public com.google.protobuf.ByteString getCards() {\n return cards_;\n }", "List<Card> getCards() {\n return cards;\n }", "public List<Card> findAllCards();", "@Override\r\n public List<Card> getDeck() {\n myDeck2.clear();\r\n\r\n //loops through twice in order to create the deck of 104\r\n for (int k = 0; k < 2; k++) {\r\n for (int i = 0; i < 4; i++) {\r\n for (int j = 1; j <= 13; j++) {\r\n Card nextCard = new Card(suit[i], j);\r\n myDeck2.add(nextCard);\r\n }\r\n }\r\n }\r\n\r\n return myDeck2;\r\n }", "private List<Card> createDeck(){\n List<Card> newDeck= new ArrayList<Card>();\n for (int i =0;i<CardSet.ALL_CARDS.size(); ++i ) {\n newDeck.add(CardSet.ALL_CARDS.get(i));\n }\n return newDeck;\n }", "public Card [] getCards() {\r\n Card [] cardDeckCopy = new Card [this.cardsLeft];\r\n \r\n // A copy of the cardDeck is made of the size of the remaining cards so that the private attribute is not directly\r\n // affected\r\n \r\n for (int index = 0; index < this.cardsLeft; index++) {\r\n cardDeckCopy [index] = cardDeck [index];\r\n }\r\n return cardDeckCopy;\r\n }", "public List<Card> getCardsInPlay() {\n List<Card> cards = new ArrayList<>(cardsInPlayStack);\n cardsInPlayStack.removeAllElements();\n return cards;\n }", "@Override\n\tpublic PlayingCard[] getCards() {\n\t\tif(getCount() != 0) {\n\t\t\tPlayingCard[] kopie = new SkatCard[getCount()];\n\t\t\tfor(int i = 0; i < getCount(); i++) {\n\t\t\t\tkopie[i] = new SkatCard(aktuellesDeck[i].getSuit(), aktuellesDeck[i].getRank());\n\t\t\t}\n\t\t\treturn kopie;\n\t\t}else {\n\t\t\tSystem.out.println(\"Stapel leer --> Kopie vom Stapel leer\");\n\t\t\treturn null;\n\t\t}\n\t}", "public List<Card> getCards(){\n\t\treturn this.pile;\n\t}", "public List<AbstractCard> cards();", "public static List<ScrumPokerCard> getDeck() {\n return Arrays.stream(values()).collect(Collectors.toList());\n }", "public String getCards()\r\n\t{\r\n\t\t// creates a larger string which will have the cards appended to it\r\n\t\tString cardList = \"\";\r\n\t\t\r\n\t\t// adds all cards currently in hand\r\n\t\tfor (int i = 0; i < handCount; i++)\r\n\t\t{\r\n\t\t\tcardList = cardList + pCards[i] + \" \";\r\n\t\t}\r\n\t\t\r\n\t\treturn cardList;\r\n\t}", "public ArrayList<VentraCard> getAllCards(){\n \treturn allCards;\n }", "@Override\r\n\tpublic List<CreditCard> findAll() {\n\t\treturn this.cardList;\r\n\t\t\r\n\t}", "private void generateDeckOfCards() {\n this.cards = new ArrayList<Card>(Suit.values().length * Rank.values().length);\n for (Suit suit : Suit.values()) {\n for (Rank rank : Rank.values()) {\n cards.add(new Card(suit, rank));\n }\n }\n }", "com.google.protobuf.ByteString getCards();", "public ArrayList<Card> getCards() {return cards;}", "public ArrayList<Card> getCards(){\n return this.cards;\n }", "public ArrayList<Card> giveAllCards() {\n\t\tArrayList<Card> temp = new ArrayList<Card>();\n\t\ttemp.addAll(cards);\n\t\tcards.clear();\n\t\ttopCard = new Card();\n\t\treturn temp;\n\t}", "public DeckOfCards() {\n\n String faces[] = {\"Ace\", \"Deuce\", \"Three\", \"Four\", \"Five\", \"Six\", \"Seven\", \"Eight\", \"Nine\", \"Ten\", \"Jack\", \"Queen\", \"King\"};\n String suits[] = {\"Hearts\", \"Diamonds\", \"Clubs\", \"Spades\"};\n\n deck = new Card[NUMBER_OF_CARDS]; //create an array of card objects (52)\n currentCard = 0;\n randomNumbers = new Random();\n\n //Populate deck with card objects\n for(int count = 0; count < deck.length; count++){\n deck[count] = new Card(faces[count % 13], suits[count / 13]);\n //first 13 cards will be ace through king of hearts then ace though king of diamonds etc...\n\n }\n\n }", "public Collection<Card> getCopyOfCardsList() {\n\t\treturn new ArrayList<>(cards);\n\t}", "public Card[] GetCards() { return mCard; }", "public Deck getDeck(){\r\n\t\t return cards;\r\n\t }", "private List<Card> setupDeck(){\n List<Card> llist = new LinkedList<Card>();\n String[] faceCards = {\"J\",\"Q\",\"K\",\"A\"};\n String[] suits = {\"spades\",\"clubs\",\"diamonds\",\"hearts\"};\n\n for(int i=2; i<=10; i++){\n for(int j=1; j<=4; j++){\n llist.add(new Card(Integer.toString(i), suits[j-1], j, i));\n }\n }\n for(int k=1; k<=4; k++){\n for(int l=1; l<=4; l++){\n llist.add(new Card(faceCards[k-1],suits[l-1], l, k+10));\n }\n }\n return llist;\n }", "public Deck(){\n\t\tcount = 51;\n\t\tcards = new Card[52];\n\t\trand = new Random();\n\t\tfor(Suit suit : Suit.values()){\n\t\t\tfor (int i = 2; i < 15; i++) {\n\t\t\t\tcards[suit.ordinal()*13 + i - 2] = new Card(suit,i);\n\t\t\t}\n\t\t}\n\t}", "public ArrayList<Card> getCards(){\r\n return cards;\r\n }", "public ArrayList< Card > getCheat() {\r\n ArrayList< Card > faces = new ArrayList<>();\r\n\r\n for ( Card card : cards ) {\r\n Card copy = new Card( card );\r\n copy.setFaceUp();\r\n faces.add( copy );\r\n }\r\n return faces;\r\n }", "public ArrayList<Card> getHand(){\n return cards;\n }", "public Card getCard(){\n return cards.get(0);\n }", "public Deck() {\n cards = new Card[52];\n size = 0;\n for (int suit = Card.SPADES; suit <= Card.CLUBS; suit++) {\n for (int rank = Card.ACE; rank <= Card.KING; rank++) {\n cards[size] = new Card(rank, suit);\n size += 1;\n }\n }\n }", "public Deck() {\n this.cards = new Card[STANDARD_DECK_SIZE];\n this.topCardIndex = 0;\n int cardIndex = 0;\n int DeckLength = this.cards.length;\n for (Card.Suit suit : Card.Suit.values() ) {\n for (int i = Card.ACE ; i <= Card.KING ; i++ ) {\n cards[cardIndex] = new Card (i, suit);\n cardIndex++;\n }\n }\n }", "public void buildCards(){\n\t\tfor(Suit suit: Suit.values()){\n\t\t\tfor(Face face: Face.values()){\n\t\t\t\tcards.add(new Card(face, suit));\n\t\t\t}\n\t\t}\n\t}", "public Card drawFromCommunityChest()\n {\n Random draw = new Random();\n \n //if the chance cards are exhausted, re-fill the cards\n if(m_communityChest.size() == 0)\n {\n m_communityChest = m_drawnCommChest;\n m_drawnCommChest.clear();\n }\n \n //draw a random card and add it to the list of the cards drawn\n int drawFrom = draw.nextInt(m_chance.size() - 1) + 1;\n Card card = m_communityChest.remove(drawFrom);\n m_drawnCommChest.add(card);\n\n return card;\n }", "public void generateDeck() {\n\t\tList<String> valueList = Arrays.asList(\"Ace\", \"2\", \"3\",\"4\", \"5\", \"6\",\"7\", \"8\", \"9\",\"10\", \"Jack\", \"Queen\",\"King\");\n\t\tList<String> suitList = Arrays.asList(\"Diamonds\", \"Spades\", \"Clubs\", \"Hearts\");\n\t\tvalues.addAll(valueList);\n\t\tsuits.addAll(suitList);\n\t\t\n\t\t//adding card objects to deckOfCards arraylist\n\t\tint i = 1;\n\t\twhile(i<=52){\n Card card = new Card(values.get(random.nextInt(13)), suits.get(random.nextInt(4)));\n if (!deckOfCards.contains(card)) {\n deckOfCards.add(card);\n i++;\n }else{\n\n }\n }\n\t}", "public void initializeCards() {\n\t\tcardSet.clear();\n\t\tfor (Suit suit : Suit.values()) {\n\t\t\tfor (Rank rank : Rank.values()) {\n\t\t\t\tCard card = new Card(suit, rank);\n\t\t\t\tcardSet.add(card);\n\t\t\t}\n\t\t}\n\t}", "public List<Card> getCards(CardType type) {\n List<Card> cards = new ArrayList<>();\n for (Card card : this) {\n if (card.getCardType() == type) {\n cards.add(card);\n }\n }\n return cards;\n }", "public Seed() {\r\n\t\tcards = new Cards();\r\n\t\tseedCards = new ArrayList<Cards>();\r\n\t\tdescription = \"\";\r\n\t\tautoSummary = \"\";\r\n\t}", "public ArrayList<Card> getPlayedCards()\n\t{\n\t\treturn playedCards;\n\t}", "public Card dealCard() {\n int randPos = random.nextInt(51 - 0 + 1);\n Card rand = deck[randPos];\n return rand;\n\n }", "public ValueNamePair[] getCreditCards() {\n return getCreditCards(getPayAmt());\n }", "public ArrayList<Card> getCardsInHand(){\n\t\tCollections.sort(CardsInHand, Card.CardRank);\r\n\t\treturn CardsInHand;\r\n\t}", "public List<CardImage> readAll() {\n List<CardImage> cards = new ArrayList<CardImage>();\n for (String colour : this.colours) {\n for (String number : this.numbers) {\n for (String darkLight : this.darkLight) {\n cards\n .add(\n new CardImage(colour, number, darkLight,\n new Image(getClass().getResource(\n \"cards/\" + colour + seperator + number + seperator + darkLight + \".png\")\n .toExternalForm())));\n }\n }\n }\n return cards;\n }", "public ArrayList<Card> peek() {\n return this.cards;\n }", "public Deck() {\n\t\trand = new Random();\n\t\trand.setSeed(System.currentTimeMillis());\n\t\twhile(deck.size()<52){\n\t\t\tint suit = rand.nextInt(4);\n\t\t\tint rank = rand.nextInt(13);\n\t\t\tString card = this.rank[rank] +\" of \" + this.suit[suit];\n\t\t\tdeck.add(card);\n\t\t}\n\t}", "public Card []getFinalBoard()\n\t{\n\t\tsynchronized (this) \n\t\t{\t\n\t\t\tCard []ret = null;\n\t\t\ttry {\n\t\t\t\tif (numberCards != constants.NUMBER_CARDS_BOARD)\n\t\t\t\t\tthrow new Exception(\"Le tableau est incomplet quand on lui demande la copie de sa version finale. Nombre de cartes : \" + numberCards + \".\");\n\t\t\t\tret = new Card[constants.NUMBER_CARDS_BOARD];\n\t\t\t\tfor (int i = 0 ; i < numberCards ; i++)\n\t\t\t\t{\n\t\t\t\t\tret[i] = (Card)(board[i].clone());\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch(Exception e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn ret;\n\t\t}\n\t}", "public static Stack<int[]> createDeck() {\n\t\t// Populate deck with 4 suits, 13 cards each [RANK, SUIT]\n\t\tStack<int[]> deck = new Stack<int[]>();\n\t\tfor (int j = HEARTS; j <= SPADES; j++) {\n\t\t\tfor (int i = 1; i <= 13; i++) {\n\t\t\t\tint[] card = new int[] {i, j};\n\t\t\t\tdeck.push(card);\n\t\t\t}\n\t\t}\n\t\tCollections.shuffle(deck);\n\t\treturn deck;\n\t}", "public CardSet getCardSet() {\n return cardSet;\n }", "public UnoCard getCard(){\n Random rnd = new Random();\n int rnd_number = rnd.nextInt(((this.cards.size()-1)-0) + 1) + 0;\n return this.cards.get(rnd_number);\n\n }", "public Iterator<CardView> iterator() {\n return cards.iterator();\n }", "public static LinkedList<Card> produceCards ()\n {\n LinkedList<Card> list = new LinkedList<> ();\n\n for (int i = 0; i < 10; i++)\n {\n if (i == 0)\n {\n list.add (new NumericCard (Color.BLUE,i));\n list.add (new NumericCard (Color.RED,i));\n list.add (new NumericCard (Color.GREEN,i));\n list.add (new NumericCard (Color.YELLOW,i));\n }\n else\n {\n for (int j = 0; j < 2; j++)\n {\n list.add (new NumericCard (Color.BLUE,i));\n list.add (new NumericCard (Color.RED,i));\n list.add (new NumericCard (Color.GREEN,i));\n list.add (new NumericCard (Color.YELLOW,i));\n }\n }\n }\n return list;\n }", "public int CardsOnDeck()\n\t{\n\t\treturn cardNumber;\n\t}", "Vector<Card_Model> GetBuildOfCards() {\n return buildOfCards;\n }", "public static Card[] getStandardDeck() {\n Card[] deck = new Card[52];\n int s = 0;\n for (SUIT suit : SUIT.values()) {\n for (int i = 12; i > -1; i--) {\n deck[s + i] = new Card(suit, i);\n }\n s += 13;\n }\n return deck;\n }", "public CardStack getAvailableCards()\n {\n return null;\n }", "public Deck() {\n deck = new ArrayList<>();\n for (Color d : Color.values()) {\n for (Value e : Value.values()) {\n Card c = new Card(d, e);\n deck.add(c);\n }\n }\n }", "public Cards deal() {\n if (!hasMoreCards()) {\n return null;\n } else {\n Cards temp = null;\n temp = deck[cardHold];\n cardHold = cardHold + 1;\n return temp;\n }\n }", "private void setCommunityChestCards()\n {\n m_communityChest.add(new Card(\"Advance to St. Charles Place If you pass Go, collect $200\", 0, 1, 11));\n m_communityChest.add(new Card(\"Bank error in your favor, Collect $200\", 200, 0));\n m_communityChest.add(new Card(\"Doctor's fees Pay $50\", -50, 0));\n m_communityChest.add(new Card(\"Get out of Jail free card\", 0, 2));\n m_communityChest.add(new Card(\"Go directly to Jail. Do not pass Go, do not collect $200\", 0, 1, 30));\n m_communityChest.add(new Card(\"Advance token to Reading Railroad\", 0, 1, 5));\n m_communityChest.add(new Card(\"Life insurance matures, Collect $100 \", 100, 0));\n m_communityChest.add(new Card(\"You won second prize in a Beauty contest, Collect $10\", 10, 0));\n m_communityChest.add(new Card(\"From sale of stock you get $50\", 50, 0));\n m_communityChest.add(new Card(\"You have won a crossword competition, Collect $100\", 100, 0));\n }", "@GetMapping(\"/startRound/{gameId}/{UID}/cards\")\n public List<Ycard> getCurrentCardsForUser() {\n return new ArrayList<Ycard>();\n }", "public ArrayList<CareerCards> getCareerCardDeck(){\n\t\treturn careerCardDeck;\n\t}", "public List<Card> getVegasDeckCardList(){\n return vegasDeckCardList;\n }", "public ArrayList<Card> getDeck()\n {\n return deck;\n }", "public ArrayList<Card> getDeck() {\n return deck;\n }", "public Card getCard() {\n return this.card;\n }", "public Deck( ) {\r\n int ordinal;\r\n alalSets = new ArrayList<>();\r\n \r\n // load the cards\r\n for ( ordinal = 1; ordinal <= 13; ordinal++) {\r\n for( int iCount = 1; iCount <= 4; iCount++) {\r\n // the deck adds one set which contains one card\r\n \r\n ArrayList<Card> redCardSet = new ArrayList<>();\r\n Card redCard = new Card();\r\n redCard.value = ordinal;\r\n redCard.color = Enums.RED;\r\n redCardSet.add(redCard); // add card to set\r\n alalSets.add( redCardSet ); // add set to deck\r\n\r\n ArrayList<Card> blackCardSet = new ArrayList<>();\r\n Card blackCard = new Card();\r\n blackCard.value = ordinal;\r\n blackCard.color = Enums.BLACK;\r\n blackCardSet.add(blackCard);\r\n alalSets.add( blackCardSet );\r\n }\r\n }\r\n }", "public List<Card> list();", "public CardDeck cardDeck(){\r\n\t\treturn deck;\r\n\t}", "public Card() {\n var random = new SecureRandom();\n var allTypes = Type.values();\n var allSuits = Suit.values();\n this.type = allTypes[random.nextInt(10)];\n this.suit = allSuits[random.nextInt(4)];\n }", "private Deck()\n\t{\n\t\tfor (Suit s : Suit.values())\n\t\t\tfor(Rank r : Rank.values())\n\t\t\t\tcards.add(new Card(s,r));\n\t}", "public Card getCard() {\n return this.card;\n }", "public Deck() { // This constructor creates a standard deck\n\n\tcards = new Card[52];\n\tint k=0;\n\t\n\tfor (int i=0; i<4; i++)\n\t for (int j=2; j<15; j++){\n\t\tcards[k]= new Card (j, i);\n\t\tk++;\n\t\t }\n\t \n\n\tshuffle();\n\t\n\tcardsLeft = 52;\n\t/*\tfor (int i=0; i<52; i++)\n\t\tSystem.out.println (cards[i]);*/\n }", "public void populateDeck(){\n\n //Add everything to r\n for(int i=0;i<LUMBER;i++){\n deck.add(new ResourceCard(container, Resource.WOOD, cardStartPoint));\n }\n\n for(int i=0;i<WOOL;i++){\n deck.add(new ResourceCard(container, Resource.WOOL, cardStartPoint));\n }\n\n for(int i=0;i<GRAIN;i++){\n deck.add(new ResourceCard(container, Resource.WHEAT, cardStartPoint));\n }\n\n for(int i=0;i<BRICK;i++){\n deck.add(new ResourceCard(container, Resource.BRICKS, cardStartPoint));\n }\n\n for(int i=0;i<ORE;i++){\n deck.add(new ResourceCard(container, Resource.ORE, cardStartPoint));\n }\n //Collections.shuffle(deck);\n\n }", "public Card dealCard() {\n\t\tnumCards = deckCount * 52;\n\t\tif (dealt >= numCards) {\n\t\t\tthrow new IllegalStateException(\"No Cards Left In The Deck\");\n\t\t} else {\n\n\t\t\tcardsRemaining = numCards - dealt;\n\t\t\tswitch (cardsRemaining) {\n\t\t\tcase 15:\n\t\t\t\tSystem.out.println(\"15 cards remaining in the shoe\");\n\t\t\t\tbreak;\n\t\t\tcase 5:\n\t\t\t\tSystem.out\n\t\t\t\t.println(\"5 cards remaining in the shoe, adding cards \"\n\t\t\t\t\t\t+ \"to shoe \");\n\t\t\t\tShoe.clear();\n\t\t\t\tfor (int h = 0; h < deckCount; h++) {\n\t\t\t\t\tfor (int i = 1; i < 14; i++) {\n\t\t\t\t\t\tfor (int j = 1; j < 4; j++) {\n\t\t\t\t\t\t\tShoe.add(new Card(i, j));\n\t\t\t\t\t\t\tCollections.shuffle(Shoe);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tdealt++;\n\t\t\treturn Shoe.get(dealt - 1);\n\t\t}\n\t}", "public synchronized List<Card> getCardsInPlay(){\n cardsInPlay.clear();\r\n \r\n for(Player player: players){\r\n if(player == null){\r\n continue;\r\n }\r\n if(player.getCardsInHand().isEmpty()){\r\n continue;\r\n }\r\n for(Card card: player.getCardsInHand()){\r\n cardsInPlay.add(card);\r\n }\r\n }\r\n return cardsInPlay;\r\n }", "public void initChestDeck() {\n\t\tchestDeck = new Deck();\n\t\tfor (int i = 0; i < 16; i++) {\n\t\t\tchestDeck.addCard(new Card(i + 16));\n\t\t}\n\t\t//makes cards random\n\t\tchestDeck.shuffle();\n\t}", "public CardInfo[] getCardInfo() {\n return cardInfo;\n }", "public Integer getYellowCards() {\n return this.yellowCards;\n }", "public ArrayList<Card> getMachineCards() {\n\t\treturn this.machine;\n\t}", "public ArrayList<CareerCards> getCollegeCareerCardDeck(){\n\t\treturn collegeCareerCardDeck;\n\t}", "private void initCards() {\n for(int i = 0; i< noOfColumns; i++) {\n for (int j = 0; j < noOfRows; j++) {\n cards[i][j] = new Card(new Paint(), CardState.FACE_DOWN);\n }\n }\n setRandomColors();\n }", "@Override\n public SortedBag<Card> initialClaimCards() {\n sendInstruction(MessageId.CARDS);\n return Serdes.CARD_BAG_SERDE.deserialize(receiveInstruction());\n }", "private void fillDeck() {\n int index = 0;\n for (int suit = 1; suit <= 4; suit++) {\n for (int rank = 1; rank <= 13; rank++) {\n deck[index] = new Card(rank, suit);\n index++;\n\n }\n }\n }" ]
[ "0.7714306", "0.71036017", "0.7049915", "0.70216453", "0.70010066", "0.697608", "0.6966324", "0.69531727", "0.6919893", "0.68244", "0.68055445", "0.6706363", "0.6639733", "0.66346735", "0.66167074", "0.65963", "0.65873015", "0.6584901", "0.656852", "0.65064496", "0.6489721", "0.64754", "0.6414618", "0.64105123", "0.6381936", "0.6350173", "0.6340428", "0.63182384", "0.62983686", "0.62811446", "0.6280955", "0.6249017", "0.6232832", "0.6227875", "0.6203482", "0.6202707", "0.6200353", "0.6197615", "0.6193562", "0.6174323", "0.61681783", "0.6089717", "0.60885465", "0.60776794", "0.60688967", "0.6055797", "0.6016511", "0.6015681", "0.6002113", "0.5985485", "0.598377", "0.5950647", "0.59355104", "0.5922199", "0.5892597", "0.58917904", "0.58842963", "0.5871071", "0.5863938", "0.5863647", "0.58630913", "0.58372587", "0.58366203", "0.5833013", "0.57990974", "0.57964605", "0.5795939", "0.57952523", "0.57797277", "0.57782054", "0.5777583", "0.5762788", "0.57604235", "0.57580453", "0.5756531", "0.5753477", "0.5711211", "0.570173", "0.56966186", "0.56928843", "0.5688273", "0.56855696", "0.56737745", "0.5661467", "0.56583244", "0.56557673", "0.5649947", "0.56303775", "0.56298536", "0.5629454", "0.56192124", "0.56162995", "0.56074846", "0.55935884", "0.5592469", "0.5582663", "0.55799955", "0.5578389", "0.55704015", "0.5568853" ]
0.72376966
1
Get the seed cards.
public ArrayList<Cards> getSeedCards() { return seedCards; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@JsonIgnore\n\tpublic List<Card> getAvailableCards() {\n\t\tList<Card> availableCards = new ArrayList<>();\n\t\tfor (int i = dealtCards.get(); i < Deck.DECK_SIZE; i++) {\n\t\t\tCard card = cards.get(i);\n\t\t\tavailableCards.add(card);\n\t\t}\n\t\treturn availableCards;\n\t}", "public int[] getCards() {\n \t\treturn cards;\n \t}", "private ArrayList<Card> getDeckCards(){\n\t\t\t\tArrayList<Card> getdeck = new ArrayList<>();\r\n\t\t\t\t// deck = new ArrayList(52);\r\n\r\n\t\t\t\t// create cards in the deck (0-51)\r\n\t\t\t\tfor (int i = 0; i <= 10; i++) {\r\n\t\t\t\t\tgetdeck.add(new Card(i));\r\n\t\t\t\t}\r\n\t\t\t\t//Collections.shuffle(getdeck);\r\n\t\t\t\t// shuffle the cards\r\n\t\t\t\tfor (int i = 0; i <= getdeck.size()-1; i++) {\r\n\t\t\t\t\tint newindex = (int) (Math.random() * 51);\r\n\t\t\t\t\tCard temp = getdeck.get(i);\r\n\t\t\t\t\tgetdeck.set(i, getdeck.get(newindex));\r\n\t\t\t\t\tgetdeck.set(newindex, temp);\r\n\t\t\t\t}\r\n\t\t\t\t//TODO delete println\r\n\t\t\t\t// print shuffled deck\r\n\t\t\t\tfor (int i = 0; i <= getdeck.size()-1; i++) {\r\n\t\t\t\t\tSystem.out.println(getdeck.get(i).getCardNbr());\r\n\t\t\t\t}\r\n\t\t\t\treturn getdeck;\r\n\t}", "public com.google.protobuf.ByteString getCards() {\n return cards_;\n }", "public List<Card> getCards() throws RemoteException {\n return mainScreenProvider.getCards();\n }", "public com.google.protobuf.ByteString getCards() {\n return cards_;\n }", "com.google.protobuf.ByteString getCards();", "public Card getAllCards() {\n\t\tfor (Card cardInDeck : cards) {\n\t\t\tSystem.out.println(\"Rank: \" + cardInDeck.getRank() + \"\\n\"\n\t\t\t\t\t+ \"Suit: \" + cardInDeck.getSuit()+ \"\\n\");\n\t\t\t//System.out.println(i++);\n\t\t}\n\t\treturn null;\n\t}", "@Override\n\tpublic PlayingCard[] getCards() {\n\t\tif(getCount() != 0) {\n\t\t\tPlayingCard[] kopie = new SkatCard[getCount()];\n\t\t\tfor(int i = 0; i < getCount(); i++) {\n\t\t\t\tkopie[i] = new SkatCard(aktuellesDeck[i].getSuit(), aktuellesDeck[i].getRank());\n\t\t\t}\n\t\t\treturn kopie;\n\t\t}else {\n\t\t\tSystem.out.println(\"Stapel leer --> Kopie vom Stapel leer\");\n\t\t\treturn null;\n\t\t}\n\t}", "public List<Card> getCards() {\n\t\treturn cards;\n\t}", "private List<Card> createDeck(){\n List<Card> newDeck= new ArrayList<Card>();\n for (int i =0;i<CardSet.ALL_CARDS.size(); ++i ) {\n newDeck.add(CardSet.ALL_CARDS.get(i));\n }\n return newDeck;\n }", "@Override\r\n public List<Card> getDeck() {\n myDeck2.clear();\r\n\r\n //loops through twice in order to create the deck of 104\r\n for (int k = 0; k < 2; k++) {\r\n for (int i = 0; i < 4; i++) {\r\n for (int j = 1; j <= 13; j++) {\r\n Card nextCard = new Card(suit[i], j);\r\n myDeck2.add(nextCard);\r\n }\r\n }\r\n }\r\n\r\n return myDeck2;\r\n }", "public List<Card> getCards() {\n return new ArrayList<Card>(cards);\n }", "public List<Card> getCards() {\n\t\treturn new ArrayList<Card>(this.content);\n\t}", "public Cards getCards() {\r\n\t\treturn cards;\r\n\t}", "public String getCards()\r\n\t{\r\n\t\t// creates a larger string which will have the cards appended to it\r\n\t\tString cardList = \"\";\r\n\t\t\r\n\t\t// adds all cards currently in hand\r\n\t\tfor (int i = 0; i < handCount; i++)\r\n\t\t{\r\n\t\t\tcardList = cardList + pCards[i] + \" \";\r\n\t\t}\r\n\t\t\r\n\t\treturn cardList;\r\n\t}", "public List<Card> getCards()\n {\n return this.deckOfCards;\n }", "public Color[] getCards() {\n\t\treturn cards;\n\t}", "public List<Card> getCards(){\r\n\t\treturn cards;\r\n\t}", "private void generateDeckOfCards() {\n this.cards = new ArrayList<Card>(Suit.values().length * Rank.values().length);\n for (Suit suit : Suit.values()) {\n for (Rank rank : Rank.values()) {\n cards.add(new Card(suit, rank));\n }\n }\n }", "@Override\n\tpublic Cards getCards() {\n\t\treturn cards;\n\t}", "public void generateDeck() {\n\t\tList<String> valueList = Arrays.asList(\"Ace\", \"2\", \"3\",\"4\", \"5\", \"6\",\"7\", \"8\", \"9\",\"10\", \"Jack\", \"Queen\",\"King\");\n\t\tList<String> suitList = Arrays.asList(\"Diamonds\", \"Spades\", \"Clubs\", \"Hearts\");\n\t\tvalues.addAll(valueList);\n\t\tsuits.addAll(suitList);\n\t\t\n\t\t//adding card objects to deckOfCards arraylist\n\t\tint i = 1;\n\t\twhile(i<=52){\n Card card = new Card(values.get(random.nextInt(13)), suits.get(random.nextInt(4)));\n if (!deckOfCards.contains(card)) {\n deckOfCards.add(card);\n i++;\n }else{\n\n }\n }\n\t}", "private List<Card> setupDeck(){\n List<Card> llist = new LinkedList<Card>();\n String[] faceCards = {\"J\",\"Q\",\"K\",\"A\"};\n String[] suits = {\"spades\",\"clubs\",\"diamonds\",\"hearts\"};\n\n for(int i=2; i<=10; i++){\n for(int j=1; j<=4; j++){\n llist.add(new Card(Integer.toString(i), suits[j-1], j, i));\n }\n }\n for(int k=1; k<=4; k++){\n for(int l=1; l<=4; l++){\n llist.add(new Card(faceCards[k-1],suits[l-1], l, k+10));\n }\n }\n return llist;\n }", "public DeckOfCards() {\n\n String faces[] = {\"Ace\", \"Deuce\", \"Three\", \"Four\", \"Five\", \"Six\", \"Seven\", \"Eight\", \"Nine\", \"Ten\", \"Jack\", \"Queen\", \"King\"};\n String suits[] = {\"Hearts\", \"Diamonds\", \"Clubs\", \"Spades\"};\n\n deck = new Card[NUMBER_OF_CARDS]; //create an array of card objects (52)\n currentCard = 0;\n randomNumbers = new Random();\n\n //Populate deck with card objects\n for(int count = 0; count < deck.length; count++){\n deck[count] = new Card(faces[count % 13], suits[count / 13]);\n //first 13 cards will be ace through king of hearts then ace though king of diamonds etc...\n\n }\n\n }", "@Override\n\tpublic List<Card> findAllCard() {\n\t\treturn cb.findAllCard();\n\t}", "public List<Card> findAllCards();", "public static List<ScrumPokerCard> getDeck() {\n return Arrays.stream(values()).collect(Collectors.toList());\n }", "public ArrayList<Card> getCards() {\n\n return cards;\n }", "public int size() {\r\n\t\treturn seedCards.size();\r\n\t}", "List<Card> getCards() {\n return cards;\n }", "public ArrayList<Card> getCards()\n\t{\n\t\treturn cards;\n\t}", "public static Stack<int[]> createDeck() {\n\t\t// Populate deck with 4 suits, 13 cards each [RANK, SUIT]\n\t\tStack<int[]> deck = new Stack<int[]>();\n\t\tfor (int j = HEARTS; j <= SPADES; j++) {\n\t\t\tfor (int i = 1; i <= 13; i++) {\n\t\t\t\tint[] card = new int[] {i, j};\n\t\t\t\tdeck.push(card);\n\t\t\t}\n\t\t}\n\t\tCollections.shuffle(deck);\n\t\treturn deck;\n\t}", "public Deck() {\n\t\trand = new Random();\n\t\trand.setSeed(System.currentTimeMillis());\n\t\twhile(deck.size()<52){\n\t\t\tint suit = rand.nextInt(4);\n\t\t\tint rank = rand.nextInt(13);\n\t\t\tString card = this.rank[rank] +\" of \" + this.suit[suit];\n\t\t\tdeck.add(card);\n\t\t}\n\t}", "public void populateDeck(){\n\n //Add everything to r\n for(int i=0;i<LUMBER;i++){\n deck.add(new ResourceCard(container, Resource.WOOD, cardStartPoint));\n }\n\n for(int i=0;i<WOOL;i++){\n deck.add(new ResourceCard(container, Resource.WOOL, cardStartPoint));\n }\n\n for(int i=0;i<GRAIN;i++){\n deck.add(new ResourceCard(container, Resource.WHEAT, cardStartPoint));\n }\n\n for(int i=0;i<BRICK;i++){\n deck.add(new ResourceCard(container, Resource.BRICKS, cardStartPoint));\n }\n\n for(int i=0;i<ORE;i++){\n deck.add(new ResourceCard(container, Resource.ORE, cardStartPoint));\n }\n //Collections.shuffle(deck);\n\n }", "public Deck getDeck(){\r\n\t\t return cards;\r\n\t }", "public Deck(){\n\t\tcount = 51;\n\t\tcards = new Card[52];\n\t\trand = new Random();\n\t\tfor(Suit suit : Suit.values()){\n\t\t\tfor (int i = 2; i < 15; i++) {\n\t\t\t\tcards[suit.ordinal()*13 + i - 2] = new Card(suit,i);\n\t\t\t}\n\t\t}\n\t}", "private void fillDeck(){\r\n this.cards = new ArrayList<Card>();\r\n int cardPerSuit = this.deckSize/4;\r\n \r\n for( Suit Su: suits ){\r\n for(int i = 0; i < cardPerSuit; i++){\r\n this.cards.add(i, new Card(i+2, Su.ordinal()));\r\n }\r\n }\r\n \r\n }", "public Seed() {\r\n\t\tcards = new Cards();\r\n\t\tseedCards = new ArrayList<Cards>();\r\n\t\tdescription = \"\";\r\n\t\tautoSummary = \"\";\r\n\t}", "public Cards get(int i) {\r\n\t\treturn seedCards.get(i);\r\n\t}", "public ArrayList<VentraCard> getAllCards(){\n \treturn allCards;\n }", "public List<Card> getCardsInPlay() {\n List<Card> cards = new ArrayList<>(cardsInPlayStack);\n cardsInPlayStack.removeAllElements();\n return cards;\n }", "public CardStack getAvailableCards()\n {\n return null;\n }", "public Deck() {\n cards = new Card[52];\n size = 0;\n for (int suit = Card.SPADES; suit <= Card.CLUBS; suit++) {\n for (int rank = Card.ACE; rank <= Card.KING; rank++) {\n cards[size] = new Card(rank, suit);\n size += 1;\n }\n }\n }", "public ArrayList<Card> giveAllCards() {\n\t\tArrayList<Card> temp = new ArrayList<Card>();\n\t\ttemp.addAll(cards);\n\t\tcards.clear();\n\t\ttopCard = new Card();\n\t\treturn temp;\n\t}", "public Card [] getCards() {\r\n Card [] cardDeckCopy = new Card [this.cardsLeft];\r\n \r\n // A copy of the cardDeck is made of the size of the remaining cards so that the private attribute is not directly\r\n // affected\r\n \r\n for (int index = 0; index < this.cardsLeft; index++) {\r\n cardDeckCopy [index] = cardDeck [index];\r\n }\r\n return cardDeckCopy;\r\n }", "public List<AbstractCard> cards();", "public List<Card> getCards()\n {\n // RETURN the CardMessage's list of <code>ClueCards</code>\n return this.cards;\n }", "@GetMapping(\"/startRound/{gameId}/{UID}/cards\")\n public List<Ycard> getCurrentCardsForUser() {\n return new ArrayList<Ycard>();\n }", "public List<Card> getCards(){\n\t\treturn this.pile;\n\t}", "public static Card[] getStandardDeck() {\n Card[] deck = new Card[52];\n int s = 0;\n for (SUIT suit : SUIT.values()) {\n for (int i = 12; i > -1; i--) {\n deck[s + i] = new Card(suit, i);\n }\n s += 13;\n }\n return deck;\n }", "public Deck() { // This constructor creates a standard deck\n\n\tcards = new Card[52];\n\tint k=0;\n\t\n\tfor (int i=0; i<4; i++)\n\t for (int j=2; j<15; j++){\n\t\tcards[k]= new Card (j, i);\n\t\tk++;\n\t\t }\n\t \n\n\tshuffle();\n\t\n\tcardsLeft = 52;\n\t/*\tfor (int i=0; i<52; i++)\n\t\tSystem.out.println (cards[i]);*/\n }", "private void fillDeck() {\n int index = 0;\n for (int suit = 1; suit <= 4; suit++) {\n for (int rank = 1; rank <= 13; rank++) {\n deck[index] = new Card(rank, suit);\n index++;\n\n }\n }\n }", "public UnoCard getCard(){\n Random rnd = new Random();\n int rnd_number = rnd.nextInt(((this.cards.size()-1)-0) + 1) + 0;\n return this.cards.get(rnd_number);\n\n }", "public ArrayList<Card> getCards() {return cards;}", "@Override\n public SortedBag<Card> initialClaimCards() {\n sendInstruction(MessageId.CARDS);\n return Serdes.CARD_BAG_SERDE.deserialize(receiveInstruction());\n }", "public static int[] createShuffledDeck(){\n //create a deck\n int[] deck = new int[52];\n //make each item their respective index + 1 to avoid repetition\n for(int i = 0; i < deck.length; i++){\n deck[i] = i+1;\n }\n //shuffle deck\n shuffle(deck);\n return deck;\n }", "public int getTotalCards() {\n\t\treturn cards.size();\n\t}", "private void createShuffleAndAddCards() {\n //Creating all 108 cards and saving them into an arraylist\n ArrayList<Card> cards = new ArrayList<>();\n String[] colors = {\"red\", \"blue\", \"yellow\", \"green\"};\n for (String color : colors) {\n for (int i = 1; i < 10; i++) {\n for (int j = 0; j < 2; j++) {\n cards.add(new Card(\"Numeric\", color, i));\n }\n }\n cards.add(new Card(\"Numeric\", color, 0));\n for (int i = 0; i < 2; i++) {\n cards.add(new Card(\"Skip\", color, 20));\n cards.add(new Card(\"Draw2\", color, 20));\n cards.add(new Card(\"Reverse\", color, 20));\n }\n }\n for (int i = 0; i < 4; i++) {\n cards.add(new Card(\"WildDraw4\", \"none\", 50));\n cards.add(new Card(\"WildColorChanger\", \"none\", 50));\n }\n //shuffling cards and adding them into the storageCards main list\n Collections.shuffle(cards);\n for (Card card : cards) {\n storageCards.add(card);\n }\n cards.clear();\n }", "private void initializeDeck() {\r\n deck = new ArrayList<>(52);\r\n\r\n for (String suit : SUITS) {\r\n for (String rank : RANKS) {\r\n deck.add(new Card(rank, suit)); // adds 52 cards to the deck (13 ranks, 4 suits)\r\n }\r\n }\r\n }", "public void initializeCards() {\n\t\tcardSet.clear();\n\t\tfor (Suit suit : Suit.values()) {\n\t\t\tfor (Rank rank : Rank.values()) {\n\t\t\t\tCard card = new Card(suit, rank);\n\t\t\t\tcardSet.add(card);\n\t\t\t}\n\t\t}\n\t}", "public int getNumCards() {\n return this.numCards;\n }", "public Card[] GetCards() { return mCard; }", "public void cards() {\n\t\t\n\n\t\tboolean[] randomCards = new boolean[52];\n\n\t\t// choose 4 random distinct cards from the deck\n\t\tint count = 0;\n\t\tint card1 = 0;\n\t\tint card2 = 0;\n\t\tint card3 = 0;\n\t\tint card4 = 0;\n\n\t\twhile (count < 4) {// Display only four cards\n\n\t\t\tcard1 = ((int) (Math.random() * 12) + 1) + 1;// Ignore zero\n\t\t\tcard2 = ((int) (Math.random() * 12) + 1) + 1;// Ignore zero\n\t\t\tcard3 = ((int) (Math.random() * 12) + 1) + 1;// Ignore zero\n\t\t\tcard4 = ((int) (Math.random() * 12) + 1) + 1;// Ignore zero\n\n\t\t\tif ((randomCards[card1] = !randomCards[card2]) && (randomCards[card1] = !randomCards[card3])\n\t\t\t\t\t&& (randomCards[card1] = !randomCards[card4]) && (randomCards[card2] = !randomCards[card3])\n\t\t\t\t\t&& (randomCards[card2] = !randomCards[card4]) && (randomCards[card3] = !randomCards[card4])) {\n\n\t\t\t\tString[] cards = { \"clubs\", \"diamonds\", \"hearts\", \"spades\" };\n\n\t\t\t\tString name1 = cards[(int) (Math.random() * cards.length)];\n\t\t\t\tString name2 = cards[(int) (Math.random() * cards.length)];\n\t\t\t\tString name3 = cards[(int) (Math.random() * cards.length)];\n\t\t\t\tString name4 = cards[(int) (Math.random() * cards.length)];\n\n\t\t\t\tImage image1 = new Image(\"png/\" + (card1) + \"_of_\" + name1 + \".png\");\n\t\t\t\tImage image2 = new Image(\"png/\" + (card2) + \"_of_\" + name2 + \".png\");\n\t\t\t\tImage image3 = new Image(\"png/\" + (card3) + \"_of_\" + name3 + \".png\");\n\t\t\t\tImage image4 = new Image(\"png/\" + (card4) + \"_of_\" + name4 + \".png\");\n\n\t\t\t\timgCard1.setImage(image1);\n\t\t\t\timgCard2.setImage(image2);\n\t\t\t\timgCard3.setImage(image3);\n\t\t\t\timgCard4.setImage(image4);\n\n\t\t\t\tcount++;\n\n\t\t\t}\n\n\t\t}\n\n\t\tString cardOneValue = Integer.toString(card1);\n\t\tString cardTwoValue = Integer.toString(card2);\n\t\tString cardThreeValue = Integer.toString(card3);\n\t\tString cardFourValue = Integer.toString(card4);\n\t\tSystem.out.println(cardOneValue + \" - \" + cardTwoValue + \" - \" + cardThreeValue + \" - \" + cardFourValue);\n\t\tsetText.setText(cardOneValue +\" \"+ cardTwoValue +\" \"+ cardThreeValue +\" \"+ cardFourValue);\n\t\t\n\t\tint solution = 0; \n\t\tif(solution!=24) {\n\t\tfor(int limit = 0; limit < 25; limit++) {\n\t\t\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(solution);\n\t\t\n\t}", "public List<Card> getVegasDeckCardList(){\n return vegasDeckCardList;\n }", "Vector<Card> shuffleDeck(Vector<Card> cards)\n\t{\n\t Collections.shuffle(cards);\n\t return cards;\n\t}", "public Set<Card> generateDefaultCards(Board board) {\n final int cardsCount = 8;\n final ZoneId zoneId = ZoneId.of(board.getTimeZone());\n final Set<Card> cards = new HashSet<>();\n \n for (int i = 0; i < cardsCount; i++) {\n LocalDate day = i == 0 ? LocalDate.now(zoneId) : LocalDate.now(zoneId).plus(i, ChronoUnit.DAYS);\n Card card = generateNewCard(board, day);\n card.setTodos(i == 0 ? todoService.generateDefaultTodos(card, zoneId) : null);\n cards.add(card);\n }\n LOGGER.info(\"New Cards for Board {} have been generated\", board.getName());\n return cards;\n }", "public Card getCard(){\n return cards.get(0);\n }", "public int getNumCards()\r\n {\r\n return numCards;\r\n }", "public List<CardImage> readAll() {\n List<CardImage> cards = new ArrayList<CardImage>();\n for (String colour : this.colours) {\n for (String number : this.numbers) {\n for (String darkLight : this.darkLight) {\n cards\n .add(\n new CardImage(colour, number, darkLight,\n new Image(getClass().getResource(\n \"cards/\" + colour + seperator + number + seperator + darkLight + \".png\")\n .toExternalForm())));\n }\n }\n }\n return cards;\n }", "public static List<Flashcard> generateStudySet() {\n\n Flashcard card1 = new Flashcard(\"ANT\", \n \"Another Neat Tool, a Java library for building Java projects\", 1); \n Flashcard card2 = new Flashcard(\"HTTP\", \"HyperText Transfer Protocol for \"\n + \"browser requests and server responses.\", 2); \n Flashcard card3 = new Flashcard(\"Servlet\", \"A Java class that handles \" \n + \"browser requests by sending responses with data.\", 2); \n Flashcard card4 = new Flashcard(\"JSP\", \"Java Server Page, server-compiled \" \n + \"webpages.\", 3);\n\n ArrayList<Flashcard> flashcards = new ArrayList<Flashcard>(); \n flashcards.add(card1);\n flashcards.add(card2);\n flashcards.add(card3);\n flashcards.add(card4);\n \n return flashcards; \n\n }", "public ArrayList<Card> getCards(){\n return this.cards;\n }", "private void generateNewCards()\n {\n // Set the card sets to be drafted from.\n setsForDraft = new ArrayList<>();\n setsForDraft.add(M19_CARD_TABLE);\n\n // Generates sealed pool and places in openedCardPool.\n drawPacksFromSets();\n\n // Initialize a selectedCardPool that is empty, for the user to move cards into when desired.\n selectedCardPool = new ArrayList<>();\n }", "public int numOfCards() {\n return cards.size();\n }", "@GetMapping(\"/cards\")\n List<StarbucksCard> all() {\n return repository.findAll();\n }", "public void showCards() {\n\t\tfor(int i=0;i<cards.size();i++) {\n\t\t\tSystem.out.println(cards.get(i).toString());\n\t\t}\n\t}", "public Integer getYellowCards() {\n return this.yellowCards;\n }", "private void shuffleAndGiveCards() {\n\n List<Card> tmpDeck= new ArrayList<Card>(deck); \n Collections.shuffle(tmpDeck, shuffleRng);\n \n for (int i=0; i<players.size(); ++i) {\n int startIndex= Jass.HAND_SIZE*i; //So for player 0 the startIndex will be 0, for player2 9, etc...\n int endIndex = Jass.HAND_SIZE*(i+1); //So for player 1 the endIndex will be 9, for player2 18, etc...\n\n CardSet hand= CardSet.of(tmpDeck.subList(startIndex, endIndex));\n PlayerId player = PlayerId.ALL.get(i);\n\n players.get(player).updateHand(hand);\n handsOfCards.put(player, hand); \n }\n }", "public ArrayList<Card> getPlayedCards()\n\t{\n\t\treturn playedCards;\n\t}", "void getArrangedDeck() {\n\t\t\t\t\n\t\tint strength = 1;\n\t\t\n\t\tfor(int index = 0; index < this.numberOfCards; index++) {\n\n\t\t\tif((index+1)%4==0) {\n\t\t\t\tthis.cardsInDeck[index].setColor('\\u2660');\n\t\t\t} else {\n\t\t\t\tif((index+2)%4==0) {\n\t\t\t\t\tthis.cardsInDeck[index].setColor('\\u2665');\n\t\t\t\t} else {\n\t\t\t\t\tif((index+3)%4==0) {\n\t\t\t\t\t\tthis.cardsInDeck[index].setColor('\\u2666');\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthis.cardsInDeck[index].setColor('\\u2663');\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tthis.cardsInDeck[index].setStrength(strength);\n\t\t\tif((index+1) % 4 == 0){\n\t\t\t\tstrength++;\n\t\t\t}\n\t\t\t\n\t\t\tif (index >= 0 && index <= 3) {\n\t\t\t\tthis.cardsInDeck[index].setName(\"2\");\n\t\t\t}\n\t\t\tif (index >= 4 && index <= 7) {\n\t\t\t\tthis.cardsInDeck[index].setName(\"3\");\n\t\t\t}\n\t\t\tif (index >= 8 && index <= 11) {\n\t\t\t\tthis.cardsInDeck[index].setName(\"4\");\n\t\t\t}\n\t\t\tif (index >= 12 && index <= 15) {\n\t\t\t\tthis.cardsInDeck[index].setName(\"5\");\n\t\t\t}\n\t\t\tif (index >= 16 && index <= 19) {\n\t\t\t\tthis.cardsInDeck[index].setName(\"6\");\n\t\t\t}\n\t\t\tif (index >= 20 && index <= 23) {\n\t\t\t\tthis.cardsInDeck[index].setName(\"7\");\n\t\t\t}\n\t\t\tif (index >= 24 && index <= 27) {\n\t\t\t\tthis.cardsInDeck[index].setName(\"8\");\n\t\t\t}\n\t\t\tif (index >= 28 && index <= 31) {\n\t\t\t\tthis.cardsInDeck[index].setName(\"9\");\n\t\t\t}\n\t\t\tif (index >= 32 && index <= 35) {\n\t\t\t\tthis.cardsInDeck[index].setName(\"10\");\n\t\t\t}\n\t\t\tif (index >= 36 && index <= 39) {\n\t\t\t\tthis.cardsInDeck[index].setName(\"J\");\n\t\t\t}\n\t\t\tif (index >= 40 && index <= 43) {\n\t\t\t\tthis.cardsInDeck[index].setName(\"Q\");\n\t\t\t}\n\t\t\tif (index >= 44 && index <= 47) {\n\t\t\t\tthis.cardsInDeck[index].setName(\"K\");\n\t\t\t}\n\t\t\tif (index >= 48 && index <= 51) {\n\t\t\t\tthis.cardsInDeck[index].setName(\"A\");\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "public ArrayList<Card> getCards(){\r\n return cards;\r\n }", "void fillDeck()\n\t{\n\t\t\n\t\tfor ( byte decks = 0 ; decks < howManyDecks ; decks++ )\n\t\t\tfor ( byte suit = 0 ; suit < 4 ; suit++ )\n\t\t\t\tfor ( byte value = 1 ; value < 14 ; value++ ) \n\t\t\t\t\tdeck.add ( new Card (value , suit , true) );\n\t}", "public static LinkedList<Card> produceCards ()\n {\n LinkedList<Card> list = new LinkedList<> ();\n\n for (int i = 0; i < 10; i++)\n {\n if (i == 0)\n {\n list.add (new NumericCard (Color.BLUE,i));\n list.add (new NumericCard (Color.RED,i));\n list.add (new NumericCard (Color.GREEN,i));\n list.add (new NumericCard (Color.YELLOW,i));\n }\n else\n {\n for (int j = 0; j < 2; j++)\n {\n list.add (new NumericCard (Color.BLUE,i));\n list.add (new NumericCard (Color.RED,i));\n list.add (new NumericCard (Color.GREEN,i));\n list.add (new NumericCard (Color.YELLOW,i));\n }\n }\n }\n return list;\n }", "public Collection<Card> getCopyOfCardsList() {\n\t\treturn new ArrayList<>(cards);\n\t}", "public Card dealCard() {\n int randPos = random.nextInt(51 - 0 + 1);\n Card rand = deck[randPos];\n return rand;\n\n }", "public Deck() {\n this.cards = new Card[STANDARD_DECK_SIZE];\n this.topCardIndex = 0;\n int cardIndex = 0;\n int DeckLength = this.cards.length;\n for (Card.Suit suit : Card.Suit.values() ) {\n for (int i = Card.ACE ; i <= Card.KING ; i++ ) {\n cards[cardIndex] = new Card (i, suit);\n cardIndex++;\n }\n }\n }", "public ArrayList< Card > getCheat() {\r\n ArrayList< Card > faces = new ArrayList<>();\r\n\r\n for ( Card card : cards ) {\r\n Card copy = new Card( card );\r\n copy.setFaceUp();\r\n faces.add( copy );\r\n }\r\n return faces;\r\n }", "private static int[][] randomCards(int samples, int cardsPerSample){\n int[][] retCards = new int[samples][cardsPerSample];\n\n List<Integer> cards = new ArrayList<>();\n for(int i = 0; i < 52; i++){\n cards.add(i);\n }\n\n for(int i = 0; i < samples; i++){\n Collections.shuffle(cards);\n for(int j = 0; j < cardsPerSample; j++){\n retCards[i][j] = cards.get(j);\n }\n }\n\n return retCards;\n }", "public CardDeck cardDeck(){\r\n\t\treturn deck;\r\n\t}", "private void makeCards() {\n //make number cards(76 cards)\n for (int i = 0; i < 10; i++) {\n String s = i + \"\";\n cards.add(new NumberCard(s, Color.RED, i));\n cards.add(new NumberCard(s, Color.GREEN, i));\n cards.add(new NumberCard(s, Color.BLUE, i));\n cards.add(new NumberCard(s, Color.YELLOW, i));\n if(i > 0) {\n cards.add(new NumberCard(s, Color.RED, i));\n cards.add(new NumberCard(s, Color.GREEN, i));\n cards.add(new NumberCard(s, Color.BLUE, i));\n cards.add(new NumberCard(s, Color.YELLOW, i));\n }\n }\n\n //make wild cards(8 cards)⨁\n for (int i = 0; i < 4; i++) {\n cards.add(new WildCard(\"W\", Color.BLACK));\n cards.add(new WildDrawCard(\"W+4\", Color.BLACK));\n }\n\n //make reverse cards(8 cards)⤤⤦\n for (int i = 0; i < 2; i++) {\n cards.add(new ReverseCard(\"Rev\", Color.RED));\n cards.add(new ReverseCard(\"Rev\", Color.GREEN));\n cards.add(new ReverseCard(\"Rev\", Color.BLUE));\n cards.add(new ReverseCard(\"Rev\", Color.YELLOW));\n }\n\n //make draw cards(8 cards)⧉\n for (int i = 0; i < 2; i++) {\n cards.add(new Draw2Card(\"D+2\", Color.RED));\n cards.add(new Draw2Card(\"D+2\", Color.GREEN));\n cards.add(new Draw2Card(\"D+2\", Color.BLUE));\n cards.add(new Draw2Card(\"D+2\", Color.YELLOW));\n }\n\n //make skip cards(8 cards)🚫\n for (int i = 0; i < 2; i++) {\n cards.add(new SkipCard(\"Ski\", Color.RED));\n cards.add(new SkipCard(\"Ski\", Color.GREEN));\n cards.add(new SkipCard(\"Ski\", Color.BLUE));\n cards.add(new SkipCard(\"Ski\", Color.YELLOW));\n }\n //Shuffling cards list\n Collections.shuffle(cards);\n }", "@Override\n public void createDeck(){\n for (char suit:standardSuits) {\n for (Map.Entry<Character, Integer> item:deckCards.entrySet()) {\n Card card = new Card(item.getKey(),item.getValue(),suit);\n deckOfCards.add(card);\n }\n }\n }", "public ArrayList<Card> getHand(){\n return cards;\n }", "public void cardGen(){\n\t\tRandom rand = new Random();\n\t\tint randValue = rand.nextInt(13);\n\t\tcardString = value[randValue] + suit[rand.nextInt(4)];\n\t}", "public ArrayList<Card> getDeck()\n {\n return deck;\n }", "public synchronized List<Card> getCardsInPlay(){\n cardsInPlay.clear();\r\n \r\n for(Player player: players){\r\n if(player == null){\r\n continue;\r\n }\r\n if(player.getCardsInHand().isEmpty()){\r\n continue;\r\n }\r\n for(Card card: player.getCardsInHand()){\r\n cardsInPlay.add(card);\r\n }\r\n }\r\n return cardsInPlay;\r\n }", "private void initCards() {\n for(int i = 0; i< noOfColumns; i++) {\n for (int j = 0; j < noOfRows; j++) {\n cards[i][j] = new Card(new Paint(), CardState.FACE_DOWN);\n }\n }\n setRandomColors();\n }", "Deque<PokerCard> getShuffledHalfDeck();", "public String showCards() {\n String message = \"[ \";\n for (Card card : personHand) {\n message += card + \" \";\n }\n message += \"]\";\n return message;\n }", "public Integer getRedCards() {\n return this.redCards;\n }", "public ArrayList<Card> getDeck() {\n return deck;\n }", "public int getVictoryCards() {\n \t\treturn victory;\n \t}" ]
[ "0.7214389", "0.7192044", "0.7008184", "0.69841075", "0.6963431", "0.694094", "0.6796121", "0.677333", "0.6740505", "0.6737961", "0.6725071", "0.6719408", "0.66997063", "0.66625214", "0.6654227", "0.66398084", "0.6635348", "0.66308415", "0.66229236", "0.661288", "0.66074574", "0.6594155", "0.6572266", "0.6518994", "0.64648455", "0.6457053", "0.644812", "0.64172244", "0.64129657", "0.6388483", "0.6367261", "0.6340661", "0.63004744", "0.62866074", "0.62797624", "0.6233026", "0.62304455", "0.6217917", "0.62157494", "0.6213427", "0.6191251", "0.61881775", "0.61854607", "0.6183234", "0.61816823", "0.61719203", "0.6170908", "0.61501515", "0.6145735", "0.6116895", "0.6114561", "0.6109138", "0.6080205", "0.6079793", "0.6079126", "0.6078044", "0.6050966", "0.603734", "0.60268074", "0.6012534", "0.60117996", "0.6009642", "0.6001933", "0.59844553", "0.59733266", "0.5968664", "0.5967001", "0.59660137", "0.59593135", "0.59569216", "0.5953726", "0.5948521", "0.5944186", "0.5938905", "0.59361655", "0.59264594", "0.5923226", "0.59133184", "0.5906751", "0.5896132", "0.5889864", "0.5880842", "0.58763254", "0.58729", "0.58694243", "0.5850291", "0.58463186", "0.58423346", "0.58419067", "0.5839219", "0.58280283", "0.58137995", "0.58090544", "0.5806847", "0.5803475", "0.5801948", "0.5793978", "0.57924134", "0.5789233", "0.5787546" ]
0.8253217
0
Get the size of the seed.
public int size() { return seedCards.size(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int getRandomSize() {\n return RandomNumberGenerator.getRandomInt(200, 100000);\n }", "public static int size_length() {\n return (8 / 8);\n }", "public final int size() {\r\n return sequentialSize(root);\r\n }", "public static int size() {\n\t\treturn (anonymousSize() + registeredSize());\n\t}", "public static int size_estLength() {\n return (8 / 8);\n }", "public int size( )\r\n {\r\n int size = (int) manyNodes;// Student will replace this return statement with their own code:\r\n return size;\r\n }", "public static int size_counter() {\n return (32 / 8);\n }", "public static int getSIZE() {\n return SIZE;\n }", "public long size() {\n\t\treturn size;\n\t}", "public int initSize() {\n return initEnemiesSpawned;\n }", "public int size() {\n // DO NOT MODIFY THIS METHOD!\n return size;\n }", "public int size() {\n // DO NOT MODIFY!\n return size;\n }", "public static int size_count() {\n return (16 / 8);\n }", "public int length() {\n\t\treturn size;\r\n\t}", "public int getSize() {\r\n return dice.size();\r\n }", "public synchronized long size() {\n\t\treturn size;\n\t}", "public static int sizeOf()\n {\n return 4;\n }", "public final int size() {\n int size = 0;\n final Iterator iterator = this.iterator();\n while (iterator.hasNext()) {\n size++;\n iterator.next();\n }\n return size;\n }", "@Override\n\tpublic long size() {\n\t\treturn this.currentLength.get();\n\t}", "public static int getSize() {\n\n\t\treturn strategyChain.size();\n\t}", "public int size() {\n return doSize();\n }", "public int size() {\n //encapsulate\n int size = this.array.length;\n return size;\n }", "public static int GetSize() {\n\t\t\treturn gridSize.getValue();\n\t\t}", "public int size() {\n \n return size;\n \n }", "public synchronized int size() {\r\n return size;\r\n }", "public int size()\r\n {\r\n return size;\r\n }", "public int size()\r\n {\r\n return size;\r\n }", "public int size()\r\n {\r\n return size;\r\n }", "public int size() {\n return size;\r\n }", "public int returnSize()\r\n {\r\n \treturn length;\r\n }", "public int size () {\n\t\treturn size;\n\t}", "public int size () {\n\t\treturn size;\n\t}", "public static byte getSize() {\n return SIZE;\n }", "public int getSize() {\n\t\treturn WORLD_SIZE;\n\t}", "public int size() {\n // TODO: Implement this method\n return size;\n }", "public int get_size()\r\n\t{\r\n\t\treturn this.size;\r\n\t}", "public int size() {\r\n return size;\r\n }", "public int size() {\r\n return size;\r\n }", "public int size() {\r\n return size;\r\n }", "public int size() {\r\n return size;\r\n }", "public int size() {\n\n return size;\n }", "public int size ()\n {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\r\n return size;\r\n }", "public int size() {\n\t\treturn size;\r\n\t}", "public int size() {\n\t\treturn size;\r\n\t}", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\r\n\t\treturn size;\r\n\t}", "public int size() {\r\n\t\treturn size;\r\n\t}", "public int size() {\r\n\t\treturn size;\r\n\t}", "public int size() {\r\n\t\treturn size;\r\n\t}", "public int size() {\r\n\t\treturn size;\r\n\t}", "public int size() {\r\n\t\treturn size;\r\n\t}", "public long size();" ]
[ "0.7296526", "0.70901924", "0.6853667", "0.6850653", "0.68388045", "0.6792541", "0.6783947", "0.67626995", "0.6760083", "0.6745854", "0.673908", "0.67300606", "0.67151445", "0.6696104", "0.66792536", "0.66715306", "0.6667957", "0.66275597", "0.6617355", "0.66121006", "0.6573893", "0.6561041", "0.65598273", "0.6556962", "0.654567", "0.6542019", "0.6542019", "0.6542019", "0.65307474", "0.65267736", "0.65266675", "0.65266675", "0.65234834", "0.65230685", "0.6521236", "0.6518056", "0.6513517", "0.6513517", "0.6513517", "0.6513517", "0.65041864", "0.6500586", "0.6496843", "0.6492743", "0.6482897", "0.6482897", "0.6476211", "0.6476211", "0.6476211", "0.6476211", "0.6476211", "0.6476211", "0.6476211", "0.6476211", "0.6476211", "0.6476211", "0.6476211", "0.6476211", "0.6476211", "0.6476211", "0.6476211", "0.6476211", "0.6476211", "0.6476211", "0.6476211", "0.6476211", "0.6476211", "0.6476211", "0.6476211", "0.6476211", "0.6476211", "0.6476211", "0.6476211", "0.6476211", "0.6476211", "0.6476211", "0.6476211", "0.6476211", "0.6476211", "0.6476211", "0.6476211", "0.6476211", "0.6476211", "0.6476211", "0.6476211", "0.6476211", "0.6476211", "0.6476211", "0.6476211", "0.6476211", "0.6476211", "0.6476211", "0.6476211", "0.64730275", "0.64730275", "0.64730275", "0.64730275", "0.64730275", "0.64730275", "0.64665395" ]
0.72295296
1
get the ith card in the seed.
public Cards get(int i) { return seedCards.get(i); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Card giveCard(){\n return this.cardDeck.get(lastIndex++);\n }", "public Card nextCard(){\r\n\t if(topCardIndex >=52){\r\n\t throw new IndexOutOfBoundsException();\r\n\t }\r\n\t return cards[topCardIndex++];\r\n\t}", "public int chooseCard(){\n if(playable.size() == 1)//checks the size\n return searchCard(0);//returns the only playable card\n else{\n int temp = (int) Math.random()*playable.size();//chooses a random one\n return searchCard(temp);//returns that cards position\n }\n }", "@Override\n public Card getCard(int i) {\n return this.cards.get(i);\n }", "public UnoCard getCard(){\n Random rnd = new Random();\n int rnd_number = rnd.nextInt(((this.cards.size()-1)-0) + 1) + 0;\n return this.cards.get(rnd_number);\n\n }", "public Card getCardAtIndex(int i)\n {\n return cards.get(i);\n }", "public Card getCard(int i) {\n\t\treturn cards.get(i);\n\t}", "public Card getCard(int n) {\r\n\t\treturn this.Hand.get(n);\r\n\t}", "public Card getCard(int idx) {\n return deck[idx];\n }", "public Card getCard(int index)\n\t{\n\t\treturn hand[index];\n\t}", "public Card getCardInDeck(int i){\n\t\treturn deck[i];\n\t}", "public Card getCard(ArrayList<Card> cards, int index);", "int getNumCards();", "public Card getCard(int index){\n return cards.get(index - 1);\n }", "public int getNumCards() {\n return this.topCard;\n }", "public Card getCardAt( int index ) {\n return this.cards[index];\n }", "ICard getCard(int cardIndex) throws IllegalArgumentException;", "public int suitNum() {\r\n return this.i;\r\n }", "public int getNumCards() {\n return this.numCards;\n }", "public int getNumCards()\r\n {\r\n return numCards;\r\n }", "private int getRandomCard (ArrayList<Card> hand) {\n\t\treturn (int)(Math.random() * hand.size());\r\n\t}", "public int CardsOnDeck()\n\t{\n\t\treturn cardNumber;\n\t}", "public Card getCard(int index)\n {\n if( index <0 || index >=52)\n return null;\n\n return cardAry[index];\n }", "public CardGao nextCard()\r\n {\r\n return cards.get(top--);\r\n }", "public static int nextCard(int[] deck){\n int rv = 0;\n //go through deck looking for nonzero element\n for(int i = 0; i < deck.length; i++){\n if(deck[i] != 0){\n //set rv equal to first nonzero element\n rv = deck[i];\n //set that nonzero element to 0\n deck[i] = 0;\n break;\n }\n }\n return rv;\n }", "public Card getNextCard(){\n if(mCardIterator.hasNext()) {\n return mCardIterator.next();\n }\n else {\n return null;\n }\n }", "public Card dealCard() {\n int randPos = random.nextInt(51 - 0 + 1);\n Card rand = deck[randPos];\n return rand;\n\n }", "public int numOfCards() {\n return cards.size();\n }", "public int[] getCards() {\n \t\treturn cards;\n \t}", "public Card getCard(){\n return cards.get(0);\n }", "public int getNumberOfCards()\n\t{\n\t\treturn numCards;\n\t}", "public static int face(int card){\n //check if card is out of bounds\n if(card < 1 || card > 52){\n return 0;\n }\n //subtract 1 from card to include multiples of 13\n //add 1 so that it matches up with the desired output\n return (card - 1) % 13 + 1;\n }", "@Test\n public void getDeckTest2() {\n GenericStandardDeckGame g = new GenericStandardDeckGame();\n List<Card> deck = g.getDeck();\n for (int i = 2; i < 15; i++) {\n int counter = 0;\n for (Card c : deck) {\n if (c.getValue() == i) {\n counter++;\n }\n }\n assertEquals(counter, 4);\n }\n }", "public int getVictoryCards() {\n \t\treturn victory;\n \t}", "Card drawCard() {\n if (this.pointer >= this.cards.size()) {\n throw new NoMoreCardsAvailableException();\n }\n return cards.get(pointer++);\n }", "public int getHighCard() {\r\n return highCard;\r\n }", "public int getTopCard() {\n return this.topCard;\n }", "public Card getCard(int idx) {\r\n\t\tif (idx < 0 || idx >= cards.size()) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\treturn cards.get(idx);\r\n\t}", "public int size() {\r\n\t\treturn seedCards.size();\r\n\t}", "public int getNumberOfCards() {\r\n\t\treturn numberOfCards;\r\n\t}", "public int getSuit()\n {\n return suit;\n }", "private int randomPiece() {\n return (int)(Math.random()*N_PIECES);\n }", "public Card.Face getHighestCard(){\n return uniqueFaces.getFirst();\n }", "public int getSuit()\n {\n return suit;\n }", "public Card getCard( int cardNum ) {\n\t\treturn deck[ cardNum ];\n\t}", "public int getCardCount() {\r\n\t\treturn this.cards;\r\n\t}", "public int getSuit(){\n\t\treturn suit; \n\t}", "public int dealCard() {\n\n\t\tif (currentPosition == 52) {\n\t\t\tshuffle();\n\t\t}\n\t\tcurrentPosition++;\n\t\treturn deck[currentPosition - 1];\n\t}", "public Piece getPiece(int i) { /* ... code ... */ }", "public int getCardSlot() {\n return cardSlot;\n }", "public Card next();", "public int getSuit() {\n\t\tif (!this.isCard()) {\n\t\t\tSystem.out.println(\"Error! \" + id + \" isn't a card!\");\n\t\t\treturn 0;\n\t\t} else if (id < 14)\n\t\t\treturn 1;\n\t\telse if (id >= 14 && id < 27)\n\t\t\treturn 2;\n\t\telse if (id >= 27 && id < 40)\n\t\t\treturn 3;\n\t\telse\n\t\t\treturn 4;\n\t}", "@Override\r\n\tpublic int requestCard (ArrayList<Card> cardsAlreadyRequested) {\n\t\treturn (int)(Math.random() * 13);\r\n\t}", "public int getSuit() {\r\n return suit;\r\n }", "public int getRandom() {\n int index = (int) Math.floor(Math.random() * size);\n return nums[index];\n }", "public Card getTopCard(){\n\t\treturn getCard(4);\n\t\t\n\t}", "private Card aiRequestLogic()\n {\n Random randomCard = new Random(); // A placeholder is set aside for generating a random integer.\n return hand.get(randomCard.nextInt(hand.size())); // A card at a randomized index will be returned.\n }", "public Card nextCard()\n\t{\n\t\tif (this.card[0] == null)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t//get top card\n\t\t\tCard top = this.card[0];\n\t\t\t\t\t\n\t\t\t//Move the dealt card so it can be later deleted // -1\n\t\t\tfor (int i = 1; i < this.cardNumber; i++) \n\t\t\t{\n\t\t\t\tthis.card[i-1] = this.card[i]; \n\t\t\t}\n\t\t\t//To delete the last card to make sure its same position/ Set it to Null\n\t\t\tthis.card[this.cardNumber-1] = null;\n\t\t\t//After dealt the count of cards in deck goes down --\n\t\t\tthis.cardNumber--;\n\t\t\t\t\t\n\t\t\treturn top;\n\t\t}\n\t}", "public Card getTopCard(int i)\n {\n Card thisCard = null; \n if( i == P1)\n {\n thisCard = dw.dequeue();\n }\n if(i == P2)\n {\n thisCard = de.dequeue();\n }\n \n return thisCard; \n }", "public int getSuitInt() {\n return this.suit;\n }", "public int getSuit() {\n return suit;\n }", "public int getSuit() {\n return suit;\n }", "public int getSuit(){\n return suit;\n }", "public Integer getYellowCards() {\n return this.yellowCards;\n }", "public int getSuit() {\n return this.suit;\n }", "public int getRandom() {\n Random random = new Random();\n return nums.get(random.nextInt(nums.size()));\n }", "public String GetDeckCard(int value){\n return deck.get(value);\n }", "public Card getHighestCard() {\n Card rtrnCard = cardsPlayed[0];\n int i;\n int tempInt;\n int currentHighestRank = cardsPlayed[0].getIntValue();\n for(i = 0; i < cardsPlayed.length; i++){\n if(cardsPlayed[i].getSuit().equals(suit)){\n tempInt = cardsPlayed[i].getIntValue();\n if((currentHighestRank < tempInt)&&(!(cardsPlayed[i].equals(rtrnCard)))){\n rtrnCard = cardsPlayed[i];\n currentHighestRank = cardsPlayed[i].getIntValue();\n }\n }\n }\n return rtrnCard;\n }", "private static int suitAsInt(Card card) {\n return card.getSuit().ordinal();\n }", "public int getFirst();", "public Integer getIscard() {\n return iscard;\n }", "public Card topCard() {\n return this.deck.peek();\n }", "public int getIthSroce(int ith) {\n if (ith <= 0 || ith > round) throw new IllegalArgumentException();\n return score[ith - 1];\n }", "private void findFirstPlayer() { \n if(isFirstTurn) {\n for(PlayerId p: PlayerId.ALL) {\n if(handsOfCards.get(p).contains(Card.of(Color.DIAMOND, Rank.SEVEN))) {\n firstPlayer = p;\n }\n }\n }\n else {\n firstPlayer = PlayerId.ALL.get((firstPlayer.ordinal()+1)%PlayerId.COUNT);\n }\n }", "private int getRandomPiece() {\r\n return new Random().nextInt(Constants.NUM_PIECES);\r\n }", "public int getRandom() {\n return nums.get((int) (Math.random() * nums.size()));\n }", "@Test\n public void testGetRank(){\n for (int i = 0; i < nIterTests; i++) {\n CardReference reference = sampleRandomCard();\n Card card = new Card(reference.getSuit(), reference.getRank());\n assertEquals(reference.getRank(), card.getRank());\n }\n }", "public int getCardCount() {\r\n return cardCount;\r\n\t}", "public int getSuit() {\n\t\treturn suit;\n\t}", "public CardGao dealCard()\r\n {\r\n return cards.get(top--);\r\n\r\n }", "private int highCard() {\n\t\tint highCard = 0;\n\t\tfor (int counter = 0; counter < Constants.HAND_SIZE; counter++) {\n\t\t\tif (hand[counter].getValueIndex() > highCard) {\n\t\t\t\thighCard = hand[counter].getValueIndex();\n\t\t\t}\n\t\t}\n\t\tresult.setPrimaryValuePos(highCard);\n\t\treturn highCard;\n\t}", "public Card getNextCard() {\n\t\ttry {\r\n\t\t\ttoServer.writeBoolean(true);\r\n\t\t} catch (IOException e1) {\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\ttry {\r\n\t\t\tcard = (Card)cardFromServer.readObject();\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\tif (card.getCardVal() == 1) {\r\n\t\t\t++dealerNumUnusedAces;\r\n\t\t\tdealerHandCount += 11;\r\n\t\t}else {\r\n\t\t\tdealerHandCount += card.getCardVal();\r\n\t\t}\r\n\t\t++addedCardCounter;\r\n\t\tadjustCount();\r\n\t\tresetDealerLabel();\r\n\t\t\r\n\t\treturn card;\r\n\t}", "public int getCardNumber() {\n return cardNumber;\n }", "int getBlockNums(int index);", "int getBlockNums(int index);", "public int searchCard(int index){\n for(int i = 0; i < cards.size(); ++i){//loop to go through the cards\n if(cards.get(i).toString().equalsIgnoreCase(playable.get(index).toString())){//checks the index\n return i;//returns the index\n }\n }\n return index;\n }", "public int getRandom() {\n return nums.get(random.nextInt(nums.size()));\n }", "public ArrayList<Cards> getSeedCards() {\r\n\t\treturn seedCards;\r\n\t}", "private static int get() { \r\n Random r = new Random();\r\n return (r.nextInt(9));\r\n }", "public int getRandom() {\n return nums.get(random.nextInt(nums.size()));\n }", "public int next() {\n moveToNextIndex();\n return _hash._set[_index];\n }", "public int getCard(List<Integer> hand2, int position) {\n\t\tif (position >= 0 && position < hand2.size()) {\n\t\t\treturn ((Integer) hand2.get(position)).intValue();\n\t\t} else {\n\t\t\treturn 0;\n\t\t}\n\t}", "public AbstractCard getNextCard() {\n currentCardPos++;\n if (currentCardPos >= deck.size()) {\n return null;\n }\n return getCurrentCard();\n }", "public Card top() {\r\n\t\treturn cards.get(cards.size() - 1);\r\n\t}", "public int deal(){\n\t\tint topCard = deck[top];\n\t\ttop--;\n\t\treturn topCard;\n\t}", "public Card top() {\n\t\treturn firstCard;\n\t}", "protected abstract Object getNthObject(int n);", "public int[] getNext() {\n if (currentRound == -1 || currentHeat == -1 || rounds.size() == 0) {\n return new int[] {-1, -1};\n }\n\n int[] next = new int[2];\n\n // Check if current round has another heat\n int cRoundSize = rounds.get(currentRound).length();\n if (currentHeat + 1 < cRoundSize) {\n // Success, so get the next heat index\n next[0] = currentRound;\n next[1] = currentHeat + 1;\n }\n // There are no more heats left in the current round\n // Check if the race has another round\n else if (currentRound + 1 < rounds.size()) {\n // Success, but check to make sure there is actually a heat in this round\n if (rounds.get(currentRound + 1).length() > 0) {\n // Success, so get the first heat in the next round\n next[0] = currentRound + 1;\n next[1] = 0;\n }\n }\n // There are no more valid heats or rounds left\n else {\n next[0] = -1;\n next[1] = -1;\n }\n return next;\n }", "public int getCardCount() {\n\t\treturn this.cardsInhand.size();\n\t}", "public Carta hit() {\n\trobadas++;\n\treturn deck[robadas-1];\n}" ]
[ "0.7407205", "0.68772256", "0.67871743", "0.67606676", "0.6725106", "0.6639194", "0.662366", "0.657255", "0.65606225", "0.65570354", "0.6519145", "0.6491819", "0.64861697", "0.647496", "0.6451807", "0.6435623", "0.6412247", "0.6357758", "0.6342162", "0.63205093", "0.62987125", "0.62462753", "0.62259394", "0.6220037", "0.6144871", "0.608118", "0.60692805", "0.60308444", "0.59936816", "0.597745", "0.5976014", "0.59542733", "0.5945711", "0.5944838", "0.5920145", "0.589192", "0.5877438", "0.58718324", "0.58661306", "0.58391684", "0.5837413", "0.5827152", "0.58207345", "0.58200884", "0.58136797", "0.58071226", "0.5776187", "0.5774988", "0.57743907", "0.57724273", "0.57713664", "0.57712555", "0.57560897", "0.5730759", "0.5730448", "0.57263523", "0.57214904", "0.571798", "0.5711225", "0.57073474", "0.57052016", "0.57052016", "0.5692619", "0.5692282", "0.56746936", "0.56673604", "0.5666304", "0.56556123", "0.5655101", "0.5646383", "0.56448704", "0.5638526", "0.56378835", "0.56324595", "0.5619645", "0.5613529", "0.5610244", "0.5605838", "0.56052744", "0.5604074", "0.5604049", "0.5596718", "0.5594556", "0.55932194", "0.55932194", "0.55931675", "0.5591522", "0.5586405", "0.5581419", "0.55804914", "0.5577137", "0.5572969", "0.5572177", "0.55680555", "0.5567853", "0.55579704", "0.5548657", "0.55431944", "0.5542588", "0.5542052" ]
0.74253345
0
add a cards to seed.
public void add(Cards cs) { for (int i = 0; i < cs.getSize(); i++) { cards.addCard(cs.getCard(i)); } seedCards.add(cs); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addCard(Card card) {\n this.deck.push(card);\n }", "public void add(Card card) {\n this.cards.add(card);\n }", "public void putCard(Cards cards) {\n playedCards.add(cards);\n }", "void add(Set<Card> cards);", "public void addToDeck(ArrayList<Card> cards)\r\n\t{\r\n\t\tfor (int i = 0; i < cards.size(); i++)\r\n\t\t{\r\n\t\t\tdeck.add(cards.get(i));\r\n\t\t}\r\n\t}", "public void addCard(Card card) {\n personHand.add(card);\n }", "public void addCard(Card c){\n cards.add(c);\n }", "public void addCard() {\n for (int i = 0; i < 4; i++) {\n cards.add(new Wild());\n cards.add(new WildDrawFour());\n }\n for (Color color : Color.values())\n cards.add(new NumberCard(color.name(),0));\n for (Color color : Color.values()) {\n for (int i = 0; i < 2; i++) {\n for (int j = 1; j < 10; j++)\n cards.add(new NumberCard(color.name(),j));\n cards.add(new DrawTwo(color.name()));\n cards.add(new Reverse(color.name()));\n cards.add(new Skip(color.name()));\n }\n }\n }", "void addCard(Card card) {\n\t\t_hand.addCard(card);\n\t}", "public void addCard(Card card) {\n myCards.add(card);\n cardNumber = myCards.size();// reset the number of cards\n }", "public void add(Card card){\n if (numCards < deckSize - 1) {\n this.deck[numCards] = card;\n numCards++;\n }else {\n System.out.println(\"Deck is full!\");\n }\n }", "public void addCard(Card card){\n\t\tthis.pile.add(0, card);\n\t}", "public void addCard(Card card) {\r\n\t\tcards.add(card);\r\n\t}", "private void addCardToDeck(Card card) {\n\t\tdeck.add(card);\n\t}", "public void addCard(Card card) {\r\n\t\tthis.cards.add(card);\r\n\t}", "private void createShuffleAndAddCards() {\n //Creating all 108 cards and saving them into an arraylist\n ArrayList<Card> cards = new ArrayList<>();\n String[] colors = {\"red\", \"blue\", \"yellow\", \"green\"};\n for (String color : colors) {\n for (int i = 1; i < 10; i++) {\n for (int j = 0; j < 2; j++) {\n cards.add(new Card(\"Numeric\", color, i));\n }\n }\n cards.add(new Card(\"Numeric\", color, 0));\n for (int i = 0; i < 2; i++) {\n cards.add(new Card(\"Skip\", color, 20));\n cards.add(new Card(\"Draw2\", color, 20));\n cards.add(new Card(\"Reverse\", color, 20));\n }\n }\n for (int i = 0; i < 4; i++) {\n cards.add(new Card(\"WildDraw4\", \"none\", 50));\n cards.add(new Card(\"WildColorChanger\", \"none\", 50));\n }\n //shuffling cards and adding them into the storageCards main list\n Collections.shuffle(cards);\n for (Card card : cards) {\n storageCards.add(card);\n }\n cards.clear();\n }", "public void addCard(Card c)\n {\n cards.add(c);\n }", "public void addCard(Card card) {\r\n SQLiteDatabase db = this.getWritableDatabase();\r\n \r\n ContentValues values = new ContentValues();\r\n values.put(COL_ACCOUNT, card.getAccount()); \r\n values.put(COL_USERNAME, card.getUsername()); \r\n values.put(COL_PASSWORD, card.getPassword()); \r\n values.put(COL_URL, card.getUrl()); \r\n values.put(COL_DELETED, card.getDeleted()); \r\n values.put(COL_HIDE_PWD, card.getHidePwd()); \r\n values.put(COL_REMIND_ME, card.getRemindMe()); \r\n values.put(COL_UPDATED_ON, card.getUpdatedOn()); \r\n values.put(COL_COLOR, String.valueOf(card.getColor()));\r\n values.put(COL_REMIND_ME_DAYS, card.getRemindMeDays());\r\n \r\n db.insert(TABLE_CARDS, null, values);\r\n db.close(); \r\n }", "public void addToDeck(Card card) {\n\t\tcards.add(card);\n\t}", "public void addCard(Card card) {\n\t\tthis.content.add(card);\n\t}", "public void addToUse(int card) {\r\n\t\tthis.toUse.add(card);\r\n\t}", "public void addCard(Card e) {\n\t\tthis.deck.add((T) e);\n\t}", "private void addCard() {\n Intent intent = new Intent(this, NewCard.class);\n intent.putExtra(\"cardSetId\", cardSetId);\n startActivity(intent);\n }", "public void addCard(Card card, GamePlayer GP){\n for(int i=0; i<4; i++){\n if(cardsPlayed[i] == null){\n cardsPlayed[i]=card;\n if(i == 0){\n suit = card.getSuit();\n }\n break;\n }\n }\n }", "public void addCard(Card c)\n {\n hand.add(c);\n }", "public void AddCard(Card card) {\n mCard[mCardCount++] = card;\n SetCardPosition(mCardCount - 1);\n }", "@Test\n public void testAddCard() {\n d_gameData.getD_playerList().get(1).addCard(GameCard.BLOCKADE);\n assertEquals(true, d_gameData.getD_playerList().get(1).getD_cards().contains(GameCard.BLOCKADE));\n }", "public void addCard(Card card){\r\n\t\tplayerHand.add(card);\r\n\t\tSystem.out.print(\"You draw \");\r\n\t\tSystem.out.println(getCardIndex(playerHand.size()-1));\r\n\t}", "public void addCard(String cardName) {\n if(isInDeck(cardName)==false){\n cards.add(new Card(cardName));\n System.out.println(\"Added\");\n }else{\n System.out.println(\"Its already in deck\");\n }\n }", "public void addCardToDeck(int index, SpoonsCard card){\r\n\t deck.add(index, card);\r\n }", "public void makeDeck()\r\n\t{\r\n\t\tfor (int i = 1; i < 5; i++)\r\n\t\t{\r\n\t\t\tfor (int j = 2; j < 15; j++)\r\n\t\t\t{\r\n\t\t\t\tdeck.add(new Card(i,j));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void takeACard(Card card){\n hand.add(card);\n }", "public void addCard(Card c) {\r\n\t\thand.add(c);\r\n\t}", "public void generateDeck() {\n\t\tList<String> valueList = Arrays.asList(\"Ace\", \"2\", \"3\",\"4\", \"5\", \"6\",\"7\", \"8\", \"9\",\"10\", \"Jack\", \"Queen\",\"King\");\n\t\tList<String> suitList = Arrays.asList(\"Diamonds\", \"Spades\", \"Clubs\", \"Hearts\");\n\t\tvalues.addAll(valueList);\n\t\tsuits.addAll(suitList);\n\t\t\n\t\t//adding card objects to deckOfCards arraylist\n\t\tint i = 1;\n\t\twhile(i<=52){\n Card card = new Card(values.get(random.nextInt(13)), suits.get(random.nextInt(4)));\n if (!deckOfCards.contains(card)) {\n deckOfCards.add(card);\n i++;\n }else{\n\n }\n }\n\t}", "public void addCard(Deck deck, Card card) {\n deck.cards.add(card);\n }", "public void populateDeck(){\n\n //Add everything to r\n for(int i=0;i<LUMBER;i++){\n deck.add(new ResourceCard(container, Resource.WOOD, cardStartPoint));\n }\n\n for(int i=0;i<WOOL;i++){\n deck.add(new ResourceCard(container, Resource.WOOL, cardStartPoint));\n }\n\n for(int i=0;i<GRAIN;i++){\n deck.add(new ResourceCard(container, Resource.WHEAT, cardStartPoint));\n }\n\n for(int i=0;i<BRICK;i++){\n deck.add(new ResourceCard(container, Resource.BRICKS, cardStartPoint));\n }\n\n for(int i=0;i<ORE;i++){\n deck.add(new ResourceCard(container, Resource.ORE, cardStartPoint));\n }\n //Collections.shuffle(deck);\n\n }", "public void addToDeck(Card c)\r\n\t{\r\n\t\tdeck.add(c);\r\n\t}", "@Override\n\tpublic void addCard(PlayingCard card) {\n\t\t\n\t\t\n\t\tif(card == null)return;\n\t\tif(!(card instanceof SkatCard))return;\n\t\tif(!(card.getSuit().equals(SkatCard.suitHerz)\n\t\t\t\t|| card.getSuit().equals(SkatCard.suitKaro) \n\t\t\t\t|| card.getSuit().equals(SkatCard.suitPik)\n\t\t\t\t|| card.getSuit().equals(SkatCard.suitKreuz)))return;\n\t\tif(!(card.getRank() == SkatCard.rank7\n\t\t\t\t|| card.getRank() == SkatCard.rank8\n\t\t\t\t|| card.getRank() == SkatCard.rank9\n\t\t\t\t|| card.getRank() == SkatCard.rank10\n\t\t\t\t|| card.getRank() == SkatCard.rankBube\n\t\t\t\t|| card.getRank() == SkatCard.rankDame\n\t\t\t\t|| card.getRank() == SkatCard.rankKoenig\n\t\t\t\t|| card.getRank() == SkatCard.rankAss))return;\n\t\tif(getCount() >= kartenAnzahl)return;\n\t\tfor(int i = 0; i < getCount(); i++) {\n\t\t\tif(card.compareTo(aktuellesDeck[i]) == 0)return;\n\t\t}\n\t\t\n\t\t/*\n\t\t * eigentliches addCard\n\t\t */\n\t\taktuellesDeck[getCount()] = card;\n\t\tcount++;\n\t}", "public Seed() {\r\n\t\tcards = new Cards();\r\n\t\tseedCards = new ArrayList<Cards>();\r\n\t\tdescription = \"\";\r\n\t\tautoSummary = \"\";\r\n\t}", "public void addCard(Card cardToAdd) {\n storageCards.add(cardToAdd);\n }", "public abstract void addCard();", "public void addCard(PlayingCard aCard);", "public void insert(Card card) {\n\t\tthis.insert(card);\n\t}", "public void addPartnerCard(Card card);", "private void fillDeck(){\r\n this.cards = new ArrayList<Card>();\r\n int cardPerSuit = this.deckSize/4;\r\n \r\n for( Suit Su: suits ){\r\n for(int i = 0; i < cardPerSuit; i++){\r\n this.cards.add(i, new Card(i+2, Su.ordinal()));\r\n }\r\n }\r\n \r\n }", "private void addCard(){\n WebDriverHelper.clickElement(addCard);\n }", "public void addListOfCards(Deck newCards){\r\n for(Card i : newCards.cards){\r\n this.cards.add(i);\r\n }\r\n deckSize += cards.size();\r\n }", "void fillDeck()\n\t{\n\t\t\n\t\tfor ( byte decks = 0 ; decks < howManyDecks ; decks++ )\n\t\t\tfor ( byte suit = 0 ; suit < 4 ; suit++ )\n\t\t\t\tfor ( byte value = 1 ; value < 14 ; value++ ) \n\t\t\t\t\tdeck.add ( new Card (value , suit , true) );\n\t}", "public ArrayList<Cards> getSeedCards() {\r\n\t\treturn seedCards;\r\n\t}", "public CardView addCard(Card card) {\n return addCard(card, false);\n\n }", "private void generateNewCards()\n {\n // Set the card sets to be drafted from.\n setsForDraft = new ArrayList<>();\n setsForDraft.add(M19_CARD_TABLE);\n\n // Generates sealed pool and places in openedCardPool.\n drawPacksFromSets();\n\n // Initialize a selectedCardPool that is empty, for the user to move cards into when desired.\n selectedCardPool = new ArrayList<>();\n }", "public void AddCardDeckFromSerial(String value){\n deck.add(value);\n }", "public void drawCard(Card card) {\n hand.addCard(card);\n }", "public void addCard(Card c) {\n\t\tthis.hand.addCard(c);\n\t}", "public void giveOneCard(Deck deck, ArrayList<Cards> table)\n {\n //Burn one card\n deck.getCard();\n\n //Add 1 card\n table.add(deck.getCard());\n }", "public PokerHand(Card... cards) {\n for (Card c : cards) {\n this.cards.add(c);\n }\n }", "public void addCard(Card card)\n\t{\n\t\t\n\t\t// Add the new Card to the list\n\t\tcards.add(card);\n\t\t\n\t\t// Remove and re-add all cards\n\t\tsyncCardsWithViews();\n\t\t\n\t}", "public void addToHand(PlayingCard card){\n\t\thand.add(card);\n\t}", "public void setCards(Card[] cards) {\r\n this.cards = cards;\r\n }", "private void cards() {\n newUserCard();\n editTypeCard();\n changePasswordCard();\n }", "public void addCard(Card newcard)\n\t{\n\t\thand[numCards++] = newcard;\n\t\tscore += newcard.getValue();\n\t}", "public void setCards(List<T> cards) {\n\t\tthis.cards = cards;\n\t}", "public void cardGen(){\n\t\tRandom rand = new Random();\n\t\tint randValue = rand.nextInt(13);\n\t\tcardString = value[randValue] + suit[rand.nextInt(4)];\n\t}", "public void addCard(Card card)\n {\n if (card1 == null)\n {\n card1 = card;\n }\n else if (card2 == null)\n {\n card2 = card;\n }\n }", "public void addCard(Cards card, boolean canUse) {\n \t\tif (canUse) {\n \t\t\tcards[card.ordinal()] += 1;\n \t\t\tusedCard = false;\n \t\t} else {\n \t\t\tnewCards.add(card);\n \t\t}\n \t}", "protected GameEntity addCards(GameEntity game){\n try {cardService.addAllCards();\n } catch (IOException ex) {\n throw new NoContentException(\"The CardDatabase couldn't be filled\");\n }\n game.setCardIds(cardService.getFullStackOfCards());\n return game;\n }", "public void addToCollected(PlayingCard card){\n\t\tcollected.add(card);\t\t\n\t}", "public void addToHand(ArrayList<PlayingCard> cardsToAdd)\n\t{\n\t\tcurrentHand.addAll(cardsToAdd);\n\t}", "public void addToPassing(PlayingCard[] cards){\n\t\tpassing.addAll(Arrays.asList(cards));\n\t}", "public void addCardsToDrawPile(List<Card> cards) {\r\n drawPile.addAll(cards);\r\n }", "@Override\n public void createDeck(){\n for (char suit:standardSuits) {\n for (Map.Entry<Character, Integer> item:deckCards.entrySet()) {\n Card card = new Card(item.getKey(),item.getValue(),suit);\n deckOfCards.add(card);\n }\n }\n }", "public Deck() {\n\t\trand = new Random();\n\t\trand.setSeed(System.currentTimeMillis());\n\t\twhile(deck.size()<52){\n\t\t\tint suit = rand.nextInt(4);\n\t\t\tint rank = rand.nextInt(13);\n\t\t\tString card = this.rank[rank] +\" of \" + this.suit[suit];\n\t\t\tdeck.add(card);\n\t\t}\n\t}", "public boolean addCard(Card card)\n {\n if (numOccurrences(card) >= numPacks)\n return false;\n\n cards[topCard++] = card;\n return true;\n }", "public void addToBottom(Card card){\r\n cards.add(card);\r\n deckSize++;\r\n }", "public void AddCardToComputerHand(){\n //Add the first card to the computer\n handComputer.add(deck.get(0));\n\n //Remove card from deck\n deck.remove(0);\n }", "private void makeCards() {\n //make number cards(76 cards)\n for (int i = 0; i < 10; i++) {\n String s = i + \"\";\n cards.add(new NumberCard(s, Color.RED, i));\n cards.add(new NumberCard(s, Color.GREEN, i));\n cards.add(new NumberCard(s, Color.BLUE, i));\n cards.add(new NumberCard(s, Color.YELLOW, i));\n if(i > 0) {\n cards.add(new NumberCard(s, Color.RED, i));\n cards.add(new NumberCard(s, Color.GREEN, i));\n cards.add(new NumberCard(s, Color.BLUE, i));\n cards.add(new NumberCard(s, Color.YELLOW, i));\n }\n }\n\n //make wild cards(8 cards)⨁\n for (int i = 0; i < 4; i++) {\n cards.add(new WildCard(\"W\", Color.BLACK));\n cards.add(new WildDrawCard(\"W+4\", Color.BLACK));\n }\n\n //make reverse cards(8 cards)⤤⤦\n for (int i = 0; i < 2; i++) {\n cards.add(new ReverseCard(\"Rev\", Color.RED));\n cards.add(new ReverseCard(\"Rev\", Color.GREEN));\n cards.add(new ReverseCard(\"Rev\", Color.BLUE));\n cards.add(new ReverseCard(\"Rev\", Color.YELLOW));\n }\n\n //make draw cards(8 cards)⧉\n for (int i = 0; i < 2; i++) {\n cards.add(new Draw2Card(\"D+2\", Color.RED));\n cards.add(new Draw2Card(\"D+2\", Color.GREEN));\n cards.add(new Draw2Card(\"D+2\", Color.BLUE));\n cards.add(new Draw2Card(\"D+2\", Color.YELLOW));\n }\n\n //make skip cards(8 cards)🚫\n for (int i = 0; i < 2; i++) {\n cards.add(new SkipCard(\"Ski\", Color.RED));\n cards.add(new SkipCard(\"Ski\", Color.GREEN));\n cards.add(new SkipCard(\"Ski\", Color.BLUE));\n cards.add(new SkipCard(\"Ski\", Color.YELLOW));\n }\n //Shuffling cards list\n Collections.shuffle(cards);\n }", "public int addCard(Card card) {\n\t\thand.add(card);\n\t\tif(!isDealer) {\n\t\t\tSystem.out.println(\"Dealt a \" + card);\n\t\t}\n\t\treturn handValue();\n\t}", "private void addCards() {\r\n\t\tfor (Color color : UNO_COLORS) {\r\n\r\n\t\t\t// Create 76 NumberCards --> doubles except 0s.\r\n\t\t\tfor (int num : UNO_NUMBERS) {\r\n\t\t\t\tint i = 0;\r\n\t\t\t\tdo {\r\n\t\t\t\t\tUNOcards.add(new NumberCard(color, Integer.toString(num)));\r\n\t\t\t\t\ti++;\r\n\t\t\t\t} while (num != 0 && i < 2);\r\n\t\t\t}\r\n\r\n\t\t\t// Create 24 ActionCards --> everything twice\r\n\t\t\tfor (String type : ActionTypes) {\r\n\t\t\t\tfor (int i = 0; i < 2; i++)\r\n\t\t\t\t\tUNOcards.add(new ActionCard(color, type));\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tfor (String type : WildTypes) {\r\n\t\t\tfor (int i = 0; i < 4; i++) {\r\n\t\t\t\tUNOcards.add(new WildCard(type));\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "public void addCard(int card) {\n cards[numCards] = card;\n numCards++;\n \n if (card == 1) {\n score = score + 11;\n numSoft++;\n }\n else if(card == 11 || card == 12 || card == 13) {\n score = score + 10;\n }\n else {\n score = score + card;\n }\n \n //Decreases any aces from 11 to 1 if the score is above 21\n while(numSoft > 0 && score > 21){\n score = score - 10;\n numSoft--;\n }\n }", "private void fillDeck() {\n int index = 0;\n for (int suit = 1; suit <= 4; suit++) {\n for (int rank = 1; rank <= 13; rank++) {\n deck[index] = new Card(rank, suit);\n index++;\n\n }\n }\n }", "public void add(Card card) throws DeckSizeException\n {\n deck.add(card);\n if (deck.size()>108)\n {\n throw new DeckSizeException(deck.size());\n }\n }", "public void giveCard(Card c){\n\t\thand.add(c);\n\t}", "public void createDeck() {\n\t\t// for loop that repeats 4 times - one for each suit\n\t\tfor (String suit : suits) {\n\t\t\t// for loop that repeats 13 times (2-14) - once for each value\n\t\t\tfor (int i = 2; i < 15; i++) {\n\t\t\t\t//create instance of new card createCard(value, name);\n\t\t\t\tCard card = new Card(i, suit);\n\t\t\t\t//add card to deck array\n\t\t\t\taddCardToDeck(card);\n\t\t\t}\t\n\t\t}\n\t}", "@Before\n public void before(){\n this.card = new Card(Suit.CLUBS, Rank.NINE);\n }", "public List<UserCard> addCard(Goods goods,long num,List<UserCard> userCards){\n UserCard userCard = new UserCard();\n userCard.setGoods(goods);\n userCard.setNum(num);\n userCards.add(userCard);\n System.out.println(userCard);\n return userCards;\n }", "@Override\n\tpublic boolean addCard(UnoCard card){\n\t\treturn this.cardList.add(card);\n\t}", "public void addCardToHand(final Card card) {\n\t\tcahActivity.runOnUiThread(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tcahActivity.addCardToHand(card);\n\t\t\t}\n\t\t});\n\t}", "private void initializeDeck() {\r\n deck = new ArrayList<>(52);\r\n\r\n for (String suit : SUITS) {\r\n for (String rank : RANKS) {\r\n deck.add(new Card(rank, suit)); // adds 52 cards to the deck (13 ranks, 4 suits)\r\n }\r\n }\r\n }", "@Override\n public void moveAllToShoe(ArrayList<Card> cardsToAdd) {\n this.cards.addAll(cardsToAdd);\n }", "public void addCard(int index, Card card)\n\t{\n\t\tcards.add(index, card);\n\t\t\n\t\t// Remove and re-add all cards\n\t\tsyncCardsWithViews();\n\t\t\n\t}", "Card(int num,String suit){\n this.number = num;\n this.suits = suit;\n }", "public void addACard() {\n Card card = new Card();\n int index = 0;\n doubleCapacity(orderByTitle);\n doubleCapacity(orderByAuthor);\n doubleCapacity(orderBySubject);\n \n \n System.out.println(\"Title of book is : \");\n card.titleOfBook = input.next();\n orderByTitle[index] = card.titleOfBook;\n System.out.println(\"Author of book is : \");\n card.autherOfBook = input.next();\n orderByAuthor[index] = card.autherOfBook;\n System.out.println(\"Subject Of Book is : \");\n card.subjectOfBook = input.next();\n orderBySubject[index] = card.subjectOfBook;\n cards.add(card) ; \n System.out.println(card);\n System.out.println();\n }", "public Builder setCards(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n cards_ = value;\n onChanged();\n return this;\n }", "public DeckOfCards() {\n\n String faces[] = {\"Ace\", \"Deuce\", \"Three\", \"Four\", \"Five\", \"Six\", \"Seven\", \"Eight\", \"Nine\", \"Ten\", \"Jack\", \"Queen\", \"King\"};\n String suits[] = {\"Hearts\", \"Diamonds\", \"Clubs\", \"Spades\"};\n\n deck = new Card[NUMBER_OF_CARDS]; //create an array of card objects (52)\n currentCard = 0;\n randomNumbers = new Random();\n\n //Populate deck with card objects\n for(int count = 0; count < deck.length; count++){\n deck[count] = new Card(faces[count % 13], suits[count / 13]);\n //first 13 cards will be ace through king of hearts then ace though king of diamonds etc...\n\n }\n\n }", "private void InitializeDeck(){\n //Spades\n\n deck.add(\"spadesace\");\n deck.add(\"spadesjack\");\n deck.add(\"spadesqueen\");\n deck.add(\"spadesking\");\n deck.add(\"spades2\");\n deck.add(\"spades3\");\n deck.add(\"spades4\");\n deck.add(\"spades5\");\n deck.add(\"spades6\");\n deck.add(\"spades7\");\n deck.add(\"spades8\");\n deck.add(\"spades9\");\n deck.add(\"spades10\");\n\n\n //Diamonds\n deck.add(\"diamondsace\");\n deck.add(\"diamondsjack\");\n deck.add(\"diamondsqueen\");\n deck.add(\"diamondsking\");\n deck.add(\"diamonds2\");\n deck.add(\"diamonds3\");\n deck.add(\"diamonds4\");\n deck.add(\"diamonds5\");\n deck.add(\"diamonds6\");\n deck.add(\"diamonds7\");\n deck.add(\"diamonds8\");\n deck.add(\"diamonds9\");\n deck.add(\"diamonds10\");\n\n //Clubs\n deck.add(\"clubsace\");\n deck.add(\"clubsjack\");\n deck.add(\"clubsqueen\");\n deck.add(\"clubsking\");\n deck.add(\"clubs2\");\n deck.add(\"clubs3\");\n deck.add(\"clubs4\");\n deck.add(\"clubs5\");\n deck.add(\"clubs6\");\n deck.add(\"clubs7\");\n deck.add(\"clubs8\");\n deck.add(\"clubs9\");\n deck.add(\"clubs10\");\n\n //Hearts\n deck.add(\"heartsace\");\n deck.add(\"heartsjack\");\n deck.add(\"heartsqueen\");\n deck.add(\"heartsking\");\n deck.add(\"hearts2\");\n deck.add(\"hearts3\");\n deck.add(\"hearts4\");\n deck.add(\"hearts5\");\n deck.add(\"hearts6\");\n deck.add(\"hearts7\");\n deck.add(\"hearts8\");\n deck.add(\"hearts9\");\n deck.add(\"hearts10\");\n\n Collections.shuffle(deck);\n\n for(int i = 0; i < deck.size(); i++){\n System.out.println(deck.get(i));\n }\n }", "@Override\r\n public void fillDealerDeck(int numberOfCards, int deckPosition) {\r\n for (int i = 0; i < numberOfCards; i++) {\r\n this.dealer.addCard(deckPosition, new Card());\r\n }\r\n System.out.println(\"Deck filled\");\r\n }", "public void fakeCards(){\n this.drawPile = new ArrayList<>();\n drawPile.add(new RemoveActionCard(\"Fernsprechgerät\", (float) 0.5, 4, new SpecialActions(0,0,1) ));\n drawPile.add(new MovingCard(\"Millionärin\", 4, 5, 4, 99, new COLOR[]{COLOR.SAND}));\n drawPile.add(new RemoveMoveSellCard(\"Propellerflugzeug\", 4, 4, 4, 99, new COLOR[]{COLOR.SAND, COLOR.RIVER, COLOR.JUNGLE,COLOR.ENDFIELDJUNGLE,COLOR.ENDFIELDRIVER}));\n drawPile.add(new MovingCard(\"Ureinwohner\", (float) 0.5, 5, 99, 1, new COLOR[]{COLOR.BASECAMP, COLOR.RUBBLE, COLOR.JUNGLE, COLOR.SAND, COLOR.RIVER,COLOR.ENDFIELDJUNGLE,COLOR.ENDFIELDRIVER}));\n drawPile.add(new ActionCard(\"Wissenschaftlerin\", (float) 0.5, 4, new SpecialActions(1,1,0)));\n drawPile.add(new MovingCard(\"Pionier\", (float) 0.5, 5, 5, 99, new COLOR[]{COLOR.JUNGLE,COLOR.ENDFIELDJUNGLE}));\n drawPile.add(new ActionCard(\"Kartograph\", (float) 0.5, 4, new SpecialActions(2,0,0)));\n drawPile.add(new ActionCard(\"Kartograph\", (float) 0.5, 4, new SpecialActions(2,0,0)));\n Collections.shuffle(drawPile);\n }", "public void push(Card newCard)\n\t{\n\t\tcard.add(newCard);\n\t}", "@Insert(onConflict = OnConflictStrategy.REPLACE)\n void insert(FlashCards flashCards);", "private void shuffleAndGiveCards() {\n\n List<Card> tmpDeck= new ArrayList<Card>(deck); \n Collections.shuffle(tmpDeck, shuffleRng);\n \n for (int i=0; i<players.size(); ++i) {\n int startIndex= Jass.HAND_SIZE*i; //So for player 0 the startIndex will be 0, for player2 9, etc...\n int endIndex = Jass.HAND_SIZE*(i+1); //So for player 1 the endIndex will be 9, for player2 18, etc...\n\n CardSet hand= CardSet.of(tmpDeck.subList(startIndex, endIndex));\n PlayerId player = PlayerId.ALL.get(i);\n\n players.get(player).updateHand(hand);\n handsOfCards.put(player, hand); \n }\n }" ]
[ "0.6883836", "0.6848084", "0.6830559", "0.6828617", "0.68014956", "0.6683606", "0.6566271", "0.6564749", "0.65544754", "0.6553269", "0.6541789", "0.6521036", "0.65179336", "0.6469259", "0.6462653", "0.6454646", "0.6453367", "0.64507353", "0.64417344", "0.64332944", "0.6422957", "0.6413744", "0.63901776", "0.6376651", "0.6369829", "0.63586223", "0.6299186", "0.6284747", "0.62576026", "0.6255767", "0.6247654", "0.624379", "0.62210166", "0.62018555", "0.61914784", "0.61895216", "0.61886424", "0.6182477", "0.6174336", "0.6163818", "0.6129263", "0.6125058", "0.6103844", "0.6095219", "0.60933256", "0.6090615", "0.6025442", "0.6011688", "0.6008041", "0.60021424", "0.6001583", "0.59801286", "0.59643143", "0.59593266", "0.59276783", "0.59221554", "0.591604", "0.5915436", "0.59048", "0.590391", "0.590298", "0.5901954", "0.5901014", "0.59009385", "0.58986586", "0.58930063", "0.5890233", "0.58722043", "0.5855014", "0.5852365", "0.5844945", "0.58429235", "0.5839729", "0.58392984", "0.5837294", "0.583305", "0.5830262", "0.5818111", "0.5812002", "0.5809812", "0.57860774", "0.57844377", "0.57647884", "0.5760447", "0.57582766", "0.57492906", "0.5739571", "0.5733464", "0.5731491", "0.57046485", "0.5702095", "0.5700042", "0.5694586", "0.569259", "0.5691534", "0.5674303", "0.56740516", "0.56704164", "0.5665069", "0.5662926" ]
0.7683574
0
Set the description of the seed.
public void setDescription(String des) { this.description = des; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void setDescription(java.lang.String description) {\n\t\t_esfTournament.setDescription(description);\n\t}", "public void setDescription(String Description) {\n this.Description = Description;\n }", "public void setDescription (String Description);", "public void setDescription (String Description);", "public void setDescription (String Description);", "public void setDescription (String Description);", "public void setDescription (String Description);", "public void setDescription (String Description);", "public void setDescription(String desc) {\n sdesc = desc;\n }", "public void setDescription (String description);", "void setDescription(java.lang.String description);", "public void setDescription(String description){\n this.description = description;\n }", "void setDescription(String description);", "void setDescription(final String description);", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String desc);", "public void setDescription(String description) { this.description = description; }", "public void setDescription(String value) {\r\n this.description = value;\r\n }", "public void setDescription(String descr);", "protected void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\r\n this.description = description;\r\n }", "public void setDescription(String description);", "public void setDescription(String description);", "public void setDescription(String description);", "public void setDescription(String description);", "public void setDescription(String description);", "public void setDescription(String value) {\n this.description = value;\n }", "public void setDescription(String desc) {\n description = desc;\n }", "public void setDescription(String des){\n description = des;\n }", "public void setDescription(String desc) {\n this.desc = desc;\n }", "public void setDescription(String newDesc){\n\n //assigns the value of newDesc to the description field\n this.description = newDesc;\n }", "public void setDescription(String description)\n {\n this.description = description;\n }", "public void setDescription(String description) {\r\n this.description = description;\r\n }", "public void setDescription(String description) {\r\n this.description = description;\r\n }", "public void setDescription(String description) {\r\n this.description = description;\r\n }", "public void setDescription(String description) {\r\n this.description = description;\r\n }", "public void setDescription(String description) {\r\n this.description = description;\r\n }", "public void setDescription(String description) {\n \tthis.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription( String description )\n {\n this.description = description;\n }", "public void setDescription( String description )\n {\n this.description = description;\n }", "public void setDescription( String description )\n {\n this.description = description;\n }", "public void setDescription(java.lang.String value) {\n this.description = value;\n }", "public void setDescription(String description)\n {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String desc)\r\n {\r\n\tthis.desc = desc;\r\n }", "public void setDescription(final String description);", "public void setDescription(final String description) {\n this.description = description;\n }", "public void setDescription(String description)\n {\n this.description = description;\n }", "public void setDescription(String description)\n {\n this.description = description;\n }", "public void setDescription(String description)\n {\n this.description = description;\n }", "@Test\n public void testSetDescription() {\n System.out.println(\"setDescription\");\n \n String description = \"Description\";\n \n instance.setDescription(description);\n \n assertEquals(\"Description unchanged\", description, instance.getDescription());\n // TODO review the generated test code and remove the default call to fail.\n // fail(\"The test case is a prototype.\");\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n\n this.description = description;\n }", "void setDesc(java.lang.String desc);", "public void setDescription(String description )\n {\n this.description = description;\n }", "public void setDescription(String description) {\n\n }", "public void setDescription(String description) {\n _description = description;\n }" ]
[ "0.72816724", "0.71957934", "0.7158226", "0.7158226", "0.7158226", "0.7158226", "0.7158226", "0.7158226", "0.715507", "0.71465707", "0.71451706", "0.7144365", "0.71439993", "0.71365637", "0.71303", "0.71303", "0.7128134", "0.712747", "0.7127005", "0.71215147", "0.7105323", "0.71022356", "0.7101621", "0.7101621", "0.7101621", "0.7101621", "0.7101621", "0.7099981", "0.7095248", "0.70935965", "0.70915705", "0.7084104", "0.708174", "0.70795685", "0.70795685", "0.70795685", "0.70795685", "0.70795685", "0.7078099", "0.7075259", "0.7069416", "0.7069416", "0.7069416", "0.7066935", "0.70636785", "0.70590967", "0.70590967", "0.70590967", "0.70590967", "0.70590967", "0.705132", "0.7038643", "0.70341617", "0.7032833", "0.7032833", "0.7032833", "0.7019251", "0.7019052", "0.7019052", "0.7019052", "0.7019052", "0.7019052", "0.7019052", "0.7019052", "0.7019052", "0.7019052", "0.7019052", "0.7019052", "0.7019052", "0.7019052", "0.7019052", "0.7019052", "0.7019052", "0.7019052", "0.7019052", "0.7019052", "0.7019052", "0.7019052", "0.7019052", "0.7019052", "0.7019052", "0.7019052", "0.7019052", "0.7019052", "0.7019052", "0.7019052", "0.7019052", "0.7019052", "0.7019052", "0.7019052", "0.7019052", "0.7019052", "0.7019052", "0.7019052", "0.7019052", "0.7019052", "0.701823", "0.70071244", "0.7000346", "0.6997131", "0.6987605" ]
0.0
-1
Get the description of the seed.
public String getDescription() { return description; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String getDescription() \r\n {\r\n return \"Seeds\";\r\n }", "public String getDescription() {\n return (desc);\n }", "String description();", "String description();", "String description();", "String description();", "String description();", "String description();", "String description();", "String description();", "String description();", "String description();", "String description();", "String description();", "public String getDescription() {\n return desc;\n }", "public String getDescription() {\n return desc;\n }", "public String getDescription () {\n return description;\n }", "public String getDescription() {\n if (description == null) {\n description = Description.getDescription(this);\n }\n return description;\n }", "public final String getDescription() {\n return description;\n }", "public String getDescription(){\n return getString(KEY_DESCRIPTION);\n }", "public String getDescription()\r\n {\r\n\treturn desc;\r\n }", "public String description();", "public String getDescription()\n {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription()\r\n {\r\n return description;\r\n }", "public String getDescription()\n {\n return description;\n }", "public String getDescription()\n {\n return description;\n }", "public String getDescription()\n {\n return description;\n }", "public String getDescription()\n {\n return description;\n }", "public String getDescription()\n {\n return description;\n }", "public String getDescription()\n {\n return description;\n }", "public String getDescription()\n {\n return description;\n }", "public String getDescription()\n {\n return description;\n }", "public String getDescription()\n {\n return description;\n }", "public String getDescription()\n {\n return description;\n }", "public String getDescription()\n {\n return description;\n }", "public String getDescription()\n {\n return description;\n }", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "public String getDescription()\n {\n return description;\n }", "public String getDescription()\r\n\t{\r\n\t\treturn description;\r\n\t}", "public String getDescription()\n {\n return description;\n }", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();" ]
[ "0.80987245", "0.7422866", "0.7369319", "0.7369319", "0.7369319", "0.7369319", "0.7369319", "0.7369319", "0.7369319", "0.7369319", "0.7369319", "0.7369319", "0.7369319", "0.7369319", "0.7299694", "0.7269694", "0.7221498", "0.7219452", "0.7208353", "0.7197347", "0.7182072", "0.71699214", "0.7160912", "0.71487236", "0.71476007", "0.71466744", "0.71466744", "0.71466744", "0.71466744", "0.71466744", "0.71466744", "0.71466744", "0.71466744", "0.71466744", "0.71466744", "0.71466744", "0.71466744", "0.71437615", "0.71437615", "0.71437615", "0.71437615", "0.71437615", "0.71437615", "0.71437615", "0.71437615", "0.71437615", "0.71437615", "0.71437615", "0.71437615", "0.71437615", "0.71437615", "0.71437615", "0.71437615", "0.71437615", "0.71437615", "0.71437615", "0.71437615", "0.71437615", "0.71437615", "0.71437615", "0.71437615", "0.71437615", "0.71437615", "0.71437615", "0.71437615", "0.71437615", "0.71437615", "0.71437615", "0.71437615", "0.71437615", "0.71437615", "0.71437615", "0.71437615", "0.71437615", "0.71437615", "0.71415263", "0.7139762", "0.7135285", "0.71317875", "0.71317875", "0.71317875", "0.71317875", "0.71317875", "0.71317875", "0.71317875", "0.71317875", "0.71317875", "0.71317875", "0.71317875", "0.71317875", "0.71317875", "0.71317875", "0.71317875", "0.71317875", "0.71317875", "0.71317875", "0.71317875", "0.71317875", "0.71317875", "0.71317875", "0.71317875" ]
0.0
-1
Assume the seeds are sorted.
@Override public boolean equals(Object o) { if (o instanceof Seed) { Seed s = (Seed) o; Cards cs1, cs2; if (this.size() != s.size()) { return false; } for (int i = 0; i < s.size(); i++) { cs1 = s.get(i); cs2 = this.get(i); if (cs1.getCardsType() != cs2.getCardsType() || cs1.getCardsValue() != cs2.getCardsValue()) { return false; } } } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void combineSeeds() {\n\t\t\n\t\t// Find all seeds\n\t\tArrayList<Root> allSeeds = new ArrayList<Root>();\n\t\tfor (Root r: allRoots) {\n\t\t\tif (r.isSeed) {\n\t\t\t\tallSeeds.add(r);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// combine all seed voxels into one seed \"root\"\n\t\tArrayList<Coord> seed = new ArrayList<Coord>();\n\t\tfor (Root s: allSeeds){\n\t\t\tallRoots.remove(s);\n\t\t\tseed.addAll(s.voxels);\n\t\t}\n\t\tRoot s = new Root(seed);\n\t\ts.isSeed = true;\n\t\t//allRoots.add(s); If you want seed included in list of roots, uncomment this line\n\t}", "Seed(){\r\n seedCells = new ArrayList<>();\r\n edgeCells = new ArrayList<>();\r\n }", "@Test\n\tpublic void testUpdatesSeeds() {\n\t\t//Arrange\n\t\tint startLoc[] = new int[]{2};\n\t\tint otherLocs[] = new int[]{0,1,3,4};\n\t\t\t\n\t\tMockito.when(randMock.generateRandomNumber(1, 4, seed)).thenReturn(startLoc);\n\t\tMockito.when(randMock.generateRandomNumber(10, 5, seed+1)).thenReturn(otherLocs);\n\t\t\t\n\t\t//Act\n\t\tlong seed = 2;\n\t\t\t\n\t\t//Assert\n\t\tassertEquals(seed, iteratorObj.startVisits());\n\t}", "public void setSeed(int seed){\n this.seed = seed; \n }", "@Override\n public void setSeed(final int[] seeds) {\n// Needed if this is a subclass of java.util.Random. (Before Java 7)\n// \n// if (parameter == null) {\n// return;\n// }\n final int lag = 1;\n final int mid = 1;\n final int size = 4;\n int i, j;\n int count;\n int r;\n int keyLength = seeds.length;\n int[] status = { 0,\n parameter.getMat1(),\n parameter.getMat2(),\n parameter.getTmat() };\n if (keyLength + 1 > MIN_LOOP) {\n count = keyLength + 1;\n } else {\n count = MIN_LOOP;\n }\n r = iniFunc1(status[0] ^ status[mid % size]\n ^ status[(size - 1) % size]);\n status[mid % size] += r;\n r += keyLength;\n status[(mid + lag) % size] += r;\n status[0] = r;\n count--;\n for (i = 1, j = 0; (j < count) && (j < keyLength); j++) {\n r = iniFunc1(status[i % size] ^ status[(i + mid) % size]\n ^ status[(i + size - 1) % size]);\n status[(i + mid) % size] += r;\n r += seeds[j] + i;\n status[(i + mid + lag) % size] += r;\n status[i % size] = r;\n i = (i + 1) % size;\n }\n for (; j < count; j++) {\n r = iniFunc1(status[i % size] ^ status[(i + mid) % size]\n ^ status[(i + size - 1) % size]);\n status[(i + mid) % size] += r;\n r += i;\n status[(i + mid + lag) % size] += r;\n status[i % size] = r;\n i = (i + 1) % size;\n }\n for (j = 0; j < size; j++) {\n r = iniFunc2(status[i % size] + status[(i + mid) % size]\n + status[(i + size - 1) % size]);\n status[(i + mid) % size] ^= r;\n r -= i;\n status[(i + mid + lag) % size] ^= r;\n status[i % size] = r;\n i = (i + 1) % size;\n }\n st0 = status[0];\n st1 = status[1];\n st2 = status[2];\n st3 = status[3];\n periodCertification();\n for (i = 0; i < MIN_LOOP; i++) {\n nextState();\n }\n clear();\n }", "void new_seed( Seed seed );", "String getSeed();", "public int getSeed(){\n return this.seed; \n }", "public void seed(long seed) {\n }", "void mosaic(int seeds);", "@Before\n public void setUp() {\n randSeeder = new Random(42);\n\n //Show we haven't seeded the test's random number generator\n randSeed = RAND_UNSEEDED;\n comp = IntPlus.getIntComparator();\n }", "public void setSeed(ArrayList<Cell> newSeed) {\n\t\n\t\t for (int y=0;y<MAX_Y;y++) {\n\t\t\tfor (int x=0;x<MAX_X;x++) {\n\t\t\t\tseed[x][y] = new Cell(x,y,false);\t\t \n\t\t\t}//end for x\n\t\t }//end for y\n\t\t \n\t\t for (int k=0; k<newSeed.size();k++) {\n\t\t\t int x1 = Math.abs(newSeed.get(k).getX()) % MAX_X;\n\t\t\t int y1 = Math.abs(newSeed.get(k).getY()) % MAX_Y;\n\t\t\t \n\t\t\t seed[x1][y1] = newSeed.get(k);\n\t\t }//end for k\n\t\t repaint(); //repaint's the grid with new generation\n\t\t updateUI();\n\t }", "public long[] getSeeds() {\n Random random = new Random(seed + layerSeed);\n return RefIntStream.range(0, this.samples).mapToLong(i -> random.nextLong()).toArray();\n }", "@Test\n public void randomSeedNumTest()\n {\n int x = _city.getRandomNum(5);\n int y = _city.getRandomNum(5);\n assertEquals(x, y);\n }", "@Override\n public void randomize(int randomSeed) {\n Random rand = new Random(randomSeed);\n for(int j = size - 1; j > 0; j --){\n int randIndex = rand.nextInt(j);\n \n int [] tmp = data[randIndex];\n data[randIndex] = data[j];\n data[j] = tmp;\n \n int tmpl = labels[randIndex];\n labels[randIndex] = labels[j];\n labels[j] = tmpl;\n \n float tmpw = weights[randIndex];\n weights[randIndex] = weights[j];\n weights[j] = tmpw;\n }\n }", "void mosaic(int seed);", "public int getSeed() {\r\n return seed;\r\n }", "public void premesaj() {\r\n Collections.shuffle(kup);\r\n }", "public Mazealgo(long seed) {\n this.seed = seed;\n this.random = new Random(seed);\n }", "public int getSeed() {\n return seed;\n }", "public int getSeed() {\n return seed;\n }", "private final void PickSeeds(LinkedList<MBR> toDistribute, MBR first, MBR second){\n//\t\tSystem.err.println(\"Stupid implementation.\");\n\t\tMBR insertInFirst \t= null;\n\t\tMBR insertInSecond \t= null;\n\t\tlong maxDeltaVolume = Long.MIN_VALUE;\n\t\tIterator<MBR> iterLeft = toDistribute.iterator(); \n\t\t\n\t\t//XXX this is stupid\n\t\twhile(iterLeft.hasNext()){\n\t\t\tMBR currentLeft = iterLeft.next();\n\t\t\tIterator<MBR> iterRight = toDistribute.iterator();\n\t\t\t\n\t\t\twhile(iterRight.hasNext()){\n\t\t\t\tMBR currentRight = iterRight.next();\n\t\t\t\tlong curDeltaVolume = currentLeft.deltaVolume(currentRight);\n\t\t\t\tif (maxDeltaVolume<curDeltaVolume){\n\t\t\t\t\tinsertInFirst = currentLeft;\n\t\t\t\t\tinsertInSecond = currentRight;\n\t\t\t\t\tmaxDeltaVolume = curDeltaVolume;\n\t\t\t\t}\n\t\t\t}\t\n\t\t}\n\n\t\tfirst.insert(insertInFirst);\n\t\tsecond.insert(insertInSecond);\n\t}", "public StandardSolution (long[] nums){\n \t\tsequence = nums;\n \t\tpartitions = new boolean[sequence.length];\n \t\t\n \t\tRandom rand = new Random();\n \t\tfor (int i = 0; i < partitions.length; i++){\n \t\t\t// worry about seeing?\n \t\t\tpartitions[i] = rand.nextBoolean();\n \t\t}\n \t}", "public void setSeed(String seed) \n\t{\n\t}", "void setSeed(long seed);", "public void clearSeeds() {\n\t\tseedList = new ArrayList<String>();\n\t}", "public void shuffle(){\n\t\t\n\t\tArrayList<Boolean> used = new ArrayList<Boolean>();\n\t\tArrayList<Integer> copyStones = new ArrayList<Integer>();\n\t\tfor(int e = 0; e < gameStones.size(); e++){\n\t\t\tcopyStones.add(gameStones.get(e));\n\t\t\tused.add(false);\n\t\t}\n\t\tfor(int e : copyStones){\n\t\t\tchar l = stoneChars.get(e);\n\t\t\tboolean placed = false;\t\t\n\t\t\twhile(!placed){\n\t\t\t\tint randNumber = (int) (Math.random() * 7);\n\t\t\t\tif(!used.get(randNumber)){\n\t\t\t\t\tgameStones.set(randNumber, e);\n\t\t\t\t\tstoneLetters.set(randNumber, l);\n\t\t\t\t\tused.set(randNumber, true);\n\t\t\t\t\tplaced = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void setSeed(int seed) {\r\n this.seed = seed;\r\n }", "@Override public Set<Entity> get() {\n Set<Entity> seeds = getAttribute(CURRENT_SEEDS);\n boolean hasPublishedSeeds = Boolean.TRUE.equals(getAttribute(HAS_PUBLISHED_SEEDS));\n int quorumSize = getQuorumSize(getMembers());\n \n if (seeds == null || seeds.size() < quorumSize || containsDownEntity(seeds)) {\n Set<Entity> newseeds;\n Multimap<CassandraCluster,Entity> potentialSeeds = LinkedHashMultimap.create();\n Multimap<CassandraCluster,Entity> potentialRunningSeeds = LinkedHashMultimap.create();\n for (CassandraCluster member : Iterables.filter(getMembers(), CassandraCluster.class)) {\n potentialSeeds.putAll(member, member.gatherPotentialSeeds());\n potentialRunningSeeds.putAll(member, member.gatherPotentialSeeds());\n }\n boolean stillWaitingForQuorum = (!hasPublishedSeeds) && (potentialSeeds.size() < quorumSize);\n \n if (stillWaitingForQuorum) {\n if (log.isDebugEnabled()) log.debug(\"Not refresheed seeds of fabric {}, because still waiting for quorum (need {}; have {} potentials)\", new Object[] {CassandraFabricImpl.class, quorumSize, potentialSeeds.size()});\n newseeds = ImmutableSet.of();\n } else if (hasPublishedSeeds) {\n Set<Entity> currentSeeds = getAttribute(CURRENT_SEEDS);\n if (getAttribute(SERVICE_STATE) == Lifecycle.STARTING) {\n if (Sets.intersection(currentSeeds, ImmutableSet.copyOf(potentialSeeds.values())).isEmpty()) {\n log.warn(\"Cluster {} lost all its seeds while starting! Subsequent failure likely, but changing seeds during startup would risk split-brain: seeds={}\", new Object[] {this, currentSeeds});\n }\n newseeds = currentSeeds;\n } else if (potentialRunningSeeds.isEmpty()) {\n // TODO Could be race where nodes have only just returned from start() and are about to \n // transition to serviceUp; so don't just abandon all our seeds!\n log.warn(\"Cluster {} has no running seeds (yet?); leaving seeds as-is; but risks split-brain if these seeds come back up!\", new Object[] {this});\n newseeds = currentSeeds;\n } else {\n Set<Entity> result = trim(quorumSize, potentialRunningSeeds);\n log.debug(\"Cluster {} updating seeds: chosen={}; potentialRunning={}\", new Object[] {this, result, potentialRunningSeeds});\n newseeds = result;\n }\n } else {\n Set<Entity> result = trim(quorumSize, potentialSeeds);\n if (log.isDebugEnabled()) log.debug(\"Cluster {} has reached seed quorum: seeds={}\", new Object[] {this, result});\n newseeds = result;\n }\n \n setAttribute(CURRENT_SEEDS, newseeds);\n return newseeds;\n } else {\n if (log.isDebugEnabled()) log.debug(\"Not refresheed seeds of fabric {}, because have quorum {}, and none are down: seeds=\", new Object[] {CassandraFabricImpl.class, quorumSize, seeds});\n return seeds;\n }\n }", "public long getSeed() {\n return seed;\n }", "public int getSeed()\n {\n return map.getSeed();\n }", "public interface RandomSeed {\n\n\t/**\n\t * @return Uma semente randomica entre 0 e 1 inclusive.\n\t */\n\tpublic double getSeed();\n}", "private void checkSeeds() {\n\t\t//proceed on mainloop 1 second intervals if we're a seed and we want to force disconnects\n\t\tif ((mainloop_loop_count % MAINLOOP_ONE_SECOND_INTERVAL) != 0)\n\t\t\treturn;\n\n\t\tif (!disconnect_seeds_when_seeding ){\n\t\t\treturn;\n\t\t}\n\n\t\tArrayList to_close = null;\n\n\t\tfinal ArrayList peer_transports = peer_transports_cow;\n\t\tfor (int i = 0; i < peer_transports.size(); i++) {\n\t\t\tfinal PEPeerTransport pc = (PEPeerTransport) peer_transports.get(i);\n\n\t\t\tif (pc != null && pc.getPeerState() == PEPeer.TRANSFERING && ((isSeeding() && pc.isSeed()) || pc.isRelativeSeed())) {\n\t\t\t\tif( to_close == null ) to_close = new ArrayList();\n\t\t\t\tto_close.add( pc );\n\t\t\t}\n\t\t}\n\n\t\tif( to_close != null ) {\t\t\n\t\t\tfor( int i=0; i < to_close.size(); i++ ) { \t\t\t\n\t\t\t\tcloseAndRemovePeer( (PEPeerTransport)to_close.get(i), \"disconnect other seed when seeding\", false );\n\t\t\t}\n\t\t}\n\t}", "void setSeed(final long seed);", "public long getSeed(){\n\t\treturn this.seed;\n\t}", "public static long getSeed() {\r\n return seed;\r\n }", "public void setSeed (long seed[]) {\n // Must use long because there is no unsigned int type.\n if (seed.length < 6)\n throw new IllegalArgumentException (\"Seed must contain 6 values\");\n if (seed[0] == 0 && seed[1] == 0 && seed[2] == 0)\n throw new IllegalArgumentException\n (\"The first 3 values must not be 0\");\n if (seed[3] == 0 && seed[4] == 0 && seed[5] == 0)\n throw new IllegalArgumentException\n (\"The last 3 values must not be 0\");\n final long m1 = 4294967087L;\n if (seed[0] >= m1 || seed[1] >= m1 || seed[2] >= m1)\n throw new IllegalArgumentException\n (\"The first 3 values must be less than \" + m1);\n final long m2 = 4294944443L;\n if (seed[3] >= m2 || seed[4] >= m2 || seed[5] >= m2)\n throw new IllegalArgumentException\n (\"The last 3 values must be less than \" + m2);\n for (int i = 0; i < 6; ++i)\n Ig[i] = seed[i];\n resetStartStream();\n }", "@Override\n public void setSeed(final int seed) {\n int counterMask = 3;\n int[] status = new int[4];\n status[0] = seed;\n status[1] = parameter.getMat1();\n status[2] = parameter.getMat2();\n status[3] = parameter.getTmat();\n for (int i = 1; i < MIN_LOOP; i++) {\n status[i & counterMask] ^= i + MAGIC_NUMBER3\n * (status[(i - 1) & counterMask]\n ^ (status[(i - 1) & counterMask]\n >>> INITIALIZE_SHIFT2));\n }\n st0 = status[0];\n st1 = status[1];\n st2 = status[2];\n st3 = status[3];\n periodCertification();\n for (int i = 0; i < MIN_LOOP; i++) {\n nextState();\n }\n clear();\n }", "public long getSeed()\n {\n return randomSeed;\n }", "public static void main(String[] args) {\n\t\tRandom r=new Random();\n\t\tr.setSeed(10000000);\n\t\tSystem.out.println(r.nextInt());\n\t}", "void reseed();", "private Pair<Integer, Integer> genRandomSrcDst(){\n int src = (int)(Math.random()*nodesNum);\n int dst = src;\n do {\n dst = (int)(Math.random()*nodesNum);\n }while(dst == src);\n return new Pair<Integer, Integer>(src, dst);\n }", "public long getSeed() {\n\t\treturn seed;\n\t}", "private long [] determineMethodSeeds(Method method) {\n if (testCaseRandomnessOverride != null) {\n return new long [] { testCaseRandomnessOverride.seed };\n }\n \n // We assign each method a different starting hash based on the global seed\n // and a hash of their name (so that the order of methods does not matter, only\n // their names). Take into account global override and method and class level\n // {@link Seed} annotations. \n final long randomSeed = \n runnerRandomness.seed ^ MurmurHash3.hash((long) method.getName().hashCode());\n final HashSet<Long> seeds = new HashSet<Long>();\n \n // Check method-level @Seed and @Seeds annotation first. \n // They take precedence over anything else.\n Seed seed;\n if ((seed = method.getAnnotation(Seed.class)) != null) {\n for (long s : seedFromAnnot(method, randomSeed)) {\n seeds.add(s);\n }\n }\n \n // Check a number of seeds on a single method.\n if (method.isAnnotationPresent(Seeds.class)) {\n for (Seed s : method.getAnnotation(Seeds.class).value()) {\n if (s.value().equals(\"random\"))\n seeds.add(randomSeed);\n else {\n for (long s2 : SeedUtils.parseSeedChain(s.value())) {\n seeds.add(s2);\n }\n }\n }\n }\n \n // Check suite-level override.\n if (seeds.isEmpty()) {\n if ((seed = suiteClass.getAnnotation(Seed.class)) != null) {\n if (!seed.value().equals(\"random\")) {\n long [] seedChain = SeedUtils.parseSeedChain(suiteClass.getAnnotation(Seed.class).value());\n if (seedChain.length > 1)\n seeds.add(seedChain[1]);\n }\n }\n }\n \n // If still empty, add the derived random seed.\n if (seeds.isEmpty()) {\n seeds.add(randomSeed);\n }\n \n long [] result = new long [seeds.size()];\n int i = 0;\n for (Long s : seeds) {\n result[i++] = s;\n }\n return result;\n }", "public Seed() {\r\n\t\tcards = new Cards();\r\n\t\tseedCards = new ArrayList<Cards>();\r\n\t\tdescription = \"\";\r\n\t\tautoSummary = \"\";\r\n\t}", "public long getSeed()\r\n {\r\n return this.randomSeed;\r\n }", "public byte[] getSeed() {\n return seed;\n }", "public Mazealgo() {\n Random number = new Random();\n long i = number.nextLong();\n this.random = new Random(i);\n this.seed = i;\n }", "private void createRandomGame() {\n ArrayList<int[]> usedCoordinates = new ArrayList<>();\n\n // make sure the board is empty\n emptyBoard();\n\n //find different coordinates\n while (usedCoordinates.size() < 25) {\n int[] temp = new int[]{randomNumberGenerator.generateInteger(size), randomNumberGenerator.generateInteger(size)};\n\n // default contains(arraylist) doesn't work because it compares hashcodes\n if (! contains(usedCoordinates, temp)) {\n usedCoordinates.add(temp);\n }\n }\n\n for (int[] usedCoordinate : usedCoordinates) {\n board.setSquare(usedCoordinate[0], usedCoordinate[1], randomNumberGenerator.generateInteger(size) + 1);\n }\n\n //save start locations\n startLocations = usedCoordinates;\n }", "protected Supplier<Set<Entity>> getSeedSupplier() {\n return defaultSeedSupplier;\n }", "private void createSeed(Element temp) {\n\n Seed seed = new Seed();\n for(int i = 0; i < temp.getAttributeCount(); i++) { //same principle as createGrape\n Attribute attribute = temp.getAttribute(i);\n String name = attribute.getQualifiedName();\n String value = attribute.getValue();\n\n switch (name) {\n case (\"name\"):\n seed.setId(value);\n break;\n\n case (\"type\"):\n try {\n seed.setSeedClass(Class.forName(\"Examples.\"+value));\n } catch (ReflectiveOperationException e) {\n Class className = this.isPrimitive(value);\n if(className == null)\n e.printStackTrace();\n else\n seed.setSeedClass(className);\n }\n break;\n\n case(\"constructor\"):\n seed.setIsConstructor(Boolean.valueOf(value));\n break;\n\n case (\"isReferenced\"):\n seed.setRef(Boolean.valueOf(value)); //TODO considerar que se hace si es true\n break;\n\n case (\"value\"):\n if(seed.getSeedClass() != null) {\n if(seed.isRef()){//Debo saber si meter un objeto o un valor\n String k =seed.getSeedClass().getSimpleName();\n Object h = singletonGrapes.get(k);\n if(h==null){\n h = this.isPrimitive(seed.getSeedClass().getSimpleName());\n }\n seed.setValue(h);\n }else{\n seed.setValue(value);\n }\n } else {\n System.err.print(\"Objects.Seed parameters not in correct order. Type should be before values.\");\n }\n break;\n\n default:\n System.err.print(\"Invalid parameter \" + name);\n break;\n }\n }\n\n Element parent = (Element) temp.getParent();\n Grape parentGrape = grapes.get(parent.getAttributeValue(\"id\"));\n super.dependencies.computeIfAbsent(parentGrape.getId(), V-> new LinkedList<>());\n super.dependencies.get(parentGrape.getId()).add(seed); //map should store seeds that belong to the same grape TODO revisar estructura\n\n if(seed.isConstructor())\n buildWithConstructors(parentGrape.getId());\n else\n buildWithSetters(parentGrape.getId());\n }", "private void rearrangeSolution() {\r\n List<Integer> trinity = new ArrayList<Integer>();\r\n trinity.add(0); trinity.add(1); trinity.add(2);\r\n permutateDigits();\r\n for (int i = 0; i<9; i+=3) {\r\n Collections.shuffle(trinity);\r\n swapRow(trinity.get(0)+i, trinity.get(1)+i);\r\n }\r\n for (int i = 0; i<9; i+=3) {\r\n Collections.shuffle(trinity);\r\n swapCol(trinity.get(0)+i, trinity.get(1)+i);\r\n }\r\n }", "public XorShiftRandom(final long seed) {\n\t\tthis.seed = seed;\n\t}", "public InternalExternalTour(long seed){\n\t\t\n\t\trandom = new MersenneTwister(seed);\n\t}", "public void shuffle() {\n for (int i = size - 1; i > 0; i--) {\n swap(i, (int)(Math.random() * (i + 1)));\n }\n }", "public void setSeed(int seed){\n\t\tmyRandom = new Random(seed);\n\t}", "protected static byte[] ComputeSeed(RandomOracle ROSeed, Node nodeForSeed,\r\n \t\t\tbyte[] ro) {\r\n \t\treturn ROSeed.getRandomOracleOutput(ArrayGenerators.concatArrays(ro,\r\n \t\t\t\tnodeForSeed.toByteArray()));\r\n \t}", "public TrollGame (int seed){\n rand = new Random(seed);\n initBoard(ROWS, COLS, rand);\n }", "public void initializeAgentsPositions(int seed) {\r\n //THE NEXT LINE MEANS THAT ALL INDIVIDUALS WILL BE EVALUATED WITH THE SAME\r\n //ENVIRONEMNT STARTING POSITIONS.\r\n //reset cells\r\n prey.setCell(null);\r\n for (Predator predator : predators) {\r\n predator.setCell(null);\r\n }\r\n prey.setCell(getCell(GeneticAlgorithm.random.nextInt(grid.length), GeneticAlgorithm.random.nextInt(grid.length)));\r\n for (Predator predator : predators) {\r\n do {\r\n Cell cell = getCell(\r\n GeneticAlgorithm.random.nextInt(grid.length), GeneticAlgorithm.random.nextInt(grid.length));\r\n if (!cell.hasAgent()) {\r\n predator.setCell(cell);\r\n }\r\n } while (predator.getCell() == null);\r\n } \r\n }", "public boolean hasSeeds() {\n return this.seeds != null && this.seeds.size() > 0;\n }", "private void createSeedMountains(Square[][]Squares, int rows, int columns, int mountains, int[][] terrainLoc)\n {\n int swellTolerance;\n \n if(columns>rows)\n {\n swellTolerance = rows/20+2;\n }\n else\n {\n swellTolerance = columns/20+2;\n }\n\n // go through every second column tops. iterator builds up in relation to horizontal size of the grid\n for (int i = 1;i < rows;i=i+rows/10+2)\n {\n // go through the row a number of times specified (can be done by setMountains() )\n for(int a = 0;a < mountains;a++)\n {\n // random a placement for the mountain seed\n int rand = (int )(Math.random() * columns + 1);\n \n // making sure the seed is far enough from the borders horizontally\n if (rand < 0 || rand >= columns)\n {\n for (;rand < 0 || rand >= columns;)\n {\n rand = (int )(Math.random() * columns +1);\n }\n }\n // making sure the seed is far enough from the borders vertically\n if (i<= columns-swellTolerance && i>=swellTolerance)\n {\n if(rand <=rows-swellTolerance && rand>=swellTolerance)\n {\n // placing seeds\n Squares[i][rand].setTerrain(1);\n terrainLoc[i][rand] = 1;\n } \n \n }\n }\n }\n }", "private long getSeedFromLoad(String[] all) {\n int x = 0;\n String seedst = \"\";\n\n for (String s : all) {\n if (s.equals(\"N\") || all[x].equals(\"n\")) {\n x += 1;\n } else if (s.equals(\"s\") || s.equals(\"S\")) {\n return Long.parseLong(seedst);\n } else {\n seedst += all[x];\n x += 1;\n }\n }\n return Long.parseLong(seedst);\n }", "private static void __exercise37(final int[] a) {\n final int N = a.length;\n for (int i = 0; i < N; ++i) {\n final int r = StdRandom.uniform(N);\n final int temp = a[i];\n a[i] = a[r];\n a[r] = temp;\n }\n }", "public final void seed(int s0, int s1, int s2)\r\n {\r\n d0 = s0;\r\n d1 = s1;\r\n d2 = s2;\r\n i = 0;\r\n }", "private void shufflePositions() {\r\n\r\n // Inizializzo con il progressivo delle posizioni\r\n for (int i = 0; i < shufflePositions.length; i++) {\r\n shufflePositions[i] = i;\r\n }\r\n\r\n int lastIndex ;\r\n int tempIndex = 0;\r\n int tempVal = 0;\r\n\r\n// // Tecnica 1 - Knuth (gli indici da scambiare sono scelti dall'inizio in un insieme decrescente in cardinalità)\r\n// int lastIndex = shufflePositions.length;\r\n// for (int i = 0; i < shufflePositions.length-1; i++) {\r\n// tempIndex = i+secureRandom.nextInt(lastIndex); // Randomizzo le posizioni del random buffer da cui prendo i valori casuali\r\n// tempVal=shufflePositions[tempIndex];\r\n// shufflePositions[tempIndex]=shufflePositions[i];\r\n// shufflePositions[i] = tempVal; \r\n// lastIndex--;\r\n// } \r\n \r\n //Tecnica 2 - Knuth GAB Modification (gli indici casuali sono scelti dal fondo in un insieme decrescente in cardinalità)\r\n lastIndex = shufflePositions.length-1;\r\n for (int i = 0; i < shufflePositions.length - 1; i++) {\r\n tempIndex = secureRandom.nextInt(lastIndex); // Randomizzo le posizioni del random buffer da cui prendo i valori casuali\r\n tempVal = shufflePositions[tempIndex];\r\n shufflePositions[tempIndex] = shufflePositions[lastIndex];\r\n shufflePositions[lastIndex] = tempVal;\r\n lastIndex--;\r\n }\r\n \r\n// // Tecnica 3 - Algoritmo standard delle collections\r\n// Integer[]tempArray = new Integer[MaxBufferLength];\r\n// for (int i=0;i<MaxBufferLength;i++){\r\n// tempArray[i]=i;\r\n// \r\n// }\r\n// List<Integer> tempList = Arrays.asList(tempArray);\r\n//\r\n// Collections.shuffle(tempList, secureRandom);\r\n// tempArray= (Integer[]) tempList.toArray();\r\n// for (int i=0;i<shufflePositions.length;i++){\r\n// shufflePositions[i]=tempArray[i];\r\n// }\r\n }", "public void colorearSecuencial() {\n\t\t// Collections.shuffle(nodos);\n\t\tcolorearSecuencialAlternativo();\n\t}", "@Override\n\tpublic void run() {\n\t\tMPMergeSortTest.MPParallelRandomGen(start, end, r, data);\n\n\t}", "public static void main(String[] args) {\n\n\t\tRandomVector v = new RandomVector(10);\n\t\tv.shuffle();\n\t\tSystem.out.println(v);\n\t//\tInsertionSort(v);\n\t\tbubbleSort(v);\n\t\t//mergeSort(v);\n\t\tSystem.out.println(v);\n\t}", "private static void __exercise36(final int[] a) {\n final int N = a.length;\n for (int i = 0; i < N; ++i) {\n final int r = i + StdRandom.uniform(N - i);\n final int temp = a[i];\n a[i] = a[r];\n a[r] = temp;\n }\n }", "public StressChange(long seed) {\n super(seed);\n }", "public void playGame () {\n int rank1 = team1.getSeed();\n int rank2 = team2.getSeed();\n double s1 = Math.random();\n System.out.println(s1);\n double s2 = Math.random();\n System.out.println(s2);\n \n if(rank1 < rank2){\n\t double one = (s1*10)+1;\n\t score1 = (int)one;//gives a slight advantage to the person with a higher seed\n\t double two = (s2*10); \n\t score2 = (int)two;\n\t if(score1 == score2){\n\t score1 = score1+1; //gives the game to the higher seed if there is a tie\n }\n else if(rank2 < rank1){\n\t double r = (s2*10)+1;\n\t score2 = (int)r;\n\t double t = (s1*10); \n\t score1 = (int)t;\n\t if(score1 == score2){\n\t score2 = score2+1;\n\t }}}}", "public void setSeed(Square.State seed) {\n this.mySeed = seed;\n oppSeed = (mySeed == Square.State.CROSS) ? Square.State.NOUGHT : Square.State.CROSS;\n }", "void shuffle();", "void shuffle();", "void addSeeds(TaskList tasks);", "@Override\n\t protected int getSeedItem()\n\t {\n\t\t return seedID;\n\t }", "public void shuffle() {\n\t\tCollections.shuffle(inds);\n\t}", "public abstract void shuffled();", "public DynamicModelPart seeds(ObjectList<DynamicPart[]> seeds) {\n this.seeds = seeds;\n return this;\n }", "public static ObjectList<DynamicPart[]> defaultSeeds(int numberOfCuboids) {\n DynamicModelPart temp = new DynamicModelPart(0, 0, 0, 0);\n ObjectList<DynamicPart[]> SEEDS = new ObjectArrayList<DynamicPart[]>();\n for (int index = 0; index < numberOfCuboids; index++) {\n DynamicPart[] parts = new DynamicPart[DynamicModelPart.DYNAMIC_ENUM_LENGTH];\n for (int dEnumIndex =\n 0; dEnumIndex < DynamicModelPart.DYNAMIC_ENUM_LENGTH; dEnumIndex++) {\n DYNAMIC_ENUM dEnum = DYNAMIC_ENUM.values()[dEnumIndex];\n DynamicPart part = temp.new DynamicPart(dEnum,\n (DEFAULT_STATE.length - 1 < dEnumIndex)\n ? DEFAULT_STATE[DEFAULT_STATE.length - 1]\n : DEFAULT_STATE[dEnumIndex],\n (DEFAULT_MIN.length - 1 < dEnumIndex) ? DEFAULT_MIN[DEFAULT_MIN.length - 1]\n : DEFAULT_MIN[dEnumIndex],\n (DEFAULT_MAX.length - 1 < dEnumIndex) ? DEFAULT_MAX[DEFAULT_MAX.length - 1]\n : DEFAULT_MAX[dEnumIndex],\n 0F, // value\n (DEFAULT_LERP_PERCENT.length - 1 < dEnumIndex)\n ? DEFAULT_LERP_PERCENT[DEFAULT_LERP_PERCENT.length - 1]\n : DEFAULT_LERP_PERCENT[dEnumIndex],\n (DEFAULT_APPLY_RANDOM_MAX.length - 1 < dEnumIndex)\n ? DEFAULT_APPLY_RANDOM_MAX[DEFAULT_APPLY_RANDOM_MAX.length - 1]\n : DEFAULT_APPLY_RANDOM_MAX[dEnumIndex],\n (DEFAULT_APPLY_RANDOM_MIN.length - 1 < dEnumIndex)\n ? DEFAULT_APPLY_RANDOM_MIN[DEFAULT_APPLY_RANDOM_MIN.length - 1]\n : DEFAULT_APPLY_RANDOM_MIN[dEnumIndex],\n (DEFAULT_APPLY_RANDOM_MULTIPLIER.length - 1 < dEnumIndex)\n ? DEFAULT_APPLY_RANDOM_MULTIPLIER[DEFAULT_APPLY_RANDOM_MULTIPLIER.length\n - 1]\n : DEFAULT_APPLY_RANDOM_MULTIPLIER[dEnumIndex]);\n parts[dEnumIndex] = part;\n }\n SEEDS.add(index, parts);\n }\n return SEEDS;\n }", "RegisterTuple pickSeeds(ArrayList<Register> registers);", "public RandomizedSet() {\n nums = new ArrayList<Integer>();\n location = new HashMap<Integer, Integer>();\n }", "private int[] removeDuplicatesWithParallelStream() {\n\t return Arrays.stream(randomIntegers).parallel().distinct().toArray();\n\t}", "public static void main(String[] args) {\n int[] arr = {};\n arr = selectionShuffle(arr);\n for(int i = 0; i < arr.length; i ++){\n System.out.print(arr[i]);\n if(i < arr.length - 1){\n System.out.print(\" \");\n }\n }\n System.out.println();\n }", "public static void populate() {\n for (int i = 1; i <= 15; i++) {\n B.add(i);\n Collections.shuffle(B);\n\n }\n for (int i = 16; i <= 30; i++) {\n I.add(i);\n Collections.shuffle(I);\n }\n for (int n = 31; n <= 45; n++) {\n N.add(n);\n Collections.shuffle(N);\n }\n for (int g = 46; g <= 60; g++) {\n G.add(g);\n Collections.shuffle(G);\n }\n for (int o = 61; o <= 75; o++) {\n O.add(o);\n Collections.shuffle(O);\n }\n\n for (int i = 1; i <= 75; i++) {\n roll.add(i); // adds the numbers in the check list\n }\n }", "public static void main(String[] args) {\n int[] arr = ArrayTools.getRandomIntArray(0, 10000, 10);\n ArrayTools.printIntArray(arr);\n int[] sorted = MergeSort.sort(arr);\n ArrayTools.printIntArray(sorted);\n }", "private int randomIndex() {\n return StdRandom.uniform(head, tail);\n }", "public void shuffle();", "public boolean isSeed() {\r\n\t\treturn isSeed;\r\n\t}", "public String getSeed() {\n return m_randomSeed;\n }", "public int[] shuffle() {\r\n int max = nums.length - 1;\r\n for (int i = 0; i < nums.length; i++) {\r\n int index = new Random().nextInt(max)%(max - i + 1) + i;\r\n int tmp = nums[i];\r\n nums[i] = nums[index];\r\n nums[index] = tmp;\r\n }\r\n return nums;\r\n }", "public static void generateSeedData()\n\t{\n\t\teventIDCounter = 1; //set counter for ID of events to 1\n\t\t\n\t\t// generate the grid world\n\t\tfor(int i = 0; i <= (MAX_COORDS*2); i++)\n\t\t{\n\t\t\tfor(int j = 0; j <= (MAX_COORDS*2); j++)\n\t\t\t{\n\t\t\t\tgridWorld[i][j] = new Coordinate(i-MAX_COORDS,j-MAX_COORDS);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Assumption that there will be 1 event to every 10 coordinates\n\t\t// grid of 21*21=441, 441/10=44\n\t\tint numOfEvents = ((MAX_COORDS*2)+1)*((MAX_COORDS*2)+1)/10;\n\t\tEvent newEvent;\n\t\tint newXCoord;\n\t\tint newYCoord;\n\t\tTicket ticket;\n\t\tArrayList<Ticket> tickets;\n\t\t\n\t\tfor(int i = 1; i <= numOfEvents; i++)\n\t\t{\n\t\t\t// create random coordinates for new event\n\t\t\tnewXCoord = rand.nextInt(MAX_COORDS + 1 +MAX_COORDS) -MAX_COORDS;\n\t\t\tnewYCoord = rand.nextInt(MAX_COORDS + 1 +MAX_COORDS) -MAX_COORDS;\n\t\t\t\n\t\t\tnewEvent = new Event(i, gridWorld[newXCoord+MAX_COORDS][newYCoord+MAX_COORDS], \"Event \"+String.format(\"%03d\", i)); \n\t\t\t\n\t\t\t//create a random number of tickets between 0 and 5\n\t\t\ttickets = new ArrayList<Ticket>(); // clear all tickets in the arraylist\n\t\t\tfor(int j = 0; j < 4; j++)\n\t\t\t{\n\t\t\t\tint num = rand.nextInt(5000 - 1000) +1000; // create price in cents, from $10 to $50 \n\t\t\t\tdouble price = num/100.0; // convert to double\n\t\t\t\tticket = new BasicTicket((new BigDecimal(price)).setScale(2, RoundingMode.CEILING));\n\t\t\t\ttickets.add(ticket);\n\t\t\t}\n\t\t\tnewEvent.setTickets(tickets);\n\t\t\t\t\n\t\t\t// set the grid coordinate to have this event\n\t\t\tgridWorld[newXCoord+MAX_COORDS][newYCoord+MAX_COORDS].setEvent(newEvent);\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t// Add a couple of events hard coded first for testing\n\t\t/*Event newEvent1 = new Event(gridWorld[18][20], \"Event 001\"); //distance of 18 from 0,0\n\t\tgridWorld[18][20].setEvent(newEvent1);\n\t\t\n\t\tEvent newEvent2 = new Event(gridWorld[9][10], \"Event 002\"); //distance of 1 from 0,0\n\t\tgridWorld[9][10].setEvent(newEvent2);\n\t\t\n\t\tEvent newEvent3 = new Event(gridWorld[8][5], \"Event 003\"); //distance of 7 from 0,0\n\t\tgridWorld[8][5].setEvent(newEvent3);\n\t\t\n\t\tEvent newEvent4 = new Event(gridWorld[10][14], \"Event 004\"); //distance of 4 from 0,0\n\t\tgridWorld[10][14].setEvent(newEvent4);\n\t\t\n\t\tEvent newEvent5 = new Event(gridWorld[10][11], \"Event 005\"); //distance of 1 from 0,0\n\t\tgridWorld[10][11].setEvent(newEvent5);\n\t\t\n\t\tEvent newEvent6 = new Event(gridWorld[5][10], \"Event 006\"); //distance of 5 from 0,0\n\t\tgridWorld[5][10].setEvent(newEvent6);\n\t\t\n\t\tEvent newEvent7 = new Event(gridWorld[11][12], \"Event 007\"); //distance of 3 from 0,0\n\t\tgridWorld[11][12].setEvent(newEvent7);\n\t\t\n\t\tEvent newEvent8 = new Event(gridWorld[0][0], \"Event 008\"); //distance of 20 from 0,0\n\t\tgridWorld[0][0].setEvent(newEvent8);*/\n\t\t\n\t\t\n\t\t\n\t}", "public int[] shuffle() {\n int[] res = new int[nums.length];\n int r;\n for (int i = 0; i < nums.length; i++) {\n r = random.nextInt(i + 1);\n res[i] = res[r];\n res[r] = nums[i];\n }\n\n\n return res;\n }", "public static void main(String[] args) {\n ArrayList<String>colors= new ArrayList<>();\n colors.add(\"red\");\n colors.add(\"green\");\n colors.add(\"Orange\");\n colors.add(\"white\");\n colors.add(\"black\");\n System.out.println(\"list before shuffling: \" + colors );\n Collections.shuffle(colors);\n System.out.println(\"list after shuffling:\" + colors);\n\n\n\n }", "public int[] shuffle() {\n for (int i = nums.length - 1; i >= 0; i--) {\n swap(i, rnd.nextInt(i + 1));\n }\n \n return nums;\n }", "public double[] newstater (){\r\n double[] styles = new double[Config.numberOfSeeds];\r\n for(int iii=0; iii < Config.numberOfSeeds; iii++)\r\n {\r\n Random randomr = new Random();\r\n styles[iii] = 0 + (5 - 0) * randomr.nextDouble();\r\n// RandGenerator.randDouble(0, 5);\r\n }\r\n return styles;\r\n }", "private String getRandomSeed() {\n long newSeed = 0;\n Random randBoolean = new Random(randomSeed);\n for (int i = 0; i < 48; i++) {\n if (randBoolean.nextBoolean()) {\n newSeed += 1 << i;\n }\n }\n if (newSeed < 0) {\n newSeed = Math.abs(newSeed);\n }\n\n String s = \"\";\n if (newSeed == 0) {\n s += \"0\";\n } else {\n while (newSeed != 0) {\n long num = (newSeed & (0xF));\n if (num < 10) {\n s = num + s;\n } else {\n s = ((char) (num + 55)) + s;\n }\n newSeed = newSeed >> 4;\n }\n }\n return s;\n }", "public WB_RandomPoint setSeed(final long seed);", "private void shuffleOrder() {\n\t\t// Simple shuffle: swap each piece with some other one\n\t\tfor (int i = 0; i < order.size(); i++) {\n\t\t\tint j = (int) (Math.random() * order.size());\n\t\t\tInteger pi = order.get(i);\n\t\t\torder.set(i, order.get(j));\n\t\t\torder.set(j, pi);\n\t\t}\n\t}", "private void collectRandomRIDs(){\n\t\tint numRIDs = iterations + 1;\n\t\trandomRID_list = new String[numRIDs];\n\t\tString randomClusterName;\n\t\tint clusterID, randomPosition;\n\t\t\n\t\t// Collect #iterations of random RID's\n\t\tfor(int i=0; i < numRIDs; i++){\n\t\t\trandomClusterName = env.VERTEX_PREFIX + (int) (Math.random() * env.NUM_VERTEX_TYPE);\n\t\t\tclusterID = db.getClusterIdByName(randomClusterName); \n\t\t\tOClusterPosition [] range = db.getStorage().getClusterDataRange(clusterID);\n\t\t\t\n\t\t\trandomPosition = (int) (Math.random() * range[1].intValue()) + range[0].intValue();\n\t\t\trandomRID_list[i] = \"#\" + clusterID + \":\" + randomPosition;\n\t\t}\n\t\t\n\t}", "public void randomize() {\r\n\t\tRandom random = new Random();// random generator used to get random int\r\n\t\tint r;// will hold the random int\r\n\t\tint num;// will hold the filtered random int that determines with entity to use for a tile\r\n\t\tfor (int i = 0; i < WIDTH_TILES; i++) {// loops x-coords\r\n\t\t\tfor (int j = 0; j < HEIGHT_TILES; j++) {// loops y-coords\r\n\t\t\t\tr = random.nextInt(32);// gets random int from 0 to 32\r\n\t\t\t\tif (r < 4) num = 0; else if (r < 8) num = 1; else if (r < 31) num = 2; else num = 3;// distributes different objects\r\n\t\t\t\tif (nodes[i * WIDTH_TILES + j].isOccupied() == false) {// if tile empty or random chosen\r\n\t\t\t\t\tnodes[i * WIDTH_TILES + j] = new Node(new Point(i * BOARD_WIDTH / WIDTH_TILES, j * BOARD_WIDTH / HEIGHT_TILES), new ImageIcon(icons[num]).getImage(), true, occupants[num]);// creates random tile\r\n\t\t\t\t}// if (random)\r\n\t\t\t}// for (j)\r\n\t\t}// for (i)\r\n\t}" ]
[ "0.6577796", "0.6458194", "0.62888074", "0.62812", "0.6213649", "0.6211347", "0.6201969", "0.6173967", "0.61285394", "0.6098127", "0.6063968", "0.6048669", "0.60044134", "0.5986656", "0.5982456", "0.59594196", "0.5938989", "0.5870402", "0.5851973", "0.5812848", "0.5812848", "0.57917756", "0.57831055", "0.5782128", "0.57526773", "0.5750906", "0.5726013", "0.5718122", "0.56970364", "0.56632113", "0.56624573", "0.5661105", "0.5651026", "0.56414026", "0.5615438", "0.56154263", "0.5558306", "0.55134463", "0.55040145", "0.55031097", "0.5499101", "0.5497928", "0.54956853", "0.54792804", "0.5455784", "0.5433966", "0.5431886", "0.54318565", "0.5426352", "0.541973", "0.54180056", "0.5417037", "0.5411198", "0.540672", "0.54000276", "0.53954804", "0.5392091", "0.5386571", "0.53830445", "0.53793496", "0.53734535", "0.536979", "0.53682", "0.53557605", "0.5355316", "0.53501546", "0.53361064", "0.53338075", "0.53321093", "0.5329448", "0.53259987", "0.53239644", "0.53233427", "0.53233427", "0.5318314", "0.5318127", "0.53165853", "0.53127307", "0.53024864", "0.529464", "0.52933615", "0.5289394", "0.5274545", "0.5267509", "0.5266781", "0.5260816", "0.525534", "0.52550817", "0.52537686", "0.52503145", "0.5246599", "0.52456415", "0.523745", "0.5232049", "0.52317286", "0.52259874", "0.5224749", "0.5223229", "0.5217942", "0.52107584", "0.52085984" ]
0.0
-1
print the actions of application
public static void print() { System.out.println("1: Push"); System.out.println("2: Pop"); System.out.println("3: Peek"); System.out.println("4: Get size"); System.out.println("5: Check if empty"); System.out.println("6: Exit"); System.out.println("===================================================================="); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void printActions(ArrayList<Action> actions){\n\t\tfor (int i = 0; i < actions.size(); i++) \n\t\t\tSystem.out.println(actions.get(i));\n\t}", "@Override\n\tpublic String displayActions() {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint i = 0;\n\t\tfor(Action action: this.getTakeableActions()) {\n\t\t\tif(action.isDisplay())\n\t\t\t\tsb.append(\"\\n\"+i++ +\". \"+ action.getDescription());\n\t\t}\n\t\treturn sb.toString();\n\t}", "@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tSystem.out.print(\"Action: \" + e.getActionCommand() + \"\\n\");\n\t\t\t\t}", "@Override\n public void showActionsInformation() {\n System.out.println(\"\");\n System.out.println(\"To add a new task, please follow the instructions and press ENTER:\");\n System.out.println(\"IP.TodoListApplication.App.Task ID, IP.TodoListApplication.App.Task Title, Due Date (format: dd-mm-yyyy), IP.TodoListApplication.App.Task Status, Project Name\");\n System.out.println(\"\");\n System.out.println(\"Enter 0 to RETURN\");\n }", "public void printAction() {\n this.folderList.get(currentFolder).printIt();\n }", "public void printCommands(){\n LocalApi.print_commands();\n }", "@Override\n\tpublic void action() {\n\t\tSystem.out.println(\"action now!\");\n\t}", "public void displayActionAndResponses() {\n System.out.print(trackAction);\n if (trackAction.equals(\"move\")) {\n System.out.println(\",\" + trackMoveDistance + \",\" + trackNewDirection);\n } else {\n System.out.println();\n }\n\n // display the simulation checks and/or responses\n if (trackAction.equals(\"move\") | trackAction.equals(\"turn_off\")) {\n System.out.println(trackMoveCheck);\n } else if (trackAction.equals(\"scan\")) {\n System.out.println(trackScanResults);\n } else {\n System.out.println(\"action not recognized\");\n }\n }", "static void displayMenu(){\n\t\tSystem.out.println(\"\");\n\t\tSystem.out.println(\"Select operation:\");\n\t\tSystem.out.println(\"1-List movies\");\n\t\tSystem.out.println(\"2-Show movie details\");\n\t\tSystem.out.println(\"3-Add a movie\");\n\t\tSystem.out.println(\"4-Add an example set of 5 movies\");\n\t\tSystem.out.println(\"5-Exit\");\n\t}", "public void run(IAction action) {\n\t\tMessageDialog.openInformation(window.getShell(), \"AccTrace\",\n\t\t\t\t\"Hello, Eclipse world\");\n\t}", "private static void printMainMenu() {\n\t\tprintln(\"Main Menu:\");\n\t\tprintln(\"\\tI: Import Movie <Title>\");\n\t\tprintln(\"\\tD: Delete Movie <Title>\");\n\t\tprintln(\"\\tS: Sort Movies\");\n\t\tprintln(\"\\tA: Sort Actors\");\n\t\tprintln(\"\\tQ: Quit\");\n\t}", "public static void printMenu()\r\n\t{\r\n\t\tSystem.out.println(\"A) Add Scene\");\r\n\t\tSystem.out.println(\"R) Remove Scene\");\r\n\t\tSystem.out.println(\"S) Show Current Scene\");\r\n\t\tSystem.out.println(\"P) Print Adventure Tree\");\r\n\t\tSystem.out.println(\"B) Go Back A Scene\");\r\n\t\tSystem.out.println(\"F) Go Forward A Scene \");\r\n\t\tSystem.out.println(\"G) Play Game\");\r\n\t\tSystem.out.println(\"N) Print Path To Cursor\");\r\n\t\tSystem.out.println(\"M) Move Scene\");\r\n\t\tSystem.out.println(\"Q) Quit\");\r\n\t\tSystem.out.println();\r\n\t}", "private void printMenu()\n {\n System.out.println(\"\");\n System.out.println(\"*** Salg ***\");\n System.out.println(\"(0) Tilbage\");\n System.out.println(\"(1) Opret\");\n System.out.println(\"(2) Find\");\n System.out.println(\"(3) Slet\");\n System.out.print(\"Valg: \");\n }", "private static void printFirstOp(){\n\t\tSystem.out.println(\"Welcome to SimpleSocial!\\n\"\n\t\t\t\t+ \"Type:\\n\"\n\t\t\t\t+ \"- register\\n\"\n\t\t\t\t+ \"- login\\n\"\n\t\t\t\t+ \"- exit\");\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t if (e.getActionCommand().startsWith(\"show\")) {\r\n\t System.out.println(e.getActionCommand());\r\n\t String mystring = e.getActionCommand().substring(9);\r\n\t System.out.println(mystring);\r\n\t \r\n\t }\r\n\r\n\t}", "private void showCommands() {\n System.out.println(\"\\n Commands:\");\n System.out.println(\"\\t lf: List reference frames\");\n System.out.println(\"\\t af: Add a reference frame\");\n System.out.println(\"\\t rf: Remove a reference frame\");\n System.out.println(\"\\t le: List events\");\n System.out.println(\"\\t ae: Add an event\");\n System.out.println(\"\\t re: Remove an event\");\n System.out.println(\"\\t ve: View all events from a certain frame\");\n System.out.println(\"\\t li: Calculate the Lorentz Invariant of two events\");\n System.out.println(\"\\t s: Save the world to file\");\n System.out.println(\"\\t l: Load the world from file\");\n System.out.println(\"\\t exit: Exit the program\");\n }", "public void print() {\n System.out.println(\"Command: \" + command);\n }", "public static void printMenu(){\n System.out.print(\"1. List all writing groups\\n\" +\n \"2. List all the data for one writing group\\n\"+\n \"3. List all publishers\\n\"+\n \"4. List all the data for one publisher\\n\"+\n \"5. List all books\\n\"+\n \"6. List all the data for one book\\n\"+\n \"7. Insert new book\\n\"+\n \"8. Insert new publisher\\n\"+\n \"9. Remove a book\\n\"+\n \"10. Quit\\n\\n\");\n }", "private static final void displayAttractionSummary()\r\n {\r\n System.out.println(\"Display Attraction Summary Feature Selected!\");\r\n System.out.println(\"--------------------------------------\");\r\n \r\n // step through array of attractions with for loop\r\n for(int i = 0; i < attractionCount; i++)\r\n {\r\n attractionList[i].printDetails();\r\n System.out.println();\r\n }\r\n }", "private void printHelp()//Method was given\n {\n System.out.println(\"Your command words are:\");\n parser.showCommands();\n }", "private void appendAction(String action) {\n \t\tif (board.isSetupPhase())\n \t\t\treturn;\n \n \t\tif (actionLog == \"\")\n \t\t\tactionLog += \"→ \" + action;\n \t\telse\n \t\t\tactionLog += \"\\n\" + \"→ \" + action;\n \n \t}", "public void Print(ActionEvent actionEvent) {\n //System.out.println(call.title);\n TitleDisplay.setText(\"\");\n for (int i = 0; i < call.getToDoListTitle().size(); i++) {\n text = \"Item #\" + (i + 1);\n TitleDisplay.appendText(text);\n TitleDisplay.appendText(\"\\n\");\n TitleDisplay.appendText(\"Name: \");\n TitleDisplay.appendText(call.getToDoListTitle().get(i));\n TitleDisplay.appendText(\"\\nDescription: \");\n TitleDisplay.appendText(call.getToDoListDescription().get(i));\n TitleDisplay.appendText(\"\\nDue Date: \");\n TitleDisplay.appendText(call.getToDoListDueDate().get(i));\n TitleDisplay.appendText(\"\\n\\n\");\n }\n }", "void printPlayersActionInfo(Player p) {\n }", "private void printMainMenu() {\n\t\tSystem.out.println(\"1. Go adventuring\");\n\t\tSystem.out.println(\"2. Enter tavern\");\n\t\tSystem.out.println(\"3. Show details about your character\");\n\t\tSystem.out.println(\"4. Exit game\");\n\t}", "private void showExecutionStart() {\n log.info(\"##############################################################\");\n log.info(\"Creating a new web application with the following parameters: \");\n log.info(\"##############################################################\");\n log.info(\"Name: \" + data.getApplicationName());\n log.info(\"Package: \" + data.getPackageName());\n log.info(\"Database Choice: \" + data.getDatabaseChoice());\n log.info(\"Database Name: \" + data.getDatabaseName());\n log.info(\"Persistence Module: \" + data.getPersistenceChoice());\n log.info(\"Web Module: \" + data.getWebChoice());\n }", "@Override\n public void action() {\n System.out.println(\"do some thing...\");\n }", "@Override\n\t\t\tpublic void performAction(PrintWriter pw) {\n\t\t\t\t\n\t\t\t\tString hello = \"helloworld\";\n\t\t\t\t\n\t\t\t\tpw.println(hello);\n\t\t\t\t\n\t\t\t}", "private void displayMenu() {\n\t\tSystem.out.println(\"********Loan Approval System***********\");\n\t\tSystem.out.println(\"\\n\");\n\t\tSystem.out.println(\n\t\t\t\t\"Choose the following options:\\n(l)Load Applicaitons\\n(s)Set the Budget\\n(m)Make a decision\\n(p)Print\\n(u)Update the application\");\n\n\t}", "public static void printIndications() {\n\t\tSystem.out.println(\"\\n\" + \"Usage :\"\n\t\t\t\t+ \"\\n\\t\" + \"java -jar <jar-file> nodeScopeDirectoryPath windowSize\"\n\t\t\t\t+ \"\\n\\t\\t\" + \"nodeScopeDirectoryPath is the path of the directory where the tagged corpus is located\"\n\t\t\t\t+ \"\\n\\t\\t\" + \"windowSize is the size of the sliding window; it must be an integer (usually 2)\"\n\t\t\t\t+ \"\\n\\t\\t\" + \"Other input parameters\"\n\t\t\t\t+ \"\\n\\t\\t\" + \"the file containing the candidates terms must be located at src/main/resources/concepts/candidates.txt\"\n\t\t\t\t+ \"\\n\\t\\t\" + \"the file containing the reference terms must be located at src/main/resources/concepts/reference_samples.txt\"\n\t\t\t\t+ \"\\n\\t\\t\" + \"the file containing the stopwords must be located at src/main/resources/stopwords/stopwords_users.txt\"\n\t\t\t\t+ \"\\n\\t\\t\" + \"Output parameters\"\n\t\t\t\t+ \"\\n\\t\\t\" + \"nodeScopeDirectoryPath/output/pat_context.json\"\n\t\t\t\t+ \"\\n\\t\\t\" + \"nodeScopeDirectoryPath/output/med_context.json\"\n\t\t\t\t+ \"\\n\\t\\t\" + \"nodeScopeDirectoryPath/output/frequency.json\"\n\t\t\t\t+ \"\\n\"\n\t\t\t\t);\n\t}", "private void printHelp() \n {\n System.out.println(\"Your command words are:\");\n parser.showCommands();\n }", "public void print() {\n stdout(name + \", \" + description);\n stdout(\"-----------------------------------\");\n for (MenuComponent menuComponent : components) {\n menuComponent.print();\n }\n stdout(\"\\n\");\n }", "public void action() {\n\t\tfor(int i=0; i<facade.getServiceOptions().getOptionsList().size();i++){\n\t\t\tReader reader= new Reader(facade.getOptionsList().get(i));\n\t\t\treader.print();\n\t\t}\n\t}", "private static void printFileOperationMenu() {\n System.out.println(\"-------------------------------------\");\n System.out.println(\"File operation menu\");\n System.out.println(\"1. Retrieve file names from directory\");\n System.out.println(\"2. Add a file.\");\n System.out.println(\"3. Delete a file.\");\n System.out.println(\"4. Search a file.\");\n System.out.println(\"5. Change directory.\");\n System.out.println(\"6. Exit to main menu.\");\n\n }", "public void printAll()\n {\n r.showAll();\n }", "public void run(){\n ArrayList<String> menuItems = new ArrayList<>();\n menuItems.add(\"Play the Game\");\n menuItems.add(\"Close the Program\");\n menuItems.add(\"Show the highest score\");\n String menu = CollectionTools.collectionPrinter('S', menuItems);\n runMenu(menu);\n }", "public void displayOperations() {\n\n System.out.println(\"\" +\n \"Select Operation for GasPump 2 : \\n\" +\n \"0.) Activate \\n\" +\n \"1.) Start \\n\" +\n \"2.) PayCredit \\n\" +\n \"3.) Reject \\n\" +\n \"4.) PayDebit \\n\" +\n \"5.) Pin \\n\" +\n \"6.) Cancel \\n\" +\n \"7.) Approved \\n\" +\n \"8.) Diesel \\n\" +\n \"9.) Regular \\n\" +\n \"10.) Super \\n\" +\n \"11.) StartPump\\n\" +\n \"12.) PumpGallon\\n\" +\n \"13.) StopPump \\n\" +\n \"14.) FullTank \\n\" +\n \"q.) Quit\\n\");\n }", "private static void menu()\r\n\t{\r\n\t\tSystem.out.println(\"0. ** FOR INSTRUCTOR **\");\r\n\t\tSystem.out.println(\" Seed 5 URLs, set 3 keywords, creates 1000 Producers and 10 Consumers\");\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"1. Add seed url\");\r\n\t\tSystem.out.println(\"2. Add consumer (Parser)\");\r\n\t\tSystem.out.println(\"3. Add producer (Fetcher)\");\r\n\t\tSystem.out.println(\"4. Add keyword search\");\r\n\t\tSystem.out.println(\"5. Print stats\");\r\n\t}", "public void includeAction(){\n actions.showActions();\n }", "public static void helper(){\n System.out.println(\"\\n0: Search Transaction\");\n System.out.println(\"1: New Transaction\");\n System.out.println(\"2: Query Transaction Detail\");\n System.out.println(\"back: return last menu\");\n }", "@Override\n public String getActions() {\n\treturn \"\";\n }", "private static void showMenu(){\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"What would you like to do?\");\r\n\t\tSystem.out.println(\"0) Show Shape information\");\r\n\t\tSystem.out.println(\"1) Create Shape\");\r\n\t\tSystem.out.println(\"2) Calculate perimeter\");\r\n\t\tSystem.out.println(\"3) Calculate area\");\r\n\t\tSystem.out.println(\"4) Scale shape\");\r\n\t}", "public void show() {\n\tSystem.out.println(\"show-method\");\t\n\t}", "private void printHelp() {\n System.out.println(\"Your available command words are:\");\n parser.showCommands();\n }", "public void show() {\n\t\tSystem.out.println(\"show..\");\n\t}", "public void print()\r\n\t\t{\r\n\t\tSystem.out.println(\"AETInteractions object\");\r\n\t\tSystem.out.println(\"Input interactions\");\r\n\t\t// stampa le interazioni di input\r\n\t\tif (getInIn() != null) getInIn().print();\r\n\t\tSystem.out.println(\"Output interactions\");\r\n\t\t// stampa le interazioni di output\r\n\t\tif (getOuIn() != null) getOuIn().print();\r\n\t\t}", "public void showThreadOptionsMenu() {\n System.out.println(\"a - Post to thread\\nb - Main Menu\\nc - Quote\");\n }", "public void print() {\r\n for (final Map.Entry<State, StatePolicyProperties> mapping : mStateMap.entrySet()) {\r\n final StatePolicyProperties properties = mapping.getValue();\r\n\r\n // Print the state\r\n mapping.getKey().print();\r\n System.out.println(\" State value = \" + properties.getValue());\r\n\r\n // Print the actions with their probability\r\n for (Map.Entry<Action, Double> actionProbability : properties.getActionProbabilities().entrySet()) {\r\n System.out.println(\" Action probability \" + actionProbability.getKey() + \" = \"\r\n + actionProbability.getValue());\r\n }\r\n // Print the actions with their value\r\n for (Map.Entry<Action, Double> actionValue : properties.getActionValues().entrySet()) {\r\n System.out.println(\" Action value \" + actionValue.getKey() + \" = \" + actionValue.getValue());\r\n }\r\n }\r\n System.out.println();\r\n }", "static void print (){\n \t\tSystem.out.println();\r\n \t}", "private void printMovieMenu(){\n\t\tprint(\"Please choose from the options below\"+System.lineSeparator(), \"1.Search by Actor\", \"2.Search by Title\", \"3.Search by Genre\",\"4.Back to Login Menu\");\n\t}", "private void doPrintAdvice(){\n\t\tcurrentStep = OPERATION_NAME+\": printing advice\";\n\t\tString[] toDisplay = {\n\t\t\t\t\"Operation succeeded!\",\n\t\t\t\t\"You have changed your password\",\n\t\t\t\t\"Press 1 -> Print the advice\",\n\t\t\t\t\"Press 2 -> Quit without printing\"\n\t\t};\n\t\tif (!_atmssHandler.doDisDisplayUpper(toDisplay)) {\n\t\t\trecord(\"Dis\");\n\t\t\treturn;\n\t\t}\n\t\twhile (true) {\n\t\t\tString userInput = _atmssHandler.doKPGetSingleInput(TIME_LIMIT);\n\t\t\tif (userInput == null) return;\n\t\t\tif (userInput.equals(\"1\")) {\n\t\t\t\tString[] toPrint = {\n\t\t\t\t\t\t\"Operation name: \" + OPERATION_NAME,\n\t\t\t\t\t\t\"Card Number: \" + _session.getCardNo(),\n\t\t\t\t\t\t\"Result: succeeded\"\n\t\t\t\t};\n\t\t\t\tif (!_atmssHandler.doAPPrintStrArray(toPrint)) record(\"AP\");\n\t\t\t\treturn;\n\t\t\t} else if (userInput.equals(\"2\")) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}", "public static void archMain(){\n\n //Displaying the menu options by using the system out method\n System.out.println(\"1 - Create a new Architect Profile\");\n System.out.println(\"2 - Search for Architect Profile\\n\");\n\n System.out.println(\"0 - Continue\");\n }", "private void printMenu() {\n\t\tSystem.out.println(\"Select an option :\\n----------------\");\n\t\tfor (int i = 0, size = OPTIONS.size(); i < size; i++) {\n\t\t\tSystem.out.println(OPTIONS.get(i));\n\t\t}\n\t}", "private void displayMainMenu () {\n System.out.println();\n System.out.println(\n \"Enter the number of the action to perform: \");\n System.out.println(\n \"Run game...............\" + PLAY_GAME);\n System.out.println(\n \"Exit...................\" + EXIT);\n }", "public static void main(String[] args) {\n\t\tActionCollect api = new ActionCollect();\n\t\tboolean result = api.addActionCollect(\"KaDun\", \"content\");\n\t\tSystem.out.println(result);\n\t}", "private void print() {\n printInputMessage();\n printFrequencyTable();\n printCodeTable();\n printEncodedMessage();\n }", "public void show()\n\t{\n\t\tSystem.out.println(\"show\");\n\t}", "@AutoEscape\n\tpublic String getActionInfo();", "public void display() {\n\t\tSystem.out.println(\"display..\");\n\t}", "void printAct(String s) {\n window.getKeyActivityText().append(s + \"\\n\");\n }", "public void print()\r\n\t{\r\n\t\tSystem.out.println(\"Method name: \" + name);\r\n\t\tSystem.out.println(\"Return type: \" + returnType);\r\n\t\tSystem.out.println(\"Modifiers: \" + modifiers);\r\n\r\n\t\tif(exceptions != null)\r\n\t\t{\r\n\t\t\tSystem.out.print(\"Exceptions: \" + exceptions[0]);\r\n\t\t\tfor(int i = 1; i < exceptions.length; i++)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\", \" + exceptions[i]);\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Exceptions: none\");\r\n\t\t}\r\n\r\n\t\tif(parameters != null)\r\n\t\t{\r\n\t\t\tSystem.out.print(\"Parameters: \" + parameters[0]);\r\n\t\t\tfor(int i = 1; i < parameters.length; i++)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.print(\", \" + parameters[i]);\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Parameters: none\");\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println();\r\n\t}", "public static void afficherMenu() {\r\n System.out.println(\"\\n## Menu de l'application ##\\n\" +\r\n \" Actions Membres :\\n\"+\r\n \" [ 1] : Inscription d'un Membre\\n\" +\r\n \" [ 2] : Désinscription d'un Membre\\n\" +\r\n \" ( 3) : Afficher liste des Membres\\n\" +\r\n \" [ 4] : Payer Cotisation\\n\" +\r\n \" Actions vote Arbres d'un Membre :\\n\" +\r\n \" ( 5) : Voter pour un Arbre\\n\" +\r\n \" ( 6) : Afficher liste des votes\\n\" +\r\n \" ( 7) : Retirer un vote\\n\" +\r\n \" ( 8) : Supprimer les votes d'un Membre.\\n\" +\r\n \" ( 9) : Remplacer un vote\\n\" +\r\n \" Actions Arbres :\\n\" +\r\n \" (10) : Afficher la liste des Arbres\\n\" +\r\n // ...\r\n \" Actions Administration :\\n\" +\r\n \" (11) : Nommer nouveau Président\\n\" +\r\n // ...\r\n \"\\n ( 0) : Quitter l'application\\n\" +\r\n \" - Veuillez saisir une action. -\");\r\n }", "@Override public void doAction(int option)\r\n {\r\n switch(option)\r\n {\r\n \r\n case 1: \r\n displayJavaCollectView();\r\n break;\r\n \r\n case 2: \r\n {\r\n try {\r\n displayThreadsAndMore();\r\n } catch (InterruptedException ex) {\r\n Logger.getLogger(MainMenuView.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n break;\r\n \r\n case 3: \r\n displayAppControlPatt();\r\n break;\r\n \r\n case 4:\r\n displayMVC();\r\n break;\r\n \r\n case 5:\r\n displayHibernate();\r\n break; \r\n \r\n case 6:\r\n\t\t\t\ttry {\r\n\t\t\t\t\tdisplayJSON();\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n break; \r\n \r\n case 7:\r\n displayHttpUrlCon();\r\n break; \r\n \r\n case 8:\r\n System.out.println(\"That's it\"); \r\n }\r\n }", "protected void printMenu() {\n System.out.println(\"\\nChoose an option:\");\n }", "public static void showOptions() {\n System.out.println(new StringJoiner(\"\\n\")\n .add(\"*************************\")\n .add(\"1- The participants' directory.\")\n .add(\"2- The RDVs' agenda.\")\n .add(\"3- Quit the app.\")\n .add(\"*************************\")\n );\n }", "@Override\r\n\tpublic void actionKnife() {\n\t\tSystem.out.println(\"검 있다.\");\r\n\t}", "public void mainMenu() {\n\n System.out.println(\"\\n HOTEL RESERVATION SYSTEM\");\n System.out.println(\"+------------------------------------------------------------------------------+\");\n System.out.println(\" COMMANDS:\");\n System.out.println(\" - View Tables\\t\\t(1)\");\n System.out.println(\" - Add Records\\t\\t(2)\");\n System.out.println(\" - Update Records\\t(3)\");\n System.out.println(\" - Delete Records\\t(4)\");\n System.out.println(\" - Search Records\\t(5)\");\n System.out.println(\"+------------------------------------------------------------------------------+\");\n System.out.print(\" > \");\n }", "void print() {\r\n\t\tOperations.print(lexemes, tokens);\r\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 }", "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 static void mainText(){\n\t\tSystem.out.println(\"Enter: 1.'EXIT' 2.'STU' 3.'FAC' 4.SQL query 5.'MORE' -for more detail about options\");\n\t}", "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 }", "public void print()\n {\n System.out.println();\n System.out.println(\"Ticket to \" + destination +\n \" Price : \" + price + \" pence \" + \n \" Issued \" + issueDateTime);\n System.out.println();\n }", "public void printMenu()\n\t{\n\t\tSystem.out.println(SearchMenu.MENU_HEAD);\n\t\tSystem.out.println(SearchMenu.TYPE_MESSAGE );\n\t\tSystem.out.println(SearchMenu.QUIT);\n\t\tSystem.out.println(SearchMenu.MENU_TAIL);\n\t\tSystem.out.println(SearchMenu.INPUT_PROMPT);\n\t}", "public static void printMenu() {\n System.out.print(\"\\n(A)dd Item (R)emove Item (F)ind Item (I)nitialize Tree (N)ew Tree (Q)uit\\n\");\n }", "void show() {\n System.out.print(\"show\");\n }", "private static void printOp(User u){\n\t\tSystem.out.println(\"Hello \"+u.getUserName()+\", type:\\n\"\n\t\t\t\t + \"- request\\n\"\n\t\t\t\t\t+ \"- confirm\\n\"\n\t\t\t\t\t+ \"- search\\n\"\n\t\t\t\t\t+ \"- post\\n\"\n\t\t\t\t\t+ \"- follow\\n\"\n\t\t\t\t\t+ \"- listPosts\\n\"\n\t\t\t\t\t+ \"- listFriends\\n\"\n\t\t\t\t\t+ \"- listRequests\\n\"\n\t\t\t\t\t+ \"- listFollowed\\n\"\n\t\t\t\t\t+ \"- logout\");\n\t}", "public static void menu() {\n\t\tSystem.out.println(\"Menu:\");\n\t\tSystem.out.println(\"1: Create\");\n\t\tSystem.out.println(\"2: Merge\");\n\t\tSystem.out.println(\"3: Collection\");\n\t\tSystem.out.println(\"4: Upgrades\");\n\t\tSystem.out.println(\"5: Sell\");\n\t\tSystem.out.println(\"6: Identify Crystal\");\n\t\tSystem.out.println(\"\");\n\t}", "public void show() {\n\t\t System.out.println(\"这是A型产品\"); \r\n\t}", "public static void f_menu(){\n System.out.println(\"------------------------------------------------\");\n System.out.println(\"------------------------------------------------\");\n System.out.println(\"-------------Soft_AVERAGE_HEIGHT-----------------\");\n System.out.println(\"-------------version 1.0 23-oct-2020------------\");\n System.out.println(\"-------------make by Esteban Gaona--------------\");\n System.out.println(\"-------------------------------------------------\");\n System.out.println(\"-------------------------------------------------\");\n}", "public static void Report() {\n\t\tfor (int i = 0; i < array.size(); i++) {\r\n\t\t\tSystem.out.println(array.get(i).getDetails());\t\t\t//Steps through the array and prints the details\r\n\t\t}\r\n\t\tAdmin.menuChoice();\r\n\t}", "public static void main(String[] args) {\r\n\t\t\r\n\t\t//variables\r\n\t\tString start=\"If you're happy and you know it\";\r\n\t\tString[] action= {\" clap your hands.\",\" stomp your feet.\",\" shout hooray.\",\r\n\t\t\t\t\" jump up and down.\",\" laugh out loud.\", \" pat your head.\",\" sing a song.\", \r\n\t\t\t\t\" yell out loud.\", \" stay quiet.\", \" say hello!\"};\r\n\t\t\r\n\t\t//using the indexes in the array to continue the song\r\n\t\tfor(int i=0;i<10;i++)\r\n\t\t{\r\n\t\t\tSystem.out.println(start+action[i]);\r\n\t\t\tSystem.out.println(start+action[i]);\r\n\t\t\tSystem.out.println(start+\" and you really want to show it.\");\r\n\t\t\tSystem.out.println(start+action[i]+\"\\n\");\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t}", "private void printMainMenu(){\n\t\tprint(\"Please choose from the options below\", System.lineSeparator()+\"1.Login\", \"2.Exit\");\n\t}", "public static void showUsage() {\n System.out.printf(\"java app.App (-a | -r | -c | +WORD | ?WORD)\");\n }", "@Override\r\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\t// TODO Do some stuff to start debugging\r\n\t\t\t\t\tSystem.out.println(\"Debug button pressed!\");\r\n\t\t\t\t}", "private void displayMenu()\r\n {\r\n System.out.println();\r\n System.out.println(\"--------- Main Menu -------------\");\r\n System.out.println(\"(1) Search Cars\");\r\n System.out.println(\"(2) Add Car\");\r\n System.out.println(\"(3) Delete Car\");\r\n System.out.println(\"(4) Exit System\");\r\n System.out.println(\"(5) Edit Cars\");\r\n }", "public void show() {\n System.out.println(\"I am the best\");\n }", "public void printAllStages() {\n printIndex();\n printRemoval();\n }", "private void displayOptions() {\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"Main System Menu\");\n\t\tSystem.out.println(\"----------------\");\n\t\tSystem.out.println(\"A)dd polling place\");\n\t\tSystem.out.println(\"C)lose the polls\");\n\t\tSystem.out.println(\"R)esults\");\n\t\tSystem.out.println(\"P)er-polling-place results\");\n\t\tSystem.out.println(\"E)liminate lowest candidate\");\n\t\tSystem.out.println(\"?) display this menu of choices again\");\n\t\tSystem.out.println(\"Q)uit\");\n\t\tSystem.out.println();\n\t}", "public void printHelpCommands(){\r\n\t\t//Construct the help command output\r\n\t\tprintAsTable(\"exit\",\t\t \t\t\t\t\"Exit the program.\");\r\n\t\tprintAsTable(\"help\",\t\t \t\t\t\t\"Print out the usage.\");\r\n\t\tprintAsTable(\"host\",\t\t\t\t\t\t\"Enumerate all hosts.\");\r\n\t\tprintAsTable(\"host hname info\", \t\t\t\"Show info of host name.\");\r\n\t\tprintAsTable(\"host hname datastore\", \t\t\"Enumerate datastores of host hname.\");\r\n\t\tprintAsTable(\"host hname network\", \t\t\t\"Enumerate networks of host hname.\");\r\n\t\tprintAsTable(\"vm\", \t\t\t\t\t\t\t\"Enumerate all virtual machines.\");\r\n\t\tprintAsTable(\"vm vname info\", \t\t\t\t\"Show info of VM vname.\");\r\n\t\tprintAsTable(\"vm vname on\", \t\t\t\t\"Power on VM vname and wait until task completes.\");\r\n\t\tprintAsTable(\"vm vname off\", \t\t\t\t\"Power off VM vname and wait until task completes.\");\r\n\t\tprintAsTable(\"vm vname shutdown\", \t\t\t\"Shutdown guest of VM vname.\");\t\t\t\r\n\t}", "private String print_Menu()\n\t{\n\t\tSystem.out.println(\"\\n----------CS542 Link State Routing Simulator----------\");\n\t\tSystem.out.println(\"(1) Create a Network Topology\");\n\t\tSystem.out.println(\"(2) Build a Forward Table\");\n\t\tSystem.out.println(\"(3) Shortest Path to Destination Router\");\n\t\tSystem.out.println(\"(4) Modify a Topology (Change the status of the Router)\");\n\t\tSystem.out.println(\"(5) Best Router for Broadcast\");\n\t\tSystem.out.println(\"(6) Exit\");\n\t\tSystem.out.print(\"Master Command: \");\n\n\t\treturn scan.next();\n\t}", "private void printHelp() \n {\n System.out.println(\"You are lost. You are alone. You wander\");\n System.out.println(\"around in a dense woods.\");\n System.out.println();\n System.out.println(\"Your command words are:\");\n parser.showCommands();\n }", "@Override\r\n\tpublic void actionFly() {\n\t\tSystem.out.println(\"날 수 있다.\");\r\n\t}", "private void sysout() {\nSystem.out.println(\"pandiya\");\n}", "protected void ACTION_B_HELP(ActionEvent arg0) {\n\t\t\r\n\t\tString msg = \"Network Packet Sniffer is JAva packet capturing and traffic analysis application\"\r\n\t\t\t\t+ \"\\n CAPTURE : Start capturing packets on the interface\"\r\n\t\t\t\t+ \"\\nSTOP : Stop capturing packets on the interface\"\r\n\t\t\t\t+ \"\\n LIST : List Network Interfaces on the host\"\r\n\t\t\t\t+ \"\\n SELECT : Select Interface to capture Packets with\"\r\n\t\t\t\t+ \"\\n FILTER : Filter on the selected port when filtering is enabled\"\r\n\t\t\t\t+ \"\\n ENABLE : Enable Port Filtering\"\r\n\t\t\t\t+ \"\\n HELP : Displays the help screen\"\r\n\t\t\t\t+ \"\\n SAVE : Save the information about the packet\"\r\n\t\t\t\t+ \"\\n LOAD : Load the saved data on the interface \"\r\n\t\t\t\t+ \"\\n \";\r\n\t\t\r\n\t\tJOptionPane.showMessageDialog(null, msg);\r\n\t}", "public void actionSuccessful() {\n System.out.println(\"Action performed successfully!\");\n }", "public void showInventory()\n\t{\n\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t+ \"__________________\\n\\n\");\n\t\tSystem.out.print(\"\\t\\t\\t\\tInventory\");\n\t\t\n\t\tfor (String s: inventory)\n\t\t{\n\t\t\tSystem.out.print(\"\\n\" + s);\n\t\t}\n\t\t\n\t\tSystem.out.print(\"\\n\\n[R] Return\\n\");\n\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t+ \"__________________\\n\\n\");\n\t\tSystem.out.print(\"Action: \");\n\t\t\n\t}", "public void buttonClick(ClickEvent event) {\n\t\t\t\t\t\t JavaScript.getCurrent().execute(\"print();\");\n\t\t\t\t\t\t }", "public static void f_menu() {\n System.out.println(\"----------------------------------------\");\n System.out.println(\"--------------DIGITALSOFT---------------\");\n System.out.println(\"-----version:1.0------28/04/2020.-------\");\n System.out.println(\"-----Angel Manuel Correa Rivera---------\");\n System.out.println(\"----------------------------------------\");\n }", "public static void architectUpMenu(){\n\n //Displaying the menu options by using the system out method\n System.out.println(\"1 - Would you like to view all of the architects\");\n System.out.println(\"2 - Would you like to search for a architect's information\");\n System.out.println(\"3 - Adding a new architect's details\\n\");\n\n System.out.println(\"0 - Back to main menu\\n\");\n }", "public String actionsToString() {\n String res = \"\";\n for (UserCheck userCheck: checks) {\n res += userCheck.toString() + \" \\n\";\n }\n return res;\n }" ]
[ "0.7321359", "0.6744311", "0.67022383", "0.66606903", "0.66339046", "0.65123266", "0.6500217", "0.64530003", "0.6443277", "0.6404122", "0.63881135", "0.63212156", "0.6270406", "0.62478024", "0.62431395", "0.6214777", "0.6213327", "0.62102354", "0.61961794", "0.61889803", "0.6173695", "0.6166926", "0.6155299", "0.6142394", "0.6135154", "0.61280787", "0.6100632", "0.6096889", "0.6072912", "0.6058647", "0.60555685", "0.6052053", "0.60417783", "0.6022538", "0.6021903", "0.6017558", "0.6013173", "0.6009654", "0.6006381", "0.59967315", "0.59924936", "0.59917283", "0.5985599", "0.59827346", "0.5980196", "0.59476227", "0.5947107", "0.59412843", "0.59400696", "0.5930002", "0.5929406", "0.59131914", "0.5908129", "0.5897749", "0.5895877", "0.5894052", "0.589403", "0.58880574", "0.5879738", "0.5876462", "0.58715844", "0.5866725", "0.5859728", "0.58564615", "0.58547395", "0.5854625", "0.5854495", "0.5853692", "0.5850674", "0.5850656", "0.5845516", "0.5843309", "0.5839999", "0.5838528", "0.5829829", "0.58173263", "0.5814011", "0.58104146", "0.58091503", "0.5808487", "0.5807605", "0.58054906", "0.58039176", "0.58029604", "0.58012265", "0.57993835", "0.57935816", "0.5782347", "0.57791567", "0.57778233", "0.57710344", "0.5768825", "0.57629406", "0.5759552", "0.57577914", "0.57566667", "0.5749506", "0.5749234", "0.57439566", "0.57386976" ]
0.6148502
23
/ renamed from: c
private synchronized void m16565c() { if (!(this.f14719b || this.f14723f.hasMessages(this.f14724g))) { this.f14723f.sendMessageDelayed(this.f14723f.obtainMessage(this.f14724g), 2000); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo5289a(C5102c c5102c);", "public static void c0() {\n\t}", "void mo57278c();", "private static void cajas() {\n\t\t\n\t}", "void mo5290b(C5102c c5102c);", "void mo80457c();", "void mo12638c();", "void mo28717a(zzc zzc);", "void mo21072c();", "@Override\n\tpublic void ccc() {\n\t\t\n\t}", "public void c() {\n }", "void mo17012c();", "C2451d mo3408a(C2457e c2457e);", "void mo88524c();", "void mo86a(C0163d c0163d);", "void mo17021c();", "public abstract void mo53562a(C18796a c18796a);", "void mo4874b(C4718l c4718l);", "void mo4873a(C4718l c4718l);", "C12017a mo41088c();", "public abstract void mo70702a(C30989b c30989b);", "void mo72114c();", "public void mo12628c() {\n }", "C2841w mo7234g();", "public interface C0335c {\n }", "public void mo1403c() {\n }", "public static void c3() {\n\t}", "public static void c1() {\n\t}", "void mo8712a(C9714a c9714a);", "void mo67924c();", "public void mo97906c() {\n }", "public abstract void mo27385c();", "String mo20731c();", "public int c()\r\n/* 74: */ {\r\n/* 75:78 */ return this.c;\r\n/* 76: */ }", "public interface C0939c {\n }", "void mo1582a(String str, C1329do c1329do);", "void mo304a(C0366h c0366h);", "void mo1493c();", "private String getString(byte c) {\n\t\treturn c==1? \"$ \": \" \";\n\t}", "java.lang.String getC3();", "C45321i mo90380a();", "public interface C11910c {\n}", "void mo57277b();", "String mo38972c();", "static int type_of_cnc(String passed){\n\t\treturn 1;\n\t}", "public static void CC2_1() {\n\t}", "static int type_of_cc(String passed){\n\t\treturn 1;\n\t}", "public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }", "public void mo56167c() {\n }", "public interface C0136c {\n }", "private void kk12() {\n\n\t}", "abstract String mo1748c();", "public abstract void mo70710a(String str, C24343db c24343db);", "public interface C0303q extends C0291e {\n /* renamed from: a */\n void mo1747a(int i);\n\n /* renamed from: a */\n void mo1749a(C0288c cVar);\n\n /* renamed from: a */\n void mo1751a(byte[] bArr);\n\n /* renamed from: b */\n void mo1753b(int i);\n\n /* renamed from: c */\n void mo1754c(int i);\n\n /* renamed from: d */\n void mo1755d(int i);\n\n /* renamed from: e */\n int mo1756e(int i);\n\n /* renamed from: g */\n int mo1760g();\n\n /* renamed from: g */\n void mo1761g(int i);\n\n /* renamed from: h */\n void mo1763h(int i);\n}", "C3577c mo19678C();", "public abstract int c();", "public abstract int c();", "public final void mo11687c() {\n }", "byte mo30283c();", "private java.lang.String c(java.lang.String r7) {\n /*\n r6 = this;\n r2 = \"\";\n r0 = r6.e;\t Catch:{ FileNotFoundException -> 0x0052 }\n if (r0 == 0) goto L_0x0050;\n L_0x0006:\n r0 = new java.lang.StringBuilder;\t Catch:{ FileNotFoundException -> 0x0052 }\n r1 = java.lang.String.valueOf(r7);\t Catch:{ FileNotFoundException -> 0x0052 }\n r0.<init>(r1);\t Catch:{ FileNotFoundException -> 0x0052 }\n r1 = \".\";\n r0 = r0.append(r1);\t Catch:{ FileNotFoundException -> 0x0052 }\n r1 = r6.e;\t Catch:{ FileNotFoundException -> 0x0052 }\n r0 = r0.append(r1);\t Catch:{ FileNotFoundException -> 0x0052 }\n r0 = r0.toString();\t Catch:{ FileNotFoundException -> 0x0052 }\n L_0x001f:\n r1 = r6.d;\t Catch:{ FileNotFoundException -> 0x0052 }\n r1 = r1.openFileInput(r0);\t Catch:{ FileNotFoundException -> 0x0052 }\n L_0x0025:\n r3 = new java.io.BufferedReader;\n r4 = new java.io.InputStreamReader;\n r0 = r1;\n r0 = (java.io.InputStream) r0;\n r5 = \"UTF-8\";\n r5 = java.nio.charset.Charset.forName(r5);\n r4.<init>(r0, r5);\n r3.<init>(r4);\n r0 = new java.lang.StringBuffer;\n r0.<init>();\n L_0x003d:\n r4 = r3.readLine();\t Catch:{ IOException -> 0x0065, all -> 0x0073 }\n if (r4 != 0) goto L_0x0061;\n L_0x0043:\n r0 = r0.toString();\t Catch:{ IOException -> 0x0065, all -> 0x0073 }\n r1 = (java.io.InputStream) r1;\t Catch:{ IOException -> 0x007d }\n r1.close();\t Catch:{ IOException -> 0x007d }\n r3.close();\t Catch:{ IOException -> 0x007d }\n L_0x004f:\n return r0;\n L_0x0050:\n r0 = r7;\n goto L_0x001f;\n L_0x0052:\n r0 = move-exception;\n r0 = r6.d;\t Catch:{ IOException -> 0x005e }\n r0 = r0.getAssets();\t Catch:{ IOException -> 0x005e }\n r1 = r0.open(r7);\t Catch:{ IOException -> 0x005e }\n goto L_0x0025;\n L_0x005e:\n r0 = move-exception;\n r0 = r2;\n goto L_0x004f;\n L_0x0061:\n r0.append(r4);\t Catch:{ IOException -> 0x0065, all -> 0x0073 }\n goto L_0x003d;\n L_0x0065:\n r0 = move-exception;\n r1 = (java.io.InputStream) r1;\t Catch:{ IOException -> 0x0070 }\n r1.close();\t Catch:{ IOException -> 0x0070 }\n r3.close();\t Catch:{ IOException -> 0x0070 }\n r0 = r2;\n goto L_0x004f;\n L_0x0070:\n r0 = move-exception;\n r0 = r2;\n goto L_0x004f;\n L_0x0073:\n r0 = move-exception;\n r1 = (java.io.InputStream) r1;\t Catch:{ IOException -> 0x007f }\n r1.close();\t Catch:{ IOException -> 0x007f }\n r3.close();\t Catch:{ IOException -> 0x007f }\n L_0x007c:\n throw r0;\n L_0x007d:\n r1 = move-exception;\n goto L_0x004f;\n L_0x007f:\n r1 = move-exception;\n goto L_0x007c;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.a.b.b.c(java.lang.String):java.lang.String\");\n }", "@Override\n\tpublic void compile(CodeBlock c, CompilerEnvironment environment) {\n\n\t}", "public interface C3196it extends C3208jc {\n /* renamed from: a */\n void mo30275a(long j);\n\n /* renamed from: b */\n C3197iu mo30281b(long j);\n\n /* renamed from: b */\n boolean mo30282b();\n\n /* renamed from: c */\n byte mo30283c();\n\n /* renamed from: c */\n String mo30285c(long j);\n\n /* renamed from: d */\n void mo30290d(long j);\n\n /* renamed from: e */\n int mo30291e();\n\n /* renamed from: f */\n long mo30295f();\n}", "public static void mmcc() {\n\t}", "java.lang.String getCit();", "public abstract C mo29734a();", "C15430g mo56154a();", "void mo41086b();", "@Override\n public void func_104112_b() {\n \n }", "public interface C9223b {\n }", "public abstract String mo11611b();", "void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);", "String getCmt();", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "interface C2578d {\n}", "public interface C1803l extends C1813t {\n /* renamed from: b */\n C1803l mo7382b(C2778au auVar);\n\n /* renamed from: f */\n List<C1700ar> mo7233f();\n\n /* renamed from: g */\n C2841w mo7234g();\n\n /* renamed from: q */\n C1800i mo7384q();\n}", "double fFromC(double c) {\n return (c * 9 / 5) + 32;\n }", "void mo72113b();", "void mo1749a(C0288c cVar);", "public interface C0764b {\n}", "void mo41083a();", "String[] mo1153c();", "C1458cs mo7613iS();", "public interface C0333a {\n }", "public abstract int mo41077c();", "public interface C8843g {\n}", "public abstract void mo70709a(String str, C41018cm c41018cm);", "void mo28307a(zzgd zzgd);", "public static void mcdc() {\n\t}", "public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}", "C1435c mo1754a(C1433a c1433a, C1434b c1434b);", "public interface C0389gj extends C0388gi {\n}", "C5727e mo33224a();", "C12000e mo41087c(String str);", "public abstract String mo118046b();", "public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }", "public interface C0938b {\n }", "void mo80455b();", "public interface C0385a {\n }", "public interface C5527c {\n /* renamed from: a */\n int mo4095a(int i);\n\n /* renamed from: b */\n C5537g mo4096b(int i);\n}", "public interface C32231g {\n /* renamed from: a */\n void mo8280a(int i, int i2, C1207m c1207m);\n}", "public interface C11994b {\n /* renamed from: a */\n C11996a mo41079a(String str);\n\n /* renamed from: a */\n C11996a mo41080a(String str, C11997b bVar, String... strArr);\n\n /* renamed from: a */\n C11998c mo41081a(String str, C11999d dVar, String... strArr);\n\n /* renamed from: a */\n C12000e mo41082a(String str, C12001f fVar, String... strArr);\n\n /* renamed from: a */\n void mo41083a();\n\n /* renamed from: a */\n void mo41084a(C12018b bVar, ConnectionState... connectionStateArr);\n\n /* renamed from: b */\n C11996a mo41085b(String str);\n\n /* renamed from: b */\n void mo41086b();\n\n /* renamed from: c */\n C12000e mo41087c(String str);\n\n /* renamed from: c */\n C12017a mo41088c();\n\n /* renamed from: d */\n void mo41089d(String str);\n\n /* renamed from: e */\n C11998c mo41090e(String str);\n\n /* renamed from: f */\n C12000e mo41091f(String str);\n\n /* renamed from: g */\n C11998c mo41092g(String str);\n}" ]
[ "0.64592767", "0.644052", "0.6431582", "0.6418656", "0.64118475", "0.6397491", "0.6250796", "0.62470585", "0.6244832", "0.6232792", "0.618864", "0.61662376", "0.6152657", "0.61496663", "0.6138441", "0.6137171", "0.6131197", "0.6103783", "0.60983956", "0.6077118", "0.6061723", "0.60513836", "0.6049069", "0.6030368", "0.60263443", "0.60089093", "0.59970635", "0.59756917", "0.5956231", "0.5949343", "0.5937446", "0.5911776", "0.59034705", "0.5901311", "0.5883238", "0.5871533", "0.5865361", "0.5851141", "0.581793", "0.5815705", "0.58012", "0.578891", "0.57870495", "0.5775621", "0.57608724", "0.5734331", "0.5731584", "0.5728505", "0.57239383", "0.57130504", "0.57094604", "0.570793", "0.5697671", "0.56975955", "0.56911296", "0.5684489", "0.5684489", "0.56768984", "0.56749034", "0.5659463", "0.56589085", "0.56573", "0.56537443", "0.5651912", "0.5648272", "0.5641736", "0.5639226", "0.5638583", "0.56299245", "0.56297386", "0.56186295", "0.5615729", "0.56117755", "0.5596015", "0.55905765", "0.55816257", "0.55813104", "0.55723965", "0.5572061", "0.55696625", "0.5566985", "0.55633485", "0.555888", "0.5555646", "0.55525774", "0.5549722", "0.5548184", "0.55460495", "0.5539394", "0.5535825", "0.55300397", "0.5527975", "0.55183905", "0.5517322", "0.5517183", "0.55152744", "0.5514932", "0.55128884", "0.5509501", "0.55044043", "0.54984957" ]
0.0
-1
/ renamed from: a
public void m16570a() { this.f14719b = false; m16568d(); }
{ "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 void acionou(int a){\n\t\t\tb=a;\n\t\t}", "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 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.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064", "0.5794689", "0.57890314", "0.57838726", "0.5775679", "0.57694733", "0.5769128", "0.57526815", "0.56907034", "0.5677874", "0.5670547", "0.56666386", "0.56592244", "0.5658682", "0.56574154", "0.5654324", "0.5644676", "0.56399715", "0.5638734", "0.5630582", "0.56183887", "0.5615435", "0.56069666", "0.5605207", "0.56005067", "0.559501", "0.55910283", "0.5590222", "0.55736613", "0.5556682", "0.5554544", "0.5550076", "0.55493855", "0.55446684", "0.5538079", "0.5529058", "0.5528109", "0.552641", "0.5525864", "0.552186", "0.5519972", "0.5509587", "0.5507195", "0.54881203", "0.5485328", "0.54826045", "0.5482066", "0.5481586", "0.5479751", "0.54776895", "0.54671466", "0.5463307", "0.54505056", "0.54436916", "0.5440517", "0.5439747", "0.5431944", "0.5422869", "0.54217863", "0.5417556", "0.5403905", "0.5400223", "0.53998446", "0.5394735", "0.5388649", "0.5388258", "0.5374842", "0.5368887", "0.53591394", "0.5357029", "0.5355688", "0.535506", "0.5355034", "0.53494394", "0.5341044", "0.5326166", "0.53236824", "0.53199095", "0.53177035", "0.53112453", "0.5298229" ]
0.0
-1
/ renamed from: d
private void m16568d() { if (this.f14721d && !this.f14719b && !this.f14720c) { try { this.f14722e.autoFocus(this.f14726j); this.f14720c = true; } catch (Throwable e) { Log.w(f14717a, "Unexpected exception while focusing", e); m16565c(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void d() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "public int d()\r\n/* 79: */ {\r\n/* 80:82 */ return this.d;\r\n/* 81: */ }", "public String d_()\r\n/* 445: */ {\r\n/* 446:459 */ return \"container.inventory\";\r\n/* 447: */ }", "public abstract int d();", "private void m2248a(double d, String str) {\n this.f2954c = d;\n this.f2955d = (long) d;\n this.f2953b = str;\n this.f2952a = ValueType.doubleValue;\n }", "public int d()\n {\n return 1;\n }", "public interface C19512d {\n /* renamed from: dd */\n void mo34676dd(int i, int i2);\n }", "void mo21073d();", "@Override\n public boolean d() {\n return false;\n }", "int getD();", "public void dor(){\n }", "public int getD() {\n\t\treturn d;\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "public String getD() {\n return d;\n }", "@Override\n\tpublic void dibuja() {\n\t\t\n\t}", "public final void mo91715d() {\n }", "public D() {}", "void mo17013d();", "public int getD() {\n return d_;\n }", "void mo83705a(C32458d<T> dVar);", "public void d() {\n\t\tSystem.out.println(\"d method\");\n\t}", "double d();", "public float d()\r\n/* 15: */ {\r\n/* 16:163 */ return this.b;\r\n/* 17: */ }", "protected DNA(Population pop, DNA d) {\n\t\t// TODO: implement this\n\t}", "public ahb(ahd paramahd)\r\n/* 12: */ {\r\n/* 13: 36 */ this.d = paramahd;\r\n/* 14: */ }", "public abstract C17954dh<E> mo45842a();", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\n\tpublic void visitTdetree(Tdetree p) {\n\n\t}", "public abstract void mo56925d();", "void mo54435d();", "public void mo21779D() {\n }", "public void d() {\n this.f20599d.a(this.f20598c);\n this.f20598c.a(this);\n this.f20601f = new a(new d());\n d.a(this.f20596a, this.f20597b, this.f20601f);\n this.f20596a.setLayoutManager(new NPALinearLayoutManager(getContext()));\n ((s) this.f20596a.getItemAnimator()).setSupportsChangeAnimations(false);\n this.f20596a.setAdapter(this.f20601f);\n this.f20598c.a(this.f20602g);\n }", "@Override\r\n public String getStringRepresentation()\r\n {\r\n return \"D\";\r\n }", "void mo28307a(zzgd zzgd);", "List<String> d();", "d(l lVar, m mVar, b bVar) {\n super(mVar);\n this.f11484d = lVar;\n this.f11483c = bVar;\n }", "public int getD() {\n return d_;\n }", "public void addDField(String d){\n\t\tdfield.add(d);\n\t}", "public void mo3749d() {\n }", "public a dD() {\n return new a(this.HG);\n }", "public String amd_to_dma(java.sql.Date d)\n {\n String resp = \"\";\n if (d!=null)\n {\n String sdat = d.toString();\n String sano = sdat.substring(0,4);\n String smes = sdat.substring(5,7);\n String sdia = sdat.substring(8,10);\n resp = sdia+\"/\"+smes+\"/\"+sano;\n }\n return resp;\n }", "public void mo130970a(double d) {\n SinkDefaults.m149818a(this, d);\n }", "public abstract int getDx();", "public void mo97908d() {\n }", "public com.c.a.d.d d() {\n return this.k;\n }", "private static String toPsString(double d) {\n return \"(\" + d + \")\";\n }", "public boolean d() {\n return false;\n }", "void mo17023d();", "String dibujar();", "@Override\n\tpublic void setDurchmesser(int d) {\n\n\t}", "public void mo2470d() {\n }", "public abstract VH mo102583a(ViewGroup viewGroup, D d);", "public abstract String mo41079d();", "public void setD ( boolean d ) {\n\n\tthis.d = d;\n }", "public Dx getDx() {\n/* 32 */ return this.dx;\n/* */ }", "DoubleNode(int d) {\n\t data = d; }", "DD createDD();", "@java.lang.Override\n public float getD() {\n return d_;\n }", "public void setD(String d) {\n this.d = d == null ? null : d.trim();\n }", "public int d()\r\n {\r\n return 20;\r\n }", "float getD();", "public static int m22546b(double d) {\n return 8;\n }", "void mo12650d();", "String mo20732d();", "static void feladat4() {\n\t}", "void mo130799a(double d);", "public void mo2198g(C0317d dVar) {\n }", "@Override\n public void d(String TAG, String msg) {\n }", "private double convert(double d){\n\t\tDecimalFormatSymbols symbols = DecimalFormatSymbols.getInstance();\n\t\tsymbols.setDecimalSeparator('.');\n\t\tDecimalFormat df = new DecimalFormat(\"#.##\",symbols); \n\t\treturn Double.valueOf(df.format(d));\n\t}", "public void d(String str) {\n ((b.b) this.b).g(str);\n }", "public abstract void mo42329d();", "public abstract long mo9229aD();", "public abstract String getDnForPerson(String inum);", "public interface ddd {\n public String dan();\n\n}", "@Override\n public void func_104112_b() {\n \n }", "public Nodo (String d){\n\t\tthis.dato = d;\n\t\tthis.siguiente = null; //para que apunte el nodo creado a nulo\n\t}", "public void mo5117a(C0371d c0371d, double d) {\n new C0369b(this, c0371d, d).start();\n }", "public interface C27442s {\n /* renamed from: d */\n List<EffectPointModel> mo70331d();\n}", "public final void m22595a(double d) {\n mo4383c(Double.doubleToRawLongBits(d));\n }", "public void d() {\n this.f23522d.a(this.f23521c);\n this.f23521c.a(this);\n this.i = new a();\n this.i.a(new ae(this.f23519a));\n this.f23519a.setAdapter(this.i);\n this.f23519a.setOnItemClickListener(this);\n this.f23521c.e();\n this.h.a(hashCode(), this.f23520b);\n }", "public Vector2d(double d) {\n\t\tthis.x = d;\n\t\tthis.y = d;\n\t}", "DomainHelper dh();", "private Pares(PLoc p, PLoc s, int d){\n\t\t\tprimero=p;\n\t\t\tsegundo=s;\n\t\t\tdistancia=d;\n\t\t}", "static double DEG_to_RAD(double d) {\n return d * Math.PI / 180.0;\n }", "@java.lang.Override\n public float getD() {\n return d_;\n }", "private final VH m112826b(ViewGroup viewGroup, D d) {\n return mo102583a(viewGroup, d);\n }", "public Double getDx();", "public void m25658a(double d) {\n if (d <= 0.0d) {\n d = 1.0d;\n }\n this.f19276f = (float) (50.0d / d);\n this.f19277g = new C4658a(this, this.f19273c);\n }", "boolean hasD();", "public abstract void mo27386d();", "MergedMDD() {\n }", "@ReflectiveMethod(name = \"d\", types = {})\n public void d(){\n NMSWrapper.getInstance().exec(nmsObject);\n }", "@Override\n public Chunk d(int i0, int i1) {\n return null;\n }", "public void d(World paramaqu, BlockPosition paramdt, Block parambec)\r\n/* 47: */ {\r\n/* 48: 68 */ BlockPosition localdt = paramdt.offset(((EnumDirection)parambec.getData(a)).opposite());\r\n/* 49: 69 */ Block localbec = paramaqu.getBlock(localdt);\r\n/* 50: 70 */ if (((localbec.getType() instanceof bdq)) && (((Boolean)localbec.getData(bdq.b)).booleanValue())) {\r\n/* 51: 71 */ paramaqu.g(localdt);\r\n/* 52: */ }\r\n/* 53: */ }", "double defendre();", "public static int setDimension( int d ) {\n int temp = DPoint.d;\n DPoint.d = d;\n return temp;\n }", "public Datum(Datum d) {\n this.dan = d.dan;\n this.mesec = d.mesec;\n this.godina = d.godina;\n }", "public Nodo (String d, Nodo n){\n\t\tdato = d;\n\t\tsiguiente=n;\n\t}" ]
[ "0.63810617", "0.616207", "0.6071929", "0.59959275", "0.5877492", "0.58719957", "0.5825175", "0.57585526", "0.5701679", "0.5661244", "0.5651699", "0.56362265", "0.562437", "0.5615328", "0.56114155", "0.56114155", "0.5605659", "0.56001145", "0.5589302", "0.5571578", "0.5559222", "0.5541367", "0.5534182", "0.55326", "0.550431", "0.55041796", "0.5500838", "0.54946786", "0.5475938", "0.5466879", "0.5449981", "0.5449007", "0.54464436", "0.5439673", "0.543565", "0.5430978", "0.5428843", "0.5423923", "0.542273", "0.541701", "0.5416963", "0.54093426", "0.53927654", "0.53906536", "0.53793144", "0.53732955", "0.53695524", "0.5366731", "0.53530186", "0.535299", "0.53408253", "0.5333639", "0.5326304", "0.53250664", "0.53214055", "0.53208005", "0.5316437", "0.53121597", "0.52979535", "0.52763224", "0.5270543", "0.526045", "0.5247397", "0.5244388", "0.5243049", "0.5241726", "0.5241194", "0.523402", "0.5232349", "0.5231111", "0.5230985", "0.5219358", "0.52145815", "0.5214168", "0.5209237", "0.52059376", "0.51952434", "0.5193699", "0.51873696", "0.5179743", "0.5178796", "0.51700175", "0.5164517", "0.51595956", "0.5158281", "0.51572365", "0.5156627", "0.5155795", "0.51548296", "0.51545656", "0.5154071", "0.51532024", "0.5151545", "0.5143571", "0.5142079", "0.5140048", "0.51377696", "0.5133826", "0.5128858", "0.5125679", "0.5121545" ]
0.0
-1
/ renamed from: e
private void m16569e() { this.f14723f.removeMessages(this.f14724g); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void e() {\n\n\t}", "public void e() {\n }", "@Override\n\tpublic void processEvent(Event e) {\n\n\t}", "@Override\n public void e(String TAG, String msg) {\n }", "public String toString()\r\n {\r\n return e.toString();\r\n }", "@Override\n\t\t\t\t\t\t\tpublic void error(Exception e) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}", "public Object element() { return e; }", "@Override\n public void e(int i0, int i1) {\n\n }", "@Override\r\n\t\t\tpublic void execute(LiftEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void execute(LiftEvent e) {\n\t\t\t\t\r\n\t\t\t}", "private static Throwable handle(final Throwable e) {\r\n\t\te.printStackTrace();\r\n\r\n\t\tif (e.getCause() != null) {\r\n\t\t\te.getCause().printStackTrace();\r\n\t\t}\r\n\t\tif (e instanceof SAXException) {\r\n\t\t\t((SAXException) e).getException().printStackTrace();\r\n\t\t}\r\n\t\treturn e;\r\n\t}", "void event(Event e) throws Exception;", "Event getE();", "public int getE() {\n return e_;\n }", "@Override\n\tpublic void onException(Exception e) {\n\n\t}", "@Override\r\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tevent(e, et.get(2));\r\n\t\t\t}", "public byte e()\r\n/* 84: */ {\r\n/* 85:86 */ return this.e;\r\n/* 86: */ }", "@Override\r\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tevent(e, et.get(1));\r\n\t\t\t}", "public void toss(Exception e);", "private void log(IndexObjectException e) {\n\t\t\r\n\t}", "public int getE() {\n return e_;\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "private String getStacktraceFromException(Exception e) {\n\t\tByteArrayOutputStream baos = new ByteArrayOutputStream();\n\t\tPrintStream ps = new PrintStream(baos);\n\t\te.printStackTrace(ps);\n\t\tps.close();\n\t\treturn baos.toString();\n\t}", "protected void processEdge(Edge e) {\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn \"E \" + super.toString();\n\t}", "@Override\r\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tevent(e, et.get(0));\r\n\t\t\t}", "public Element getElement() {\n/* 78 */ return this.e;\n/* */ }", "@Override\r\n public void actionPerformed( ActionEvent e )\r\n {\n }", "void mo57276a(Exception exc);", "@Override\r\n\tpublic void onEvent(Object e) {\n\t}", "public Throwable getOriginalException()\n/* 28: */ {\n/* 29:56 */ return this.originalE;\n/* 30: */ }", "@Override\r\n\t\t\tpublic void onError(Throwable e) {\n\r\n\t\t\t}", "private void sendOldError(Exception e) {\n }", "private V e() throws com.amap.api.col.n3.gh {\n /*\n r6 = this;\n r0 = 0\n r1 = 0\n L_0x0002:\n int r2 = r6.b\n if (r1 >= r2) goto L_0x00cd\n com.amap.api.col.n3.ki r2 = com.amap.api.col.n3.ki.c() // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n android.content.Context r3 = r6.d // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n java.net.Proxy r3 = com.amap.api.col.n3.ik.a(r3) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n r6.a((java.net.Proxy) r3) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n byte[] r2 = r2.a((com.amap.api.col.n3.kj) r6) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n java.lang.Object r2 = r6.a((byte[]) r2) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n int r0 = r6.b // Catch:{ ic -> 0x0025, gh -> 0x0020, Throwable -> 0x002a }\n r1 = r0\n r0 = r2\n goto L_0x0002\n L_0x0020:\n r0 = move-exception\n r5 = r2\n r2 = r0\n r0 = r5\n goto L_0x0033\n L_0x0025:\n r0 = move-exception\n r5 = r2\n r2 = r0\n r0 = r5\n goto L_0x0044\n L_0x002a:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = \"未知错误\"\n r0.<init>(r1)\n throw r0\n L_0x0032:\n r2 = move-exception\n L_0x0033:\n int r1 = r1 + 1\n int r3 = r6.b\n if (r1 < r3) goto L_0x0002\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = r2.a()\n r0.<init>(r1)\n throw r0\n L_0x0043:\n r2 = move-exception\n L_0x0044:\n int r1 = r1 + 1\n int r3 = r6.b\n if (r1 >= r3) goto L_0x008a\n int r3 = r6.e // Catch:{ InterruptedException -> 0x0053 }\n int r3 = r3 * 1000\n long r3 = (long) r3 // Catch:{ InterruptedException -> 0x0053 }\n java.lang.Thread.sleep(r3) // Catch:{ InterruptedException -> 0x0053 }\n goto L_0x0002\n L_0x0053:\n java.lang.String r0 = \"http连接失败 - ConnectionException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x0082\n java.lang.String r0 = \"socket 连接异常 - SocketException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x0082\n java.lang.String r0 = \"服务器连接失败 - UnknownServiceException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 == 0) goto L_0x0078\n goto L_0x0082\n L_0x0078:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = r2.a()\n r0.<init>(r1)\n throw r0\n L_0x0082:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = \"http或socket连接失败 - ConnectionException\"\n r0.<init>(r1)\n throw r0\n L_0x008a:\n java.lang.String r0 = \"http连接失败 - ConnectionException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x00c5\n java.lang.String r0 = \"socket 连接异常 - SocketException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x00c5\n java.lang.String r0 = \"未知的错误\"\n java.lang.String r1 = r2.a()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x00c5\n java.lang.String r0 = \"服务器连接失败 - UnknownServiceException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 == 0) goto L_0x00bb\n goto L_0x00c5\n L_0x00bb:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = r2.a()\n r0.<init>(r1)\n throw r0\n L_0x00c5:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = \"http或socket连接失败 - ConnectionException\"\n r0.<init>(r1)\n throw r0\n L_0x00cd:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.amap.api.col.n3.gi.e():java.lang.Object\");\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override\n protected void processMouseEvent(MouseEvent e) {\n super.processMouseEvent(e);\n }", "private void printInfo(SAXParseException e) {\n\t}", "@Override\n\t\tpublic void onError(Throwable e) {\n\t\t\tSystem.out.println(\"onError\");\n\t\t}", "String exceptionToStackTrace( Exception e ) {\n StringWriter stringWriter = new StringWriter();\n PrintWriter printWriter = new PrintWriter(stringWriter);\n e.printStackTrace( printWriter );\n return stringWriter.toString();\n }", "public <E> E getE(E e){\n return e;\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}", "@PortedFrom(file = \"tSignatureUpdater.h\", name = \"vE\")\n private void vE(NamedEntity e) {\n sig.add(e);\n }", "@Override\n\t\tpublic void onException(Exception arg0) {\n\t\t\t\n\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\r\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\r\n\t\t}", "protected E eval()\n\t\t{\n\t\tE e=this.e;\n\t\tthis.e=null;\n\t\treturn e;\n\t\t}", "void showResultMoError(String e);", "public int E() {\n \treturn E;\n }", "@Override\r\n public void processEvent(IAEvent e) {\n\r\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}", "static public String getStackTrace(Exception e) {\n java.io.StringWriter s = new java.io.StringWriter(); \n e.printStackTrace(new java.io.PrintWriter(s));\n String trace = s.toString();\n \n if(trace==null || trace.length()==0 || trace.equals(\"null\"))\n return e.toString();\n else\n return trace;\n }", "@Override\n public String toString() {\n return \"[E]\" + super.toString() + \"(at: \" + details + \")\";\n }", "public static void error(boolean e) {\n E = e;\n }", "public void out_ep(Edge e) {\r\n\r\n\t\tif (triangulate == 0 & plot == 1) {\r\n\t\t\tclip_line(e);\r\n\t\t}\r\n\r\n\t\tif (triangulate == 0 & plot == 0) {\r\n\t\t\tSystem.err.printf(\"e %d\", e.edgenbr);\r\n\t\t\tSystem.err.printf(\" %d \", e.ep[le] != null ? e.ep[le].sitenbr : -1);\r\n\t\t\tSystem.err.printf(\"%d\\n\", e.ep[re] != null ? e.ep[re].sitenbr : -1);\r\n\t\t}\r\n\r\n\t}", "public void m58944a(E e) {\n this.f48622a = e;\n }", "void mo43357a(C16726e eVar) throws RemoteException;", "@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\tpublic void erstellen() {\n\t\t\n\t}", "@Override\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t}", "@Override\n\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\n\n\t}", "public void actionPerformed(ActionEvent e) {\n\t\t\t\t}", "static String getElementText(Element e) {\n if (e.getChildNodes().getLength() == 1) {\n Text elementText = (Text) e.getFirstChild();\n return elementText.getNodeValue();\n }\n else\n return \"\";\n }", "public RuntimeException processException(RuntimeException e)\n\n {\n\treturn new RuntimeException(e);\n }", "@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\n\t\t\t}", "@java.lang.Override\n public java.lang.String getE() {\n java.lang.Object ref = e_;\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 e_ = s;\n return s;\n }\n }", "protected void onEvent(DivRepEvent e) {\n\t\t}", "protected void onEvent(DivRepEvent e) {\n\t\t}", "protected void logException(Exception e) {\r\n if (log.isErrorEnabled()) {\r\n log.logError(LogCodes.WPH2004E, e, e.getClass().getName() + \" processing field \");\r\n }\r\n }", "@Override\r\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tevent(e, vt.get(2));\r\n\t\t\t}", "@Override\n\t\t\t\t\t\t\t\t\t\t\tpublic void keyPressed(KeyEvent e) {\n\n\t\t\t\t\t\t\t\t\t\t\t}", "com.walgreens.rxit.ch.cda.EIVLEvent getEvent();", "@Override\n protected void getExras() {\n }", "@Override\r\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tevent(e, vt.get(4));\r\n\t\t\t}", "public void actionPerformed(ActionEvent e) {\n\t\t\t}", "public void actionPerformed(ActionEvent e) {\n\t\t\t}", "public void actionPerformed(ActionEvent e) {\n\t\t\t}", "public void actionPerformed(ActionEvent e) {\n\t\t\t}", "public void actionPerformed(ActionEvent e) {\n\t\t\t}", "public void actionPerformed(ActionEvent e) {\n\t\t\t}", "public void actionPerformed(ActionEvent e) {\n\t\t\t}", "public void actionPerformed(ActionEvent e) {\n\t\t\t}", "@Override\r\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\t\r\n\t\t\t}", "public e o() {\r\n return k();\r\n }", "@Override\n\t\t\tpublic void focusGained(FocusEvent e) {\n\t\t\t\t\n\t\t\t}" ]
[ "0.72328156", "0.66032064", "0.6412127", "0.6362734", "0.633999", "0.62543726", "0.6232265", "0.6159535", "0.61226326", "0.61226326", "0.60798717", "0.6049423", "0.60396963", "0.60011584", "0.5998842", "0.59709895", "0.59551716", "0.5937381", "0.58854383", "0.5870234", "0.5863486", "0.58606255", "0.58570576", "0.5832809", "0.57954526", "0.5784194", "0.57723534", "0.576802", "0.57466", "0.57258075", "0.5722709", "0.5722404", "0.57134414", "0.56987166", "0.5683048", "0.5671214", "0.5650087", "0.56173986", "0.56142104", "0.56100404", "0.5604611", "0.55978096", "0.5597681", "0.55941516", "0.55941516", "0.55941516", "0.5578516", "0.55689955", "0.5568649", "0.5564652", "0.5561944", "0.5561737", "0.5560318", "0.555748", "0.5550611", "0.5550611", "0.5550611", "0.5550611", "0.5547971", "0.55252135", "0.5523029", "0.55208814", "0.5516037", "0.5512", "0.55118424", "0.55118424", "0.55118424", "0.55118424", "0.55118424", "0.55118424", "0.55118424", "0.55118424", "0.55118424", "0.55118424", "0.55118227", "0.5509796", "0.5509671", "0.5503605", "0.55015326", "0.5499632", "0.54921895", "0.54892236", "0.5483562", "0.5483562", "0.5482999", "0.54812574", "0.5479943", "0.54787004", "0.54778624", "0.5472073", "0.54695076", "0.54695076", "0.54695076", "0.54695076", "0.54695076", "0.54695076", "0.54695076", "0.54695076", "0.5468417", "0.54673034", "0.54645115" ]
0.0
-1
/ renamed from: b
public void m16571b() { this.f14719b = true; this.f14720c = false; m16569e(); if (this.f14721d) { try { this.f14722e.cancelAutoFocus(); } catch (Throwable e) { Log.w(f14717a, "Unexpected exception while cancelling focusing", e); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo2508a(bxb bxb);", "@Override\n public void func_104112_b() {\n \n }", "@Override\n public void b() {\n }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "@Override\n\tpublic void b2() {\n\t\t\n\t}", "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}", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "@Override\n\tpublic void b() {\n\n\t}", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "public bb b() {\n return a(this.a);\n }", "@Override\n\tpublic void b1() {\n\t\t\n\t}", "public void b() {\r\n }", "@Override\n\tpublic void bbb() {\n\t\t\n\t}", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public abstract void b(StringBuilder sb);", "public void b() {\n }", "public void b() {\n }", "protected b(int mb) {\n/* 87 */ this.b = mb;\n/* */ }", "public u(b paramb)\r\n/* 7: */ {\r\n/* 8: 9 */ this.a = paramb;\r\n/* 9: */ }", "public interface b {\n void H_();\n\n void I_();\n\n void J_();\n\n void a(C0063d dVar);\n\n void a(byte[] bArr);\n\n void b(boolean z);\n }", "public b[] a() {\n/* 95 */ return this.a;\n/* */ }", "public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }", "public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }", "public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}", "public void b() {\n ((a) this.a).b();\n }", "public np a()\r\n/* 33: */ {\r\n/* 34:49 */ return this.b;\r\n/* 35: */ }", "b(a aVar) {\n super(0);\n this.this$0 = aVar;\n }", "public t b() {\n return a(this.a);\n }", "public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }", "public static String a(int c) {\n/* 89 */ return b.a(c);\n/* */ }", "private void m678b(byte b) {\n byte[] bArr = this.f523r;\n bArr[0] = b;\n this.f552g.mo502b(bArr);\n }", "public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }", "public abstract T zzm(B b);", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public void b(World paramaqu, BlockPosition paramdt, Block parambec)\r\n/* 27: */ {\r\n/* 28: 47 */ bcm localbcm = paramaqu.s(paramdt);\r\n/* 29: 48 */ if ((localbcm instanceof bdv)) {\r\n/* 30: 49 */ ((bdv)localbcm).h();\r\n/* 31: */ } else {\r\n/* 32: 51 */ super.b(paramaqu, paramdt, parambec);\r\n/* 33: */ }\r\n/* 34: */ }", "public abstract void zzc(B b, int i, int i2);", "public interface b {\n}", "public interface b {\n}", "private void m10263b(byte b) throws cf {\r\n this.f6483r[0] = b;\r\n this.g.m10347b(this.f6483r);\r\n }", "BSubstitution createBSubstitution();", "public void b(ahd paramahd) {}", "void b();", "public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}", "B database(S database);", "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 abstract C0631bt mo9227aB();", "public an b() {\n return a(this.a);\n }", "protected abstract void a(bru parambru);", "static void go(Base b) {\n\t\tb.add(8);\n\t}", "void mo46242a(bmc bmc);", "public interface b extends c {\n void a(Float f);\n\n void a(Integer num);\n\n void b(Float f);\n\n void c(Float f);\n\n String d();\n\n void d(Float f);\n\n void d(String str);\n\n void e(Float f);\n\n void e(String str);\n\n void f(String str);\n\n void g(String str);\n\n Long j();\n\n LineChart k();\n }", "public interface bca extends bbn {\n bca a();\n\n bca a(String str);\n\n bca b(String str);\n\n bca c(String str);\n}", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public abstract BoundType b();", "public void b(amj paramamj)\r\n/* 538: */ {\r\n/* 539:579 */ this.f = paramamj;\r\n/* 540: */ }", "b(a aVar, com.bytedance.jedi.model.h.a aVar2) {\n super(aVar2);\n this.f21531a = aVar;\n this.f21532b = new com.bytedance.jedi.model.h.f(aVar);\n }", "private void b(int paramInt)\r\n/* 193: */ {\r\n/* 194:203 */ this.h.a(a(paramInt));\r\n/* 195: */ }", "public void b(ahb paramahb)\r\n/* 583: */ {\r\n/* 584:625 */ for (int i = 0; i < this.a.length; i++) {\r\n/* 585:626 */ this.a[i] = amj.b(paramahb.a[i]);\r\n/* 586: */ }\r\n/* 587:628 */ for (i = 0; i < this.b.length; i++) {\r\n/* 588:629 */ this.b[i] = amj.b(paramahb.b[i]);\r\n/* 589: */ }\r\n/* 590:631 */ this.c = paramahb.c;\r\n/* 591: */ }", "interface b {\n\n /* compiled from: CreditAccountContract */\n public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }\n\n /* compiled from: CreditAccountContract */\n public interface b extends c {\n void a(Float f);\n\n void a(Integer num);\n\n void b(Float f);\n\n void c(Float f);\n\n String d();\n\n void d(Float f);\n\n void d(String str);\n\n void e(Float f);\n\n void e(String str);\n\n void f(String str);\n\n void g(String str);\n\n Long j();\n\n LineChart k();\n }\n}", "@Override\n\tpublic void visit(PartB partB) {\n\n\t}", "public abstract void zzb(B b, int i, long j);", "public abstract void zza(B b, int i, zzeh zzeh);", "int metodo2(int a, int b) {\r\n\r\n\t\tthis.a += 5; // se modifica el campo del objeto, el uso de la palabra reservada this se utiliza para referenciar al campo.\r\n\t\tb += 7;\r\n\t\treturn a; // modifica en la asignaci\\u00f3n\r\n\t}", "private void internalCopy(Board b) {\n for (int i = 0; i < SIDE * SIDE; i += 1) {\n set(i, b.get(i));\n }\n\n _directions = b._directions;\n _whoseMove = b._whoseMove;\n _history = b._history;\n }", "public int b()\r\n/* 69: */ {\r\n/* 70:74 */ return this.b;\r\n/* 71: */ }", "public void b(StringBuilder sb) {\n sb.append(this.a);\n sb.append(')');\n }", "public void b() {\n e$a e$a;\n try {\n e$a = this.b;\n }\n catch (IOException iOException) {\n return;\n }\n Object object = this.c;\n e$a.b(object);\n }", "public abstract void a(StringBuilder sb);", "public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}", "public abstract void zzf(Object obj, B b);", "public interface bdp {\n\n /* renamed from: a */\n public static final bdp f3422a = new bdo();\n\n /* renamed from: a */\n bdm mo1784a(akh akh);\n}", "@Override\n\tpublic void parse(Buffer b) {\n\t\t\n\t}", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public abstract void a(b paramb, int paramInt1, int paramInt2);", "public void mo1945a(byte b) throws cf {\r\n m10263b(b);\r\n }", "void mo83703a(C32456b<T> bVar);", "public void a(String str) {\n ((b.b) this.b).d(str);\n }", "public void selectB() { }", "BOperation createBOperation();", "void metodo1(int a, int b) {\r\n\t\ta += 5;//par\\u00e1metro con el mismo nombre que el campo.\r\n\t\tb += 7;\r\n\t}", "private static void m2196a(StringBuffer stringBuffer, byte b) {\n stringBuffer.append(\"0123456789ABCDEF\".charAt((b >> 4) & 15)).append(\"0123456789ABCDEF\".charAt(b & 15));\n }", "public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }", "public void b(fv paramfv)\r\n/* 408: */ {\r\n/* 409:423 */ this.a = new amj[36];\r\n/* 410:424 */ this.b = new amj[4];\r\n/* 411:425 */ for (int i = 0; i < paramfv.c(); i++)\r\n/* 412: */ {\r\n/* 413:426 */ fn localfn = paramfv.b(i);\r\n/* 414:427 */ int j = localfn.d(\"Slot\") & 0xFF;\r\n/* 415:428 */ amj localamj = amj.a(localfn);\r\n/* 416:429 */ if (localamj != null)\r\n/* 417: */ {\r\n/* 418:430 */ if ((j >= 0) && (j < this.a.length)) {\r\n/* 419:431 */ this.a[j] = localamj;\r\n/* 420: */ }\r\n/* 421:433 */ if ((j >= 100) && (j < this.b.length + 100)) {\r\n/* 422:434 */ this.b[(j - 100)] = localamj;\r\n/* 423: */ }\r\n/* 424: */ }\r\n/* 425: */ }\r\n/* 426: */ }", "public void b(String str) {\n ((b.b) this.b).e(str);\n }", "public String b()\r\n/* 35: */ {\r\n/* 36:179 */ return a();\r\n/* 37: */ }", "public abstract void zza(B b, int i, T t);", "public Item b(World paramaqu, BlockPosition paramdt)\r\n/* 189: */ {\r\n/* 190:220 */ return null;\r\n/* 191: */ }", "public abstract void zza(B b, int i, long j);", "public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\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 abstract void mo9798a(byte b);", "public void mo9798a(byte b) {\n if (this.f9108f == this.f9107e) {\n mo9827i();\n }\n byte[] bArr = this.f9106d;\n int i = this.f9108f;\n this.f9108f = i + 1;\n bArr[i] = b;\n this.f9109g++;\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}", "private void m676a(TField bkVar, byte b) {\n if (b == -1) {\n b = m687e(bkVar.f538b);\n }\n short s = bkVar.f539c;\n short s2 = this.f519n;\n if (s <= s2 || s - s2 > 15) {\n m678b(b);\n mo446a(bkVar.f539c);\n } else {\n m686d(b | ((s - s2) << 4));\n }\n this.f519n = bkVar.f539c;\n }", "private static void m831a(C0741g<?> gVar, C0747b bVar) {\n gVar.mo9477a(C0743i.f718b, (C0739e<? super Object>) bVar);\n gVar.mo9476a(C0743i.f718b, (C0738d) bVar);\n gVar.mo9474a(C0743i.f718b, (C0736b) bVar);\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}", "private void j()\n/* */ {\n/* 223 */ c localc = this.b;\n/* 224 */ this.b = this.c;\n/* 225 */ this.c = localc;\n/* 226 */ this.c.b();\n/* */ }", "public lj ar(byte b) {\n throw new Runtime(\"d2j fail translate: java.lang.RuntimeException: can not merge I and Z\\r\\n\\tat com.googlecode.dex2jar.ir.TypeClass.merge(TypeClass.java:100)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeRef.updateTypeClass(TypeTransformer.java:174)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.provideAs(TypeTransformer.java:780)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.e1expr(TypeTransformer.java:496)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:713)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:703)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.enexpr(TypeTransformer.java:698)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:719)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:703)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.s1stmt(TypeTransformer.java:810)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.sxStmt(TypeTransformer.java:840)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.analyze(TypeTransformer.java:206)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer.transform(TypeTransformer.java:44)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar$2.optimize(Dex2jar.java:162)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertCode(Dex2Asm.java:414)\\r\\n\\tat com.googlecode.d2j.dex.ExDex2Asm.convertCode(ExDex2Asm.java:42)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar$2.convertCode(Dex2jar.java:128)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertMethod(Dex2Asm.java:509)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertClass(Dex2Asm.java:406)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertDex(Dex2Asm.java:422)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar.doTranslate(Dex2jar.java:172)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar.to(Dex2jar.java:272)\\r\\n\\tat com.googlecode.dex2jar.tools.Dex2jarCmd.doCommandLine(Dex2jarCmd.java:108)\\r\\n\\tat com.googlecode.dex2jar.tools.BaseCmd.doMain(BaseCmd.java:288)\\r\\n\\tat com.googlecode.dex2jar.tools.Dex2jarCmd.main(Dex2jarCmd.java:32)\\r\\n\");\n }", "public interface AbstractC10485b {\n /* renamed from: a */\n void mo64153a(boolean z);\n }", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\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.64558864", "0.6283203", "0.6252635", "0.6250949", "0.6244743", "0.6216273", "0.6194491", "0.6193556", "0.61641675", "0.6140157", "0.60993093", "0.60974354", "0.6077849", "0.6001867", "0.5997364", "0.59737104", "0.59737104", "0.5905105", "0.5904295", "0.58908087", "0.5886636", "0.58828026", "0.5855491", "0.584618", "0.5842517", "0.5824137", "0.5824071", "0.58097327", "0.5802052", "0.58012927", "0.579443", "0.5792392", "0.57902914", "0.5785124", "0.57718205", "0.57589084", "0.5735892", "0.5735892", "0.5734873", "0.5727929", "0.5720821", "0.5712531", "0.5706813", "0.56896514", "0.56543154", "0.5651059", "0.5649904", "0.56496733", "0.5647035", "0.5640965", "0.5640109", "0.563993", "0.5631903", "0.5597427", "0.55843794", "0.5583287", "0.557783", "0.55734867", "0.55733293", "0.5572254", "0.55683887", "0.55624336", "0.55540246", "0.5553985", "0.55480546", "0.554261", "0.5535739", "0.5529958", "0.5519634", "0.5517503", "0.55160624", "0.5511545", "0.5505353", "0.5500533", "0.5491741", "0.5486198", "0.5481978", "0.547701", "0.54725856", "0.5471632", "0.5463497", "0.5460805", "0.5454913", "0.5454885", "0.54519916", "0.5441594", "0.5436747", "0.5432453", "0.5425923", "0.5424724", "0.54189867", "0.54162544", "0.54051477", "0.53998184", "0.53945845", "0.53887725", "0.5388146", "0.5387678", "0.53858143", "0.53850687", "0.5384439" ]
0.0
-1
Using the event, create and show a dialog
@Override public void actionPerformed(@NotNull AnActionEvent anActionEvent) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void actionPerformed(ActionEvent evt) {\r\n super.actionPerformed(evt);\r\n createDialog().show();\r\n }", "protected void showDialog(final IJobChangeEvent event) {\r\n\t\tDisplay display = Display.getDefault();\r\n\t\tdisplay.asyncExec(new Runnable() {\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\tShell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();\r\n\t\t\t\tswitch (event.getResult().getSeverity()) {\r\n\t\t\t\tcase IStatus.ERROR:\r\n\t\t\t\t\tErrorDialog.openError(shell, \"Code Generation Error\", null, event.getResult());\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase IStatus.CANCEL:\r\n\t\t\t\t\tMessageDialog.openInformation(shell, \"Code Generation Canceled\", event.getJob().getName() + \"Code generation canceled!\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tMessageDialog.openInformation(shell, \"Code generation finished!\", event.getJob().getName()+\" finished without errors!\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t});\r\n\t}", "DialogResult show();", "public void showEventWindow()\n\t{\n\t\tJDialog eventWindow = new JDialog();\n\t\teventWindow.setModalityType(Dialog.ModalityType.APPLICATION_MODAL);\n\t\t\n\t\t//set size and title\n\t\tDimension d = new Dimension(350,200);\n\t\teventWindow.setSize(d);\n\t\teventWindow.setTitle(\"Make Event\");\n\t\t\n\t\t//make parts of event window\n\t\tJTextField theEvent = new JTextField(25);\n\t\tDimension d2 = new Dimension(250,100);\n\t\ttheEvent.setPreferredSize(d2);\n\t\tJLabel eventLabel = new JLabel();\n\t\teventLabel.setText(\"Event: \");\n\t\t\n\t\tJTextField start = new JTextField(5);\n\t\tJTextField end = new JTextField(5);\n\t\tJLabel date = new JLabel();\n\t\tdate.setText(getEventDate(cModel.getSelectedDate()) + \" \");\n\t\tJLabel to = new JLabel(\"to\");\n\t\tJButton saveButton = new JButton(\"Save\");\n\t\t\n\t\tsaveButton.addActionListener(new \n\t\t\t\tActionListener()\n\t\t\t\t{\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t\t\t{\n\t\t\t\t\t\tif (cModel.hasConflict(start.getText(), end.getText())) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//make an error message\n\t\t\t\t\t\t\tJDialog errorPopUp = new JDialog();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\terrorPopUp.setModalityType(Dialog.ModalityType.APPLICATION_MODAL);\n\t\t\t\t\t\t\terrorPopUp.setLayout(new FlowLayout());\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tJLabel errorMessage = new JLabel(\"There is a time conflict. Please enter a different time.\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tJButton close = new JButton(\"Close\");\n\t\t\t\t\t\t\tclose.addActionListener(new \n\t\t\t\t\t\t\t\t\tActionListener() \n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\terrorPopUp.dispose();\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\terrorPopUp.add(errorMessage);\n\t\t\t\t\t\t\terrorPopUp.add(close);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\terrorPopUp.pack();\n\t\t\t\t\t\t\terrorPopUp.setVisible(true);\n\t\t\t\t\t\t} \n\t\t\t\t\t\telse \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\teventWindow.dispose();\n\t\t\t\t\t\t\tcModel.addEvent(theEvent.getText(), start.getText(), end.getText());\n\t\t\t\t\t\t\twriteEvents(cModel.getSelectedDate());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\n\t\t\t\t});\n\t\t\n\t\tJPanel topPanel = new JPanel();\n\t\ttopPanel.add(eventLabel);\n\t\ttopPanel.add(theEvent);\n\t\t\n\t\tJPanel bottomPanel = new JPanel();\n\t\tbottomPanel.add(date);\n\t\tbottomPanel.add(start);\n\t\tbottomPanel.add(to);\n\t\tbottomPanel.add(end);\n\t\tbottomPanel.add(saveButton);\n\t\t\n\t\teventWindow.setLayout(new BorderLayout());\n\t\teventWindow.add(topPanel,BorderLayout.NORTH);\n\t\teventWindow.add(bottomPanel,BorderLayout.SOUTH);\n\t\t\n\t\teventWindow.setVisible(true);\n\t}", "public void show() {\n listenerHandler.onShow(dialog);\n dialog.show();\n }", "public void createEvent(View view){\n showDatePickerDialog();\n }", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\tAddNotificationWizard wizard = new AddNotificationWizard(humanInteractions,notificationPage,domain,notficationViewer);\n\t\t\t\tWizardDialog wizardDialog = new WizardDialog(Display .getCurrent().getActiveShell(),wizard);\n\t\t\t\twizardDialog.create(); \n\t\t\t\twizardDialog.open();\n\t\t\t}", "public void popUpDialogBox(View passedView, int code) {\n mBuilder = new AlertDialog.Builder(TrailActivity.this);\n if(code == 0) {\n Date editedTrailDt = null;\n editedView = passedView;\n editedTrailName = (EditText) editedView.findViewById(R.id.TrailNametxt);\n editedTrailModule = (EditText) editedView.findViewById(R.id.Moduletxt);\n editedTrailCode = (EditText) editedView.findViewById(R.id.TrailCodetxt);\n editedTrailDate = (EditText) editedView.findViewById(R.id.datetxt);\n try { editedTrailDt = new SimpleDateFormat(\"dd-MM-yyyy\", Locale.ENGLISH).parse(editedTrailDate.getText().toString().trim()); }\n catch (ParseException e) { e.printStackTrace(); }\n editedTrailId = geTrailId(editedTrailCode.getText().toString(), editedTrailDt);\n }\n else editedView = null;\n initDialogBoxViews(passedView);\n setDateClickListener();\n setTrailDateClickListener();\n setAddtrailBtnClickListener();\n mBuilder.setView(passedView);\n dialog = mBuilder.create();\n dialog.show();\n }", "public void createEvents(){\r\n\t\tbtnCurrent.addActionListener((ActionEvent e) -> JLabelDialog.run());\r\n\t}", "public CreateTremaDbDialogForm(AnActionEvent event) {\n this.event = event;\n this.windowTitle = \"New Trema XML database file\";\n init();\n }", "private void openCreateAccountDialog()\n {\n testDialog();\n\n }", "private void dialog() {\n\t\tGenericDialog gd = new GenericDialog(\"Bildart\");\n\t\t\n\t\tgd.addChoice(\"Bildtyp\", choices, choices[0]);\n\t\t\n\t\t\n\t\tgd.showDialog();\t// generiere Eingabefenster\n\t\t\n\t\tchoice = gd.getNextChoice(); // Auswahl uebernehmen\n\t\t\n\t\tif (gd.wasCanceled())\n\t\t\tSystem.exit(0);\n\t}", "@Override\n public void onClick(View view) {\n DialogAddEvent();\n }", "private void showDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"User created successfully\");\n builder.setIcon(R.drawable.ic_shield);\n builder.setCancelable(true);\n builder.setPositiveButton(\n \"Continue\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n finish();\n }\n });\n AlertDialog alert11 = builder.create();\n alert11.show();\n Window window = alert11.getWindow();\n assert window != null;\n WindowManager.LayoutParams wlp = window.getAttributes();\n wlp.gravity = Gravity.CENTER;\n wlp.y = 270;\n wlp.flags &= ~WindowManager.LayoutParams.FLAG_DIM_BEHIND;\n window.setAttributes(wlp);\n }", "@Override\n public void onClick(Date date) {\n Event_dialog(date);\n }", "@FXML\r\n\tvoid help_btn_clicked(MouseEvent event) {\r\n\t\tDialog<String> dia = new Dialog<>();\r\n\t\tStage stage = (Stage) dia.getDialogPane().getScene().getWindow();\r\n\t\tDialogPane dialogPane = dia.getDialogPane();\r\n\t\tdialogPane.getStylesheets().add(getClass().getResource(\"/client/boundry/dialog.css\").toExternalForm());\r\n\t\tdialogPane.getStyleClass().add(\"dialog\");\r\n\t\tdia.setTitle(\"Help Dialog\");\r\n\t\tdia.setHeaderText(\"Guide:\");\r\n\t\tdia.setGraphic(new ImageView(this.getClass().getResource(\"/icons8-info-48.png\").toString()));\r\n\t\t// Add a custom icon.\r\n\t\tstage.getIcons().add(new Image(this.getClass().getResource(\"/icons8-help-24.png\").toString()));\r\n\t\tdia.getDialogPane().getButtonTypes().addAll(ButtonType.OK);\r\n\t\tdia.setContentText(\r\n\t\t\t\t\"Main Sale Pattern Screen\\nIn this screen you can choose sale from table,add sale, delete and open\\n\"\r\n\t\t\t\t\t\t+ \"for full information, click on specific sale and choose an action, in addition you can click\"\r\n\t\t\t\t\t\t+ \"on \\\"Statistics\\\" for statistic inforamtion\");\r\n\t\tdia.show();\r\n\t}", "void showDialog() {\n\t\tDFTimePicker dtf = DFTimePicker.newInstance();\n DialogFragment newFragment = dtf;\n newFragment.show(getFragmentManager(), \"dialog\");\n }", "protected abstract JDialog createDialog();", "public void handle(ActionEvent actionEvent) {\n Dialog dialog = new StatsDialog(primaryStage, model);\n dialog.showAndWait();\n }", "@Override\n public void onShow(DialogInterface arg0) {\n\n }", "protected void dialog() {\n TextInputDialog textInput = new TextInputDialog(\"\");\n textInput.setTitle(\"Text Input Dialog\");\n textInput.getDialogPane().setContentText(\"Nyt bord nr: \");\n textInput.showAndWait()\n .ifPresent(response -> {\n if (!response.isEmpty()) {\n newOrderbutton(response.toUpperCase());\n }\n });\n }", "private void newDialog() {\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(this);\n\t\tbuilder.setTitle(getString(R.string.addmark));\n\t\tfinal EditText input = new EditText(this);\n\t\tinput.setHint(getString(R.string.pleasemark));\n\t\tbuilder.setView(input);\n\t\tbuilder.setPositiveButton(getString(R.string.yes),\n\t\t\t\tnew OnClickListener() {\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tif (input.getText().toString().trim().length() > 0) {\n\t\t\t\t\t\t\taddTag(input.getText().toString());\n\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t\tToast.makeText(ArchermindReaderActivity.this,\n\t\t\t\t\t\t\t\t\tgetString(R.string.successaddmark),\n\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tToast.makeText(ArchermindReaderActivity.this,\n\t\t\t\t\t\t\t\t\tgetString(R.string.pleasemark),\n\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\tnewDialog();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\t\tbuilder.setNegativeButton(getString(R.string.no),\n\t\t\t\tnew OnClickListener() {\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\tbuilder.show();\n\t}", "@Override\n\t\t\tpublic void buttonClick(ClickEvent event) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tConfirmDialog.show(UI.getCurrent(), MESSAGE_1,\"\",\"Aceptar\",\"Crear mas Usuarios\",\n\t\t\t\t new ConfirmDialog.Listener() {\n\n\t\t\t\t public void onClose(ConfirmDialog dialog) {\t\n\t\t\t\t \tent= false;\n\t\t\t\t if (dialog.isConfirmed()) {\n\t\t\t\t // Confirmed to continue\t\n\t\t\t\t \tc.navegar((StartView.VIEW_NAME));\n\t\t\t\t } else {\n\t\t\t\t // User did not confirm\t\t\t \n\t\t\t\t \t//c.crearWindow(RegistrarUser.VIEW_NAME);\n\t\t\t\t \tc.navegar((StartView.VIEW_NAME));\n\t\t\t\t \n\t\t\t\t }\n\t\t\t\t \n\t\t\t\t }\n\t\t\t\t \n\t\t\t\t });\n\t\t\t\t\n\t\t\t\t//Notification nota= new Notification(\"Registro Exitoso!\",Notification.Type.HUMANIZED_MESSAGE);\n\t\t\t\t//nota.setDelayMsec(-1);\n\t\t\t\t//nota.show(Page.getCurrent());\t\n\t\t\t\t\n\t\t\t\tclose();\t\t\t\n\t\t\t}", "public void handleEvent(WindowEvent be) {\n\t\t\t\tComponentHelper.doDetach(prompt.getTextBox());\r\n\t\t\t\tif (be.buttonClicked != null\r\n\t\t\t\t\t\t&& be.buttonClicked.getItemId().equals(Dialog.OK)) {\r\n\t\t\t\t\tcreateAndAddNode(((MessageBoxEvent) be).value);\r\n\t\t\t\t}\r\n\t\t\t}", "private void showCheckDialog() {\n AlertDialog.Builder showAuditAlert = new AlertDialog.Builder(this); // Create Alert dialog\n showAuditAlert.setTitle(\"Total prize\"); // Set title\n showAuditAlert.setMessage(\"= \"+mydb.getResultDayAudit(year,month,day).intValue()+\"\"); // Set message\n\n showAuditAlert.setPositiveButton(\"Done\",\n new DialogInterface.OnClickListener()\n { // Can hear \"CLICK\"\n @Override\n public void onClick(DialogInterface dialog,int which)\n {\n \tdialog.dismiss(); // CLICK then disappear\n }\n }\n );\n showAuditAlert.show(); // Show dialog that created upper this line\n }", "public void showLifeCycleDialog() {\n\t\t\tlifeCycleDialogBox = new DialogBox(true);\n\t\t\tlifeCycleDialogBox.setGlassEnabled(true);\n\t\t\tlifeCycleDialogBox.setText(\"Seguimiento del Documento\");\n\n\t\t\t// Vertical Panel\n\t\t\tVerticalPanel vp = new VerticalPanel();\n\t\t\tvp.setSize(\"100%\", \"100%\");\n\t\t\tvp.add(lifeCycleCellTree);\n\t\t\tvp.add(new HTML(\"&nbsp;\"));\n\t\t\tvp.add(lifeCycleCloseButton);\n\n\t\t\t// Scroll Panel\n\t\t\tScrollPanel scrollPanel = new ScrollPanel();\n\t\t\tif (getUiParams().isMobile())\n\t\t\t\tscrollPanel.setSize(Window.getClientWidth() + \"px\", Window.getClientHeight() + \"px\");\n\t\t\telse\n\t\t\t\tscrollPanel.setSize(Window.getClientWidth() * .4 + \"px\", Window.getClientHeight() * .3 + \"px\");\n\t\t\tscrollPanel.setWidget(vp);\n\t\t\tlifeCycleDialogBox.setWidget(scrollPanel);\n\n\t\t\tDouble d = Window.getClientWidth() * .3;\n\t\t\tif (!getUiParams().isMobile()) \n\t\t\t\tlifeCycleDialogBox.setPopupPosition(d.intValue(), UiTemplate.NORTHSIZE * 3);\n\n\t\t\tlifeCycleDialogBox.show();\n\t\t}", "@Override\n public Dialog onCreateDialog(Bundle state) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n\n // Set the title\n builder.setTitle(R.string.new_location_title);\n\n // Get the layout inflater\n LayoutInflater inflater = getActivity().getLayoutInflater();\n\n // Pass null as the parent view because its going in the dialog layout\n view = inflater.inflate(R.layout.fire_report, null);\n builder.setView(view);\n\n populate();\n\n // Add a cancel button\n builder.setNegativeButton(R.string.close, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int id) {\n new Thread(new Runnable() {\n @Override\n public void run() {\n Boolean checked = ((CheckBox) view.findViewById(R.id.checkExtinguished)).isChecked();\n if (fire.isExtinguished() != checked) {\n fire.setExtinguished(checked);\n if (!new Cloud(view.getContext()).updateExtinguishedToCloud(fire)) {\n fire.setExtinguished(!checked);\n view.post(new Runnable() {\n @Override\n public void run() {\n Toast.makeText(view.getContext(), R.string.extinguished_failed, Toast.LENGTH_SHORT).show();\n }\n });\n }\n }\n }\n }).start();\n }\n });\n\n dlg = builder.create();\n\n return dlg;\n }", "public static void newJFXDialogPopUp(String min, String sec, String dist, StackPane stP) {\n System.out.println(\"DialogBox Posted\");\n JFXDialogLayout jfxDialogLayout = new JFXDialogLayout();\n jfxDialogLayout.setHeading(new Text(\"Time Details\"));\n jfxDialogLayout.setBody(new Text(\"Time Estimate: \" + min + \" \" + sec +\"\\n\" + \"Distance Estimate: \" + dist));\n JFXDialog dialog = new JFXDialog(stP, jfxDialogLayout, JFXDialog.DialogTransition.CENTER);\n JFXButton okay = new JFXButton(\"Okay\");\n okay.setOnAction(new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent event) {\n dialog.close();\n\n }\n });\n jfxDialogLayout.setActions(okay);\n dialog.show();\n }", "private void showDialog(String tag, int dialogTitle, int dialogList, ListenerTypes requestedListener){\n\t\tFragmentTransaction ft = getFragmentManager().beginTransaction();\n\t\tFragment prev = getFragmentManager().findFragmentByTag(tag);\n\t\tif (prev != null) {\n\t\t\tft.remove(prev);\n\t\t}\n\t\tft.addToBackStack(null);\n\n\t\t// Create and show the dialog.\n\t\tDialogFragment newFragment = MenuDialogFragment.newInstance(\n\t\t\t\tdialogTitle, dialogList, requestedListener);\n\t\tnewFragment.show(ft, tag);\n\t}", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n LayoutInflater inflater = requireActivity().getLayoutInflater();\n final View view = inflater.inflate(R.layout.on_click_dialog, null);\n builder.setView(view);\n\n\n\n\n\n\n\n\n return builder.create();\n }", "public abstract Dialog createDialog(DialogDescriptor descriptor);", "@Override\n protected void onPrepareDialog(int id, Dialog dialog) {\n \tToast.makeText(this, dialog.toString(), Toast.LENGTH_SHORT).show();\n }", "public void working() {\n\t\t Dialog d = new Dialog(this);\r\n\t\t d.setTitle(\"hech yea!\");\r\n\t\t TextView tv = new TextView(this);\r\n\t\t tv.setText(\"Success\");\r\n\t\t d.setContentView(tv);\r\n\t\t d.show();\t\r\n\t}", "@Override\n\t\tpublic void onClick(DialogInterface arg0, int arg1) {\n\t\t\tAlertDialog fuck = builder.create();\n\t\t\tfuck.show();\n\t\t}", "private void initDialog() {\n }", "@Override\n public void onStart() {\n pDialog.show();\n }", "private static void showSingleOptionDialog(Context c, int titleID, int messageID, int buttonID, OnClickListener listener){\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(c);\n\t\tbuilder.setTitle(titleID)\n\t\t.setNegativeButton(buttonID, listener);\n\t\tif(messageID > -1){\n\t\t\tbuilder.setMessage(messageID);\n\t\t}\n\n\t\tbuilder.create().show();\n\t}", "private void createResultPopup() {\r\n resultDialog = new JDialog(parentFrame);\r\n resultDialog.setLayout(new BoxLayout(resultDialog.getContentPane(), BoxLayout.Y_AXIS));\r\n resultDialog.setAlwaysOnTop(true);\r\n Utilities.centerWindowTo(resultDialog, parentFrame);\r\n resultDialog.add(createResultLabel());\r\n resultDialog.add(createButtonDescription());\r\n resultDialog.add(createConfirmationButtons());\r\n resultDialog.pack();\r\n resultDialog.setVisible(true);\r\n }", "@Override\n public void handle(ActionEvent event) {\n alert = new Alert(AlertType.CONFIRMATION);\n //Optional title. If not used the standard title \"Confiramation\" will be displayed\n //To remove the title use alert.setTitle(null);\n alert.setTitle(\"Confirmation Dialog\");\n //Optional header.If not used the standard header \"Confiramation\" will be displayed\n //To remove the title use alert.setHeaderText(null); \n alert.setHeaderText(\"Please answer the question!\");\n alert.setContentText(initText);\n //Display the dialog and get the result from the user action\n Optional<ButtonType> result = alert.showAndWait();\n if (result.get() == ButtonType.OK){\n // the user clicked OK\n alert = new Alert(AlertType.INFORMATION);\n alert.setTitle(\"Information Dialog\");\n alert.setHeaderText(\"Important message for you!\");\n alert.setContentText(\"Happiness is ephemeral!\");\n alert.showAndWait(); \n //the user clocked Cancel\n } else {\n // ... user chose CANCEL or closed the dialog\n //Warning Dialog\n alert = new Alert(AlertType.WARNING);\n alert.setTitle(\"Warning Dialog\");\n alert.setHeaderText(\"Read the Warning!\");\n alert.setContentText(\"You must like Java - Shall make you Happy!\");\n alert.showAndWait(); \n }\n }", "public void showDialog() {\n mDialogInfoWithTwoButtons = new DialogInfoWithTwoButtons(mContext,\n new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n saveTemplate(mToastEdited);\n mDialogInfoWithTwoButtons.getDialog().dismiss();\n }\n }, new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n mTemplateId = mDatabaseManager.getTemplateNewId();\n mPreferenceManager.setTemplateId(mTemplateId);\n saveTemplate(mToastCreated);\n mDialogInfoWithTwoButtons.getDialog().dismiss();\n }\n }, mTitle, mMessage, mTitleButtonOne, mTitleButtonTwo);\n mDialogInfoWithTwoButtons.getDialog().show();\n }", "void showDialog() {\n DialogFragment newFragment = MyAlertDialogFragment.newInstance(R.string.alert_dialog_two_buttons_title);\n newFragment.show(getFragmentManager(), \"dialog\");\n }", "@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\n\t\t\t\t\tdialog.show();\n\t\t\t\t}", "private void createDialogBox(String title,Widget widget, final Function<Boolean, Void> function) {\n\t\tfinal DialogBox dialogBox = new DialogBox();\n\t\tdialogBox.ensureDebugId(\"cwDialogBox\");\n\t\tdialogBox.setText(title);\n\n\t\t// Create a table to layout the content\n\t\tVerticalPanel dialogContents = new VerticalPanel();\n\t\tdialogContents.setWidth(\"100%\");\n\t\tdialogContents.setSpacing(4);\n\t\tdialogBox.setWidget(dialogContents);\n\n\t\t// Add an image viewer to the dialog\n\t\t\n\t\tdialogContents.add(widget);\n\t\tdialogContents.setCellHorizontalAlignment(widget, HasHorizontalAlignment.ALIGN_CENTER);\n\n\t\t// Add a close button at the bottom of the dialog\n\t\tButton closeButton = new Button(constants.close());\n\t\tcloseButton.addClickHandler(new ClickHandler() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\tdialogBox.hide();\n\t\t\t\tfunction.apply(true);\n\t\t\t}\n\t\t});\n\t\t\n\t\tdialogContents.add(closeButton);\n\t\tdialogContents.setCellHorizontalAlignment(closeButton, HasHorizontalAlignment.ALIGN_RIGHT);\n\n\t\tdialogBox.setGlassEnabled(true);\n\t\tdialogBox.center();\n dialogBox.show();\n\t}", "private void createDialog() {\r\n final AlertDialog dialog = new AlertDialog.Builder(getActivity()).setView(R.layout.dialog_recorder_details)\r\n .setTitle(\"Recorder Info\").setPositiveButton(\"Start\", (dialog1, which) -> {\r\n EditText width = (EditText) ((AlertDialog) dialog1).findViewById(R.id.dialog_recorder_resolution_width);\r\n EditText height = (EditText) ((AlertDialog) dialog1).findViewById(R.id.dialog_recorder_resolution_height);\r\n CheckBox audio = (CheckBox) ((AlertDialog) dialog1).findViewById(R.id.dialog_recorder_audio_checkbox);\r\n EditText fileName = (EditText) ((AlertDialog) dialog1).findViewById(R.id.dialog_recorder_filename_name);\r\n mServiceHandle.start(new RecordingInfo(Integer.parseInt(width.getText().toString()), Integer.parseInt(height.getText().toString()),\r\n audio.isChecked(), fileName.getText().toString()));\r\n dialog1.dismiss();\r\n }).setNegativeButton(\"Cancel\", (dialog1, which) -> {\r\n dialog1.dismiss();\r\n }).show();\r\n Point size = new Point();\r\n getActivity().getWindowManager().getDefaultDisplay().getRealSize(size);\r\n ((EditText) dialog.findViewById(R.id.dialog_recorder_resolution_width)).setText(Integer.toString(size.x));\r\n ((EditText) dialog.findViewById(R.id.dialog_recorder_resolution_height)).setText(Integer.toString(size.y));\r\n }", "@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tEnviosRechazados verventana = new EnviosRechazados();\n\t\t\t\t\tverventana.show();\n\t\t\t\t}", "public void openDialogCreateVisual(){\n DataHeader[] tabHeader = dataset.getListDataHeaderDouble(true);\n TypeVisualization[] tabVis = getListTypeVisualization(tabHeader.length);\n DataHeader[] tabHeaderLabel = dataset.getListDataHeaderDouble(false);\n CreateDataVisualDialog dialog = new CreateDataVisualDialog(this, tabVis, tabHeader, tabHeaderLabel);\n dialog.setVisible(true);\n }", "@Override\n\tpublic void show() {\n\t\tGameView.VIEW.addDialog(this);\n\t\tsuper.show();\n\t}", "private void createAndShowDialog(final String message, final String title) {\n final AlertDialog.Builder builder = new AlertDialog.Builder(getActivity ());\n\n builder.setMessage(message);\n builder.setTitle(title);\n builder.create().show();\n }", "public abstract void initDialog();", "public void showStartDateDialog(View v){\n DialogFragment dialogFragment = null;\n switch (v.getId()) {\n case R.id.newEvent_button_from:\n dialogFragment = new StartDatePicker(0);\n break;\n case R.id.newEvent_button_to:\n dialogFragment = new StartDatePicker(1);\n break;\n }\n dialogFragment.show(getFragmentManager(), \"start_date_picker\");\n }", "@Override\n\t\t\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\t\tint eventSelection = eventOptions.getSelectionModel().getSelectedIndex();\n\t\t\t\t\t\tString description = new String(descriptionField.getText());\n\t\t\t\t\t\tdouble priceFactor = Double.parseDouble(priceFactorField.getText());\n\n\t\t\t\t\t\tif (eventSelection == 0) {\n\t\t\t\t\t\t\tConcert selection = new Concert(description, priceFactor);\n\t\t\t\t\t\t\tevents.add(selection);\n\t\t\t\t\t\t\tcounter++;\n\t\t\t\t\t\t\tmessage.setText(\"Concert event created.\\n\");\n\t\t\t\t\t\t} else if (eventSelection == 1) {\n\t\t\t\t\t\t\tPlay selection = new Play(description, priceFactor);\n\t\t\t\t\t\t\tevents.add(selection);\n\t\t\t\t\t\t\tcounter++;\n\t\t\t\t\t\t\tmessage.setText(\"Play event created.\\n\");\n\t\t\t\t\t\t} else if (eventSelection == 2) {\n\t\t\t\t\t\t\tMeeting selection = new Meeting(description, priceFactor);\n\t\t\t\t\t\t\tevents.add(selection);\n\t\t\t\t\t\t\tcounter++;\n\t\t\t\t\t\t\tmessage.setText(\"Meeting event created.\\n\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tmessage.setText(\"Please choose Concert, Play, or Meeting from the Event Options list.\\n\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tprimaryStage.setTitle(\"Events\");\n\t\t\t\t\t\tprimaryStage.setScene(scene);\n\t\t\t\t\t}", "public Dialog onCreateDialog(Bundle savedInstanceState){\n AlertDialog.Builder sample_builder = new AlertDialog.Builder(getActivity());\n sample_builder.setView(\"activity_main\");\n sample_builder.setMessage(\"This is a sample prompt. No new networks should be scanned while this prompt is up\");\n sample_builder.setCancelable(true);\n sample_builder.setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n listener.onDialogPositiveClick(StationFragment.this);\n }\n });\n sample_builder.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n listener.onDialogNegativeClick(StationFragment.this);\n }\n });\n return sample_builder.create();\n\n }", "private void showInputDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"App info\");\n builder.setMessage(message);\n builder.setPositiveButton(\" Done \", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n dialog.dismiss();\n }\n });\n builder.show();\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\n\t\t\t\tdialog.show();\n\t\t\t\t//alert.show();\n\t\t\t\t\n\t\t\t}", "private void jMenuItemAcercaDeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemAcercaDeActionPerformed\n LOG.trace(evt.paramString());\n\n java.awt.EventQueue.invokeLater(() -> {\n JDialogAcercaDe jdad = new JDialogAcercaDe(null, modal);\n jdad.setLocationRelativeTo(null);\n jdad.setVisible(true);\n });\n}", "public void handleResultShow(){\n\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"Make a selection\");\n\n //create the String[] to display the search result to user\n final CharSequence[] sArray = new CharSequence[searchResult.size()];\n for (int i = 0; i < searchResult.size(); i++){\n sArray[i] = searchResult.get(i).getSymbolwithName();\n }\n builder.setItems(sArray, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n //add the selection stock to main page\n validateAdd(searchResult.get(which));\n updatePrice();\n }\n });\n\n builder.setNegativeButton(\"Nevermind\", null);\n AlertDialog dialog = builder.create();\n dialog.show();\n\n }", "@Override\n public void onClick(View view) {\n if (mAddDialog == null) {\n mAddDialog = new XPopup.Builder(MainActivity.this)\n .asInputConfirm(getString(R.string.add_random_title)\n , getString(R.string.add_random_content)\n , new OnInputConfirmListener() {\n @Override\n public void onConfirm(String text) {\n if (mAdapter != null) {\n mAdapter.addData(new BaseModel(text, 1));\n }\n }\n }).show();\n } else {\n mAddDialog.show();\n }\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\n\t\t\t\tshowdialog();\n\n\t\t\t}", "private void showDialog() {\n if (!pDialog.isShowing())\n pDialog.show();\n }", "void showDialog() {\n\t\tDialogFragment newFragment = MyAlertDialogFragment\n\t\t\t\t.newInstance(R.string.not_enoughth_information);\n\t\tnewFragment.show(getFragmentManager(), \"dialog\");\n\t}", "private void startMealToDatabaseAlert() {\n AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(this);\n TextView dialogTitle = new TextView(this);\n int blackValue = Color.parseColor(\"#000000\");\n dialogTitle.setText(R.string.title_dialog_meal);\n dialogTitle.setGravity(Gravity.CENTER_HORIZONTAL);\n dialogTitle.setPadding(0, 30, 0, 0);\n dialogTitle.setTextSize(25);\n dialogTitle.setTextColor(blackValue);\n dialogBuilder.setCustomTitle(dialogTitle);\n View dialogView = getLayoutInflater().inflate(R.layout.dialog_add_meal, null);\n\n this.startEditTexts(dialogView);\n this.startLocationSpinner(dialogView);\n this.startAddPhotoButton(dialogView);\n this.startMealDialogButtonListeners(dialogBuilder);\n\n dialogBuilder.setView(dialogView);\n AlertDialog permission_dialog = dialogBuilder.create();\n permission_dialog.show();\n }", "public static void showNew() {\n\t\tif (DIALOG == null) {\n\t\t\tDIALOG = new NewDialog();\n\t\t}\n\t\tDIALOG.setVisible(true);\n\t\tDIALOG.toFront();\n\t}", "@Override\r\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\r\n \r\n LayoutInflater inflater = getActivity().getLayoutInflater();\r\n builder.setTitle(\"New Wallet\");\r\n \r\n\t final View view = inflater.inflate(R.layout.new_wallet_dialog, null);\r\n\t \r\n\t final EditText name = (EditText) view.findViewById(R.id.newWallet_text);\r\n\t \r\n builder.setPositiveButton(R.string.confirmRecord, new DialogInterface.OnClickListener() {\r\n \r\n \tpublic void onClick(DialogInterface dialog, int id) {\r\n \t\tlistener.comfirmPressed(name.getText().toString());\t\r\n \t\t}\r\n });\r\n builder.setNegativeButton(R.string.cancelRecord, new DialogInterface.OnClickListener() {\r\n \tpublic void onClick(DialogInterface dialog, int id) {\r\n \t\tlistener.cancelPressed();\r\n \t\t}\r\n \t});\r\n // Create the AlertDialog object and return it\r\n return builder.create();\r\n }", "ListenerForPopupToPayWithAmmoOrPUCArd(JDialog dialog, MainFrame mainFrame, ServerEvent event) {\n this.dialog = dialog;\n this.mainFrame = mainFrame;\n this.event = event;\n }", "public void showDialog(Context context) {\n \n }", "private void createAndShowDialog(final String message, final String title) {\n final AlertDialog.Builder builder = new AlertDialog.Builder(this);\n\n builder.setMessage(message);\n builder.setTitle(title);\n builder.create().show();\n }", "@Override\n\t\tpublic void onClick(View arg0) {\n\t\t\tAlertDialog fuck = builder.create();\n\t\t\tfuck.show();\n\t\t}", "@Override\n public void customEventOccurred(CustomEvent event)\n {\n DialogsFactory.produceCreateDataSourceFromExcelDialog(new ExcelBook(new Source()));\n }", "@NonNull\n @Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n LayoutInflater inflater = getActivity().getLayoutInflater();\n View rootView = inflater.inflate(R.layout.fragment_message_dialog, null);\n msg = rootView.findViewById(R.id.msg);\n submit = rootView.findViewById(R.id.msg_submit);\n final int code = getTargetRequestCode();\n builder.setView(rootView);\n builder.setTitle(\"Enter a message:\");\n\n submit.setOnClickListener(new View.OnClickListener(){\n @Override\n public void onClick(View view) {\n\n sendResult(code);\n dismiss();\n\n\n }\n\n });\n\n return builder.create();\n }", "private void usernameTakenDialog() {\n Dialog dialog = new Dialog(\"Username taken\", cloudSkin, \"dialog\") {\n public void result(Object obj) {\n System.out.println(\"result \" + obj);\n }\n };\n dialog.text(\"This username has already been taken, try a new one.\");\n dialog.button(\"OK\", true);\n dialog.show(stage);\n }", "@Override\r\n\t\t\tpublic void buttonClick(ClickEvent event) {\r\n\t\t\t\tString strSelectedDataType = _strMarkerType.replace(\" \", \"\");\r\n\t\t\t\tUploadVariableFieldsDialog uploadVariableFieldsDialog = null;\r\n\t\t\t\tif (strSelectedDataType.equalsIgnoreCase(\"SNPGenotype\") || strSelectedDataType.equalsIgnoreCase(\"AllelicData\") || strSelectedDataType.equalsIgnoreCase(\"ABHData\") ){\r\n\t\t\t\t\tuploadVariableFieldsDialog = new UploadVariableFieldsDialog(_mainHomePage, \"Markers\", true);\r\n\t\t\t\t} else if (strSelectedDataType.equalsIgnoreCase(\"DArTGenotype\")){\r\n\t\t\t\t\tuploadVariableFieldsDialog = new UploadVariableFieldsDialog(_mainHomePage, \"Germplasm-Names\", true);\r\n\t\t\t\t} \r\n\r\n\t\t\t\tif (null != uploadVariableFieldsDialog) {\r\n\t\t\t\t\tWindow messageWindow = new Window(\"Upload Message\");\r\n\t\t\t\t\tmessageWindow.addComponent(uploadVariableFieldsDialog);\r\n\t\t\t\t\tmessageWindow.setWidth(\"500px\");\r\n\t\t\t\t\tmessageWindow.setBorder(Window.BORDER_NONE);\r\n\t\t\t\t\tmessageWindow.setClosable(true);\r\n\t\t\t\t\tmessageWindow.center();\r\n\t\t\t\t\tif (!_mainHomePage.getMainWindow().getChildWindows().contains(messageWindow)) {\r\n\t\t\t\t\t\t_mainHomePage.getMainWindow().addWindow(messageWindow);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tmessageWindow.setModal(true);\r\n\t\t\t\t\tmessageWindow.setVisible(true);\r\n\r\n\r\n\t\t\t\t\tuploadVariableFieldsDialog.addListener(new UploadVariableFieldsListener() {\r\n\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void uploadVariableFields(ArrayList<String> theListOfVariableFields) {\r\n\t\t\t\t\t\t\tArrayList<String> listOfVariableColumns = theListOfVariableFields;\r\n\t\t\t\t\t\t\tlistOfVariableDataColumns = listOfVariableColumns;\r\n\t\t\t\t\t\t\tif (null != listOfVariableColumns && 0 != listOfVariableColumns.size()){\r\n\t\t\t\t\t\t\t\tLayout newTabbedComponentForTemplate = buildTabbedComponentForTemplate();\r\n\t\t\t\t\t\t\t\tverticalLayout.replaceComponent(layoutForMarkerTableComponent, newTabbedComponentForTemplate);\r\n\t\t\t\t\t\t\t\tverticalLayout.requestRepaint();\r\n\t\t\t\t\t\t\t\tlayoutForMarkerTableComponent = newTabbedComponentForTemplate;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\r\n\t\t\t}", "void makeDialog()\n\t{\n\t\tfDialog = new ViewOptionsDialog(this.getTopLevelAncestor());\n\t}", "public void showNewTaskDialog() {\n LayoutInflater inflater = getActivity().getLayoutInflater();\n final View v = inflater.inflate(R.layout.dialog_newtask, null);\n\n newTaskDialog = new AlertDialog.Builder(getActivity()).setView(v).create();\n //set view and text type\n TextView title = (TextView) v.findViewById(R.id.newTaskPageTitle);\n Typeface RalewayBold = Typeface.createFromAsset(getActivity().getAssets(), \"Raleway-Bold.ttf\");\n title.setTypeface(RalewayBold);\n\n //sets buttons\n Button done = (Button) v.findViewById(R.id.doneAddingTask);\n Button cancel = (Button) v.findViewById(R.id.CancelAddingTask);\n Button addUser = (Button) v.findViewById(R.id.newTaskAddUserButton);\n\n //get each field\n newTaskValidAssigneeIndicator = (ImageView) v.findViewById(R.id.newTaskValidAssigneeIndicator);\n newTaskAssigneeField = (TextInputEditText) v.findViewById(R.id.newTaskNewUserField);\n newtaskDateField = (TextInputEditText) v.findViewById(R.id.newTaskDueDateField);\n newTaskNameField = (TextInputEditText) v.findViewById(R.id.newTaskNameField);\n newTaskDescriptionField = (TextInputEditText) v.findViewById(R.id.newTaskDescriptionField);\n\n //create listeners\n newTaskAssigneeField.setOnEditorActionListener(this);\n newtaskDateField.setOnEditorActionListener(this);\n newTaskNameField.setOnEditorActionListener(this);\n newTaskDescriptionField.setOnEditorActionListener(this);\n\n //set button functions\n addUser.setOnClickListener(this);\n done.setOnClickListener(this);\n cancel.setOnClickListener(this);\n newtaskDateField.addTextChangedListener(this);\n newTaskDialog.show();\n }", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tDodajStudentaDialog dodajStudenta = new DodajStudentaDialog();\n\t\tdodajStudenta.setVisible(true);\n\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t\tshowDialog();\n\t\t\t}", "@NonNull\n @Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setTitle(getArguments().getString(\"title\"))\n .setMessage(getArguments().getString(\"message\"))\n .setCancelable(false)\n .setPositiveButton(R.string.OK, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // FIRE ZE MISSILES!\n // call callback method\n // mListener.onInfoDialogOKClick(InfoDialog.this);\n }\n });\n // Create the AlertDialog object and return it\n return builder.create();\n }", "public void show_dialog(final View view){\n final String tag = String.valueOf(view.getTag());\n LayoutInflater inflater = getLayoutInflater();\n final View layout = inflater.inflate(R.layout.food_information_layout,(ViewGroup) findViewById(R.id.foodInformation));\n\n final AlertDialog alertDialog=new AlertDialog.Builder(AddItemActivity.this)\n .setTitle(\"Food Information\").setView(layout).setPositiveButton(\"Confirm\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n add_item_to_grid(view);\n TextView textView2=(TextView)layout.findViewById(R.id.DaysLeft);\n String quality_period=textView2.getText().toString();\n qualityPeriodToDB(tag,quality_period);\n }\n })\n .setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n }\n }).show();\n TextView textView=(TextView)alertDialog.findViewById(R.id.foodName);\n textView.setText(tag);\n\n TextView textView2=(TextView)alertDialog.findViewById(R.id.DaysLeft);\n String quality_period= qualityPeriodFromDB(tag);\n textView2.setText(quality_period);\n\n TextView textView3=(TextView)layout.findViewById(R.id.bestBefore);\n try {\n String bestBefore=calculateDate(quality_period);\n textView3.setText(bestBefore);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n }", "private void creatDialog() {\n \t mDialog=new ProgressDialog(this);\n \t mDialog.setTitle(\"\");\n \t mDialog.setMessage(\"正在加载请稍后\");\n \t mDialog.setIndeterminate(true);\n \t mDialog.setCancelable(true);\n \t mDialog.show();\n \n\t}", "public void openDialog(){\n DialogforTheboysHeroImage dialogforTheboysHeroImage = new DialogforTheboysHeroImage();\n dialogforTheboysHeroImage.show(getSupportFragmentManager(), \"Heros info\");\n }", "public void crearDialogo() {\r\n final PantallaCompletaDialog a2 = PantallaCompletaDialog.a(getString(R.string.hubo_error), getString(R.string.no_hay_internet), getString(R.string.cerrar).toUpperCase(), R.drawable.ic_error);\r\n a2.f4589b = new a() {\r\n public void onClick(View view) {\r\n a2.dismiss();\r\n }\r\n };\r\n a2.show(getParentFragmentManager(), \"TAG\");\r\n }", "private void showDialog(String msg) {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(msg)\n .setCancelable(false)\n .setPositiveButton(R.string.yes, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n }\n });\n AlertDialog alert = builder.create();\n alert.show();\n }", "public void dialogoAgregarUsuario() {\n vAgregarUsuario = new V_AgregarUsuario(new JFrame(), true);\n vAgregarUsuario.setVisible(true);\n }", "public void show_dialog_box (){\n //show the message of turning on the location\n Dialog dialog = new Dialog(this);\n dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);\n dialog.setContentView(R.layout.location_message_r);\n dialog.show();\n }", "private void showDialog(int msgId, int buttonId) {\n AlertDialog.Builder builder = new AlertDialog.Builder(mActivity);\n\n builder\n .setMessage(msgId)\n .setTitle(R.string.backup_dialog_title)\n .setPositiveButton(buttonId, this)\n .setNegativeButton(R.string.button_cancel, this);\n\n mDialog = builder.create();\n mDialog.show();\n }", "private void initDialog() {\n Window subWindow = new Window(\"Sub-window\");\n \n FormLayout nameLayout = new FormLayout();\n TextField code = new TextField(\"Code\");\n code.setPlaceholder(\"Code\");\n \n TextField description = new TextField(\"Description\");\n description.setPlaceholder(\"Description\");\n \n Button confirm = new Button(\"Save\");\n confirm.addClickListener(listener -> insertRole(code.getValue(), description.getValue()));\n\n nameLayout.addComponent(code);\n nameLayout.addComponent(description);\n nameLayout.addComponent(confirm);\n \n subWindow.setContent(nameLayout);\n \n // Center it in the browser window\n subWindow.center();\n\n // Open it in the UI\n UI.getCurrent().addWindow(subWindow);\n\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tJOptionPane.showMessageDialog(mainscreen, \"Created by Saadia Aman and Ammar Israr\");\n\t\t\t}", "public void createNewSoundBoard() {\n\n dialogCreateSoundBoard = new Dialog(this);\n dialogCreateSoundBoard.setContentView(R.layout.soundboard_create);\n dialogCreateSoundBoard.setTitle(\"Create board\");\n dialogCreateSoundBoard.setCancelable(true);\n\n\n sbName = (EditText) dialogCreateSoundBoard.findViewById(R.id.textfieldcreatesoundboardname);\n sbName.setHint(\"Name\");\n Button createOkButton = (Button) dialogCreateSoundBoard.findViewById(R.id.createSoundBoardButton);\n createOkButton.setOnClickListener(createSoundBoardListener);\n\n Button createCancelButton = (Button) dialogCreateSoundBoard.findViewById(R.id.cancelSoundBoardButton);\n createCancelButton.setOnClickListener(cancelButtonCreateSoundBoardListener);\n\n dialogCreateSoundBoard.show();\n }", "public void howtouse(View view) {\n showdialog();\n }", "@SuppressLint(\"InflateParams\")\r\n\tprivate void showDialog() {\n\t\tLayoutInflater layoutInflater = LayoutInflater.from(getActivity());\r\n\t\tviewAddEmployee = layoutInflater\r\n\t\t\t\t.inflate(R.layout.activity_dialog, null);\r\n\t\teditText = (EditText) viewAddEmployee.findViewById(R.id.editText1);\r\n\t\ttv_phone = (TextView) viewAddEmployee.findViewById(R.id.tv_phone);\r\n\t\tbt_setting = (Button) viewAddEmployee.findViewById(R.id.bt_setting);\r\n\t\tbt_cancel = (Button) viewAddEmployee.findViewById(R.id.bt_cancel);\r\n\t\tString tel = SharePreferenceUtil.getInstance(\r\n\t\t\t\tgetActivity().getApplicationContext()).getUserTel();\r\n\t\ttv_phone.setText(StringUtils.getTelNum(tel));\r\n\r\n\t\tshowPop();\r\n\r\n\t\tbt_setting.setOnClickListener(new OnClickListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tString psd = SharePreferenceUtil.getInstance(\r\n\t\t\t\t\t\tgetActivity().getApplicationContext()).getUserPsd();\r\n\t\t\t\tString password = editText.getText().toString().trim();\r\n\t\t\t\tif (TextUtils.isEmpty(password)) {\r\n\t\t\t\t\tShowToast(\"密码不能为空!\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (password.equals(psd)) {\r\n\t\t\t\t\tavatorPop.dismiss();\r\n\t\t\t\t\tintentAction(getActivity(), GesturePsdActivity.class);\r\n\r\n\t\t\t\t} else {\r\n\t\t\t\t\tShowToast(\"输入密码错误!\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tbt_cancel.setOnClickListener(new OnClickListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tavatorPop.dismiss();\r\n\t\t\t}\r\n\t\t});\r\n\t}", "@Override\n\t\t\t\t\tpublic void onEvent(Event event) throws Exception {\n\t\t\t\t\t\tMessagebox.Button button = (Messagebox.Button) event.getData();\n\t\t\t\t\t\tif (button == Messagebox.Button.YES) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tanalista.setiEstatus(EstatusPersonaFactory.getEstatusActivo());\n\t\t\t\t\t\t\t\t//EL METODO DICE ACTUTALIZARPERSONA\n\t\t\t\t\t\t\t\tsMaestros.acutalizarPersona(analista);\n\t\t\t\t\t\t\t\tcambiarAnalistas(0, null, null);\n\t\t\t\t\t\t\t\tnotifyChange(\"analistas\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t}", "public void openEventsForm(String data);", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t\tpDialog.show();\n\t\t}", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n filename = getArguments().getString(\"filename\");\n username = getArguments().getString(\"username\");\n workingDIR = getArguments().getString(\"workingDIR\");\n builder.setTitle(R.string.copy_move_file_select_options_title)\n .setItems(R.array.file__move_copy_dialog_options, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n onSelect(which);\n }\n });\n return builder.create();\n }", "@Override\n public void onClick(View v) {\n showDialog();\n }", "@FXML\n public final void buttonListener() {\n final String str = GameContext.instance().toStringUniverse();\n Dialogs.create()\n .title(\"Planet list\")\n .message(str)\n .showInformation();\n }", "@Override\r\n\t\t\tpublic void buttonClick(ClickEvent event) \r\n\t\t\t{\n\t\t\t\tif(((NavigatorUI) UI.getCurrent()).getMainView().equals(\"Cibernauta\"))\r\n\t\t\t\t{\r\n\r\n\t\t\t\t\tsubWindow.setModal(true);\r\n\t\t\t\t\tsubWindow.setResizable(false);\r\n\t\t\t\t\tsubWindow.setContent(new Contratar_cibernauta(canalL.getValue()));\r\n\t\t\t\t\tUI.getCurrent().addWindow(subWindow);\r\n\t\t\t\t\t\r\n\t\t\t\t}else if(((NavigatorUI) UI.getCurrent()).getMainView().equals(\"Vista_Cliente\"))\r\n\t\t\t\t{\r\n\t\t\t\t\tcontratacion = comprobarContratacion();\r\n\t\t\t\t\t\r\n\t\t\t\t\tsubWindow.setModal(true);\r\n\t\t\t\t\tsubWindow.setResizable(false);\r\n\t\t\t\t\tsubWindow.setContent(new Contratar_vista_usuario(canalL.getValue(), contratacion, idModalidad));\r\n\t\t\t\t\tUI.getCurrent().addWindow(subWindow);\r\n\t\t\t\t\t\r\n\t\t\t\t}else if(((NavigatorUI) UI.getCurrent()).getMainView().equals(\"Cliente\"))\r\n\t\t\t\t{\r\n\t\t\t\t\tcontratacion = comprobarContratacion();\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(contratacion || idModalidad.isEmpty())\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tsubWindow.setModal(true);\r\n\t\t\t\t\t\tsubWindow.setResizable(false);\r\n\t\t\t\t\t\tsubWindow.setContent(new Contratar_cliente(canalL.getValue()));\r\n\t\t\t\t\t\tUI.getCurrent().addWindow(subWindow);\r\n\t\t\t\t\t}else\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tdoNavigate(Crear_incidencia.VIEW_NAME + \"/\" + \"contratacion\" +\";\" +canalL.getValue());\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}", "public void popupAdd() {\n builder = new AlertDialog.Builder(getView().getContext());\n View views = getLayoutInflater().inflate(R.layout.departmentpopup, (ViewGroup) null);\n DepartmentName = (EditText) views.findViewById(R.id.department_name);\n DepartmentId = (EditText) views.findViewById(R.id.department_id);\n pbar =views.findViewById(R.id.departmentProgress);\n Button button =views.findViewById(R.id.save_depart);\n saveButton = button;\n button.setOnClickListener(new View.OnClickListener() {\n public void onClick(View view) {\n addDeparatments();\n }\n });\n builder.setView(views);\n AlertDialog create =builder.create();\n dialog = create;\n create.show();\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setMessage(R.string.dialog_leave_channel)\n .setPositiveButton(R.string.button_yes, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n Log.v(LOGTAG, \"YES clicked\");\n getGTracker().send(MapBuilder\n .createEvent(\"ui_action\", \"channel_dialog\", \"leave_yes\", null)\n .build()\n );\n mListener.onDialogLeaveChannelConfirm(LeaveChanDialog.this);\n }\n })\n .setNegativeButton(R.string.button_no, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n Log.v(LOGTAG, \"NO clicked\");\n getGTracker().send(MapBuilder\n .createEvent(\"ui_action\", \"channel_dialog\", \"leave_no\", null)\n .build()\n );\n }\n })\n .setTitle(R.string.dialog_signup_title);\n // Create the AlertDialog object and return it\n return builder.create();\n }", "public void showDialog(Activity activity) {\n final Dialog dialog = new Dialog(activity);\n dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);\n dialog.setCancelable(false);\n dialog.setContentView(R.layout.event_cramp);\n\n Button dialogButton = dialog.findViewById(R.id.btn_dialog);\n dialogButton.setOnClickListener(v -> dialog.dismiss());\n\n dialog.show();\n\n }", "private AssignFSADialog() {\r\n super(Hub.getMainWindow(), Hub.string(\"TD_assignFSATitle\"));\r\n addWindowListener(new WindowAdapter() {\r\n @Override\r\n public void windowClosing(WindowEvent e) {\r\n onEscapeEvent();\r\n }\r\n });\r\n this.setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);\r\n this.setMinimumSize(new Dimension(300, 10));\r\n\r\n Box mainBox = Box.createHorizontalBox();\r\n mainBox.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));\r\n Box newBox = Box.createVerticalBox();\r\n newBox.add(new JLabel(\" \"));\r\n newBox.add(new JButton(new NewFSAAction()));\r\n mainBox.add(newBox);\r\n\r\n mainBox.add(Box.createRigidArea(new Dimension(5, 0)));\r\n\r\n openModelsCombo = new JComboBox();\r\n openModelsCombo.setRenderer(new JLabelListRenderer());\r\n Box modelsBox = Box.createVerticalBox();\r\n Box titleBox = Box.createHorizontalBox();\r\n titleBox.add(new JLabel(Hub.string(\"TD_openModels\")));\r\n titleBox.add(Box.createHorizontalGlue());\r\n modelsBox.add(titleBox);\r\n modelsBox.add(openModelsCombo);\r\n mainBox.add(modelsBox);\r\n\r\n mainBox.add(Box.createRigidArea(new Dimension(5, 0)));\r\n\r\n templatesCombo = new JComboBox();\r\n templatesCombo.setRenderer(new JLabelListRenderer());\r\n Box templatesBox = Box.createVerticalBox();\r\n titleBox = Box.createHorizontalBox();\r\n titleBox.add(new JLabel(Hub.string(\"TD_templates\")));\r\n titleBox.add(Box.createHorizontalGlue());\r\n templatesBox.add(titleBox);\r\n templatesBox.add(templatesCombo);\r\n mainBox.add(templatesBox);\r\n\r\n getContentPane().add(mainBox);\r\n\r\n }", "@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tdialog();\n\t\t\t\t\t\n\t\t\t\t}" ]
[ "0.69970083", "0.66673994", "0.66198164", "0.660136", "0.6570881", "0.6562758", "0.65464956", "0.65276605", "0.6458311", "0.6411188", "0.63921934", "0.63835883", "0.6324985", "0.63234204", "0.63212043", "0.63207096", "0.63095564", "0.630369", "0.62904185", "0.6275812", "0.62697935", "0.62691826", "0.6255033", "0.6252554", "0.6251574", "0.62438893", "0.6236165", "0.6217027", "0.62092394", "0.62036395", "0.6199395", "0.61951554", "0.6195116", "0.6180271", "0.617077", "0.616733", "0.6160901", "0.6158583", "0.61553127", "0.6133704", "0.6128948", "0.61274266", "0.61192566", "0.6118872", "0.61125594", "0.61074114", "0.61039466", "0.60973907", "0.6096158", "0.60942495", "0.6090903", "0.6090454", "0.60896844", "0.6087171", "0.60852385", "0.60635567", "0.6055078", "0.6050932", "0.60506314", "0.60254204", "0.6018191", "0.6011387", "0.60054034", "0.5998367", "0.5987545", "0.59849644", "0.5981448", "0.5976927", "0.5968011", "0.5965577", "0.5948518", "0.5927773", "0.59266883", "0.59246314", "0.59234905", "0.5916438", "0.5911242", "0.59052956", "0.5902986", "0.590225", "0.590207", "0.5900619", "0.58964545", "0.5892117", "0.58883494", "0.58871543", "0.58741945", "0.587398", "0.5869014", "0.58556396", "0.5853863", "0.5850145", "0.5847154", "0.58448374", "0.58430725", "0.58424616", "0.5832794", "0.58327776", "0.58279735", "0.58233243", "0.5820274" ]
0.0
-1
called when one of the NumberTextFields are changed.
protected abstract void onScalePercentChange(int zoom);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@OnTextChanged(R.id.number_of_tickets_field)\n public void onTicketsNumberChanged(@Nullable CharSequence text) {\n if (text == null || text.toString().equals(\"\")) {\n numberOfTickets = 0;\n } else {\n try {\n numberOfTickets = Integer.parseInt(text.toString());\n } catch (NumberFormatException e) {\n // theoretically we should never end up here cause I limited the input for this\n // field to be only digits\n Log.e(TAG, \"Failed to parse string to int: \" + text.toString());\n Toast.makeText(getContext(), \"Please enter a valid number of tickets\", Toast.LENGTH_SHORT).show();\n numberOfTickets = 0;\n }\n }\n updatePriceAndSaving();\n }", "void listenerForOnlyDigitsInput(TextField textField) \r\n\t{\r\n\t\ttextField.textProperty().addListener((ChangeListener<? super String>) new ChangeListener<String>() \r\n\t\t{\r\n\t\t\tpublic void changed(ObservableValue<? extends String> observable, String oldValue, String newValue)\r\n\t\t\t{\r\n\t\t\t\tif (!newValue.matches(\"\\\\d*\")) \r\n\t\t\t\t{\r\n\t\t\t\t\ttextField.setText(newValue.replaceAll(\"[^\\\\d]\", \"\"));\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Please enter only digits from 0 to 9.\", \"Notification\",\r\n\t\t\t\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\r\n\t\t\t\t}\r\n\t\t\t};\r\n\t\t});\r\n\t}", "public static void setTextFieldInteger(TextField txt) {\n\t\ttxt.textProperty().addListener((obs, oldValue, newValue)->{\n\t\t\tif(newValue!=null && !newValue.matches(\"\\\\d*\"))\n\t\t\t\ttxt.setText(oldValue);\n\t\t});\n\t}", "@Override\n\tpublic void onValueChange(NumberPicker picker, int oldVal, int newVal) {\n\t\t\n\t}", "private void setOnInput(final JFXTextField textField) {\n textField.textProperty().addListener(new ChangeListener<String>() {\n @Override\n public void changed(ObservableValue<? extends String> observable, String oldValue, String newValue) {\n try {\n if(!newValue.isEmpty()){\n Double.parseDouble(newValue);\n }\n }catch (NumberFormatException nfe){\n textField.setText(oldValue);\n }\n }\n });\n }", "public void setOnlyInteger() {\r\n\t\tPlatform.runLater(() -> {\r\n\t\t\ttextfield.textProperty().addListener(new ChangeListener<String>() {\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void changed(ObservableValue<? extends String> observable, String oldValue, String newValue) {\r\n\t\t\t\t\tif (!newValue.matches(\"^\\\\d*\\\\d\") && !newValue.isEmpty()) {\r\n\t\t\t\t\t\ttextfield.setText(oldValue);\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}", "@Override\r\n\tprotected KDTextField getNumberCtrl() {\n\t\treturn null;\r\n\t}", "public static void configTextFieldAsNumericInput(TextField tf, boolean allowDouble, Callback<Number, Void> onNewValidValue) {\n\t\ttf.setText(\"0\");\n\t\ttf.textProperty().addListener((obs, oldVal, newVal) -> {\n\t\t\tif(!newVal.isEmpty()) {\n\t\t\t\tif(Util.validNumericTextEntryStr(newVal, allowDouble)) {// first see if the new one is valid, use it if it is\n\t\t\t\t\tif(allowDouble && newVal.matches(\"(-|^)[0-9]+(\\\\.|,)$\"))\n\t\t\t\t\t\tnewVal += \"0\"; // add a trailing 0 if needed\n\t\t\t\t\tif(allowDouble) // allocate the correct numeric type\n\t\t\t\t\t\tonNewValidValue.call(new Double(newVal));\n\t\t\t\t\telse\n\t\t\t\t\t\tonNewValidValue.call(new Integer(newVal));\n\t\t\t\t} else if(Util.validNumericTextEntryStr(oldVal, allowDouble)) { // if not, try the old one, and revert back if need be\n\t\t\t\t\ttf.setText(oldVal);\n\t\t\t\t} \n\n\t\t\t\telse {// if that's no good just set it to 0\n\t\t\t\t\ttf.setText(\"0.0\");\n\t\t\t\t\tonNewValidValue.call(0);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\ttf.focusedProperty().addListener((obs, oldVal, newVal) -> {\n\t\t\tif(tf.getText().isEmpty())\n\t\t\t\ttf.setText(\"0\");\n\t\t});\n\t}", "@Override\n public void changed(ObservableValue<? extends Number> observable, Number oldValue, Number newValue) {\n DecimalFormat df = new DecimalFormat(\"#.#\");\n df.setRoundingMode(RoundingMode.HALF_UP);\n cogInput.setText(df.format(newValue));\n }", "private void initHandlers() {\n setOnAction(new EventHandler<ActionEvent>() {\n\n @Override\n public void handle(ActionEvent arg0) {\n System.out.println(\"-5\");\n parseAndFormatInput();\n }\n });\n\n focusedProperty().addListener(new ChangeListener<Boolean>() {\n\n @Override\n public void changed(ObservableValue<? extends Boolean> observable, Boolean oldValue, Boolean newValue) {\n if (!newValue.booleanValue()) {\n System.out.println(\"1\");\n parseAndFormatInput();\n }\n }\n });\n\n // Set text in field if BigDecimal property is changed from outside.\n numberProperty().addListener(new ChangeListener<BigDecimal>() {\n\n @Override\n public void changed(ObservableValue<? extends BigDecimal> obserable, BigDecimal oldValue, BigDecimal newValue) {\n if (newValue.toBigInteger().signum() < 0) {\n newValue = new BigDecimal(1);\n }\n setText(nf.format(newValue));\n }\n });\n\n textProperty().addListener(new ChangeListener<String>() {\n @Override\n public void changed(ObservableValue<? extends String> observableValue, String s, String t1) {\n try {\n int newValue = Integer.parseInt(t1);\n if (newValue < NumberSpinner.MIN) newValue = NumberSpinner.MIN;\n if (newValue > NumberSpinner.MAX+1) newValue = NumberSpinner.MAX+1;\n setText(newValue+\"\");\n } catch (NumberFormatException e) {\n setText(s);\n }\n }\n });\n }", "@Override\n public void onValueChange(NumberPicker picker, int oldVal, int newVal) {\n noPassengersInput.setText(String.valueOf(picker.getValue()));\n }", "@Override\n public void onValueChange(NumberPicker picker, int oldVal, int newVal) {\n n=oldVal;\n p=newVal;\n quantity = Double.valueOf(nums[newVal]);\n\n }", "public static void setTextFieldDouble(TextField txt) {\n\t\ttxt.textProperty().addListener((obs, oldValue, newValue)->{\n\t\t\tif(newValue!=null && !newValue.matches(\"\\\\d*([\\\\.]\\\\d*)?\")) {\n\t\t\t\ttxt.setText(oldValue);\n\t\t\t}\n\t\t});\n\t}", "public void setNumberType(NumericFieldType numberType) {\n\t\tthis.numberType = numberType;\n\t\trequestRepaint();\n\t}", "public void modelChanged(ModelEvent event) {\n\t\tSystem.out.println(\"CalculatorView.modelChanged(ModelEvent event)\");\n\t\tString msg = event.getAmount() + \"\";\n\t\ttextField.setText(msg);\n\t\tSystem.out.println(\"\\t\" + msg);\n\t}", "public void changeSubtotalTextField()\n {\n Float subtotal = getSubtotal();\n if ( subtotal != -1f )\n {\n String newSubtotal = Utility.ToDollars(subtotal);\n subtotalTextField.setText(newSubtotal);\n }\n }", "@Override\n\tpublic void keyPressed(KeyEvent eee) {\n\t\tswitch (eee.getKeyCode()) {\n\t\tcase KeyEvent.VK_0:\n\t\t\tif (initialNumberField.toString().equals(\"0\"))\n\t\t\t\tinitialNumberField.delete(0, 1);\n\t\t\tinitialNumberField.append(0);\n\t\t\tnumbersField.setText(initialNumberField.toString());\n\t\t\teee.consume();\n\t\t\tbreak;\n\t\tcase KeyEvent.VK_NUMPAD0:\n\t\t\tif (initialNumberField.toString().equals(\"0\"))\n\t\t\t\tinitialNumberField.delete(0, 1);\n\t\t\tinitialNumberField.append(0);\n\t\t\tnumbersField.setText(initialNumberField.toString());\n\t\t\teee.consume();\n\t\t\tbreak;\n\t\tcase KeyEvent.VK_1:\n\t\t\tif (initialNumberField.toString().equals(\"0\"))\n\t\t\t\tinitialNumberField.delete(0, 1);\n\t\t\tinitialNumberField.append(1);\n\t\t\tnumbersField.setText(initialNumberField.toString());\n\t\t\teee.consume();\n\t\t\tbreak;\n\t\tcase KeyEvent.VK_NUMPAD1:\n\t\t\tif (initialNumberField.toString().equals(\"0\"))\n\t\t\t\tinitialNumberField.delete(0, 1);\n\t\t\tinitialNumberField.append(1);\n\t\t\tnumbersField.setText(initialNumberField.toString());\n\t\t\teee.consume();\n\t\t\tbreak;\n\t\tcase KeyEvent.VK_2:\n\t\t\tif (initialNumberField.toString().equals(\"0\"))\n\t\t\t\tinitialNumberField.delete(0, 1);\n\t\t\tinitialNumberField.append(2);\n\t\t\tnumbersField.setText(initialNumberField.toString());\n\t\t\teee.consume();\n\t\t\tbreak;\n\t\tcase KeyEvent.VK_NUMPAD2:\n\t\t\tif (initialNumberField.toString().equals(\"0\"))\n\t\t\t\tinitialNumberField.delete(0, 1);\n\t\t\tinitialNumberField.append(2);\n\t\t\tnumbersField.setText(initialNumberField.toString());\n\t\t\teee.consume();\n\t\t\tbreak;\n\t\tcase KeyEvent.VK_3:\n\t\t\tif (initialNumberField.toString().equals(\"0\"))\n\t\t\t\tinitialNumberField.delete(0, 1);\n\t\t\tinitialNumberField.append(3);\n\t\t\tnumbersField.setText(initialNumberField.toString());\n\t\t\teee.consume();\n\t\t\tbreak;\n\t\tcase KeyEvent.VK_NUMPAD3:\n\t\t\tif (initialNumberField.toString().equals(\"0\"))\n\t\t\t\tinitialNumberField.delete(0, 1);\n\t\t\tinitialNumberField.append(3);\n\t\t\tnumbersField.setText(initialNumberField.toString());\n\t\t\teee.consume();\n\t\t\tbreak;\n\t\tcase KeyEvent.VK_4:\n\t\t\tif (initialNumberField.toString().equals(\"0\"))\n\t\t\t\tinitialNumberField.delete(0, 1);\n\t\t\tinitialNumberField.append(4);\n\t\t\tnumbersField.setText(initialNumberField.toString());\n\t\t\teee.consume();\n\t\t\tbreak;\n\t\tcase KeyEvent.VK_NUMPAD4:\n\t\t\tif (initialNumberField.toString().equals(\"0\"))\n\t\t\t\tinitialNumberField.delete(0, 1);\n\t\t\tinitialNumberField.append(4);\n\t\t\tnumbersField.setText(initialNumberField.toString());\n\t\t\teee.consume();\n\t\t\tbreak;\n\t\tcase KeyEvent.VK_5:\n\t\t\tif (initialNumberField.toString().equals(\"0\"))\n\t\t\t\tinitialNumberField.delete(0, 1);\n\t\t\tinitialNumberField.append(5);\n\t\t\tnumbersField.setText(initialNumberField.toString());\n\t\t\teee.consume();\n\t\t\tbreak;\n\t\tcase KeyEvent.VK_NUMPAD5:\n\t\t\tif (initialNumberField.toString().equals(\"0\"))\n\t\t\t\tinitialNumberField.delete(0, 1);\n\t\t\tinitialNumberField.append(5);\n\t\t\tnumbersField.setText(initialNumberField.toString());\n\t\t\teee.consume();\n\t\t\tbreak;\n\t\tcase KeyEvent.VK_6:\n\t\t\tif (initialNumberField.toString().equals(\"0\"))\n\t\t\t\tinitialNumberField.delete(0, 1);\n\t\t\tinitialNumberField.append(6);\n\t\t\tnumbersField.setText(initialNumberField.toString());\n\t\t\teee.consume();\n\t\t\tbreak;\n\t\tcase KeyEvent.VK_NUMPAD6:\n\t\t\tif (initialNumberField.toString().equals(\"0\"))\n\t\t\t\tinitialNumberField.delete(0, 1);\n\t\t\tinitialNumberField.append(6);\n\t\t\tnumbersField.setText(initialNumberField.toString());\n\t\t\teee.consume();\n\t\t\tbreak;\n\t\tcase KeyEvent.VK_7:\n\t\t\tif (initialNumberField.toString().equals(\"0\"))\n\t\t\t\tinitialNumberField.delete(0, 1);\n\t\t\tinitialNumberField.append(7);\n\t\t\tnumbersField.setText(initialNumberField.toString());\n\t\t\teee.consume();\n\t\t\tbreak;\n\t\tcase KeyEvent.VK_NUMPAD7:\n\t\t\tif (initialNumberField.toString().equals(\"0\"))\n\t\t\t\tinitialNumberField.delete(0, 1);\n\t\t\tinitialNumberField.append(7);\n\t\t\tnumbersField.setText(initialNumberField.toString());\n\t\t\teee.consume();\n\t\t\tbreak;\n\t\tcase KeyEvent.VK_8:\n\t\t\tif (initialNumberField.toString().equals(\"0\"))\n\t\t\t\tinitialNumberField.delete(0, 1);\n\t\t\tinitialNumberField.append(8);\n\t\t\tnumbersField.setText(initialNumberField.toString());\n\t\t\teee.consume();\n\t\t\tbreak;\n\t\tcase KeyEvent.VK_NUMPAD8:\n\t\t\tif (initialNumberField.toString().equals(\"0\"))\n\t\t\t\tinitialNumberField.delete(0, 1);\n\t\t\tinitialNumberField.append(8);\n\t\t\tnumbersField.setText(initialNumberField.toString());\n\t\t\teee.consume();\n\t\t\tbreak;\n\t\tcase KeyEvent.VK_9:\n\t\t\tif (initialNumberField.toString().equals(\"0\"))\n\t\t\t\tinitialNumberField.delete(0, 1);\n\t\t\tinitialNumberField.append(9);\n\t\t\tnumbersField.setText(initialNumberField.toString());\n\t\t\teee.consume();\n\t\t\tbreak;\n\t\tcase KeyEvent.VK_NUMPAD9:\n\t\t\tif (initialNumberField.toString().equals(\"0\"))\n\t\t\t\tinitialNumberField.delete(0, 1);\n\t\t\tinitialNumberField.append(9);\n\t\t\tnumbersField.setText(initialNumberField.toString());\n\t\t\teee.consume();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tSystem.out.println(\"Unexpexted (key presses)\");\n\t\t\teee.consume();\n\t\t}\n\t}", "private void updateAndAlertListener() {\n\n\t\teditText.setText(getRoundedValue(value));\n\n\t\tif (changeListener != null) {\n\t\t\tchangeListener.onValueChange(this, value);\n\t\t}\n\t}", "public void setNumber(String newValue);", "private void setDataInFields() \n {\n quantityTxtFld.setText(farmer.getCropQuantity()+\"\");\n quantityTxtFld.setEnabled(false);\n }", "@Override\n public void onTextChanged(CharSequence s, int start, int before, int count) {\n try{\n currentBillTotal = Double.parseDouble(s.toString());\n }\n catch (NumberFormatException e){\n currentBillTotal = 0.0; // default if an sxception occurs\n }\n\n updateStandard();\n updateCustom();\n\n }", "@Override\r\n\tpublic void valuesChanged() {\r\n\t}", "@Override\n public void onValueChange(NumberPicker numberPicker, int oldVal, int newVal) {\n long timeHelper = newVal * 1000;\n mSelectedStartTime = timeHelper;\n mTextViewCountDown.setText(String.valueOf(newVal));\n mTimeLeftInMillis = timeHelper;\n }", "@Override\n public void onAmountChange(View view, int amount) {\n item.num = amount;\n }", "protected void valueChanged() {\r\n \t\tint newValue = slider.getSelection();\r\n \t\tint oldValue = this.intValue;\r\n \t\tintValue = newValue;\r\n \t\tjava.beans.PropertyChangeEvent event = new java.beans.PropertyChangeEvent(\r\n \t\t\t\tthis, IPropertyEditor.VALUE, oldValue, newValue);\r\n \t\tvalueChangeListener.valueChange(event);\r\n \t}", "public void setNumer(float newNumer){\n\t\tnumer = newNumer;\n\t}", "@Override\n public void onValueChange(NumberPicker picker, int oldVal, int newVal)\n {\n\n\n if(newVal>0)\n {\n txtWellnessActivityTTHErrorMessage.setVisibility(View.GONE);\n }\n }", "public void defNumber(String fieldname, String numberFormat) {\r\n calls.put(fieldname, new DecimalFormat(numberFormat));\r\n }", "@attribute(value = \"\", required = true)\t\r\n\tpublic void addNumberField(NumberField f) {\r\n\t\tfields.put(\"\" + fieldCount++, f);\r\n\t}", "private synchronized void updateNumberFormat()\n\t{\n\n\t\tfinal int sw = rangeSlider.getWidth();\n\t\tif ( sw > 0 )\n\t\t{\n\t\t\tfinal double vrange = range.getMaxBound() - range.getMinBound();\n\t\t\tfinal int digits = ( int ) Math.ceil( Math.log10( sw / vrange ) );\n\n\t\t\tblockUpdates = true;\n\n\t\t\tJSpinner.NumberEditor numberEditor = ( ( JSpinner.NumberEditor ) minSpinner.getEditor() );\n\t\t\tnumberEditor.getFormat().setMaximumFractionDigits( digits );\n\t\t\tnumberEditor.stateChanged( new ChangeEvent( minSpinner ) );\n\n\t\t\tnumberEditor = ( ( JSpinner.NumberEditor ) maxSpinner.getEditor() );\n\t\t\tnumberEditor.getFormat().setMaximumFractionDigits( digits );\n\t\t\tnumberEditor.stateChanged( new ChangeEvent( maxSpinner ) );\n\n\t\t\tblockUpdates = false;\n\t\t}\n\t}", "public void fieldChanged(Field arg0, int arg1) {\n\t\t\n\t}", "public JTextField getNumberInput() {\r\n return numberInput;\r\n }", "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 }", "@Override\n public void onValueChange(NumberPicker picker, int oldVal, int newVal) {\n TimeValue = NumP.getValue() * 5;\n }", "public void convert(){\n\t\t\tJTextField[] textFieldArray = { firstTextField , secondTextField };\n\t\t\tint numberArrayToConverter = ( (firstTextField.isFocusOwner() || chooseUnitSecondBox.isFocusOwner() )) ? 0 : 1 ;\n\t\t\tString s = textFieldArray[numberArrayToConverter].getText().trim();\n\t\t\tif ( s.length() > 0 ){\n\t\t\t\tfirstTextField.setForeground(Color.BLACK);\n\t\t\t\tsecondTextField.setForeground(Color.BLACK);\n\t\t\t\ttry {\n\t\t\t\t\tdouble value = Double.valueOf(s);\n\t\t\t\t\tUnit unitFirstSelected = (Unit) chooseUnitFirstBox.getSelectedItem();\n\t\t\t\t\tUnit unitSecondSelected = (Unit) chooseUnitSecondBox.getSelectedItem();\n\t\t\t\t\tUnit[] unitArray = {unitFirstSelected , unitSecondSelected};\n\t\t\t\t\tint numberSwitch = (numberArrayToConverter == 0) ? 1 : 0 ;\n\t\t\t\t\ttextFieldArray[numberSwitch].setText( String.format(\"%.5g\", unitconverter.convert(value, unitArray[numberArrayToConverter], unitArray[numberSwitch])));\n\t\t\t\t} catch (NumberFormatException e){\n\t\t\t\t\tfirstTextField.setForeground(Color.RED);\n\t\t\t\t\tsecondTextField.setForeground(Color.RED);\n\t\t\t\t}\n\t\t\t}\n\t\t}", "@Override\n\t\tpublic void onTextChanged(CharSequence s, int start, int before, int count) {\n\t\t\ttry{\n\t\t\t\tbillAmount = Double.parseDouble(s.toString()) / 100.0;\n\t\t\t}\n\t\t\tcatch(NumberFormatException e)\n\t\t\t{\n\t\t\t\tbillAmount = 0.0;\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tamountDisplayTextView.setText(currencyFormat.format(billAmount));\n\t\t\tupdateStandard();\n\t\t\tupdateCustom();\n\t\t}", "private void initTextFields()\n\t{\n\t\talpha_min_textfield.setText(String.valueOf(rangeSliders.get(\"alpha\").getLowValue()));\n\t\talpha_max_textfield.setText(String.valueOf(rangeSliders.get(\"alpha\").getHighValue()));\n\t\teta_min_textfield.setText(String.valueOf(rangeSliders.get(\"eta\").getLowValue()));\n\t\teta_max_textfield.setText(String.valueOf(rangeSliders.get(\"eta\").getHighValue()));\n\t\tkappa_min_textfield.setText(String.valueOf(rangeSliders.get(\"kappa\").getLowValue()));\n\t\tkappa_max_textfield.setText(String.valueOf(rangeSliders.get(\"kappa\").getHighValue()));\n\t\t\n\t\ttry {\n\t\t\t// Add listener for focus changes.\n//\t\t\tnumberOfDatasets_textfield.focusedProperty().addListener(new ChangeListener<Boolean>() {\n//\t\t\t @Override\n//\t\t\t public void changed(ObservableValue<? extends Boolean> arg0, Boolean oldPropertyValue, Boolean newPropertyValue)\n//\t\t\t {\n//\t\t\t updateNumberOfDatasets(null);\n//\t\t\t }\n//\t\t\t});\n//\t\t\tnumberOfDivisions_textfield.focusedProperty().addListener(new ChangeListener<Boolean>() {\n//\t\t\t @Override\n//\t\t\t public void changed(ObservableValue<? extends Boolean> arg0, Boolean oldPropertyValue, Boolean newPropertyValue)\n//\t\t\t {\n//\t\t\t updateNumberOfDivisions(null);\n//\t\t\t }\n//\t\t\t});\n\t\t\t\n\t\t\t// Set initial values.\n\t\t\tnumberOfDatasetsToGenerate\t= Integer.parseInt(numberOfDatasets_textfield.getText());\n\t\t\tnumberOfDivisions\t\t\t= Integer.parseInt(numberOfDivisions_textfield.getText());\n\t\t\t\n\t\t\t// Disable number of divisions by default (since random sampling is enabled by default).\n\t\t\tnumberOfDivisions_textfield.setDisable(true);\n\t\t}\n\t\t\n\t\tcatch (NumberFormatException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void numberEvent(View view) {\n if (isNewOp)\n input.setText(\"\");\n isNewOp = false;\n String number = input.getText().toString();\n switch (view.getId()) {\n case R.id.oneBTN:\n number += \"1\";\n break;\n case R.id.twoBTN:\n number += \"2\";\n break;\n case R.id.threeBTN:\n number += \"3\";\n break;\n case R.id.fourBTN:\n number += \"4\";\n break;\n case R.id.fiveBTN:\n number += \"5\";\n break;\n case R.id.sixBTN:\n number += \"6\";\n break;\n case R.id.sevenBTN:\n number += \"7\";\n break;\n case R.id.eightBTN:\n number += \"8\";\n break;\n case R.id.nineBTN:\n number += \"9\";\n break;\n case R.id.zeroBTN:\n number += \"0\";\n break;\n case R.id.pointBTN:\n number += \".\";\n break;\n }\n input.setText(number);\n }", "@Override\r\n public void changed(ObservableValue<? extends Number> observable, Number oldValue, Number newValue) {\n try {\r\n int i = newValue.intValue();\r\n if (i < 0) {\r\n\r\n } else {\r\n if (tanggal.getCellData(i) == null) {\r\n\r\n } else {\r\n dtanggal.setValue(LocalDate.parse(tanggal.getCellData(i)));\r\n }\r\n ids = kode_transaksi.getCellData(i);\r\n tkode_bahan.setText(kode_bahan.getCellData(i));\r\n tnama.setText(nama_bahan.getCellData(i));\r\n tjumlah.setText(jumlah_total.getCellData(i));\r\n tharga.setText(harga_satuan.getCellData(i));\r\n cakunuang.getEditor().setText(tabledata.get(i).kode_akun_keuangan + \"-\"\r\n + tabledata.get(i).nama_akun_keuangan);\r\n }\r\n } catch (Exception e) {\r\n oh.error(e);\r\n }\r\n\r\n }", "@Override\n public void onChange() {\n java.lang.String callbackArg_0 = android.databinding.adapters.TextViewBindingAdapter.getTextString(mboundView4);\n // localize variables for thread safety\n // viewModel.obRealAmt\n android.databinding.ObservableField<java.lang.String> viewModelObRealAmt = null;\n // viewModel.obRealAmt != null\n boolean viewModelObRealAmtJavaLangObjectNull = false;\n // viewModel\n ys.app.pad.viewmodel.ModifyServiceDetailViewModel viewModel = mViewModel;\n // viewModel != null\n boolean viewModelJavaLangObjectNull = false;\n // viewModel.obRealAmt.get()\n java.lang.String viewModelObRealAmtGet = null;\n\n\n\n viewModelJavaLangObjectNull = (viewModel) != (null);\n if (viewModelJavaLangObjectNull) {\n\n\n viewModelObRealAmt = viewModel.obRealAmt;\n\n viewModelObRealAmtJavaLangObjectNull = (viewModelObRealAmt) != (null);\n if (viewModelObRealAmtJavaLangObjectNull) {\n\n\n\n\n viewModelObRealAmt.set(((java.lang.String) (callbackArg_0)));\n }\n }\n }", "private void numberMatchesTxtKeyReleased(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_numberMatchesTxtKeyReleased\n validateInput(false);\n }", "private void setNumServingsMonitor(final FoodItem fItem){\n numServings.addTextChangedListener(new TextWatcher() {\n @Override\n public void beforeTextChanged(CharSequence s, int start, int count, int after) {\n\n }\n\n @Override\n public void onTextChanged(CharSequence s, int start, int before, int count) {\n\n }\n\n @Override\n public void afterTextChanged(Editable s) {\n if(numServings.getText().toString().length() > 0) {\n try {\n double servings = Double.parseDouble(numServings.getText().toString());\n if(servings == 0 && calledFrom.equals(\"mainPage\")){\n fatAmountText.setText(\"0\");\n proteinAmountText.setText(\"0\");\n carbAmountText.setText(\"0\");\n totalCals.setText(\"0\");\n submitfoodButton.setText(\"Remove Food\");\n }\n else {\n if(calledFrom.equals(\"mainPage\")){\n submitfoodButton.setText(\"Edit Food\");\n }\n fatAmountText.setText(String.format(\"%.1f\", (fItem.getFatPerServing() * servings)));\n proteinAmountText.setText(String.format(\"%.1f\", (fItem.getProteinPerServing() * servings)));\n carbAmountText.setText(String.format(\"%.1f\", (fItem.getCarbsPerServing() * servings)));\n double totalFat = fItem.getFatPerServing() * servings;\n double totalCarbs = fItem.getCarbsPerServing() * servings;\n double totalProtein = fItem.getProteinPerServing() * servings;\n Log.e(\"Num servings \", \"\" + servings);\n totalCals.setText(getCalories(totalFat, totalCarbs, totalProtein) + \"\");\n }\n } catch (NumberFormatException e) {\n e.printStackTrace();\n }\n }\n }\n });\n }", "private void registerEditChange(){\n this.txtAmount.addTextChangedListener(new TextWatcher() {\n @Override\n public void beforeTextChanged(CharSequence s, int start, int count, int after) {\n\n }\n\n @Override\n public void onTextChanged(CharSequence s, int start, int before, int count) {\n\n }\n\n @Override\n public void afterTextChanged(Editable s) {\n //Checks if the button should be enabled\n checkIfEnable();\n }\n });\n }", "@Override\r\npublic void setNumber(int number) {\n\tsuper.setNumber(number);\r\n}", "public void updatedNumber(String key, Number val) {}", "private void monitorTextChange() {\n List<TextInputEditText> textInputEditTextList = new ArrayList<>();\n textInputEditTextList.add(tin_perLitrePrice); // first line is selected automatically\n textInputEditTextList.add(tin_fuelQuantityLitres);\n textInputEditTextList.add(tin_totalFuelPrice);\n textInputEditTextList.add(tin_currentKm);\n textInputEditTextList.add(tin_startingKm);\n textInputEditTextList.add(tin_distanceCovered);\n\n for (TextInputEditText item : textInputEditTextList) {\n\n\n item.addTextChangedListener(new TextWatcher() {\n @Override\n public void beforeTextChanged(CharSequence s, int start, int count, int after) {\n\n }\n\n @Override\n public void onTextChanged(CharSequence s, int start, int before, int count) {\n }\n\n @Override\n public void afterTextChanged(Editable s) {\n Log.d(TAG, \"afterTextChanged: \");\n fabSaveFuelData.hide(); // hide save button\n tv_calculatedAverage_addEdit.setText(\"--km/l\");\n }\n });\n }\n\n // tv_input_fuel_date is a TextView so we need to add this separately\n tv_input_fuel_date.addTextChangedListener(new TextWatcher() {\n @Override\n public void beforeTextChanged(CharSequence s, int start, int count, int after) {\n\n }\n\n @Override\n public void onTextChanged(CharSequence s, int start, int before, int count) {\n\n }\n\n @Override\n public void afterTextChanged(Editable s) {\n }\n });\n }", "private void addChangeListeners() {\n\t\troom.textProperty().addListener((observable, oldValue, newValue) -> {\n\t\t\tif (!hotel.getText().isEmpty() && !quality.getText().isEmpty()) {\n\t\t\t\tcalculatePrice();\n\t\t\t}\n\t\t});\n\t\thotel.textProperty().addListener((observable, oldValue, newValue) -> {\n\t\t\tif (!hotel.getText().isEmpty() && !quality.getText().isEmpty()) {\n\t\t\t\tcalculatePrice();\n\t\t\t}\n\t\t});\n\t\tquality.textProperty().addListener((observable, oldValue, newValue) -> {\n\t\t\tif (!hotel.getText().isEmpty() && !quality.getText().isEmpty()) {\n\t\t\t\tcalculatePrice();\n\t\t\t}\n\t\t});\n\t}", "private void addNumberListeners()\n\t{\n\t\tnine.addActionListener (new numberListener());\n\t\teight.addActionListener (new numberListener());\n\t\tseven.addActionListener (new numberListener());\n\t\tsix.addActionListener (new numberListener());\n\t\tfive.addActionListener (new numberListener());\n\t\tfour.addActionListener (new numberListener());\n\t\tthree.addActionListener (new numberListener());\n\t\ttwo.addActionListener (new numberListener());\n\t\tone.addActionListener (new numberListener());\n\t\tzero.addActionListener (new numberListener());\n\t\t\n\t}", "public void setNumDigits(int digits) {\r\n \r\n //Set Value\r\n numDigits = digits;\r\n \r\n }", "private void makeFormattedTextField(){\n textField = new JTextField(\"\"+ShapeFactory.getRoundness(), 3);\n //add listener that happens after each type and make the field accept only numbers between 0 to 100\n textField.addKeyListener(new KeyAdapter() {\n @Override\n public void keyTyped(KeyEvent e) {\n super.keyTyped(e);\n typeEvent(e);\n }\n });\n }", "@Override\n public void onValueChange(NumberPicker picker, int oldVal, int newVal) {\n\n if(newVal<=0)\n {\n txtWellnessActivityTTHErrorMessage.setVisibility(View.VISIBLE);\n }\n else\n {\n txtWellnessActivityTTHErrorMessage.setVisibility(View.GONE);\n }\n }", "private void processNumericValues(ReportConcept entry, ConceptLabel lbl) {\n\t\tif (isNumber(entry.getConceptClass()) && !entry.getConceptEntry().hasNumericValue()) {\n\t\t\tentry.setNumericValue(TextHelper.parseDecimalValue(lbl.getText()));\n\t\t}\n\t}", "@Override\n\t\t\t\tpublic void changedUpdate(DocumentEvent e) {\n\t\t\t\t\tchange();\n\t\t\t\t}", "private void raze_it_to_the_ground() {\n \tinitialNumberField.replace(0, initialNumberField.toString().length(), \"0\");\n\t\tnumbersField.setText(initialNumberField.toString());\n \t}", "@Override // androidx.lifecycle.Observer\n public void onChanged(Integer num) {\n Integer num2 = num;\n if (num2 != null) {\n this.a.c.scrollToPosition(num2.intValue());\n }\n }", "private void numberInputFilter(){\n \t\n \t\n \tthis.telNumber.setFilters(new InputFilter[]{new InputFilter() {\n\t\t\t\n\t\t\tpublic CharSequence filter(CharSequence source, int start, int end,\n\t\t\t\t\tSpanned dest, int dstart, int dend) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}});\n \t\n }", "private void OnChanged(boolean focus)\r\n {\n if (!focus)\r\n {\r\n //If the validation returns false (the field doesn't match)\r\n if (!Validate())\r\n {\r\n //Reset the text to the default\r\n setText(\"000-000-0000\");\r\n selectAll();\r\n }\r\n }\r\n }", "public void update() {\r\n\t\tif (firstRow > maxRows) {\r\n\t\t\tfirstRow = maxRows;\r\n\t\t\tfromRowField.setText(firstRow + \"\");\r\n\t\t}\r\n\t\tif (lastRow > maxRows) {\r\n\t\t\tlastRow = maxRows;\r\n\t\t\ttoRowField.setText(lastRow + \"\");\r\n\t\t}\r\n\t\tif (firstColumn > maxColumns) {\r\n\t\t\tfirstColumn = maxColumns;\r\n\t\t\tfromColumnField.setText(firstColumn + \"\");\r\n\t\t}\r\n\t\tif (lastColumn > maxColumns) {\r\n\t\t\tlastColumn = maxColumns;\r\n\t\t\ttoColumnField.setText(lastColumn + \"\");\r\n\t\t}\r\n\r\n\t\tIterator i = listeners.iterator();\r\n\t\twhile (i.hasNext()) {\r\n\t\t\t((DataControlListener) i.next()).update(firstRow, lastRow, firstColumn, lastColumn, fractionDigits);\r\n\t\t}\r\n\t}", "private void parseAndFormatInput() {\n try {\n String input = getText();\n if (input == null || input.length() == 0) {\n return;\n }\n Number parsedNumber = nf.parse(input);\n BigDecimal newValue = new BigDecimal(parsedNumber.toString());\n setNumber(newValue);\n selectAll();\n } catch (ParseException ex) {\n // If parsing fails keep old number\n setText(nf.format(number.get()));\n }\n }", "private void gdsNumbersChanged()\n \t{\n \t\tif (changingGDS) return;\n \t\tString str = (String)gdsLayersList.getSelectedValue();\n \t\tLayer layer = gdsGetLayer(str);\n \t\tif (layer == null) return;\n \n \t\t// the layer information\n \t\tString newLine = gdsLayerNumber.getText().trim();\n \t\tint layerType = TextUtils.atoi(gdsLayerType.getText().trim());\n \t\tif (layerType != 0) newLine += \"/\" + layerType;\n \n \t\t// the pin information\n \t\tString pinLayer = gdsPinLayer.getText().trim();\n \t\tint pinType = TextUtils.atoi(gdsPinType.getText().trim());\n \t\tif (pinLayer.length() > 0 || pinType != 0)\n \t\t{\n \t\t\tnewLine += \",\" + pinLayer;\n \t\t\tif (pinType != 0) newLine += \"/\" + pinType;\n \t\t\tnewLine += \"p\";\n \t\t}\n \n \t\t// the text information\n \t\tString textLayer = gdsTextLayer.getText().trim();\n \t\tint textType = TextUtils.atoi(gdsTextType.getText().trim());\n \t\tif (textLayer.length() > 0 || textType != 0)\n \t\t{\n \t\t\tnewLine += \",\" + textLayer;\n \t\t\tif (textType != 0) newLine += \"/\" + textType;\n \t\t\tnewLine += \"t\";\n \t\t}\n \t\tString wholeLine = layer.getName();\n if (newLine.length() > 0) wholeLine = wholeLine + \" (\" + newLine + \")\";\n \t\tint index = gdsLayersList.getSelectedIndex();\n \t\tgdsLayersModel.set(index, wholeLine);\n Foundry foundry = (Foundry)foundrySelection.getSelectedItem();\n setString(foundry.getGDSLayerSetting(layer), newLine);\n \t}", "IntegerTextField getNumberInputField() {\n\t\treturn numberInputField;\n\t}", "public void setInputNumberListener(InputNumberListener inputNumberListener){\r\n\t\tthis.inputNumberListener = inputNumberListener;\r\n\t}", "@Override\n\t\t\tpublic void changedUpdate(DocumentEvent arg0) {\n\t\t\t}", "public void donutTypeChosen()\n {\n changeSubtotalTextField();\n }", "private void initialiseNumberPickers() {\n\n ViewGroup pickerElements = (ViewGroup) findViewById(R.id.pickerLayout);\n for (int j = 0; j < pickerElements.getChildCount(); j++) {\n View grandchild = pickerElements.getChildAt(j);\n if (grandchild instanceof NumberPicker) {\n\n ((NumberPicker) grandchild).setMaxValue(9);\n ((NumberPicker) grandchild).setMinValue(0);\n if (grandchild.getId() == R.id.tenSecondPicker) {\n ((NumberPicker) grandchild).setMaxValue(5);\n }\n }\n }\n }", "@Override\n\t\t\t\tpublic void changedUpdate(final DocumentEvent e) {\n\t\t\t\t}", "@Override\r\n public void afterTextChanged(Editable editable) {\n checkFieldsForEmptyValues();\r\n }", "private void updateFieldValues(){\r\n \tgenChainLengthField.setText(String.valueOf(settings.genChainLength));\r\n \tgenChainLengthFluxField.setText(String.valueOf(settings.genChainLengthFlux));\r\n \tstepGenDistanceField.setText(String.valueOf(settings.stepGenDistance));\r\n \trowsField.setText(String.valueOf(settings.rows));\r\n \tcolsField.setText(String.valueOf(settings.cols));\r\n \tcellWidthField.setText(String.valueOf(settings.cellWidth));\r\n \tstartRowField.setText(String.valueOf(settings.startRow));\r\n \tstartColField.setText(String.valueOf(settings.startCol));\r\n \tendRowField.setText(String.valueOf(settings.endRow));\r\n \tendColField.setText(String.valueOf(settings.endCol));\r\n \tprogRevealRadiusField.setText(String.valueOf(settings.progRevealRadius));\r\n \tprogDrawCB.setSelected(settings.progDraw);\r\n \tprogDrawSpeedField.setText(String.valueOf(settings.progDrawSpeed));\r\n }", "public void SetImportedNumbet(String pNumber) {\r\n if (editTextCounter == txtAddFnFBl.getId()) {\r\n txtAddFnFBl.setText(pNumber);\r\n btnAddFnfSendBl.setEnabled(true);\r\n editTextCounter = 0;\r\n } else if (editTextCounter == txtAddSFnFBl.getId()) {\r\n txtAddSFnFBl.setText(pNumber);\r\n btnAddSFnfSendBl.setEnabled(true);\r\n editTextCounter = 0;\r\n } else if (editTextCounter == txtDeleteFnfBl.getId()) {\r\n txtDeleteFnfBl.setText(pNumber);\r\n btnDeleteFnfSendBl.setEnabled(true);\r\n editTextCounter = 0;\r\n } else if (editTextCounter == txtChangeFnfOldBl.getId()) {\r\n txtChangeFnfOldBl.setText(pNumber);\r\n btnChangeFnfSendBl.setEnabled(true);\r\n editTextCounter = 0;\r\n } else if (editTextCounter == txtChangeFnfNewBl.getId()) {\r\n txtChangeFnfNewBl.setText(pNumber);\r\n btnChangeFnfSendBl.setEnabled(true);\r\n editTextCounter = 0;\r\n } else if (editTextCounter == txtChangeSFnfOldBl.getId()) {\r\n txtChangeSFnfOldBl.setText(pNumber);\r\n btnChangeSFnfSendBl.setEnabled(true);\r\n editTextCounter = 0;\r\n } else if (editTextCounter == txtChangeSFnfNewBl.getId()) {\r\n txtChangeSFnfNewBl.setText(pNumber);\r\n btnChangeSFnfSendBl.setEnabled(true);\r\n editTextCounter = 0;\r\n }\r\n }", "@Override\r\n public void changedUpdate(DocumentEvent e)\r\n {\n }", "public boolean getANumberChanged() {\r\n return !OpbComparisonHelper.isEqual(\r\n aNumber, aNumberDataSourceValue);\r\n }", "private void dialogChanged() {\n\t\tString teamNumber = getTeamNumber();\n\t\tif (listener != null) listener.stateChanged(null); \n\t\tif (!teamNumber.matches(\"^([1-9][0-9]*)$\")) {\n\t\t\tupdateStatus(\"Team number must be a valid integer without leading zeroes.\");\n\t\t\treturn;\n\t\t}\n\t\tupdateStatus(null);\n\t}", "private void updateTextValue(EditText text, Double value) {\n if (editTextValues.get(text) == null) {\n errorCnts--;\n }\n editTextValues.put(text, value);\n if (editTextValues.get(text) == null) {\n errorCnts++;\n }\n }", "@Override\n public void changed(ObservableValue<? extends String> observable, String oldValue, String newValue) {\n if (!newValue.matches(\"(\\\\d*)|(\\\\d+\\\\.\\\\d{0,2})\")) {\n costHelpText.setVisible(true);\n fadeInThenOutCostHelp.play();\n costText.setText(oldValue);\n }\n }", "public GeopodIntegerTextField ()\r\n\t{\r\n\t\tsuper ();\r\n\t\tsuper.addFocusListener (this);\r\n\t\tsetDefaultValidRange ();\r\n\t}", "public void addNumbers (View view) {\n errorTrap();\n double sum = Double.parseDouble(num1.getText().toString()) + Double.parseDouble(num1.getText().toString());\n result.setText(\"SUM: \"+sum);\n }", "void valueChanged(CalcModel model);", "void valueChanged(CalcModel model);", "private final void m88846e() {\n this.f62188b.addTextChangedListener(this.f62191e);\n }", "@Override\n public void onFocusChange(View v, boolean hasFocus) {\n if (!hasFocus && hasBeenSetManually) {\n // process input\n StringBuilder sb = new StringBuilder(editText.getText());\n\n int dotIndex = sb.length() - 3;\n\n if (sb.charAt(dotIndex) == '.') {\n sb.deleteCharAt(dotIndex);\n } else {\n sb.append(\"00\");\n }\n\n long newDebt = Long.parseLong(sb.toString());\n // if condition to check if it's a new value and does needs recalculation\n if (newDebt != debt) {\n prevDebt = debt;\n debt = newDebt;\n\n // use tag \"temp\" to signal that this was set programmatically and not trigger On Checked Change Listener\n editText.setTag(\"temp\");\n DecimalFormat df = new DecimalFormat(\"0.00\");\n editText.setText(df.format((double) newDebt / 100));\n editText.setTag(null);\n\n // if this checkbox's value has been added to the total manually set debt before\n if (hasBeenSetManually && hasBeenAddedToTotal) {\n // subtract it first\n manuallySetTotalDebt -= prevDebt;\n } else {\n manuallySetCheckedCheckedBoxes++;\n hasBeenAddedToTotal = true;\n }\n\n manuallySetTotalDebt += newDebt;\n calculateDebtDistribution();\n }\n }\n }", "@Override\n\t\tpublic void changedUpdate(DocumentEvent e) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void onTextChanged(CharSequence s, int start, int before, int count) {\n\t\t\ttry{\n\t\t\t\tperson = Integer.parseInt(s.toString());\n\t\t\t}\n\t\t\tcatch(NumberFormatException e)\n\t\t\t{\n\t\t\t\tperson = 1;\t\t\t\n\t\t\t}\n\t\t\tupdateStandard();\n\t\t\tupdateCustom();\n\t\t}", "@Override\r\n\t\t\tpublic void changedUpdate(DocumentEvent e) {\n\t\t\t}", "void resetTextFields();", "@Override\n\t\t\tpublic void changeSelectItem(int selectNum) {\n\t\t\t\tholder.num = selectNum;\n\t\t\t\tLogUtils.burtLog(\"selectNum==\"+selectNum);\n\t\t\t\tholder.tv_store.setText(\"-\"+selectNum*item.data.zsmdwypxhjfs+\" 剩余\"\n\t\t\t\t\t\t+(item.data1.num_syjf-selectNum*item.data.zsmdwypxhjfs));\n\t\t\t}", "@Override\r\n\tpublic void numberSelectedProfilesChanged(int number) {\r\n\t\tlabelValueSelectProfiles.setText(\"\" + number);\r\n\t}", "@Override\n\tpublic void changedUpdate(DocumentEvent e)\n\t{\n\t\t\n\t}", "@Override\n public void afterTextChanged(Editable editable) {\n checkFieldsForEmptyValues();\n }", "private void updateFields(){\n\n updateTotalPay();\n updateTotalTip();\n updateTotalPayPerPerson();\n }", "private void rowCountTextFldFocusLost(java.awt.event.FocusEvent evt) {\n }", "private void event(KeyEvent e ,JTextField textField) {\n\t\tchar n = e.getKeyChar();\r\n\t\tif (!Character.isDigit(n) && n != 8 && n != 46)\r\n\t\t{\r\n\t\t\tlogp(INFO, getClassName(GraphicalUserInterface.class), \"event\", \"Вы ввели не числовое значение\".concat(textField.getText()));\r\n\t\t\ttextField.setEditable(false);\r\n\t\t}else {\r\n\t\t\tlogp(INFO, getClassName(GraphicalUserInterface.class), \"event\", \"Вы ввели числовое значение\".concat(textField.getText()));\r\n\t\t\ttextField.setEditable(true);\r\n\t\t}\r\n\t}", "@Override\n public void keyTyped(KeyEvent keyEvent) {\n JTextField source = (JTextField) keyEvent.getSource();\n String currentText = source.getText();\n if(keyEvent.getKeyCode() != KeyEvent.VK_BACK_SPACE) {\n currentText += keyEvent.getKeyChar();\n }\n valid = canConvertTextToFloat(currentText);\n if(keyEvent.getKeyCode() == KeyEvent.VK_BACK_SPACE && source.getText().length() != 0) {\n currentText = source.getText().substring(0, source.getText().length()-1);\n valid = canConvertTextToFloat(currentText);\n }\n formValidatorWorker.performValidation();\n }", "@Override\n public void changed(ObservableValue<? extends Number> observable, Number oldValue, Number newValue) {\n gc.setLineWidth(newValue.doubleValue());\n }", "@Override\n\tpublic boolean valueChanged() {\n\t\treturn false;\n\t}", "public void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\t\t\tif( txt_showresult.getText().equals( \"0\" )){ \n\t\t\t\t\t\t\t\ttxt_showresult.setText(\"9\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// if textfield show other value , add number after the value\n\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\ttxt_showresult.setText( txt_showresult.getText() + \"9\");\n\t\t\t\t\t\t\t}\t\t\n\t\t\t\t\t\t}", "public void setNumber(int number)\n {\n Number = number;\n }", "public void fieldChanged(Field<?> field) {\n\t\tif (unbound)\n\t\t\treturn;\n\t\t\n\t\tif (!field.isRendered())\n\t\t\treturn;\n\t\tif (field == slider) {\n\t\t\tsetFromSlider();\n\t\t} else if (field == minDate) {\n\t\t\tsetSliderMinDays();\n\t\t} else {\n\t\t\tsetFromDates();\n\t\t}\n\t}", "@Override\n public void onFocusChange(View v, boolean hasFocus) {\n if (!hasFocus) {\n // if user inputted something i.e. not empty\n if (!amountEditText.getText().toString().equalsIgnoreCase(\"\")) {\n // process input\n StringBuilder sb = new StringBuilder(amountEditText.getText());\n\n int dotIndex = sb.indexOf(\".\");\n\n if (dotIndex > -1) {\n sb.deleteCharAt(dotIndex);\n } else {\n sb.append(\"00\");\n }\n\n totalDebt = Long.parseLong(sb.toString());\n // reset all payee data when user re-inputs amount\n manuallySetCheckedCheckedBoxes = 0;\n manuallySetTotalDebt = 0;\n calculateDebtDistribution(true);\n }\n }\n }", "public void setOnlyFloat() {\r\n\t\tPlatform.runLater(() -> {\r\n\t\t\ttextfield.textProperty().addListener(new ChangeListener<String>() {\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void changed(ObservableValue<? extends String> observable, String oldValue, String newValue) {\r\n\t\t\t\t\tif (!newValue.matches(onlyFloatRegex)) {\r\n\t\t\t\t\t\ttextfield.setText(oldValue);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t});\r\n\t}", "public void setupTextFields(View v) {\n other = (EditText) v.findViewById(R.id.eText_Notes);\n totalTotes = (EditText) v.findViewById(R.id.eText_NumStacked);\n\n other.addTextChangedListener(new TextWatcher() {\n @Override\n public void beforeTextChanged(CharSequence s, int start, int count, int after) {\n }\n\n @Override\n public void onTextChanged(CharSequence s, int start, int before, int count) {\n }\n\n @Override\n public void afterTextChanged(Editable s) {\n ((ScoutFormActivity) getActivity()).getScoutForm().setENOTES_COLUMN(other.getText().toString());\n }\n });\n\n totalTotes.addTextChangedListener(new TextWatcher() {\n @Override\n public void beforeTextChanged(CharSequence s, int start, int count, int after) {\n }\n\n @Override\n public void onTextChanged(CharSequence s, int start, int before, int count) {\n }\n\n @Override\n public void afterTextChanged(Editable s) {\n ((ScoutFormActivity) getActivity()).getScoutForm().setEBONUSTOTAL_COLUMN(totalTotes.getText().toString());\n }\n });\n }", "public void fieldChanged(Field field, int context) {\n\t\t\n\t}" ]
[ "0.6799893", "0.66373307", "0.65059245", "0.645344", "0.64282715", "0.642674", "0.6305292", "0.6223068", "0.6205492", "0.61965525", "0.6163559", "0.6106315", "0.6092356", "0.6081882", "0.6058185", "0.60546833", "0.60417044", "0.60287184", "0.6019658", "0.59794", "0.59572524", "0.593681", "0.593291", "0.5924558", "0.5883923", "0.5866579", "0.5859149", "0.58355635", "0.58262753", "0.5819166", "0.5808179", "0.58076924", "0.5784843", "0.5779517", "0.57682973", "0.5767179", "0.5737581", "0.57232165", "0.571014", "0.569722", "0.5689042", "0.5687224", "0.5681605", "0.56760657", "0.56746095", "0.5666964", "0.56639403", "0.56320226", "0.5627622", "0.56217307", "0.56139994", "0.56031036", "0.55884016", "0.5585823", "0.5575211", "0.5556086", "0.55461407", "0.55454105", "0.55442303", "0.5542958", "0.5537879", "0.55210596", "0.55172956", "0.55170155", "0.5515364", "0.5512178", "0.550614", "0.55013424", "0.5494251", "0.54816014", "0.5477269", "0.5476911", "0.54679567", "0.5467349", "0.5466107", "0.54610634", "0.5443701", "0.5443701", "0.5443071", "0.5442327", "0.5432659", "0.54285777", "0.54277265", "0.5424294", "0.5421389", "0.5421104", "0.54085296", "0.54050165", "0.54002416", "0.5393888", "0.5387254", "0.53860176", "0.5375748", "0.5374071", "0.53675354", "0.53628004", "0.53625715", "0.5360837", "0.53606385", "0.5359541", "0.5356136" ]
0.0
-1
verifying slot table numbers are updated on clicking spin
@Test(priority = 3, enabled = true) public void spinUpdatesSlotTable() { spin(); int[][] slot1 = slotNumbers(); spin(); int[][] slot2 = slotNumbers(); // compare table displayed after spin is not equal to previous // table Assert.assertTrue(slot1 != slot2); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void SpinActionPerformed(ActionEvent evt) {\n\t\t//player has to bet before spinning the reels\n\t\tif (obj.getBet() > 0) {\n\t\t\tisSpining = true;\n\t\t\tnew SlotMachineController().startSpining();\n\t\t} else {\n\t\t\tJOptionPane.showMessageDialog(null, \"You should bet first.\");\n\t\t}\n\t}", "@Test\n public final void testModifySpinners() {\n int rows = 7;\n int columns = 8;\n spysizedialog.getRowSpinner().setValue(rows);\n spysizedialog.getColumnsSpinner().setValue(columns);\n assertEquals(rows, spysizedialog.getRows());\n assertEquals(columns, spysizedialog.getColumns());\n }", "public void newSlot(boolean moved, boolean check)\r\n {\r\n \r\n // Insert Win and Lose Situation\r\n if (high < currentScore) high = currentScore;\r\n if (moved == true && !(check)){\r\n Random rand = new Random();\r\n int slot, x, y;\r\n slot = rand.nextInt((4 * 4));\r\n x = slot % 4;\r\n y = slot / 4;\r\n for (int i = 0; i < 16; i++) {\r\n if (grid[y][x] == 0) {\r\n int a = rand.nextInt(5)+1;\r\n if (a == 1 || a == 4|| a == 3 || a == 5) a = 1;\r\n if (a == 2 ) a = 2;\r\n grid[y][x] = a;\r\n gui.setNewSlotBySlotIndex(y, x, grid[y][x]);\r\n break;\r\n } else if (x == 3) {\r\n x = 0;\r\n y++;\r\n } else\r\n x++;\r\n if (y == 4)\r\n y = 0; \r\n }}}", "public boolean isSlot(int i);", "public void setSlotNumber(int value) {\n this.slotNumber = value;\n }", "@Test\r\n public void testReserveSlot() {\r\n System.out.println(\"reserveSlot\");\r\n Table instance = new Table(\"S\",2);\r\n boolean expResult = true;\r\n boolean result = instance.reserveSlot();\r\n assertEquals(expResult, result);\r\n \r\n }", "private void checkTheSummaryInformation(int slots) {\n int newSlotTotal = Integer.valueOf(driverWrapper.getData(\"slotsBalance\")) + slots;\n assertTrue(\"The slot balance total is incorrect\",\n driverWrapper.getElementText(\"successMessage\").contains(String.valueOf(newSlotTotal)));\n\n //And I check the slots are correct\n assertTrue(\"The slots purchased are incorrect\",\n driverWrapper.getElementText(\"amountOrdered\").contains(String.valueOf(slots)));\n\n //And I check the total cost is correct\n DecimalFormat df = new DecimalFormat(\"#,###.00\");\n String totalCost = df.format(slots * slotCost);\n assertTrue(\"The total cost was incorrect\",\n driverWrapper.getElementText(\"totalCost\").contains(totalCost));\n }", "private void updateShipsAndSpinners() {\n this.simulationSpeed = menuPanel.getSimulationSpeed();\n this.simulation.setSimulationSpeed(simulationSpeed);\n //assign amount of ships requested to the local variable\n int shipsRequested = menuPanel.getShipCount();\n\n //add or remove amount of ships depending on difference\n if(shipCount < shipsRequested) {\n int diff = shipsRequested - shipCount;\n for (int i = 0; i < diff; i++) {\n simulation.addShip();\n }\n }else if (shipCount > shipsRequested) {\n int diff = shipCount - shipsRequested;\n for (int i = 0; i < diff; i++) {\n simulation.removeShip();\n }\n }\n\n //update spinners so that values will not destroy simulation or collide with assumptions given for the task\n if(this.shipCount!=shipsRequested) {\n menuPanel.updateTugSpinner(simulation.getMinimumTugsRequired(), simulation.getCountOfAllTugsRequired());\n menuPanel.updateQuaySpinner(shipsRequested);\n menuPanel.setSpinnerListeners(); //important, because update functions recreate spinners without listeners\n }\n //update local values\n this.quayCount = menuPanel.getQuayCount();\n this.tugCount = menuPanel.getTugCount();\n this.shipCount = shipsRequested;\n\n }", "static int rouletteSpinMartingale(int slots, int zeroes, long money, int bet) {\n\n // Initialize variables\n int min = 1;\n int max = slots;\n // Assigns number of 0s or 00s to the beginning of the wheel\n int zeroSlots = zeroes;\n int win = 0;\n long moneyLeft = money;\n long currentBet = bet;\n // Random number generator for spin within the bounds of number of slots chosen\n int random;\n\n do {\n // If number is odd or hits one of the zero slots, it is a loss and money is adjusted, bet doubled, and function called with new arguments and spins again\n random = ThreadLocalRandom.current().nextInt(min, max + 1);\n if (random % 2 == 1 || random <= zeroSlots) {\n moneyLeft = moneyLeft - currentBet;\n currentBet = currentBet * 2;\n } else {\n win++;\n }\n // Continues do/while loop if user hasn't won and can still double bet\n } while (win < 1 && moneyLeft > currentBet);\n\n // Returns a 1 for win or 0 if the user went broke\n if (win == 1) {\n return 1;\n } else {\n return 0;\n }\n\n }", "private void orderSlots(int slots) {\n //Current slot balance from page\n int slotsBalance = Integer.parseInt(driverWrapper.getElementText(\"slot-count\")\n .split(\"\\n\")[0].replace(\",\", \"\"));\n\n //Set the number of current slots in the driver\n driverWrapper.setData(\"slotsBalance\", Integer.toString(slotsBalance));\n\n //Set the number of slots purchased\n driverWrapper.setData(\"slotsAdditon\", Integer.toString(slots));\n\n //Set the new total of slots purchased\n driverWrapper.setData(\"slotsNewTotal\", Integer.toString(slots + slotsBalance));\n\n //And I click the buy slots link\n driverWrapper.clickLink(\"Buy slots\");\n\n //And I enter slots into the slots field\n driverWrapper.enterIntoField(String.valueOf(slots), \"How many slots do you want to buy?\");\n\n //And I press the calculate costs button\n driverWrapper.pressButton(\"Calculate cost\");\n\n //And I check the order summary is correct\n String amount = driverWrapper.getTextFromTableRow(\"Amount ordered\");\n String cost = driverWrapper.getTextFromTableRow(\"At a total cost of\");\n DecimalFormat df = new DecimalFormat(\"#,###.00\");\n\n assertTrue(\"The amount of slots ordered is incorrect\", amount.contains(String.valueOf(slots)));\n assertTrue(\"The total cost is incorrect\", cost.contains(df.format(slots * slotCost)));\n\n //And I click the continue link\n driverWrapper.clickLink(\"Continue\");\n }", "public void setSlot(int slot) {\n this.slot = slot;\n }", "public void actionPerformed(ActionEvent arg0) {\n\t\t \t\tspinnerQuantity.setModel(new SpinnerNumberModel(new Integer(0), new Integer(0), null, new Integer(1)));\n//\t\t \t\tthis is the code to clear table data\n\t\t\t\ttable.setModel(new DefaultTableModel(null,new String[]{\"ProductID\", \"ProductName\", \"Qty\", \"Price\", \"Amount\"}));\n\t\t \t\ttextArea.setText(\"\");\n\t\t \t\ttextField_Total.setText(\"\");\n\t\t \t\ttextField_Pay.setText(\"\");\n\t\t \t\ttextField_Balance.setText(\"\");\n\t\t \t\ttextFieldEnterTokenNumber.setText(\"\");\n//\t\t \t\tspinnerQuantity.getValue();\n//\t\t \t\tspinnerQuantity.setValue(1);\n\n//\t\t \t\thourSpinner = new JSpinner(new SpinnerNumberModel(1, 1, 24, 1));\n//\t\t \t\tspinnerQuantity = new JSpinner(new SpinnerNumberModel(1, 1, 24, 1));\n//\t\t \t\tspinnerQuantity.On\n//\t\t \t\tspinnerQuantity.setValue(0);\n\n\t\t\t\t\n\t\t \t\t\n\t\t \t\t\n\t\t\t\t\n\t\t \t}", "public void actionPerformed(ActionEvent e){\n\t\t// If spin button is pressed\n\t\tif (e.getSource() == this.view.getButtonPanel().getSpinButton()){\n\t\t\tthis.model.updateSlots(); // Select 3 new cards\n\t\t\tthis.model.checkSlots(); // Check those cards to update the play balance\n\t\t\tthis.view.spinState(); // Update the view to display new cards and outcome to player\n\t\t// If new game button is pressed\n\t\t} else if (e.getSource() == this.view.getButtonPanel().getNewGameButton()){\n\t\t\tthis.model.setPlayerBalance(100); // Re-initialise current player balance\n\t\t\tthis.view.newGameState(); // Reset view to initial game state\n\t\t}\n\t}", "private void statsActionPerformed(ActionEvent evt) {\n\t\t//if the reels are nor spinning perform the the action\n\t\tif (!isSpining)\n\t\t\tnew StatsGUIInterface().setVisible(true);\n\t}", "public void tableStarted(int position) {\r\n }", "@Test\n public final void testInitialSpinners() {\n int standardrows = 5;\n int standardcolumns = 5;\n assertEquals(standardrows, spysizedialog.getRows());\n assertEquals(standardcolumns, spysizedialog.getColumns());\n}", "@Override\n public void actionPerformed(ActionEvent e) {\n int selection = statsTable.getSelectedRow();\n if(selection != -1) {\n int modelIndex = statsTable.getRowSorter().convertRowIndexToModel(selection);\n String str = (String) statsTable.getModel().getValueAt(modelIndex, 0);\n int index = map.getSettlement(str);\n Settlement settlementSelected = map.getSettlements()[index];\n\n int numberOfSick = (int) (settlementSelected.getNumOfHealthy() * 0.1);\n\n for (int i = 0; i < numberOfSick; i++) {\n Person currentHealthy = settlementSelected.getHealthyPerson().get(0); // take the first person Healthy in the list of HealthyPeople\n settlementSelected.isSick(currentHealthy, Main.randomVirus(map));\n }\n statsTable.repaint();\n mainWin.repaint();\n }\n else{\n JOptionPane.showMessageDialog(new JFrame(), \"Select a row!\", \"Statistics Error\",\n JOptionPane.ERROR_MESSAGE);\n }\n }", "public int getSlotNumber() {\n return slotNumber;\n }", "public void actionPerformed(ActionEvent event) {\n String name = signOutField.getText();\r\n try {\r\n int periodNum = Integer.parseInt(signOutNumField.getText());\r\n boolean periodExists = false;\r\n for (int x = 0; x < teachers.get(teacherUser).getPeriodNumbers().size(); x++) {\r\n if (periodNum == teachers.get(teacherUser).getPeriodNumbers().get(x)) {\r\n periodExists = true;\r\n }\r\n } \r\n if (periodExists) { \r\n int index = generalInventoryTable.getSelectedRow();\r\n int teacherIndex = teacherList.getSelectedIndex();\r\n String selectedID = (String)generalInventoryTable.getValueAt(index, 0);\r\n //Setting values for the book\r\n bookInv.getBook(selectedBookset, selectedID).setInStockStatus(false);\r\n bookInv.getBook(selectedBookset, selectedID).setStudentName(name);\r\n bookInv.getBook(selectedBookset, selectedID).setTeacherName(teachers.get(teacherIndex).getName());\r\n bookInv.getBook(selectedBookset, selectedID).setPeriodNum(periodNum);\r\n //Updating the general table\r\n generalInventoryTable.getModel().setValueAt(\"Checked Out\", index, 1);\r\n generalInventoryTable.getModel().setValueAt(name, index, 2);\r\n generalInventoryTable.getModel().setValueAt(teachers.get(teacherIndex).getName(), index, 3);\r\n //Updating the period table\r\n int periodIndex = teachers.get(teacherIndex).getPeriodNumbers().indexOf(periodNum);\r\n DefaultTableModel model = (DefaultTableModel)periodInfoTables[periodIndex].getModel();\r\n model.addRow(new String[]{selectedBookset, selectedID, name});\r\n //Saving inventory\r\n try{\r\n bookInv.saveInv();\r\n }catch(IOException e){}\r\n //Resetting the text fields\r\n signOutField.setText(\"\");\r\n signOutNumField.setText(\"\");\r\n //Resetting the bookset label values\r\n BookSet tempBookSet = bookInv.getBookSet(selectedBookset);\r\n numberOfBooks.setText(\"Number of Books: \" + tempBookSet.getSize());\r\n inStock.setText(\"In Stock: \" + tempBookSet.getNumInStock());\r\n numBooksCheckedOut.setText(\"# of Books Checked Out: \" + (tempBookSet.getSize() - tempBookSet.getNumInStock()));\r\n signOutFrame.setVisible(false); //Removing the frame\r\n } else {\r\n JLabel signOutWarning1 = new JLabel(\"Please enter a valid period!\");\r\n signOutWarning1.setFont(new Font(\"Arial\", Font.PLAIN, 16));\r\n JOptionPane.showMessageDialog(new JFrame(), signOutWarning1, \"Sign Out Error\", JOptionPane.ERROR_MESSAGE);\r\n }\r\n } catch (Exception E) {\r\n JLabel signOutWarning2 = new JLabel(\"Please enter a valid period!\");\r\n signOutWarning2.setFont(new Font(\"Arial\", Font.PLAIN, 16));\r\n JOptionPane.showMessageDialog(new JFrame(), signOutWarning2, \"Sign Out Error\", JOptionPane.ERROR_MESSAGE);\r\n }\r\n }", "public void actionPerformed(ActionEvent event)\n\t\t\t\t\t{\n\t\t\t\t\t\tint row = Integer.parseInt(rowField.getText());\n\t\t\t\t\t\tint column = Integer.parseInt(columnField.getText());\n\t\t\t\t\t\tif(chart.isFull() == false){\n\t\t\t\t\t\t\tif(column>0 && column<5 && row>0 && row<51){\n\t\t\t\t\t\t\t\trowField.setText(\"\");\n\t\t\t\t\t\t\t\tcolumnField.setText(\"\");\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(chart.checkSeat(column-1,row-1) == true){\n\t\t\t\t\t\t\t\t\tchart.setSeat(column-1, row-1, 3);\n\t\t\t\t\t\t\t\t\tSystem.out.println(column + \",\" + row + \" is booked by: 3\");\n\t\t\t\t\t\t\t\t\tpendingField.setText(\"(\" + column + \",\" + row + \") has been booked\");\n\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\tpendingField.setText(\"(\" + column + \",\" + row + \") is taken\");\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\trowField.setText(\"\");\n\t\t\t\t\t\t\t\tcolumnField.setText(\"\");\n\t\t\t\t\t\t\t\tpendingField.setText(\"(\" + column + \",\" + row + \") doesn't exist\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tpendingField.setText(\"Plane is full!\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t}", "public void selectSlot() {\n\t\t\r\n\t}", "public int getSlot() {\n return slot;\n }", "public int getSlot() {\n return slot;\n }", "public void setSlot (Slot slot)\r\n {\r\n this.slot = slot;\r\n }", "void setSpinCount(long spinCount);", "public int getSlot() {\r\n\t\treturn slot;\r\n\t}", "public void ShowSchedule(ArrayList<TimeSlot> f_timeSlots)\n {\n this.timeSlots = f_timeSlots;\n\n LinearLayout scheduleLayout = (LinearLayout) findViewById(R.id.scheduleLayout);\n //Remove previous schedule, if any\n scheduleLayout.removeAllViews();\n\n for(int i = 0; i<48; i++)\n {\n final Button slot = new Button(this);\n\n slot.setTextAppearance(this, R.style.TimeTableStyle);\n slot.setText(((timeSlots.get(i).getStartsOn().split(\"T\"))[1]));\n\n if(timeSlots.get(i).isEmpty()) {\n slot.setBackgroundColor(getResources().getColor(R.color.mainGreenLight));\n }\n else\n {\n slot.setBackgroundColor(getResources().getColor(R.color.declinedColor));\n }\n\n final TimeSlot currentTimeSlot = timeSlots.get(i);\n final TimeSlot nextTimeSlot;\n\n if(i<47) { nextTimeSlot= timeSlots.get(i+1); }\n else {\n nextTimeSlot=null;\n }\n\n final TimeSlot prevTimeSlot;\n if(i>0){ prevTimeSlot= timeSlots.get(i-1);}\n else { prevTimeSlot = null;}\n slot.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n\n if(!currentTimeSlot.isEmpty())\n {\n if(!getSharedPreferences(\"venAdminPrefs\",MODE_PRIVATE).getString(\"token\",\"\").equals(\"\")) {\n showTimeSlotDetails(currentTimeSlot.getUsername(), currentTimeSlot.getPhoneNumber());\n }\n return;\n }\n\n //Check if there are no selected slots, then initialize the reservations start and end\n if(reservationStartsOn==null)\n {\n reservationStartsOn=currentTimeSlot.getStartsOn();\n reservationEndsOn = currentTimeSlot.getEndsOn();\n slot.setBackgroundColor(getResources().getColor(R.color.selectedcolor));\n currentTimeSlot.setSelected(true);\n return;\n }\n\n //Here means the user has selected a time slot on this session\n\n //Check if select or deselect\n if(!currentTimeSlot.isSelected()) {\n\n if (reservationStartsOn.equals(currentTimeSlot.getEndsOn())) {\n reservationStartsOn = currentTimeSlot.getStartsOn();\n slot.setBackgroundColor(getResources().getColor(R.color.selectedcolor));\n currentTimeSlot.setSelected(true);\n\n } else if (reservationEndsOn.equals(currentTimeSlot.getStartsOn())) {\n reservationEndsOn = currentTimeSlot.getEndsOn();\n slot.setBackgroundColor(getResources().getColor(R.color.selectedcolor));\n currentTimeSlot.setSelected(true);\n\n } else {\n //This slot is not valid to choose\n showToastMessage(getResources().getString(R.string.invalidSlotSTring));\n\n }\n }\n else\n {\n //Deselect logic\n if (reservationEndsOn.equals(currentTimeSlot.getEndsOn()) )\n {\n currentTimeSlot.setSelected(false);\n slot.setBackgroundColor(getResources().getColor(R.color.mainGreenLight));\n if(reservationStartsOn.equals(currentTimeSlot.getStartsOn()))\n {\n reservationStartsOn = null;\n reservationEndsOn = null;\n }\n else {\n reservationEndsOn = currentTimeSlot.getStartsOn();\n }\n }\n else if (reservationStartsOn.equals(currentTimeSlot.getStartsOn()))\n {\n currentTimeSlot.setSelected(false);\n slot.setBackgroundColor(getResources().getColor(R.color.mainGreenLight));\n if(reservationEndsOn.equals(currentTimeSlot.getEndsOn()))\n {\n reservationStartsOn = null;\n reservationEndsOn = null;\n }\n else {\n reservationStartsOn = currentTimeSlot.getEndsOn();\n }\n\n }\n else\n {\n showToastMessage(getResources().getString(R.string.invalidSlotSTring));\n }\n\n }\n return;\n\n\n }\n });\n\n\n // LinearLayout.LayoutParams lp = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.WRAP_CONTENT);\n\n scheduleLayout.addView(slot);\n\n\n }\n dismissLoading();\n\n\n }", "@Override\n public boolean checkHorses(){\n boolean b=false;\n rl.lock();\n try{\n if (numHorses_stable==horses_total)\n b=true;\n }finally{\n rl.unlock();\n }\n return b;\n }", "public abstract boolean freeSlot(LocationDto location ,SlotDto slot);", "private boolean isSlotsValid (int slots) {\n\t\treturn slots>=0 && slots<5;\n\t}", "public boolean isItemValidForSlot(int p_94041_1_, ItemStack p_94041_2_)\n {\n return true;\n }", "private void btnUpdateActionPerformed(java.awt.event.ActionEvent evt) {\n Tables tables = new Tables();\n try{\n int id = Integer.parseInt(lblID.getText().trim());\n String tableNumber = txtUpdateTable.getText().trim();\n \n int asAvailable = 1 ;\n \n tables.setTableId(id);\n tables.setTableNumber(tableNumber);\n tables.setAsAvailable(asAvailable);\n \n tableService.updateTableNumber(tables);\n }catch(Exception e){\n JOptionPane.showMessageDialog(null, \"Please Fill TextField\");\n }\n \n vectorTablesNumber = commonService.getVectorTables();\n\n TablesTableModel tableTableModel = new TablesTableModel(vectorTablesNumber);\n tblTablesNumber.setModel(tableTableModel);\n \n \n txtUpdateTable.setText(\"\");\n \n }", "int getSlotsCount();", "@Override\n \tpublic void onEditSessionComplete(TextView v) {\n \t\ttry {\n \t\t\tfinal int valueGiven = (Integer.parseInt(v.getText().toString()));\n \t\tif(valueGiven < 0){\n \t\t\tv.setText(Integer.toString(1));\n \t\t}\n \t\telse if(valueGiven > 99){\n \t\t\tv.setText(Integer.toString(99));\n \t\t}\n\t\t\t\t\tLog.d(\"TableEditDialog\", \"adaptDialogTable FALSE\");\n \t\tadaptDialogTable(dialogTable, valueGiven, false);\t\n \t\t}\n \t\tcatch(NumberFormatException e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t}", "private native int isSatSlot0(int slotNumber);", "public boolean testEveningSlotRequirements(State state){\n\n\n if(state.getNumberOfFilledCourses() != 0){\n int slotIdForCurrentlyAssignedCourse = state.getCourses()[state.getNumberOfFilledCourses()-1];\n\n if(this.courses.get(state.getNumberOfFilledCourses()-1).isEvening()){\n\n Slot slot = this.courseSlots.get(slotIdForCurrentlyAssignedCourse-1);\n\n if(!slot.isEvening()){\n return false;\n }\n\n }\n\n }\n return true; \n }", "@Override\n protected void onContentsChanged(int slot) {\n setChanged();\n }", "public int getSlot() {\n\t\treturn slot;\n\t}", "@Override\r\n\t\t\tpublic void stateChanged(ChangeEvent e)\r\n\t\t\t\t{\r\n\t\t\t\tint spinMinValue = (int)spinMin.getValue();\r\n\t\t\t\tint spinMaxValue = (int)spinMax.getValue();\r\n\r\n\t\t\t\tif (spinMinValue >= spinMaxValue) { // verify if the min spin goes upper the max limit and adjust the value if necessary\r\n\t\t\t\t\tif (++spinMaxValue > max)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tspinMin.setValue(spinMinValue = (spinMaxValue=max)-1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\tspinMax.setValue(spinMaxValue);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (spinMaxValue > spinMinValue) // verify intervals are correct\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tdiceBuilder.setInterval(spinMinValue, spinMaxValue);\r\n\t\t\t\t\t}\r\n\t\t\t\t}", "private void stateChanged() {\n\t\tfor (Row r : containingRows) {\n\t\t\tr.selectSquare(this);\n\t\t}\n\t}", "@Override\r\n\t\t\tpublic void stateChanged(ChangeEvent e)\r\n\t\t\t\t{\r\n\t\t\t\tint spinMinValue = (int)spinMin.getValue();\r\n\t\t\t\tint spinMaxValue = (int)spinMax.getValue();\r\n\r\n\t\t\t\tif (spinMaxValue <= spinMinValue) { // verify if the max spin goes under the min limit and adjust the value if necessary\r\n\t\t\t\t\tif (--spinMinValue < min)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tspinMax.setValue(spinMaxValue = (spinMinValue=min)+1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\tspinMin.setValue(spinMinValue);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (spinMaxValue > spinMinValue) // verify intervals are correct\r\n\t\t\t\t\t{\r\n\t\t\t\t\tdiceBuilder.setInterval(spinMinValue, spinMaxValue);\r\n\t\t\t\t\t}\r\n\t\t\t\t}", "private void setTableModel(List<SlotDto> slots){\n \n int size = 0;\n if(slots != null && !slots.isEmpty())\n size = slots.size();\n \n Object [][] slotsArr = new Object [25][9];\n\n // set days to table cells\n slotsArr[0][0] = \"Sunday\";\n slotsArr[5][0] = \"Monday\";\n slotsArr[10][0] = \"Tuesday\";\n slotsArr[15][0] = \"Wednesday\";\n slotsArr[20][0] = \"Thursday\";\n\n // loop for days' rows of schedule\n for(int r =0;r<5;r++){\n r=r*5;\n \n // loop for slots' columns of schedule \n for (int c=0 ; c<4 ; c++){ \n int cell=c*2;\n \n // loop to get slot of indexed day and time slot \n for( int i=0 ; i<size ; i++ ){\n if( (slots.get(i).getNum()== (c+1) && (slots.get(i).getDay().equals(slotsArr[r][0])) ) ){\n \n // set course name and code od slot \n slotsArr[r][cell+1] = slots.get(i).getCourse().getName();\n slotsArr[r][cell+2] = slots.get(i).getCourse().getCode();\n \n // set type of slot \n slotsArr[r+2][cell+1] = slots.get(i).getSlot_type();\n \n // set location of slot\n slotsArr[r+3][cell+1] = slots.get(i).getLocation().getName();\n \n \n // check slot type then set plt of slot\n if(slots.get(i).getSlot_type().equals(\"LECTURE\")){\n slotsArr[r+3][cell+2] = slots.get(i).getCourse().getPlt_lecture().getCode();\n System.out.println(\"plt\"+slots.get(i).getCourse().getPlt_lecture().getCode());\n }\n if(slots.get(i).getSlot_type().equals(\"SECTION\")){\n slotsArr[r+3][cell+2] = slots.get(i).getCourse().getPlt_lecture().getCode();\n System.out.println(\"plt\"+slots.get(i).getCourse().getPlt_lecture().getCode()); \n }\n \n // set student number of slot \n slotsArr[r+4][cell+1] = \"STUDENT NUMBER\";\n slotsArr[r+4][cell+2] = slots.get(i).getStudent_number();\n \n /*\n * set staff of slot then check if members > 1 then concatenate all members' names\n * and set to cell */\n String staff = slots.get(i).getStaff().get(0).getPosition() + \"/\" +\n slots.get(i).getStaff().get(0).getName() ;\n \n System.out.println(\"staff size\" + slots.get(i).getStaff().size()); \n System.out.println(\"user size\" + slots.get(i).getUser().size()); \n \n if(slots.get(i).getStaff().size()>1){\n for(int j=1 ; j<slots.get(i).getStaff().size() ; j++ ){\n staff=staff+\" # \" +slots.get(i).getStaff().get(j).getPosition()+\"/\"+\n slots.get(i).getStaff().get(j).getName() ; \n }\n }\n slotsArr[r+1][cell+1] = staff;\n \n /*\n * set user email of slot then check if users > 1 then concatenate all users' email \n * and set to cell */ \n String[] email = slots.get(i).getUser().get(0).getEmail().split(\"@\", 2);\n String user = email[0];\n if(slots.get(i).getUser().size()>1){\n for(int k=0 ; k<slots.get(i).getUser().size() ; k++){\n String[] _email = slots.get(i).getUser().get(k).getEmail().split(\"@\", 2);\n user = user +\" # \" + _email[0]; \n }\n }\n slotsArr[r+1][cell+2] = user;\n }\n }\n }\n }\n scheduleTable.setModel(new javax.swing.table.DefaultTableModel(slotsArr,\n new String [] {\n \"Time Slot\", \"First\",\" \", \"Second\", \" \" ,\"Third\",\" \",\"Fourth\",\" \"\n }\n ));\n\n }", "public void actionPerformed(ActionEvent e) {\n int i = MovingQInPanel.table.getSelectedRow(); \r\n \r\n if(i >= 0) \r\n {\r\n\t \tif(status == \"ON\"){\t\t\t\t //If user click ON/OFF button charge will be turn off and disapear from screen\r\n\t \t\tMovingQTable.model.setValueAt(\"OFF\", i, 5);\r\n\t \t\tMovingQTable.GetQList().remove(MovingQTable.GetQList().get(i)); // removing i'th charge from the list of testcharges\r\n\t \t\tMainFrame.AddMovingQ(ch);\r\n\t \t\t\r\n\t \t} \t\r\n\t \telse if(status == \"OFF\"){ \t\t//Makes charge appear on screen and calculate all data\r\n\t \t\tMovingQTable.model.setValueAt(\"ON\", i, 5);\r\n\t \t\tMainFrame.AddMovingQ(ch); // adding charge to the list\r\n\t \t\tMovingQTable.GetQList().add(ch); \t\t\r\n\t \t\t}\r\n\t \t\r\n\t \telse{JOptionPane.showMessageDialog(MainFrame.leftPanel, \r\n\t \t\t\t\"Deploy Error - Probrably there is no charge or none of charge is selected\");}\t \t\r\n \t} \r\n \r\n else{JOptionPane.showMessageDialog(MainFrame.leftPanel, \r\n\t\t\t\"Deploy Error - Probrably there is no charge or none of charge is selected\");} \r\n }", "@Test\r\n public void testGetSlot() {\r\n System.out.println(\"getSlot\");\r\n int s = 0;\r\n Table instance = new Table(\"S\",2);\r\n String expResult = \"10-11\";\r\n String result = instance.getSlot(s);\r\n assertEquals(expResult, result);\r\n \r\n }", "@Override\n public void onClick(View v) {\n if(v == bt[0])\n AndroidInterface.getInstance().enterTable(1);\n else if(v == bt[1])\n AndroidInterface.getInstance().enterTable(2);\n else if(v == bt[2])\n AndroidInterface.getInstance().enterTable(3);\n else if(v == bt[3])\n AndroidInterface.getInstance().enterTable(4);\n }", "Table(String t,int c){\r\n this.type=t;\r\n this.capacity=c;\r\n timeSlots=new HashMap<Integer,String>();\r\n slotAcquired=new HashMap<Integer,Boolean>();\r\n availability=true;\r\n \r\n // Setting Up the Time Slots\r\n timeSlots.put(0,\"10-11\");\r\n timeSlots.put(1,\"11-12\");\r\n timeSlots.put(2,\"12-13\");\r\n timeSlots.put(3,\"13-14\");\r\n timeSlots.put(4,\"14-15\");\r\n timeSlots.put(5,\"15-16\");\r\n timeSlots.put(6,\"16-17\");\r\n timeSlots.put(7,\"17-18\");\r\n timeSlots.put(8,\"18-19\");\r\n timeSlots.put(9,\"19-20\");\r\n timeSlots.put(10,\"21-22\");\r\n timeSlots.put(11,\"22-23\");\r\n // First, all the slots aren't acquired\r\n for(int k=0;k<slotAcquired.size();k++){\r\n slotAcquired.put(k, Boolean.FALSE);\r\n }\r\n \r\n slotTracker=0;\r\n }", "@Override\n public void onScoreClick(final int primaryKey, final int oldScore, final int position) {\n final ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(getActivity(),\n R.array.score, android.R.layout.simple_spinner_item);\n adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n final Spinner sp = new Spinner(getActivity());\n FrameLayout.LayoutParams params = new FrameLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT);\n float dpi = getResources().getDisplayMetrics().density;\n params.setMargins((int)(19*dpi), (int)(19*dpi), (int)(19*dpi), (int)(19*dpi));\n FrameLayout layout = new FrameLayout(getContext());\n sp.setLayoutParams(params);\n sp.setAdapter(adapter);\n sp.setSelection(oldScore / 10);\n layout.addView(sp);\n final AlertDialog.Builder builder = new AlertDialog.Builder(getActivity()).setCancelable(false).setTitle(\"SelectScore\")\n .setPositiveButton(\"Update\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(final DialogInterface dialogInterface, int i) {\n realm.executeTransactionAsync(new Realm.Transaction() {\n @Override\n public void execute(Realm realm) {\n if (sp.getSelectedItemPosition() * 10 == oldScore) {\n dialogInterface.dismiss();\n } else {\n GameListDatabase newListDatabase = realm.where(GameListDatabase.class).equalTo(\"game_id\", primaryKey).findFirst();\n newListDatabase.setScore(sp.getSelectedItemPosition() * 10);\n newListDatabase.setLast_updated(new Date());\n dialogInterface.dismiss();\n }\n\n }\n }, new Realm.Transaction.OnSuccess() {\n @Override\n public void onSuccess() {\n //recyclerView.getLayoutManager().onRestoreInstanceState(scroll_state);\n Toasty.success(getContext(), \"updated\", Toast.LENGTH_SHORT, true).show();\n\n }\n });\n\n }\n })\n .setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n dialogInterface.cancel();\n }\n }).setView(layout);\n\n\n final AlertDialog dialog = builder.create();\n\n dialog.setOnShowListener(new DialogInterface.OnShowListener() {\n @Override\n public void onShow(DialogInterface dialogInterface) {\n dialog.getButton(AlertDialog.BUTTON_NEGATIVE).setTextColor(ContextCompat.getColor(getContext(), R.color.black_white));\n dialog.getButton(AlertDialog.BUTTON_POSITIVE).setTextColor(ContextCompat.getColor(getContext(), R.color.accent));\n\n }\n });\n dialog.show();\n }", "@Override\n public boolean hasAction(int slot)\n {\n return totalPages > 1 && ((slot == 45) || (slot == 53));\n }", "@Override\n\tpublic boolean isItemValidForSlot(int p_94041_1_, ItemStack p_94041_2_) {\n\t\treturn true;\n\t}", "public void setSlot(SQLInteger slot) {\n\t\tthis.slot = slot;\n\t}", "private native boolean selectSlot0(int slotIndex);", "@Override\n public boolean fillSlot(int slot) {\n if(!isValidSlot(slot) || availableSlots.size() == 0 || !availableSlots.contains(slot)){\n return false;\n }\n\n availableSlots.remove(slot);\n return true;\n }", "private void refreshButtonClicked(ActionEvent event) {\n //--\n //-- WRITE YOUR CODE HERE!\n //--\n\n itemView.getItem().setPreviousPrice(itemView.getItem().getItemPrice());\n //itemView.getItem().setItemPrice(randPrice.getRandomPrice());\n itemView.getItem().setItemPrice(randPrice.getRandomPrice(itemView.getItem()));\n itemView.getItem().setItemChange();\n super.repaint();\n showMessage(\"Refresh clicked!\");\n }", "public void startTable(Table t, Button[][] bt) {\n for (int i = 0; i < 5; i++) {\n for (int j = 0; j < 5; j++) {\n if (t.getTableCell(i, j).getPawn() == null) {\n if (!table.getTableCell(i, j).isFree()) {\n continue;\n }\n bt[i][j].setOnMousePressed(e -> {\n Button button;\n button = (Button) e.getSource();\n int x = GridPane.getRowIndex(button);\n int y = GridPane.getColumnIndex(button);\n bt[x][y].setOnMouseEntered(null);\n bt[x][y].setOnMouseExited(null);\n bt[x][y].setStyle(\"-fx-border-color:blue\");\n System.out.println(\"x:\" + x + \"\\ty:\" + y);\n });\n bt[i][j].setOnMouseEntered(e -> {\n Button button;\n button = (Button) e.getSource();\n int x = GridPane.getRowIndex(button);\n int y = GridPane.getColumnIndex(button);\n bt[x][y].setStyle(\"-fx-border-color:yellow\");\n });\n bt[i][j].setOnMouseExited(e -> {\n Button button;\n button = (Button) e.getSource();\n int x = GridPane.getRowIndex(button);\n int y = GridPane.getColumnIndex(button);\n bt[x][y].setStyle(\"-fx-border-color:trasparent\");\n });\n bt[i][j].setOnAction(e -> {\n Button button;\n System.out.println(\"Cliccato\");\n button = (Button) e.getSource();\n int x = GridPane.getRowIndex(button);\n int y = GridPane.getColumnIndex(button);\n bt[x][y].setOnMousePressed(null);\n bt[x][y].setStyle(\"-fx-border-color:red\");\n bt[x][y].setDisable(true);\n pawnPlacedCounter++;\n initCoords = initCoords + x + \",\" + y + \",\";\n if (pawnPlacedCounter == 2) {\n try {\n handlerClient.initializePawns(initCoords);\n System.out.println(\"Invio coordinate al server:\\n\" + initCoords);\n initButtons();\n disableButtons(true);\n lightPause();\n } catch (IOException ioException) {\n setFailed(\"Errore di rete\");\n System.exit(1);\n }\n }\n });\n }\n }\n }\n }", "static long rouletteSpinRandom(int slots, int zeroes, long money) {\n\n // Initialize variables\n int min = 1;\n int max = slots;\n // Assigns number of 0s or 00s to the beginning of the wheel\n int zeroSlots = zeroes;\n long moneyLeft = money;\n int timesSpun = 0;\n\n do {\n // Generates a random number for spin within the bounds of number of slots chosen\n int random = ThreadLocalRandom.current().nextInt(min, max + 1);\n // Generates a random amount of money from user's current money pool\n long currentBet = ThreadLocalRandom.current().nextLong(min, moneyLeft + 1);\n // If number is odd or hits one of the zero slots, it is a loss and money is adjusted, else its a win and money is adjusted\n if (random % 2 == 1 || random <= zeroSlots) {\n moneyLeft = moneyLeft - currentBet;\n } else {\n moneyLeft = (moneyLeft - currentBet) + currentBet * 2;\n // Function call that tracks the largest gain on a spin for statistics\n getBiggestGain(currentBet);\n }\n timesSpun++;\n // Continues do/while loop if user has money left and they haven't reached 50 spins yet\n } while (moneyLeft > 0 && timesSpun <= 50);\n // Returns the amount of money left after the user went broke or 50 spins, whichever comes first\n return moneyLeft;\n }", "public Slots() {\n display.printSlotsPayline();\n stopPlayingSlots = false;\n typeOfSlotsChosen = false;\n allTumblers = new ArrayList<>();\n pot = 0.0;\n winnings = 0.0;\n betPlaced = false;\n numOfPaylines = 0;\n tum1 = new Tumbler();\n tum2 = new Tumbler();\n tum3 = new Tumbler();\n\n }", "void click(int slot, ClickType type);", "public synchronized long getSlots() {\n return slots;\n }", "@Override\n\t\tpublic void tableChanged(TableModelEvent e) {\n\t\t\tint newCount = 0;\n\t\t\tfor (Share s : frame.getGui().getShareServer().getShares()) {\n\t\t\t\tif (s.getStatus()==Status.BUILDING || s.getStatus()==Status.REFRESHING || s.getStatus()==Status.SAVING) {\n\t\t\t\t\tnewCount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tactiveCount=newCount;\n\t\t}", "public void VerifyButtons(){\n if (currentTurn.getSiguiente() == null){\n next_turn.setEnabled(false);\n } else{\n next_turn.setEnabled(true);\n }\n if (currentTurn.getAnterior() == null){\n prev_turn.setEnabled(false);\n } else{\n prev_turn.setEnabled(true);\n }\n if (current.getSiguiente() == null){\n next_game.setEnabled(false);\n } else{\n next_game.setEnabled(true);\n }\n if (current.getAnterior() == null){\n prev_game.setEnabled(false);\n } else{\n prev_game.setEnabled(true);\n }\n }", "private void selectTableRow () {\n int selectedRow = itemTable.getSelectedRow();\n if (selectedRow >= 0 && selectedRow < clubEventList.size()) {\n boolean modOK = modIfChanged();\n if (modOK) {\n position = clubEventList.positionUsingListIndex (selectedRow);\n positionAndDisplay();\n }\n }\n }", "private void waitUntilQuantityUpdate(String stepper, String itemCountIcon) {\n String expected;\n switch (stepper) {\n case \"plus\":\n expected = String.valueOf((Integer.valueOf(itemCountIcon)) + 1);\n UtilityHelper.waitUntilExpectedCondition(ITEM_COUNT_ON_SHOPPING_CART, expected);\n Assert.assertEquals(\"Verify Qty Stepper 'Plus': \", expected, ITEM_COUNT_ON_SHOPPING_CART.getText());\n break;\n case \"minus\":\n expected = String.valueOf((Integer.valueOf(itemCountIcon)) - 1);\n UtilityHelper.waitUntilExpectedCondition(ITEM_COUNT_ON_SHOPPING_CART, expected);\n Assert.assertEquals(\"Verify Qty Stepper 'Minus': \", expected, ITEM_COUNT_ON_SHOPPING_CART.getText());\n break;\n }\n }", "public int getSlots() {\n\t\treturn this.rows * 9;\n\t}", "public void clickEvent(int index){\n t.stop();\n Timer(15);\n if (cards.get(index).getTurned() == false) {\n if (wait == 1) {\n setTurned(c1, false);\n setTurned(c2, false);\n wait = 0;\n }\n setTurned(index, true);\n if (state == 2) {\n state = 1;\n c2 = index;\n if (cards.get(c1).getImgAnime().contains((cards.get(c2).getImgAnime()))) {\n if (activePlayer == 1) {\n if(cards.get(index).getNumber() == 1){\n p1Points += 3;\n }\n else {\n p1Points++;\n }\n points(activePlayer, p1Points);\n activePlayer = 1;\n changePlayer(activePlayer);\n } else {\n if(cards.get(index).getNumber() == 1){\n p2Points += 3;\n }\n else {\n p2Points++;\n }\n points(activePlayer, p2Points);\n activePlayer = 2;\n changePlayer(2);\n\n }\n checkFinished();\n } else {\n wait = 1;\n if (activePlayer == 1) {\n activePlayer = 2;\n changePlayer(activePlayer);\n } else {\n activePlayer = 1;\n changePlayer(activePlayer);\n }\n }\n } else {\n state = 2;\n c1 = index;\n }\n }\n }", "@Override\n public int drawSlot() {\n sendInstruction(MessageId.DRAW_SLOT);\n return Serdes.INTEGER_SERDE.deserialize(receiveInstruction());\n }", "void updateCardSlots(String username, LightCardSlots cardSlots);", "private void abilitySpinnerListener() {\n\t\tstrengthSpinner.addChangeListener(new ChangeListener() {\n\n\t\t\t@Override\n\t\t\tpublic void stateChanged(ChangeEvent e) {\n\t\t\t\tint holder = (Integer) strengthSpinner.getValue();\n\t\t\t\tint saveI = 0;\n\t\t\t\tfor (int i = 0; i < abilityScore.length; i++) {\n\t\t\t\t\tif (holder == abilityScore[i]) {\n\t\t\t\t\t\tstrengthPoints = abilityCost[i];\n\t\t\t\t\t\tsaveI = i - 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (holder < 7) {\n\t\t\t\t\tstrengthSpinner.setValue(7);\n\t\t\t\t}\n\t\t\t\tif (holder > 18) {\n\t\t\t\t\tstrengthSpinner.setValue(18);\n\t\t\t\t}\n\t\t\t\ttotalPoints = strengthPoints + dexterityPoints + constitutionPoints + intelligencePoints + wisdomPoints\n\t\t\t\t\t\t+ charismaPoints;\n\t\t\t\tif (fantasyPoints - totalPoints < 0) {\n\t\t\t\t\tstrengthSpinner.setValue(holder - 1);\n\t\t\t\t\tstrengthPoints = abilityCost[saveI];\n\t\t\t\t}\n\t\t\t\ttotalPoints = strengthPoints + dexterityPoints + constitutionPoints + intelligencePoints + wisdomPoints\n\t\t\t\t\t\t+ charismaPoints;\n\t\t\t\tfantasyPointsLabel\n\t\t\t\t\t\t.setText(\"<html>\" + String.valueOf(fantasyPoints - totalPoints) + \"points<br>remaining</html>\");\n\t\t\t\tif (holder < abilityScoreBaseValue) {\t\n\t\t\t\t\tstrengthModifier = (holder - abilityScoreBaseValue - 1)/2;\n\t\t\t\t} else {\n\t\t\t\t\tstrengthModifier = (holder - abilityScoreBaseValue)/2;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tstrengthModifierLabel.setText(\"<html>Modifier:<br>\" + String.valueOf(strengthModifier) + \"</html>\");\n\t\t\t\t\n\t\t\t\treference.validate();\n\t\t\t\treference.repaint();\n\t\t\t}\n\t\t});\n\n\t\tdexteritySpinner.addChangeListener(new ChangeListener() {\n\n\t\t\t@Override\n\t\t\tpublic void stateChanged(ChangeEvent e) {\n\t\t\t\tint holder = (Integer) dexteritySpinner.getValue();\n\t\t\t\tint saveI = 0;\n\t\t\t\tfor (int i = 0; i < abilityScore.length; i++) {\n\t\t\t\t\tif (holder == abilityScore[i]) {\n\t\t\t\t\t\tdexterityPoints = abilityCost[i];\n\t\t\t\t\t\tsaveI = i - 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (holder < 7) {\n\t\t\t\t\tdexteritySpinner.setValue(7);\n\t\t\t\t}\n\t\t\t\tif (holder > 18) {\n\t\t\t\t\tdexteritySpinner.setValue(18);\n\t\t\t\t}\n\t\t\t\ttotalPoints = strengthPoints + dexterityPoints + constitutionPoints + intelligencePoints + wisdomPoints\n\t\t\t\t\t\t+ charismaPoints;\n\t\t\t\tif (fantasyPoints - totalPoints < 0) {\n\t\t\t\t\tdexteritySpinner.setValue(holder - 1);\n\t\t\t\t\tdexterityPoints = abilityCost[saveI];\n\t\t\t\t}\n\t\t\t\ttotalPoints = strengthPoints + dexterityPoints + constitutionPoints + intelligencePoints + wisdomPoints\n\t\t\t\t\t\t+ charismaPoints;\n\t\t\t\tfantasyPointsLabel\n\t\t\t\t\t\t.setText(\"<html>\" + String.valueOf(fantasyPoints - totalPoints) + \"points<br>remaining</html>\");\n\t\t\t\t\n\t\t\t\tif (holder < abilityScoreBaseValue) {\t\t\t\n\t\t\t\t\tdexterityModifier = ((holder - abilityScoreBaseValue - 1)/2);\n\t\t\t\t} else {\n\t\t\t\t\tdexterityModifier = (holder - abilityScoreBaseValue)/2;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tdexterityModifierLabel.setText(\"<html>Modifier:<br>\" + String.valueOf(dexterityModifier) + \"</html>\");\n\t\t\t\t\n\t\t\t\treference.validate();\n\t\t\t\treference.repaint();\n\t\t\t}\n\t\t});\n\n\t\tconstitutionSpinner.addChangeListener(new ChangeListener() {\n\n\t\t\t@Override\n\t\t\tpublic void stateChanged(ChangeEvent e) {\n\t\t\t\tint holder = (Integer) constitutionSpinner.getValue();\n\t\t\t\tint saveI = 0;\n\t\t\t\tfor (int i = 0; i < abilityScore.length; i++) {\n\t\t\t\t\tif (holder == abilityScore[i]) {\n\t\t\t\t\t\tconstitutionPoints = abilityCost[i];\n\t\t\t\t\t\tsaveI = i - 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (holder < 7) {\n\t\t\t\t\tconstitutionSpinner.setValue(7);\n\t\t\t\t}\n\t\t\t\tif (holder > 18) {\n\t\t\t\t\tconstitutionSpinner.setValue(18);\n\t\t\t\t}\n\t\t\t\ttotalPoints = strengthPoints + dexterityPoints + constitutionPoints + intelligencePoints + wisdomPoints\n\t\t\t\t\t\t+ charismaPoints;\n\t\t\t\tif (fantasyPoints - totalPoints < 0) {\n\t\t\t\t\tconstitutionSpinner.setValue(holder - 1);\n\t\t\t\t\tconstitutionPoints = abilityCost[saveI];\n\t\t\t\t}\n\t\t\t\ttotalPoints = strengthPoints + dexterityPoints + constitutionPoints + intelligencePoints + wisdomPoints\n\t\t\t\t\t\t+ charismaPoints;\n\t\t\t\tfantasyPointsLabel\n\t\t\t\t\t\t.setText(\"<html>\" + String.valueOf(fantasyPoints - totalPoints) + \"points<br>remaining</html>\");\n\t\t\t\t\n\t\t\t\tif (holder < abilityScoreBaseValue) {\n\t\t\t\t\tconstitutionModifier = ((holder - abilityScoreBaseValue - 1)/2);\n\t\t\t\t} else {\n\t\t\t\t\tconstitutionModifier = (holder - abilityScoreBaseValue)/2;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tconstitutionModifierLabel.setText(\"<html>Modifier:<br>\" + String.valueOf(constitutionModifier) + \"</html>\");\n\t\t\t\t\n\t\t\t\treference.validate();\n\t\t\t\treference.repaint();\n\t\t\t}\n\t\t});\n\n\t\tintelligenceSpinner.addChangeListener(new ChangeListener() {\n\n\t\t\t@Override\n\t\t\tpublic void stateChanged(ChangeEvent e) {\n\t\t\t\tint holder = (Integer) intelligenceSpinner.getValue();\n\t\t\t\tint saveI = 0;\n\t\t\t\tfor (int i = 0; i < abilityScore.length; i++) {\n\t\t\t\t\tif (holder == abilityScore[i]) {\n\t\t\t\t\t\tintelligencePoints = abilityCost[i];\n\t\t\t\t\t\tsaveI = i - 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (holder < 7) {\n\t\t\t\t\tintelligenceSpinner.setValue(7);\n\t\t\t\t}\n\t\t\t\tif (holder > 18) {\n\t\t\t\t\tintelligenceSpinner.setValue(18);\n\t\t\t\t}\n\t\t\t\ttotalPoints = strengthPoints + dexterityPoints + constitutionPoints + intelligencePoints + wisdomPoints\n\t\t\t\t\t\t+ charismaPoints;\n\t\t\t\tif (fantasyPoints - totalPoints < 0) {\n\t\t\t\t\tintelligenceSpinner.setValue(holder - 1);\n\t\t\t\t\tintelligencePoints = abilityCost[saveI];\n\t\t\t\t}\n\t\t\t\ttotalPoints = strengthPoints + dexterityPoints + constitutionPoints + intelligencePoints + wisdomPoints\n\t\t\t\t\t\t+ charismaPoints;\n\t\t\t\tfantasyPointsLabel\n\t\t\t\t\t\t.setText(\"<html>\" + String.valueOf(fantasyPoints - totalPoints) + \"points<br>remaining</html>\");\n\t\t\t\t\n\t\t\t\tif (holder < abilityScoreBaseValue) {\n\t\t\t\t\tintelligenceModifier = ((holder - abilityScoreBaseValue - 1)/2);\n\t\t\t\t} else {\n\t\t\t\t\tintelligenceModifier = (holder - abilityScoreBaseValue)/2;\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tintelligenceModifierLabel.setText(\"<html>Modifier:<br>\" + String.valueOf(intelligenceModifier) + \"</html>\");\n\t\t\t\t\n\t\t\t\treference.validate();\n\t\t\t\treference.repaint();\n\t\t\t}\n\t\t});\n\n\t\twisdomSpinner.addChangeListener(new ChangeListener() {\n\n\t\t\t@Override\n\t\t\tpublic void stateChanged(ChangeEvent e) {\n\t\t\t\tint holder = (Integer) wisdomSpinner.getValue();\n\t\t\t\tint saveI = 0;\n\t\t\t\tfor (int i = 0; i < abilityScore.length; i++) {\n\t\t\t\t\tif (holder == abilityScore[i]) {\n\t\t\t\t\t\twisdomPoints = abilityCost[i];\n\t\t\t\t\t\tsaveI = i - 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (holder < 7) {\n\t\t\t\t\twisdomSpinner.setValue(7);\n\t\t\t\t}\n\t\t\t\tif (holder > 18) {\n\t\t\t\t\twisdomSpinner.setValue(18);\n\t\t\t\t}\n\t\t\t\ttotalPoints = strengthPoints + dexterityPoints + constitutionPoints + intelligencePoints + wisdomPoints\n\t\t\t\t\t\t+ charismaPoints;\n\t\t\t\tif (fantasyPoints - totalPoints < 0) {\n\t\t\t\t\twisdomSpinner.setValue(holder - 1);\n\t\t\t\t\twisdomPoints = abilityCost[saveI];\n\t\t\t\t}\n\t\t\t\ttotalPoints = strengthPoints + dexterityPoints + constitutionPoints + intelligencePoints + wisdomPoints\n\t\t\t\t\t\t+ charismaPoints;\n\t\t\t\tfantasyPointsLabel\n\t\t\t\t\t\t.setText(\"<html>\" + String.valueOf(fantasyPoints - totalPoints) + \"points<br>remaining</html>\");\n\t\t\t\t\n\t\t\t\tif (holder < abilityScoreBaseValue) {\t\t\t\n\t\t\t\t\twisdomModifier = ((holder - abilityScoreBaseValue - 1)/2);\n\t\t\t\t} else {\n\t\t\t\t\twisdomModifier = (holder - abilityScoreBaseValue)/2;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\twisdomModifierLabel.setText(\"<html>Modifier:<br>\" + String.valueOf(wisdomModifier) + \"</html>\");\n\t\t\t\t\n\t\t\t\treference.validate();\n\t\t\t\treference.repaint();\n\n\t\t\t}\n\t\t});\n\n\t\tcharismaSpinner.addChangeListener(new ChangeListener() {\n\n\t\t\t@Override\n\t\t\tpublic void stateChanged(ChangeEvent e) {\n\t\t\t\tint holder = (Integer) charismaSpinner.getValue();\n\t\t\t\tint saveI = 0;\n\t\t\t\tfor (int i = 0; i < abilityScore.length; i++) {\n\t\t\t\t\tif (holder == abilityScore[i]) {\n\t\t\t\t\t\tcharismaPoints = abilityCost[i];\n\t\t\t\t\t\tsaveI = i - 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (holder < 7) {\n\t\t\t\t\tcharismaSpinner.setValue(7);\n\t\t\t\t}\n\t\t\t\tif (holder > 18) {\n\t\t\t\t\tcharismaSpinner.setValue(18);\n\t\t\t\t}\n\t\t\t\ttotalPoints = strengthPoints + dexterityPoints + constitutionPoints + intelligencePoints + wisdomPoints\n\t\t\t\t\t\t+ charismaPoints;\n\t\t\t\tif (fantasyPoints - totalPoints < 0) {\n\t\t\t\t\tcharismaSpinner.setValue(holder - 1);\n\t\t\t\t\tcharismaPoints = abilityCost[saveI];\n\t\t\t\t}\n\t\t\t\ttotalPoints = strengthPoints + dexterityPoints + constitutionPoints + intelligencePoints + wisdomPoints\n\t\t\t\t\t\t+ charismaPoints;\n\t\t\t\tfantasyPointsLabel\n\t\t\t\t\t\t.setText(\"<html>\" + String.valueOf(fantasyPoints - totalPoints) + \"points<br>remaining</html>\");\n\t\t\t\t\n\t\t\t\tif (holder < abilityScoreBaseValue) {\n\t\t\t\t\tcharismaModifier = ((holder - abilityScoreBaseValue - 1)/2);\n\t\t\t\t} else {\n\t\t\t\t\tcharismaModifier = (holder - 10)/2;\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tcharismaModifierLabel.setText(\"<html>Modifier:<br>\" + String.valueOf(charismaModifier) + \"</html>\");\n\t\t\t\t\n\t\t\t\treference.validate();\n\t\t\t\treference.repaint();\n\t\t\t}\n\t\t});\n\n\t}", "public void onInventoryChanged();", "public int getLocalSlotNumber();", "long getSpinCount();", "public int getRow() {\r\n\t\treturn slot / 9;\r\n\t}", "public StationBikeCounters (int freeSlots) {\r\n\t\tthis.freeSlots=freeSlots;\r\n\t}", "public void tableClicked(KDTMouseEvent event) {\n\t\t\t\tint iIndex = kdtRWOItemSpEntry.getColumnIndex(\"i\");\r\n\t\t\t\tint colIndex = event.getColIndex();\r\n\t\t\t\tint rowIndex = event.getRowIndex();\r\n\t\t\t\tIEnum newIType = null;\r\n\t\t\t\tIRow row = kdtRWOItemSpEntry.getRow(rowIndex);\r\n\t\t\t\tif (iIndex == colIndex) { // I状态\r\n\t\t\t\t\tIEnum iType = (IEnum) row.getCell(colIndex).getValue();\r\n\t\t\t\t\tif (PublicUtils.equals(IEnum.I, iType)) {\r\n\t\t\t\t\t\tnewIType = IEnum.H;\r\n\t\t\t\t\t} else if (PublicUtils.equals(IEnum.H, iType)) {\r\n\t\t\t\t\t\tnewIType = IEnum.I;\r\n\t\t\t\t\t} else\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\tWInfo w = (WInfo) row.getCell(\"w\").getValue();\r\n\t\t\t\t\tif (w == null)\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t//String typeCode = w.getTypeCode();\r\n\t\t\t\t\t\r\n\t\t\t\t\tfor (int i = 0; i < kdtRWOItemSpEntry.getRowCount(); i++) {\r\n\t\t\t\t\t\tWInfo newW = (WInfo) kdtRWOItemSpEntry.getRow(i).getCell(\"w\").getValue();\r\n\t\t\t\t\t\tif (newW == null)\r\n\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\tif (PublicUtils.equals(IEnum.X, kdtRWOItemSpEntry.getRow(i).getCell(\"i\").getValue()))\r\n\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t//\tString newTypeCode = newW.getTypeCode();\r\n\t\t\t\t\t\tif (PublicUtils.equals(w.getNumber(), newW.getNumber())) {\r\n\t\t\t\t\t\t\tkdtRWOItemSpEntry.getRow(i).getCell(\"i\").setValue(newIType);\r\n\t\t\t\t\t\t\tresetItemSpEditorLocked(kdtRWOItemSpEntry.getRow(i));\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\tappendItemSpFoot();\r\n\t\t\t\t//\tstoreFields();\r\n\t\t\t\t}\r\n\r\n\t\t\t}", "private void updateALUTableScorboard() {\n\t\t// Get a copy of the memory stations\n\t\t// ALUStation[] temp_alu = alu_rs;\n\n\t\t// Update the table with current values for the stations\n\t\tfor (int i = 0; i < _lstFuStatusScorboard2.size(); i++) {\n\t\t\t// generate a meaningfull representation of busy\n\t\t\t// String busy_desc = (temp_alu[i].isBusy() ? \"Yes\" : \"No\" );\n\t\t\t// _FunctionUnitsModel.setColumnIdentifiers( new Object[]{\"Cycle\",\n\t\t\t// \"Name\",\"Busy\", \"Op\", \"Fi\", \"Fj\", \"Fk\", \"Qj\",\"Qk\",\"Rj\",\"Rk\"} );\n\n\t\t\t_FunctionUnitsModelScoreboard.setValueAt(_lstFuStatusScorboard2.get(i).getTime(), i, 0);\n\n\t\t\t_FunctionUnitsModelScoreboard.setValueAt(_lstFuStatusScorboard2.get(i).getFu_name(), i, 1);\n\t\t\t_FunctionUnitsModelScoreboard.setValueAt(_lstFuStatusScorboard2.get(i).getBusy(), i, 2);\n\t\t\t_FunctionUnitsModelScoreboard.setValueAt(_lstFuStatusScorboard2.get(i).getOp(), i, 3);\n\t\t\t_FunctionUnitsModelScoreboard.setValueAt(_lstFuStatusScorboard2.get(i).getFi(), i, 4);\n\t\t\t_FunctionUnitsModelScoreboard.setValueAt(_lstFuStatusScorboard2.get(i).getFj(), i, 5);\n\t\t\t_FunctionUnitsModelScoreboard.setValueAt(_lstFuStatusScorboard2.get(i).getFk(), i, 6);\n\t\t\t_FunctionUnitsModelScoreboard.setValueAt(_lstFuStatusScorboard2.get(i).getQj(), i, 7);\n\t\t\t_FunctionUnitsModelScoreboard.setValueAt(_lstFuStatusScorboard2.get(i).getQk(), i, 8);\n\t\t\t_FunctionUnitsModelScoreboard.setValueAt(_lstFuStatusScorboard2.get(i).getRj(), i, 9);\n\t\t\t_FunctionUnitsModelScoreboard.setValueAt(_lstFuStatusScorboard2.get(i).getRk(), i, 10);\n\t\t}\n\t}", "public void onTableClicked(){\n\t\tint row = table.getSelectedRow();\n//\t\tthis.messageBox(row+\"\");\n\t\tTParm parm = table.getParmValue();\n\t\tadmDate = parm.getValue(\"ADM_DATE\", row);\n\t\tdeptCode = parm.getValue(\"DEPT_CODE\", row);\n\t\tdeCode = parm.getValue(\"DR_CODE\", row);\n\t\tclinictypeCode = parm.getValue(\"CLINICTYPE_CODE\", row);\n\t\ttime = parm.getValue(\"START_TIME\", row);\n\t\tcrmId = parm.getValue(\"CRM_ID\", row);\n//\t\tSystem.out.println(\"time==\"+time);\n\t\t\n\t}", "private void checkSnap() {\n\t\tif (turned && view.getInstructions().getHidden())\n\t\t\tfor (PlayerView p: view.getPlayerViewList())\n\t\t\t\tif (playerHasPressed(p)) {\n\t\t\t\t\t// If last card is null, the turned card is the first card in the pile and can't be snap.\n\t\t\t\t\tif(game.getLastCard() != null)\n\t\t\t\t\t\tview.showLastCard(game.getLastCard().getValue());\n\t\t\t\t\tview.showSnapResult(p.getId(), game.snap(game.getPlayer(p.getId()-1)));\n\t\t\t\t\tdisplayPlayers();\n\t\t\t\t\tturned = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t}", "public void button_time_ok(View view){\n int[] times = new int[4];\n times[0] = getTimeFromSpinner(R.id.spinner_termin1);\n times[1] = getTimeFromSpinner(R.id.spinner_termin2);\n times[2] = getTimeFromSpinner(R.id.spinner_termin3);\n times[3] = getTimeFromSpinner(R.id.spinner_termin4);\n // and update the user data\n _control.updateUserTimes(times);\n _control.saveUserData();\n // then change to main menu\n setContentView(R.layout.mainmenu);\n setButtonDisabled(R.id.goto_question_button, _control.wasLastQuestionAnswered());\n }", "public boolean isItemValidForSlot(int slot, ItemStack stack)\n {\n return slot == 0;\n }", "public boolean endsInSlot();", "@Override\n\tpublic int getSlotIndex() {\n\t\treturn -1;\n\t}", "public void if_candidates(int number) {\n\t\tbuttoninstance.setPlayer_Candidates_number(number, !buttoninstance.getPlayer_Candidates()[number]);\n\t\tbuttoninstance.print();\n\t\tboard.info.setText(\"Info\");\n\t\tbuttoninstance.setBackground(Color.white);\n\t\tbuttoninstance.setForeground(Color.black);\n\n\t\tSudokuBlock.counter = !SudokuBlock.counter;\n\n\t\tdispose();\n\t}", "public void onItemSelected(AdapterView<?> spinner, View arg1, int position, long row_id) {\n switch (spinner.getId()) {\n case R.id.spin1: {\n if(position == 0) numbersOfTotalSets = 5;\n else numbersOfTotalSets = 3;\n break;\n }\n case R.id.spin2: {\n if(position == 0) setFinishingScore = 25;\n else setFinishingScore = 15;\n break;\n }\n case R.id.spin3: {\n if(position == 0) tieBreakerScore = 15;\n else tieBreakerScore = 25;\n break;\n }\n }\n }", "@Override\r\n\t\tpublic void mouseClicked(MouseEvent e) {\r\n\t\t\tif(!didBust && submit.isEnabled()){\r\n\t\t\t\tint x = e.getX() - BORDER*2;\r\n\t\t\t\tint y = e.getY() - 550;\r\n\t\t\t\t\r\n\t\t\t\t// Find correct dice\r\n\t\t\t\tint num = -1;\r\n\t\t\t\tfor(int i = 0; i < 4; i++){\r\n\t\t\t\t\tif(x >=0 && x < SLOT_WIDTH*2){\r\n\t\t\t\t\t\tnum = i;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t} else if(x < 0){\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tx -= SLOT_WIDTH*2 + BORDER*3;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t// Update\r\n\t\t\t\tif(num >= 0 && num < 4 && y >= 0 && y < SLOT_WIDTH*2){\r\n\t\t\t\t\tselectedDice[num] = !selectedDice[num];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tupdateCanvas();\r\n\t\t}", "static void onSpinWait() {\n }", "private void computerTurn() {\r\n\t\tPoint index = randomIndex();\r\n\t\tSETslot((int)index.getX(), (int)index.getY(), randomValue());\r\n\t}", "public void updateParts()\n {\n ObservableList<Part> inventoryParts = this.inventory.getAllParts();\n\n // Configure part table and bind with inventory parts\n partIDColumn.setCellValueFactory(new PropertyValueFactory<Part,String>(\"id\"));\n partNameColumn.setCellValueFactory(new PropertyValueFactory<Part, String>(\"name\"));\n partInventoryColumn.setCellValueFactory(new PropertyValueFactory<Part, String>(\"stock\"));\n partCostColumn.setCellValueFactory(new PropertyValueFactory<Part, String>(\"price\"));\n\n partTable.setItems(inventory.getAllParts());\n // Unselect parts in table after part is deleted\n partTable.getSelectionModel().clearSelection();\n partTable.getSelectionModel().setSelectionMode(SelectionMode.MULTIPLE);\n }", "public int span(int row, int column) {\n\n Object current_box = table_model.getValueAt(row, column);\n\n // If the current item at ROW and COLUMN is a timetable screening box\n if(current_box instanceof TimetableScreeningBox){\n TimetableScreeningBox box = (TimetableScreeningBox)current_box;\n // Returns the box's size (the size of the cell)\n return box.getBoxSize();\n }\n\n return 1;\n }", "private void recruitThingsPhase() {\n\n ClickObserver.getInstance().setTerrainFlag(\"RecruitingThings: PlaceThings\");\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n GUI.getDoneButton().setDisable(false);\n }\n });\n int numToDraw = 0;\n boolean flag;\n \n for (final Player p : playerList) {\n doneClicked = false;\n this.player = p;\n player.flipAllUp();\n ClickObserver.getInstance().setActivePlayer(player);\n flag = true;\n pause();\n\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n GUI.getHelpText().setText(\"Recruitment Phase: \" + p.getName()\n + \", draw free/paid Things from The Cup, then click 'done'\");\n GUI.getRackGui().setOwner(player);\n TheCupGUI.update();\n }\n });\n \n while (isPaused) {\n while (!doneClicked) {\n if (freeClicked) {\n if (flag) {\n System.out.println(player.getName() + \" -clicked free\");\n numToDraw = (int)Math.ceil(player.getHexesOwned().size() / 2.0);\n System.out.println(numToDraw + \" -num to draw\");\n final int finNumToDraw = numToDraw;\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n TheCupGUI.setFieldText(\"\"+finNumToDraw);\n }\n });\n flag = false;\n }\n }\n if (paidClicked) {\n flag = true;\n if (flag) {\n \tPlatform.runLater(new Runnable() {\n @Override\n public void run() {\n \tPlayerBoard.getInstance().updateGold(player);\n }\n });\n flag = false;\n }\n }\n try { Thread.sleep(100); } catch( Exception e ){ return; }\n }\n try { Thread.sleep(100); } catch( Exception e ){ return; }\n }\n player.flipAllDown();\n }\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n GUI.getDoneButton().setDisable(true);\n }\n });\n\n ClickObserver.getInstance().setTerrainFlag(\"\");\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n int selection = statsTable.getSelectedRow();\n if (selection != -1) {\n int modelIndex = statsTable.getRowSorter().convertRowIndexToModel(selection);\n String set = (String) statsTable.getModel().getValueAt(modelIndex, 0);\n int index = map.getSettlement(set);\n String number = JOptionPane.showInputDialog(\"Please enter number of Dose Vaccine to add :\");\n map.getSettlements()[index].setNumberVaccineDose(Integer.parseInt(number));\n }\n else\n JOptionPane.showMessageDialog(new JFrame(), \"Select a row!\", \"Statistics Error\",\n JOptionPane.ERROR_MESSAGE);\n }", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tint column = table.getColumnModel().getColumnIndexAtX(e.getX());\n\t int row = e.getY()/table.getRowHeight();\n\n\t /*Checking the row or column is valid or not*/\n\t if (row < table.getRowCount() && row >= 0 && column < table.getColumnCount() && column >= 0) {\n\t Server ServerConnection;\n\t String courseID = (String) table.getValueAt(row, 0);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tServerConnection = new Server();\n\t\t\t\t\t\tString query = \"select * from course_attend where StudentID ='\" + ClientID + \"' and courseID ='\"+courseID+\"'\";\n\t\t \t\tResultSet data = ServerConnection.ExecuteQuery(query);\n\t\t \t\tif (data.next()) {\n\t\t \t\t\tscoreTable.setValue((String)table.getValueAt(row, 1), data.getString(\"practice_point\"), data.getString(\"theory_point\"), data.getString(\"overall\"), data.getString(\"pass_status\"));\n\t\t \t\t}\n\t\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t \n\t }\n\t else {\n\t \tscoreTable.setVisible(false);\n\t }\n\t\t\t}", "@FXML\n private void btnSlett() {\n int valgtIndex = tblData.getSelectionModel().getSelectedIndex();\n if (valgtIndex >=0) {\n System.out.println(tblData.getSelectionModel().getSelectedIndex());\n dRegister.removeInded(valgtIndex);\n } else {\n dialogs.showNoSelectDialog(\"Vennligst velg en komponent i tabellen\");\n }\n }", "public void runSpinner() {\r\n addItemsOndifficultySpinner();\r\n addListenerOnButton();\r\n addListenerOnSpinnerItemSelection();\r\n }", "public void updateSlots(Rete engine, BaseSlot[] slots) {\n\t}", "private int findFreeSlot(){\n\t\tfor(int i = 0; i < INVENTORY_SLOTS; i++){\n\t\t\tif(inventoryItems[i] == null){\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\n\t\treturn 0;\n\t}", "private void updateRegisterTableTomasulo() {\n\t\tint temp_it_index = 0; // tempory index tracker\n\n\t\t// Get the Integer Registers\n\t\tMap<String, String> temp_int_reg = registersTomasulo.getIntegerRegisters();\n\t\t// Get the FP Registers\n\t\tMap<String, String> temp_fp_reg = registersTomasulo.getFPRegisters();\n\n\t\t// add rows if needed\n\t\twhile ((temp_int_reg.size() > RegisterModelTomasulo.getRowCount())\n\t\t\t\t|| (temp_fp_reg.size() > RegisterModelTomasulo.getRowCount())) {\n\t\t\tRegisterModelTomasulo.addRow(new Object[] { \" \", \" \", \" \", \" \" });\n\t\t}\n\n\t\t// Update Integer Table Values\n\t\tfor (Map.Entry<String, String> int_entry : temp_int_reg.entrySet()) {\n\t\t\tRegisterModelTomasulo.setValueAt(int_entry.getKey(), temp_it_index, 2);\n\t\t\tRegisterModelTomasulo.setValueAt(int_entry.getValue(), temp_it_index, 3);\n\n\t\t\ttemp_it_index++;\n\t\t}\n\n\t\ttemp_it_index = 0;\n\t\t// Update Integer Table Values\n\t\tfor (Map.Entry<String, String> fp_entry : temp_fp_reg.entrySet()) {\n\t\t\tRegisterModelTomasulo.setValueAt(fp_entry.getKey(), temp_it_index, 0);\n\t\t\tRegisterModelTomasulo.setValueAt(fp_entry.getValue(), temp_it_index, 1);\n\n\t\t\ttemp_it_index++;\n\t\t}\n\t}", "private void TEMrunInfo(){\n\n int idummy;\n idummy=TEM.runcht.cht.getCd().getVegtype(); \t \n \tstateTB.setValueAt(Integer.toString(idummy), GUIconfigurer.I_VEGETATION, 1);\n idummy=TEM.runcht.cht.getCd().getDrgtype(); \t \n \tstateTB.setValueAt(Integer.toString(idummy), GUIconfigurer.I_DRAINAGE, 1);\n idummy=TEM.runcht.cht.getCd().getGrdid(); \t \n \tstateTB.setValueAt(Integer.toString(idummy), GUIconfigurer.I_GRD, 1);\n idummy=TEM.runcht.cht.getCd().getEqchtid(); \t \n \tstateTB.setValueAt(Integer.toString(idummy), GUIconfigurer.I_EQCHT, 1);\n idummy=TEM.runcht.cht.getCd().getSpchtid(); \t \n \tstateTB.setValueAt(Integer.toString(idummy), GUIconfigurer.I_SPCHT, 1);\n idummy=TEM.runcht.cht.getCd().getTrchtid(); \t \n \t stateTB.setValueAt(Integer.toString(idummy), GUIconfigurer.I_TRCHT, 1);\n \t \n float ddummy;\n ddummy=(float)TEM.runcht.initstate.getMossthick(); \t \n \tinitTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_MOSSTHICK, 1);\n ddummy=(float)TEM.runcht.initstate.getFibthick(); \t \n \tinitTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_FIBTHICK, 1);\n ddummy=(float)TEM.runcht.initstate.getHumthick(); \t \n \tinitTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_HUMTHICK, 1);\n ddummy=(float)TEM.runcht.initstate.getVegc(); \t \n \tinitTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_VEGC, 1);\n ddummy=(float)TEM.runcht.initstate.getVegn(); \t \n \tinitTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_VEGN, 1);\t\t\n ddummy=(float)TEM.runcht.initstate.getSoilc(); \t \n \tinitTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_SOILC, 1);\t \n ddummy=(float)TEM.runcht.initstate.getFibc(); \t \n \t\tinitTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_FIBSOILC, 1);\n ddummy=(float)TEM.runcht.initstate.getHumc(); \t \n \t\tinitTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_HUMSOILC, 1);\n ddummy=(float)TEM.runcht.initstate.getMinc(); \t \n \t\tinitTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_MINESOILC, 1);\n ddummy=(float)TEM.runcht.initstate.getAvln(); \t \n \tinitTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_AVAILN, 1);\n ddummy=(float)TEM.runcht.initstate.getOrgn(); \t \n \tinitTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_SOILN, 1);\n\n //\n \tvegpar_bgc vbpar = new vegpar_bgc();\n \tsoipar_bgc sbpar = new soipar_bgc();\n \tTEM.runcht.cht.getBgcPar(vbpar, sbpar);\n\n ddummy=vbpar.getM1(); \t \n \tfixparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_m1, 1);\n ddummy=vbpar.getM2(); \t \n \tfixparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_m2, 1);\n ddummy=vbpar.getM3(); \t \n \tfixparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_m3, 1);\n ddummy=vbpar.getM4(); \t \n \tfixparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_m4, 1);\n ddummy=sbpar.getFsoma(); \t \n \tfixparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_fsoma, 1);\n ddummy=sbpar.getFsompr(); \t \n \tfixparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_fsompr, 1);\n ddummy=sbpar.getFsomcr(); \t \n \tfixparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_fsomcr, 1); \t\t\n ddummy=sbpar.getSom2co2(); \t \n \tfixparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_som2co2, 1);\n \t\n //\n vegpar_cal vcpar = new vegpar_cal();\n soipar_cal scpar = new soipar_cal();\n TEM.runcht.cht.getCalPar(vcpar, scpar);\n\n ddummy=vcpar.getCmax(); \t \n \tcalparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_CMAX, 1);\n ddummy=vcpar.getNmax(); \t \n \tcalparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_NMAX, 1);\n ddummy=vcpar.getKrb(); \t \n \tcalparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_KRB, 1);\n ddummy=vcpar.getCfall(); \t \n \tcalparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_CFALL, 1);\n ddummy=vcpar.getNfall(); \t \n \tcalparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_NFALL, 1);\n \t\n ddummy=scpar.getNup(); \t \n \tcalparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_NUP, 1);\n ddummy=scpar.getKdcfib(); \t \n \tcalparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_KDCFIB, 1);\n ddummy=scpar.getKdchum(); \t \n \tcalparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_KDCHUM, 1);\n ddummy=scpar.getKdcmin(); \t \n \tcalparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_KDCMIN, 1);\n ddummy=scpar.getKdcslow(); \t \n \tcalparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_KDCSLOW, 1);\n\t \t\t\n }", "public int getLocalSlotNumber() {\n return 0; //To change body of implemented methods use File | Settings | File Templates.\n }", "protected void playGame(int spinValue,Entry<ArrayList<String>, ArrayList<int[]>> betAmountRange, ArrayList<Integer> relativeBetAmount){\n\t\tint rangeIndex = 0;\n\t\twonOrLost = false;\n\t\tfor(String type : betAmountRange.getKey()){\n\t\t\tchangeMoney(winLoseAmount(type, relativeBetAmount.get(rangeIndex), spinValue, betAmountRange.getValue().get(rangeIndex)));\n\t\t\trangeIndex++;\n\t\t}\n\t}", "public void setBinderySlotNumber(int s) {\n if (!isUnused()) {\n binderySlotNumber = s;\n }\n }", "protected abstract void setupSpinners();" ]
[ "0.6133961", "0.606854", "0.5835534", "0.57645214", "0.5749388", "0.5616147", "0.56125075", "0.56019664", "0.55592215", "0.5543491", "0.5528646", "0.54428005", "0.5439479", "0.5423555", "0.5405683", "0.54021", "0.5398684", "0.53782487", "0.53730637", "0.5340944", "0.53299725", "0.5327526", "0.5327526", "0.5303039", "0.5293763", "0.52838486", "0.5279527", "0.5275309", "0.52525395", "0.52513283", "0.52345794", "0.52169776", "0.5207225", "0.5202121", "0.51968336", "0.5181558", "0.5177813", "0.5170343", "0.51668763", "0.51657736", "0.5165149", "0.51561534", "0.5136432", "0.5133536", "0.5132787", "0.51307213", "0.51256967", "0.51211023", "0.51029515", "0.50999165", "0.50930274", "0.50865597", "0.5084234", "0.50833744", "0.50817305", "0.50789714", "0.5058495", "0.5048424", "0.50483507", "0.5046256", "0.50405645", "0.5038078", "0.5037026", "0.5036706", "0.5036451", "0.502693", "0.50247025", "0.50195307", "0.5007476", "0.500295", "0.49975505", "0.49888846", "0.49875295", "0.4987058", "0.4972009", "0.4961436", "0.49580622", "0.4956584", "0.494884", "0.49485216", "0.4939971", "0.49335906", "0.49324334", "0.49315974", "0.49296156", "0.4929011", "0.49226218", "0.49222848", "0.49164054", "0.49109352", "0.4910429", "0.4909732", "0.49079037", "0.49055603", "0.48966154", "0.48954576", "0.48892084", "0.488726", "0.48862016", "0.48765704" ]
0.84211415
0
boolean serviceRunning = ServiceStatusUtils.isServiceRunning(, );
public void test() { String name = AddressService.class.getName(); System.out.print(name + "xxxx"); Logs.d(name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isServiceRunning();", "public synchronized static boolean isServiceRunning(){\n return prefs.getBoolean(IS_SERVICE_RUNNING, false);\n }", "private boolean checkServiceIsRunning(){\r\n if (CurrentLocationUtil.isRunning()){\r\n doBindService();\r\n return true;\r\n }else{\r\n return false;\r\n }\r\n }", "boolean hasService();", "boolean hasService();", "boolean hasService();", "boolean hasService();", "boolean hasService();", "private void CheckIfServiceIsRunning() {\n\t\tLog.i(\"Convert\", \"At isRunning?.\");\n\t\tif (eidService.isRunning()) {\n//\t\t\tLog.i(\"Convert\", \"is.\");\n\t\t\tdoBindService();\n\t\t} else {\n\t\t\tLog.i(\"Convert\", \"is not, start it\");\n\t\t\tstartService(new Intent(IDManagement.this, eidService.class));\n\t\t\tdoBindService();\n\t\t}\n\t\tLog.i(\"Convert\", \"Done isRunning.\");\n\t}", "public boolean isServiceReady();", "public boolean isRunning() {\n return (service != null) && service.isMonitoring();\n }", "boolean isRunning();", "boolean isRunning();", "boolean isRunning();", "boolean isRunning();", "boolean isRunning();", "boolean hasServiceName();", "boolean hasServiceName();", "boolean hasServiceCmd();", "public boolean getIsServiceBound () ;", "public boolean isRunning();", "public boolean isRunning();", "public boolean isRunning();", "public boolean isRunning();", "public boolean isRunning();", "public boolean isRunning();", "public boolean isRunning()\n\t{\n\t\tif(mBoundService != null){\t// Service already started\n\t\t\tif(mBoundService.testThread != null && mBoundService.testThread.isAlive())\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}else{\n\t\t\tLog.v(\"4G Test\", \"mBoundService null not running\");\n\t\t\treturn false;\n\t\t}\n\t}", "private boolean isMyServiceRunning() {\n\t ActivityManager manager = (ActivityManager) getSystemService(ACTIVITY_SERVICE);\n\t for (RunningServiceInfo service : manager.getRunningServices(Integer.MAX_VALUE)) {\n\t if (\"com.example.MyService\".equals(service.service.getClassName())) {\n\t return true;\n\t }\n\t }\n\t return false;\n\t}", "public boolean iAmRunning();", "public boolean hasService() {\n return service_ != null;\n }", "public boolean hasService() {\n return service_ != null;\n }", "public boolean hasService() {\n return service_ != null;\n }", "public boolean isRunning() {\n/* 101 */ return this.isRunning;\n/* */ }", "public boolean isRunning(){\n return isRunning;\n }", "public static boolean isServiceRunning(Class <? extends Service> service, Context context) {\n ActivityManager manager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE);\n for ( ActivityManager.RunningServiceInfo runningServiceInfo : manager.getRunningServices(Integer.MAX_VALUE) ) {\n if ( service.getName().equals(runningServiceInfo.service.getClassName()) ) { return true; }\n }\n return false;\n }", "public boolean isRunning ()\n {\n return server == null ? false : true;\n }", "public boolean isRunning()\n {\n\n // TODO Auto-generated method stub\n return !started || running;\n }", "public static boolean isServiceRunning(String serviceName, Context context) {\n ActivityManager manager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE);\n for (ActivityManager.RunningServiceInfo service : manager.getRunningServices(Integer.MAX_VALUE)) {\n if (serviceName.equals(service.service.getClassName())) {\n return true;\n }\n }\n return false;\n }", "private boolean isMyServiceRunning(Class<?> serviceClass) {\n ActivityManager manager = (ActivityManager) getSystemService(Context.ACTIVITY_SERVICE);\n\n for (ActivityManager.RunningServiceInfo serviceInfo : manager.getRunningServices(Integer.MAX_VALUE)) {\n if (serviceClass.getName().equals(serviceInfo.service.getClassName())) {\n return true;\n }\n }\n return false;\n }", "private boolean isServiceRunning(String strClassName) {\n boolean bRunning = false;\n\n try{\n ActivityManager am = (ActivityManager)mContext.getSystemService(Context.ACTIVITY_SERVICE);\n List<ActivityManager.RunningServiceInfo> servicesList = am.getRunningServices(Integer.MAX_VALUE);\n Iterator<ActivityManager.RunningServiceInfo> serviceList = servicesList.iterator();\n\n while(serviceList.hasNext()) {\n ActivityManager.RunningServiceInfo si = (ActivityManager.RunningServiceInfo)serviceList.next();\n if(strClassName.equals(si.service.getClassName()) == true) {\n bRunning = true;\n break;\n }\n }\n\n }catch (Exception e)\n {\n e.printStackTrace();\n }\n\n return bRunning;\n }", "public interface StatusService {\r\n\r\n String getStatus();\r\n\r\n}", "Object getService(String serviceName, boolean checkExistence);", "boolean hasStatus();", "boolean hasStatus();", "boolean hasStatus();", "boolean hasStatus();", "boolean hasStatus();", "boolean hasStatus();", "boolean hasStatus();", "boolean hasStatus();", "boolean hasStatus();", "boolean hasStatus();", "boolean hasStatus();", "boolean hasStatus();", "boolean hasStatus();", "boolean hasStatus();", "boolean hasStatus();", "boolean hasStatus();", "boolean hasStatus();", "boolean hasStatus();", "boolean hasStatus();", "boolean hasStatus();", "boolean hasStatus();", "boolean hasStatus();", "public static boolean isServiceRunning(Context context, String serviceName) {\n ActivityManager activityManager = (ActivityManager) context\n .getSystemService(Context.ACTIVITY_SERVICE);\n List<ActivityManager.RunningServiceInfo> services = activityManager\n .getRunningServices(Integer.MAX_VALUE);\n\n if (services != null) {\n for (ActivityManager.RunningServiceInfo info : services) {\n if (info.service != null) {\n if (info.service.getClassName() != null && info.service.getClassName()\n .equalsIgnoreCase(serviceName)) {\n return true;\n }\n }\n }\n }\n\n return false;\n }", "boolean isStarted();", "boolean isStarted();", "public boolean checkEngineStatus(){\r\n return isEngineRunning;\r\n }", "SearchServiceStatus status();", "boolean getStatus();", "boolean getStatus();", "boolean getStatus();", "public boolean hasService() {\n return fieldSetFlags()[1];\n }", "public Boolean isRunning(Integer id) throws CallError, InterruptedException {\n return (Boolean)service.call(\"isRunning\", id).get();\n }", "public static boolean isServiceRunning(Context context, Class<?> serviceClass) {\n ActivityManager manager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE);\n for (ActivityManager.RunningServiceInfo service : manager.getRunningServices(Integer.MAX_VALUE)) {\n if (serviceClass.getName().equals(service.service.getClassName())) {\n return true;\n }\n }\n return false;\n }", "public boolean isRunning() {\n return isRunning;\n }", "boolean isMonitoring();", "boolean isMonitoring();", "public synchronized boolean wasServiced() {\n\t\treturn serviced;\n\t}", "public boolean hasService() {\n return serviceBuilder_ != null || service_ != null;\n }", "public boolean hasService() {\n return serviceBuilder_ != null || service_ != null;\n }", "public boolean hasService() {\n return serviceBuilder_ != null || service_ != null;\n }", "protected StatusService getStatusService() {\n return getLockssDaemon().getStatusService();\n }", "boolean isDaemon();", "public static boolean isServiceRunning(Context ctx, Class<?> serviceClass) {\n ActivityManager manager = (ActivityManager) ctx.getSystemService(Context.ACTIVITY_SERVICE);\n for (ActivityManager.RunningServiceInfo service : manager.getRunningServices(Integer.MAX_VALUE)) {\n if (serviceClass.getName().equals(service.service.getClassName())) {\n return true;\n }\n }\n return false;\n }", "boolean isMonitoringTerminated();", "void checkForAccServices();", "protected boolean isServiceRunning(final String serviceClassName) {\n\t\tif (StringUtils.isNullorEmpty(serviceClassName))\n\t\t\treturn false;\n\t\tActivityManager manager = (ActivityManager) getSystemService(ACTIVITY_SERVICE);\n\t\tfor (RunningServiceInfo service : manager\n\t\t\t\t.getRunningServices(Integer.MAX_VALUE)) {\n\t\t\tif (serviceClassName.equalsIgnoreCase(service.service\n\t\t\t\t\t.getClassName())) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public boolean isRunning() {\n return bRunning;\n }", "boolean hasServiceList();", "public boolean isRunning(){\n\t\treturn this.running;\n\t}", "public boolean isRunning() {\r\n\t\treturn __flagRunning;\r\n\t}", "public boolean isRunning() {\n/* 190 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "boolean isStopped();", "private boolean isInService() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.isInService():boolean, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.isInService():boolean\");\n }", "public Boolean timerCheck(){\n return isRunning;\n }", "public boolean isRunning() {\n\t\treturn isRunning;\n\t}", "public boolean isRunning()\n\t{\n\t\treturn running;\n\t}", "@Override\n public boolean isRunning() {\n return isRunning;\n }", "@Override\n public boolean isRunning() {\n return isRunning;\n }", "public boolean isServiceConnected() {\r\n\t\treturn LeapJNI.Controller_isServiceConnected(this.swigCPtr, this);\r\n\t}" ]
[ "0.8874076", "0.7803146", "0.7652272", "0.7633941", "0.7633941", "0.7633941", "0.7633941", "0.7633941", "0.7480912", "0.7430147", "0.7309039", "0.7239106", "0.7239106", "0.7239106", "0.7239106", "0.7239106", "0.7198832", "0.7198832", "0.7197028", "0.71562994", "0.7142221", "0.7142221", "0.7142221", "0.7142221", "0.7142221", "0.7142221", "0.7135612", "0.7099599", "0.6945874", "0.68811697", "0.68811697", "0.68811697", "0.6875006", "0.68482053", "0.68419135", "0.6819807", "0.6811864", "0.6761064", "0.67565143", "0.674226", "0.6722465", "0.670329", "0.6551022", "0.6551022", "0.6551022", "0.6551022", "0.6551022", "0.6551022", "0.6551022", "0.6551022", "0.6551022", "0.6551022", "0.6551022", "0.6551022", "0.6551022", "0.6551022", "0.6551022", "0.6551022", "0.6551022", "0.6551022", "0.6551022", "0.6551022", "0.6551022", "0.6551022", "0.654457", "0.6537733", "0.6537733", "0.6523745", "0.6519717", "0.6496029", "0.6496029", "0.6496029", "0.64861184", "0.64835256", "0.64789444", "0.64725274", "0.646863", "0.646863", "0.6460285", "0.6456745", "0.6456745", "0.6456745", "0.64051497", "0.64011216", "0.6387451", "0.63795316", "0.6374755", "0.6364333", "0.6361245", "0.6353328", "0.63532406", "0.6353163", "0.63430333", "0.6332085", "0.6330067", "0.6316921", "0.63162124", "0.630699", "0.62863517", "0.62863517", "0.6284378" ]
0.0
-1
Get the cell which this bug is positioned in.
public Cell getPosition() { return position; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getPosition(){\n\t\treturn this.cell;\n\t}", "public int getCell() {\n return this.cell;\n }", "public Cell getCell() {\n\t\treturn cell;\n\t}", "public SubCell position() {\r\n return position;\r\n }", "Cell getCellAt(Coord coord);", "public TableCell getCell() {\n return cell;\n }", "@Override\n public Cell getCellAtPosition(CellPosition position) {\n return cellGrid[position.getCircle()][position.getBlock()][position.getClockwise()];\n }", "public Object getCurrentCellX() {\n\t\treturn x;\n\t}", "public Cell getCellAt (int x, int y) {\n return grid[x-1][y-1];\n }", "public Cell containingCell() {\n return new Cell(x() / SUBCELL_COUNT, y() / SUBCELL_COUNT);\n }", "public abstract T getCell(int row, int column);", "public Cell containingCell() {\n return new Cell(x / NBROFSUBCELLINCELL, y / NBROFSUBCELLINCELL);\n }", "@Override\r\n\tpublic Integer getCell(Integer x, Integer y) {\n\t\treturn game[x][y];\r\n\t}", "int getCell(int x, int y) {\n try {\n return hiddenGrid[x][y];\n } catch (IndexOutOfBoundsException hiddenIndex) {}\n return hiddenGrid[x][y];\n }", "public abstract AwtCell get(int y, int x);", "protected int[] getCellJustif() {\n return this.cellJustifStack.getLast();\n }", "private Cell get_cell(int row, int col){\n if (! cell_in_bounds(row,col)) return null;\n return this.cells[row][col];\n }", "@Override\r\n\tpublic Cell getCell(Location loc)\r\n\t{\n\t\tint row = loc.getRow();\r\n\t\tint col = loc.getCol();\r\n\t\treturn cells[row][col];\r\n\t}", "public Cell getSelectedCell() {\n return selectedCell;\n }", "public Object getCurrentCellY() {\n\t\treturn y;\n\t}", "ICell getCellAt(int col, int row) throws IllegalArgumentException;", "public Integer getCellNum() {\n return cellNum;\n }", "public Point2D getCellCoordinates(JmtCell cell) {\r\n \t\tRectangle2D bounds = GraphConstants.getBounds(cell.getAttributes());\r\n \t\treturn new Point2D.Double(bounds.getMinX(), bounds.getMinY());\r\n \t}", "protected abstract double getCell(\r\n int row,\r\n int col);", "public int visibleCell(int row, int column) {\n return column;\n }", "public int getCellid() {\n return cellid_;\n }", "public int getCellid() {\n return cellid_;\n }", "public Cell get() {\n return ptSearcher.current();\n }", "public String getCellLine()\n {\n return this.cellLine;\n }", "public int get_cell(int row,int col)\n{\n\treturn cell[row][col] ;\t\n}", "private Point2D getBoardPosition() {\n double size = getCellSize();\n double x = canvas.getWidth() / 2 - board.getWidth() * size / 2;\n double y = canvas.getHeight() / 2 - board.getHeight() * size / 2;\n\n return new Point2D(x, y);\n }", "public GoLCell getCell(int x, int y)\n\t{\n \treturn myGoLCell[x][y];\n\t}", "String getRawCellAt(Coord coord);", "public StrColumn getEbiCell() {\n return delegate.getColumn(\"ebi_cell\", DelegatingStrColumn::new);\n }", "private int getStartCell() {\r\n\t\tint extraCells = (getContentHeight() - getViewableHeight()) / CELL_SIZE_Y;\r\n\t\tif (getContentHeight() < getViewableHeight()) {\r\n\t\t\textraCells = 0;\r\n\t\t}\r\n\t\treturn (int) ((float) extraCells * ((float) _curScrollValue / (float) _maxScrollValue));\r\n\t}", "public int getCellXCoord(int col) {\n return TOP_LEFT_X + (col * BLOCK_WIDTH);\n }", "public int getCellBody() {\n\t\treturn cellBody;\n\t}", "public Position attackCell() {\n if (this.strategy == null) {\n return null;\n } else {\n return this.strategy.generateAttackPosn(this.battleMap);\n }\n }", "public CellGrid getCellGrid() {\n return cellGrid;\n }", "public abstract boolean getCell(int x, int y);", "public Cell cellFromHere(Vector2D delta) {\n\t return Referee.playfield.getCell(Vector2D.add(pos, delta));\n }", "public CoreCell getCellOfIndex (int i){\r\n return cellsUniverse.get(i);\r\n }", "public int getCell(int row, int col)\n {\n if (inBounds(row, col))\n return grid[row][col];\n else\n return OUT_OF_BOUNDS;\n }", "int getCellid();", "public int getPositionColumn(){return this.positionColumn;}", "public String getRealCell(){\n\t\treturn userInput;\n\t}", "public Cell getCell( int rowIndex, int colIndex )\n {\n return cells[ colIndex ][ rowIndex ];\n }", "public String cellAt(Point punto) {\r\n Point inner = toInnerPoint(punto);\r\n return innerPiece.cellAt(inner);\r\n }", "private Cell get_top_cell(int row, int col) {\n return get_cell(--row, col);\n }", "public Grid getEntrance(){\n\t\treturn getpos((byte)2);\n\t}", "int getCellStatus(int x, int y);", "public Cell get(int row, int col) {\n\t\treturn myGrid.get(row, col);\n\t}", "public BoardCell getCenterCell() {\n\t\treturn null;\n\t}", "@Override\n public int getCol() {\n return getLayout().getCol();\n }", "public VerticalPanel getCellTablePanel() {\n\t\treturn cellTablePanel;\n\t}", "public String getShopCell() {\n\t\treturn shopCell;\n\t}", "public Grid getExit(){\n\t\treturn getpos((byte)3);\n\t}", "public Cell getCell(int x, int y) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\treturn cells[x][y];\r\n\t\t\t\t} catch (ArrayIndexOutOfBoundsException e) { // fora dos limites\r\n\t\t\t\t\treturn null;\r\n\t\t\t\t}\r\n\t\t\t}", "public Cell[][] getGrid() {\n return grid;\n }", "public Cell getCell(int xCord, int yCord) {\n return grid[xCord][yCord];\n }", "public String getUserCell() {\n\t\treturn userCell;\n\t}", "public double getCell(int row, int col) {\n int di = row - col;\n\n if (di == 0) {\n return B[row];\n } else if (di == -1) {\n return C[row];\n } else if (di == 1) {\n return A[row];\n } else return 0;\n }", "public Cell getCell(int row, int column) {\n return cells[row][column];\n }", "public String getCellid() {\r\n return cellid;\r\n }", "public org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle getSeCell()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle target = null;\n target = (org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle)get_store().find_element_user(SECELL$18, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "Tile getPosition();", "public org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle getNwCell()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle target = null;\n target = (org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle)get_store().find_element_user(NWCELL$26, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "public Cell getCell(int row, int col) {\n return board[row][col];\n }", "public int getCellIndex(int column, int row) {\n\t\treturn ((row - 1) * width) + (column - 1);\n\t}", "public static int getCell() {\n int cell;\n\n cell = input.nextInt();\n // While enter other numbers out of the range of [1,3], the players will be asked to enter 1, 2, or 3\n while (cell < MARG_FIRST || cell > MARG_LAST) { // Set boundaries\n System.out.print(\"Please enter 1, 2, or 3: \");\n cell = input.nextInt();\n }\n return cell;\n }", "public Cell getEnumCell() {\n\n\t\tString player = getNextPlayer();\n\n\t\tCell value;\n\n\t\tif(player.equals(\"X\"))\n\t\t\tvalue = Cell.X;\n\n\t\telse\n\t\t\tvalue = Cell.O;\n\n\t\treturn value;\n\t}", "public String getCellid() {\n return cellid;\n }", "public String getCellid() {\n return cellid;\n }", "public Object getCell(int col, int row) {\n Vector data = ((DefaultTableModel) getModel()).getDataVector();\n return ((Vector) data.get(row)).get(col);\n }", "public CrosstabCell getCellByPoint(Point p) {\r\n\r\n for (int i=0; i<getCrosstabElement().getCells().size(); ++i)\r\n {\r\n CrosstabCell cell = (CrosstabCell)this.getCrosstabElement().getCells().elementAt(i);\r\n if (cell.getBounds().contains(p) && (isDefaultCellMode() == (cell.getType() == CrosstabCell.NODATA_CELL)))\r\n {\r\n return cell;\r\n }\r\n }\r\n\r\n return null;\r\n }", "public Cell<C> getCellAt(int x, int y) {\n\t\tCell<C> c = null;\n\t\tMap<Integer, Cell<C>> xCol = cellLookup.get(x);\n\t\tif (null != xCol) {\n\t\t\tc = xCol.get(y);\n\t\t}\n\n\t\treturn c;\n\t}", "public long getCellAt(Point point)\n\t{\n\t\tfor (CIntentionCell cell : cells.values())\n\t\t{\n\t\t\tif (cell.contains(point))\n\t\t\t{\n\t\t\t\treturn cell.getId();\n\t\t\t}\n\t\t}\n\t\treturn -1L;\n\t}", "public int getCol() {\n\t\treturn j;\n\t}", "public int col() {\r\n return col;\r\n }", "public org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle getSwCell()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle target = null;\n target = (org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle)get_store().find_element_user(SWCELL$20, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "public BoardCell getCell(int row, int col) {\n\t\treturn this.grid[row][col]; \n\t}", "public int[] getCellPosition(int i, int j)\n {\n int[] position = {firstCellPosition[0]+i*cellSize,firstCellPosition[1]+j*cellSize};\n return position;\n }", "public int getPositionRow(){return this.positionRow;}", "public Font getCellFont() {\n return cellFont;\n }", "public int getColumn()\n {\n return col;\n }", "public org.edna.mxv1.xsdata.XSDataCell getCell(\n ) {\n return this._cell;\n }", "@Override\n\tpublic List<DiscreteCoordinates> getCurrentCells() {\n\t\treturn Collections.singletonList(getCurrentMainCellCoordinates());\n\t}", "int getCol();", "public Coord minCell()\n {\n\t int minX = getGrid().keySet().stream().mapToInt(Coord::getX).min().orElse(0);\n\n\t int minY = getGrid().keySet().stream().mapToInt(Coord::getY).min().orElse(0);\n\n\t return new Coord(minX, minY);\n }", "@Override\n public ColorCell getCell(int row, int column) {\n List<Pair> pairs = prototypes.get(current).getSegments().get(0).getPairs();\n return new ColorCell(row, column, Color.BLUE, Collections.emptyList(), pairs);\n }", "public CellSelection getSelectCell() {\n return selection;\n }", "public int[] mouseToCell()\n {\n int x = mouseX;\n int y = mouseY;\n if(x > firstCellPosition[0] && x < firstCellPosition[0]+xCells*cellSize &&\n y > firstCellPosition[1] && y < firstCellPosition[1]+yCells*cellSize)\n {\n showHover = true;\n x = x-firstCellPosition[0];\n y = y-firstCellPosition[1];\n int[] cell = new int[2];\n cell[0] = x/cellSize;\n cell[1] = y/cellSize;\n return cell;\n }\n showHover = false;\n return null;\n }", "public String getCellname() {\r\n return cellname;\r\n }", "private GPoint getUpperLeftCellPosition(GPoint viewPosition, int dx, int dy) {\n\t\tint x = table.getIndexFromPixelRelativeX(viewPosition.x);\n\t\tint y = table.getIndexFromPixelRelativeY(viewPosition.y);\n\t\tif (x < 0 || y < 0) {\n\t\t\treturn null;\n\t\t}\n\n\t\t// get new pixel coordinates to place the upper left cell exactly\n\t\treturn table.getPixelRelative(x + dx, y + dy);\n\t}", "public static int getRandCell() {\n int num = (int) (Math.random() * 10); // Generate random numbers\n int randCell = 1;\n if (num >= MARG_FIRST && num <= MARG_LAST) { // Set boundaries\n randCell = num;\n }\n return randCell;\n }", "public SudokuCell getPositionForValue(int value)\n {\n SudokuCell ret=null;\n for(int i=0;i<SudokuConstants.GRID_SIZE;i++)\n {\n for(int j=0;j<SudokuConstants.GRID_SIZE;j++)\n {\n SudokuCell cell=_cells[i][j];\n Integer cellValue=cell.getValue();\n if ((cellValue!=null) && (cellValue.intValue()==value))\n {\n ret=cell;\n break;\n }\n }\n if (ret!=null)\n {\n break;\n }\n }\n return ret;\n }", "@Override\r\n public int getCol() {\r\n return this.col;\r\n }", "public boolean isCell() {\n\t\treturn Cell;\n\t}", "public GoLCell[][] getCells()\n\t{\n\t\treturn this.myGoLCell;\n\t}", "public abstract Cell getOverlappedCell(Rectangle rect);" ]
[ "0.7921211", "0.75943655", "0.74148923", "0.74031097", "0.73327374", "0.71757", "0.7152548", "0.71150553", "0.7044577", "0.69692844", "0.6958153", "0.6949744", "0.6924532", "0.6881853", "0.6875334", "0.6727624", "0.67273796", "0.67269456", "0.67249846", "0.6674521", "0.6668128", "0.6662492", "0.6638853", "0.6627051", "0.6619343", "0.66118354", "0.6589394", "0.6579294", "0.6531056", "0.65302396", "0.65177226", "0.6513815", "0.6507819", "0.65005976", "0.64844096", "0.64685607", "0.6453375", "0.6449024", "0.6443863", "0.64347273", "0.64304423", "0.6418651", "0.6395709", "0.63775086", "0.63660157", "0.63656354", "0.633853", "0.6336334", "0.6326594", "0.63259226", "0.6292632", "0.6283928", "0.62807024", "0.6272801", "0.6257794", "0.6254522", "0.625419", "0.624878", "0.62437725", "0.623733", "0.6220668", "0.62193024", "0.62150437", "0.62116104", "0.6199981", "0.6198929", "0.6186265", "0.6175563", "0.61733866", "0.6170736", "0.61598647", "0.6158004", "0.6158004", "0.61558557", "0.6153286", "0.61485106", "0.61482066", "0.6142794", "0.6141771", "0.6119544", "0.61105984", "0.61021817", "0.60977304", "0.6097521", "0.6092562", "0.6090191", "0.6077839", "0.6075023", "0.6058072", "0.60494053", "0.604566", "0.60322666", "0.6027969", "0.6024099", "0.6021212", "0.6019608", "0.60173833", "0.6014475", "0.60129184", "0.60128075" ]
0.762701
1
Draw the bug icon.
public void draw(Graphics graphics) { graphics.drawImage( Util.getImage(icon), position.getScreenHorizontalCoord(), position.getScreenVerticalCoord(), Cell.CELL_PIXELS, Cell.CELL_PIXELS, null ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void drawIconBorder(Graphics g) {\n }", "@Override\n\t\tprotected void paintComponent(Graphics g) {\n\t\t\tint width = getWidth();\n\t\t\tint height = getHeight();\n\t\t\tint x = (width - icon.getIconWidth()) / 2;\n\t\t\tint y = icon.getIconHeight() / 2;\n\t\t\tg.setColor(Color.darkGray);\n\t\t\tg.fillRect(0, 0, width, height);\n\t\t\ticon.paintIcon(this, g, x, y);\n\t\t}", "public void paintIcon(Component c, Graphics g, int x, int y)\r\n/* 164: */ {\r\n/* 165:198 */ Graphics2D g2 = (Graphics2D)g;\r\n/* 166:199 */ AbstractButton rb = (AbstractButton)c;\r\n/* 167:200 */ ButtonModel model = rb.getModel();\r\n/* 168:201 */ boolean paintFocus = ((model.isArmed()) && (!model.isPressed())) || ((rb.hasFocus()) && (PlasticXPIconFactory.isBlank(rb.getText())));\r\n/* 169: */ \r\n/* 170: */ \r\n/* 171:204 */ RenderingHints.Key key = RenderingHints.KEY_ANTIALIASING;\r\n/* 172:205 */ Object newAAHint = RenderingHints.VALUE_ANTIALIAS_ON;\r\n/* 173:206 */ Object oldAAHint = g2.getRenderingHint(key);\r\n/* 174:207 */ if (newAAHint != oldAAHint) {\r\n/* 175:208 */ g2.setRenderingHint(key, newAAHint);\r\n/* 176: */ } else {\r\n/* 177:210 */ oldAAHint = null;\r\n/* 178: */ }\r\n/* 179:213 */ drawFill(g2, model.isPressed(), x, y, SIZE - 1, SIZE - 1);\r\n/* 180:214 */ if (paintFocus) {\r\n/* 181:215 */ drawFocus(g2, x + 1, y + 1, SIZE - 3, SIZE - 3);\r\n/* 182: */ }\r\n/* 183:217 */ if (model.isSelected()) {\r\n/* 184:218 */ drawCheck(g2, c, model.isEnabled(), x + 4, y + 4, SIZE - 8, SIZE - 8);\r\n/* 185: */ }\r\n/* 186:220 */ drawBorder(g2, model.isEnabled(), x, y, SIZE - 1, SIZE - 1);\r\n/* 187:222 */ if (oldAAHint != null) {\r\n/* 188:223 */ g2.setRenderingHint(key, oldAAHint);\r\n/* 189: */ }\r\n/* 190: */ }", "public void displayIcon(Graphics g, int xPos, int yPos){\n\t\t\n\t}", "public void iconSetup(){\r\n chessboard.addRedIcon(\"Assets/PlusR.png\");\r\n chessboard.addRedIcon(\"Assets/TriangleR.png\");\r\n chessboard.addRedIcon(\"Assets/ChevronR.png\");\r\n chessboard.addRedIcon(\"Assets/SunR.png\"); \r\n chessboard.addRedIcon(\"Assets/ArrowR.png\");\r\n \r\n chessboard.addBlueIcon(\"Assets/PlusB.png\");\r\n chessboard.addBlueIcon(\"Assets/TriangleB.png\");\r\n chessboard.addBlueIcon(\"Assets/ChevronB.png\");\r\n chessboard.addBlueIcon(\"Assets/SunB.png\");\r\n chessboard.addBlueIcon(\"Assets/ArrowB.png\");\r\n }", "public void paintIcon(Component c, Graphics g, int x, int y) {\n if (debug||DEBUG.PAINT) System.out.println(\"painting \"\n + mRawIcon + \" type \" + mType + \"(\" + _types[mType]\n + \") on \" + c + \" bg=\" + c.getBackground());\n Graphics2D g2 = (Graphics2D) g;\n g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n // if (mType >= MENU) {\n // the drop-down menus have GC bugs on the PC such\n // that we need to be sure to paint something in\n // the entire region, or we appear to get another\n // version of the icon painted *under* us.\n g2.setColor(c.getBackground());\n g2.fillRect(0,0, width,height);\n// }\n\n if (debug) {\n g2.setColor(Color.red);\n g2.fillRect(0,0, 99,99);\n }\n x += insets.top;\n y += insets.left;\n //if (VueUtil.isMacPlatform()) { x += 2; y += 2; }// try now that attend to x/y above\n g2.translate(x,y);\n\n int w = width - (insets.left + insets.right);\n int h = height - (insets.top + insets.bottom);\n \n float gw = width;\n //GradientPaint gradient = new GradientPaint(gw/2,0,Color.white,gw/2,h/2,mColor,true);\n //GradientPaint gradient = new GradientPaint(gw/6,0,Color.white,gw/2,h/2,mColor,true);\n GradientPaint gradient = new GradientPaint(gw/6,0,Color.white,gw*.33f,h/2,mColor,true);\n // Set gradient for the whole button.\n\n if (isPressIcon) {\n // Draw the 3d button border -- raised/lowered depending on down state \n g2.setColor(c.getBackground());\n g2.draw3DRect(0,0, w-1,h-1, !isPressIcon);\n } else if (mType == ROLLOVER) {\n // Draw an etched rollover border:\n\n if (DEBUG.BOXES) {\n g.setColor(Color.green);\n g.fillRect(0,0, w, h);\n }\n\n if (true) {\n if (tufts.Util.isMacLeopard()) {\n // TODO: not sure why we need this -- may have to do with clipping\n sRolloverBorder.paintBorder(c, g, 0, 2, w, h-2);\n } else {\n sRolloverBorder.paintBorder(c, g, 0, 0, w, h);\n }\n } else {\n // experiment in separate border for drop-down portions\n sRolloverBorder.paintBorder(c, g, 0, 0, w-8, h);\n sRolloverBorder.paintBorder(c, g, w-7, 0, 7, h);\n }\n \n // this make it look like button-pressed:\n //g2.draw3DRect(0,0, w-1,h-1, false);\n }\n\n // now fill the icon, but don't fill if we're just holding the mouse down on a grouped toggle button\n // (so the group won't ever show two buttons in the fully selected state at once)\n if (isPressIcon && (!isRadioButton || mType != PRESSED)) {\n g2.setPaint(gradient);\n g2.fillRect(1,1, w-2,h-2);\n }\n else\n g2.setColor(mColor);\n //g2.fillRect(1,1, w-2,h-2);\n // skipping the fill here creates the flush-look\n \n // if we're down, nudge icon\n if (OffsetWhenDown && isPressIcon)\n g2.translate(1,1);\n\n // now draw the actual graphic in the center\n if (mRawIcon != null) {\n int ix = (w - mRawIcon.getIconWidth()) / 2;\n int iy = (h - mRawIcon.getIconHeight()) / 2;\n if (mType == DISABLED)\n g2.setComposite(DisabledAlpha);\n if (DEBUG.BOXES) {\n g2.setColor(Color.red);\n g2.fillRect(ix, iy, mRawIcon.getIconWidth(), mRawIcon.getIconHeight());\n }\n drawGraphic(c, g2, ix, iy);\n }\n }", "Icon createIcon();", "public void paintIcon(Component c, Graphics g, int x, int y)\r\n/* 60: */ {\r\n/* 61:103 */ JCheckBox cb = (JCheckBox)c;\r\n/* 62:104 */ ButtonModel model = cb.getModel();\r\n/* 63:105 */ Graphics2D g2 = (Graphics2D)g;\r\n/* 64:106 */ boolean paintFocus = ((model.isArmed()) && (!model.isPressed())) || ((cb.hasFocus()) && (PlasticXPIconFactory.isBlank(cb.getText())));\r\n/* 65: */ \r\n/* 66: */ \r\n/* 67:109 */ RenderingHints.Key key = RenderingHints.KEY_ANTIALIASING;\r\n/* 68:110 */ Object newAAHint = RenderingHints.VALUE_ANTIALIAS_ON;\r\n/* 69:111 */ Object oldAAHint = g2.getRenderingHint(key);\r\n/* 70:112 */ if (newAAHint != oldAAHint) {\r\n/* 71:113 */ g2.setRenderingHint(key, newAAHint);\r\n/* 72: */ } else {\r\n/* 73:115 */ oldAAHint = null;\r\n/* 74: */ }\r\n/* 75:118 */ drawBorder(g2, model.isEnabled(), x, y, SIZE - 1, SIZE - 1);\r\n/* 76:119 */ drawFill(g2, model.isPressed(), x + 1, y + 1, SIZE - 2, SIZE - 2);\r\n/* 77:120 */ if (paintFocus) {\r\n/* 78:121 */ drawFocus(g2, x + 1, y + 1, SIZE - 3, SIZE - 3);\r\n/* 79: */ }\r\n/* 80:123 */ if (model.isSelected()) {\r\n/* 81:124 */ drawCheck(g2, model.isEnabled(), x + 3, y + 3, SIZE - 7, SIZE - 7);\r\n/* 82: */ }\r\n/* 83:127 */ if (oldAAHint != null) {\r\n/* 84:128 */ g2.setRenderingHint(key, oldAAHint);\r\n/* 85: */ }\r\n/* 86: */ }", "public void\r DisplayIcon(CType display_context, int x, int y, int icon_number);", "public void mark_icon(Graphics g, int log_num, int x, int y, int h, float track);", "public void addIcon(Direction dir, Color clr){\r\n\t\t \r\n\t\t Graphics2D g = bufferedImage.createGraphics();\r\n\t\t BufferedImage imgPiece;\r\n\t\t File fileImg = new File(\"src/main/java/data/smallfollower_0.png\");\r\n\t \t try {\r\n\t\t\timgPiece = ImageIO.read(fileImg);\r\n\r\n\t\t\t Graphics2D g1 = imgPiece.createGraphics();\t\r\n\t\t\t for (int x = 0; x < imgPiece.getWidth(); x++) {\r\n\t\t\t\t for (int y = 0; y < imgPiece.getHeight(); y++) {\r\n\t\t\t\t\t int color = imgPiece.getRGB(x,y);\r\n\t\t\t\t\t if(color == -65281){\r\n\t\t\t\t\t\t g1.setColor(clr);\r\n\t\t\t\t\t\t g1.fillRect(x,y,1,1);\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t }\r\n\t\t g.drawImage(imgPiece, getX(dir), getY(dir), 20, 20, null);\r\n\t\t }\r\n\t\t catch (IOException e) {\r\n\t\t }\r\n\t\t \r\n\t\t \r\n\t }", "public void draw(Graphics g) {\n image.paintIcon(null, g, xPos, yPos);\n }", "public void paintComponent(Graphics page) {\r\n super.paintComponent(page);\r\n IMAGE.paintIcon(this, page, x, y);\r\n }", "public void displayNavyIcon(Graphics g, int xPos, int yPos){\n\t\t\n\t}", "public void GenerateIcons() {\n icons = new ImageIcon[8];\n icons[0] = new ImageIcon(new BufferedImage(28, 32, BufferedImage.TYPE_4BYTE_ABGR));\n icons[1] = new ImageIcon(new BufferedImage(28, 32, BufferedImage.TYPE_4BYTE_ABGR));\n icons[2] = new ImageIcon(new BufferedImage(28, 32, BufferedImage.TYPE_4BYTE_ABGR));\n icons[3] = new ImageIcon(new BufferedImage(28, 32, BufferedImage.TYPE_4BYTE_ABGR));\n icons[4] = new ImageIcon(new BufferedImage(28, 32, BufferedImage.TYPE_4BYTE_ABGR));\n icons[5] = new ImageIcon(new BufferedImage(28, 32, BufferedImage.TYPE_4BYTE_ABGR));\n icons[6] = new ImageIcon(new BufferedImage(28, 32, BufferedImage.TYPE_4BYTE_ABGR));\n icons[7] = new ImageIcon(new BufferedImage(28, 32, BufferedImage.TYPE_4BYTE_ABGR));\n Graphics g;\n Graphics2D g2;\n Color transparent = new Color(0, 0, 0, 0);\n\n // 0 = up, left leg up\n try {\n g = icons[0].getImage().getGraphics();\n }\n catch (NullPointerException e) {\n System.out.println(\"Could not get Graphics pointer to GameCursor Image\");\n return;\n }\n g2 = (Graphics2D) g;\n g2.setBackground(transparent);\n g2.clearRect(0, 0, 28, 32);\n g.setColor(Color.white);\n g.fillRect(8, 0, 12, 8);\n g.fillRect(4, 2, 20, 4);\n g.fillRect(12, 8, 4, 2);\n g.fillRect(4, 10, 20, 2);\n g.fillRect(8, 10, 12, 14);\n g.fillRect(0, 12, 4, 8);\n g.fillRect(24, 12, 4, 6);\n g.fillRect(4, 22, 8, 8);\n g.fillRect(16, 20, 8, 12);\n g.setColor(Color.black);\n g.fillRect(8, 18, 12, 2);\n g.fillRect(4, 26, 8, 2);\n g.fillRect(16, 28, 8, 2);\n\n // 1 = up, right leg up\n try {\n g = icons[1].getImage().getGraphics();\n }\n catch (NullPointerException e) {\n System.out.println(\"Could not get Graphics pointer to GameCursor Image\");\n return;\n }\n g2 = (Graphics2D) g;\n g2.setBackground(transparent);\n g2.clearRect(0, 0, 28, 32);\n g.setColor(Color.white);\n g.fillRect(8, 0, 12, 8);\n g.fillRect(4, 2, 20, 4);\n g.fillRect(12, 8, 4, 2);\n g.fillRect(4, 10, 20, 2);\n g.fillRect(8, 10, 12, 14);\n g.fillRect(0, 12, 4, 6);\n g.fillRect(24, 12, 4, 8);\n g.fillRect(4, 20, 8, 12);\n g.fillRect(16, 22, 8, 8);\n g.setColor(Color.black);\n g.fillRect(8, 18, 12, 2);\n g.fillRect(4, 28, 8, 2);\n g.fillRect(16, 26, 8, 2);\n\n // 2 = down, left(side) leg up\n try {\n g = icons[2].getImage().getGraphics();\n }\n catch (NullPointerException e) {\n System.out.println(\"Could not get Graphics pointer to GameCursor Image\");\n return;\n }\n g2 = (Graphics2D) g;\n g2.setBackground(transparent);\n g2.clearRect(0, 0, 28, 32);\n g.setColor(Color.white);\n g.fillRect(8, 0, 12, 8);\n g.fillRect(4, 2, 20, 4);\n g.fillRect(12, 8, 4, 2);\n g.fillRect(4, 10, 20, 2);\n g.fillRect(8, 10, 12, 14);\n g.fillRect(0, 12, 4, 8);\n g.fillRect(24, 12, 4, 6);\n g.fillRect(4, 22, 8, 8);\n g.fillRect(16, 20, 8, 12);\n g.setColor(Color.black);\n g.fillRect(8, 2, 4, 2);\n g.fillRect(16, 2, 4, 2);\n g.fillRect(12, 4, 4, 2);\n g.fillRect(8, 18, 12, 2);\n g.fillRect(4, 26, 8, 2);\n g.fillRect(16, 28, 8, 2);\n\n // 3 = down, right(side) leg up\n try {\n g = icons[3].getImage().getGraphics();\n }\n catch (NullPointerException e) {\n System.out.println(\"Could not get Graphics pointer to GameCursor Image\");\n return;\n }\n g2 = (Graphics2D) g;\n g2.setBackground(transparent);\n g2.clearRect(0, 0, 28, 32);\n g.setColor(Color.white);\n g.fillRect(8, 0, 12, 8);\n g.fillRect(4, 2, 20, 4);\n g.fillRect(12, 8, 4, 2);\n g.fillRect(4, 10, 20, 2);\n g.fillRect(8, 10, 12, 14);\n g.fillRect(0, 12, 4, 6);\n g.fillRect(24, 12, 4, 8);\n g.fillRect(4, 20, 8, 12);\n g.fillRect(16, 22, 8, 8);\n g.setColor(Color.black);\n g.fillRect(8, 2, 4, 2);\n g.fillRect(16, 2, 4, 2);\n g.fillRect(12, 4, 4, 2);\n g.fillRect(8, 18, 12, 2);\n g.fillRect(4, 28, 8, 2);\n g.fillRect(16, 26, 8, 2);\n\n // 4 = left, Stand\n try {\n g = icons[4].getImage().getGraphics();\n }\n catch (NullPointerException e) {\n System.out.println(\"Could not get Graphics pointer to GameCursor Image\");\n return;\n }\n g2 = (Graphics2D) g;\n g2.setBackground(transparent);\n g2.clearRect(0, 0, 28, 32);\n g.setColor(Color.white);\n g.fillRect(8, 0, 12, 8);\n g.fillRect(20, 2, 4, 4);\n g.fillRect(4, 4, 4, 2);\n g.fillRect(12, 8, 4, 2);\n g.fillRect(12, 10, 8, 18);\n g.fillRect(8, 12, 4, 12);\n g.fillRect(8, 30, 12, 2);\n g.setColor(Color.black);\n g.fillRect(12, 2, 4, 2);\n g.fillRect(8, 18, 12, 2);\n g.fillRect(12, 28, 8, 2);\n\n // 5 = left, walk\n try {\n g = icons[5].getImage().getGraphics();\n }\n catch (NullPointerException e) {\n System.out.println(\"Could not get Graphics pointer to GameCursor Image\");\n return;\n }\n g2 = (Graphics2D) g;\n g2.setBackground(transparent);\n g2.clearRect(0, 0, 28, 32);\n g.setColor(Color.white);\n g.fillRect(8, 0, 12, 8);\n g.fillRect(20, 2, 4, 4);\n g.fillRect(4, 4, 4, 2);\n g.fillRect(12, 8, 4, 2);\n g.fillRect(8, 10, 12, 14);\n g.fillRect(4, 12, 20, 4);\n g.fillRect(0, 14, 4, 4);\n g.fillRect(24, 14, 4, 6);\n g.fillRect(4, 24, 8, 8);\n g.fillRect(16, 22, 8, 10);\n g.fillRect(0, 30, 4, 2);\n g.setColor(Color.black);\n g.fillRect(12, 2, 4, 2);\n g.fillRect(16, 14, 4, 2);\n g.fillRect(8, 18, 12, 2);\n g.fillRect(4, 28, 8, 2);\n g.fillRect(16, 28, 8, 2);\n\n // 6 = right, Stand\n try {\n g = icons[6].getImage().getGraphics();\n }\n catch (NullPointerException e) {\n System.out.println(\"Could not get Graphics pointer to GameCursor Image\");\n return;\n }\n g2 = (Graphics2D) g;\n g2.setBackground(transparent);\n g2.clearRect(0, 0, 28, 32);\n g.setColor(Color.white);\n g.fillRect(8, 0, 12, 8);\n g.fillRect(4, 2, 4, 4);\n g.fillRect(20, 4, 4, 2);\n g.fillRect(12, 8, 4, 2);\n g.fillRect(8, 10, 8, 18);\n g.fillRect(16, 12, 4, 12);\n g.fillRect(8, 30, 12, 2);\n g.setColor(Color.black);\n g.fillRect(12, 2, 4, 2);\n g.fillRect(8, 18, 12, 2);\n g.fillRect(8, 28, 8, 2);\n\n // 7 = right, walk\n try {\n g = icons[7].getImage().getGraphics();\n }\n catch (NullPointerException e) {\n System.out.println(\"Could not get Graphics pointer to GameCursor Image\");\n return;\n }\n g2 = (Graphics2D) g;\n g2.setBackground(transparent);\n g2.clearRect(0, 0, 28, 32);\n g.setColor(Color.white);\n g.fillRect(8, 0, 12, 8);\n g.fillRect(4, 2, 4, 4);\n g.fillRect(20, 4, 4, 2);\n g.fillRect(12, 8, 4, 2);\n g.fillRect(8, 10, 12, 14);\n g.fillRect(4, 12, 20, 4);\n g.fillRect(0, 14, 4, 6);\n g.fillRect(24, 14, 4, 4);\n g.fillRect(4, 22, 8, 10);\n g.fillRect(16, 24, 8, 8);\n g.fillRect(24, 30, 4, 2);\n g.setColor(Color.black);\n g.fillRect(12, 2, 4, 2);\n g.fillRect(8, 14, 4, 2);\n g.fillRect(8, 18, 12, 2);\n g.fillRect(4, 28, 8, 2);\n g.fillRect(16, 28, 8, 2);\n currentIcon = icons[6].getImage();\n\n }", "public void displayOilIcon(Graphics g, int xPos, int yPos){\n\t\t\n\t}", "public void paintIcon(Component c, Graphics g, int x, int y)\n\t{\n\t\tGraphics2D g2 = (Graphics2D) g;\n\t\tshape.draw(g2);\n\t}", "public void displayMilitaryIcon(Graphics g, int xPos, int yPos){\n\t\t\n\t}", "public void replaceIcons(){\n int nb = this.listGraphFrame.size();\n int x = 0;\n int y = this.getHeight()-DataProcessToolPanel.ICON_HEIGHT;\n for (int i=0; i<nb; i++){\n InternalGraphFrame gFrame = listGraphFrame.get(i);\n if(gFrame.isIcon() && gFrame.getDesktopIcon() != null){\n JInternalFrame.JDesktopIcon icon = gFrame.getDesktopIcon();\n icon.setBounds(x, y, icon.getWidth(), icon.getHeight());\n if(x+(2*DataProcessToolPanel.ICON_WIDTH) < getWidth()){\n x += DataProcessToolPanel.ICON_WIDTH;\n }else{\n x = 0;\n y = y-DataProcessToolPanel.ICON_HEIGHT;\n }\n }\n }\n }", "public IconRenderer() \n\t{\n\t\t\n\t}", "void drawGraphic(Component c, Graphics2D g, int x, int y)\n {\n mRawIcon.paintIcon(c, g, x, y);\n }", "protected void renderBaseSide(int x, int y, int z, int side, Icon icon) { }", "@Override\n public void drawIcons(Graphics g) {\n drawStatus(g);\n\n int tileDimension = 120;\n\n if (!isEmpty()) {\n Icon intent = enemy.getIntent();\n intent.setPosition(getXGraphic() + (tileDimension / 2), getYGraphic() - (tileDimension / 3));\n intent.draw(g);\n }\n }", "private void drawStuff() {\n //Toolkit.getDefaultToolkit().sync();\n g = bf.getDrawGraphics();\n bf.show();\n Image background = window.getBackg();\n try {\n g.drawImage(background, 4, 24, this);\n\n for(i=12; i<264; i++) {\n cellKind = matrix[i];\n\n if(cellKind > 0)\n g.drawImage(tile[cellKind], (i%12)*23-3, (i/12)*23+17, this);\n }\n\n drawPiece(piece);\n drawNextPiece(pieceKind2);\n\n g.setColor(Color.WHITE);\n g.drawString(\"\" + (level+1), 303, 259);\n g.drawString(\"\" + score, 303, 339);\n g.drawString(\"\" + lines, 303, 429);\n\n } finally {bf.show(); g.dispose();}\n }", "private void drawNotification(Graphics g, String fileName, int x, int y) throws IOException{\n\t\t ImageIcon bg;\n\t\t bg = new ImageIcon(ImageIO.read(new File(relativePath + fileName)));\n\t\t bg.paintIcon(this, g, x, y);\n\t }", "@Override\n\t\t\tpublic void render(com.google.gwt.cell.client.Cell.Context context, AnswerProxy value, SafeHtmlBuilder sb) {\n\t\t\t if (value == null) {\n\t\t\t \t sb.appendHtmlConstant(\"<span class=\\\"ui-icon ui-icon-help\\\" style=\\\"margin:auto\\\"></span>\");\n\t\t\t return;\n\t\t\t }\n\t\t\t String validityIcon = \"<span class=\\\"ui-icon ui-icon-image\\\" style=\\\"margin:auto\\\"></span>\";\n\t\t\t sb.appendHtmlConstant(validityIcon);\n\t\t\t}", "@Override\n public void paintComponent(Graphics g) {\n super.paintComponent(g); \n bground.paintIcon(this,g,0,0);\n importState().paintIcon(this,g,impButX,impButY);\n exportState().paintIcon(this,g,expButX,expButY);\n if(isExHover)\n if(isExportError())\n exError.paintIcon(this,g,errorX,errorY);\n }", "boolean iconClicked(IIcon icon, int dx, int dy);", "public static void drawIncrustedDownTriangle(final int x, final int y, final int size, final JHelpImage image)\n {\n final boolean drawMode = image.isDrawMode();\n\n if (!drawMode)\n {\n image.startDrawMode();\n }\n\n final int xx = x + (size >> 1);\n image.drawThickLine(x, y, x + size, y, 2, 0xFF000000);\n image.drawThickLine(x, y, xx, y + size, 2, 0xFF808080);\n image.drawThickLine(x + size, y, xx, y + size, 2, 0xFFFFFFFF);\n\n if (!drawMode)\n {\n image.endDrawMode();\n }\n }", "private void drawCore(Graphics2D g2d) {\r\n icon.paintIcon(g2d, layout.location.x - icon.getIconWidth() / 2, layout.location.y - icon.getIconHeight() / 2,\r\n g2d.getColor());\r\n labelBox.draw(g2d);\r\n }", "public static IIcon method_2666() {\r\n return class_1192.field_6027.field_2131;\r\n }", "@Override\r\n\tprotected void paintComponent(Graphics g) {\n\t\tsuper.paintComponent(g);\r\n\t\tImageIcon img = new ImageIcon(this.getClass().getResource(\"After-Noon.png\"));\r\n\t\tg.drawImage(img.getImage(), 0, 0, this.getWidth(), this.getHeight(), null);\r\n\t}", "private void createIcons() {\n wRook = new ImageIcon(\"./src/Project3/wRook.png\");\r\n wBishop = new ImageIcon(\"./src/Project3/wBishop.png\");\r\n wQueen = new ImageIcon(\"./src/Project3/wQueen.png\");\r\n wKing = new ImageIcon(\"./src/Project3/wKing.png\");\r\n wPawn = new ImageIcon(\"./src/Project3/wPawn.png\");\r\n wKnight = new ImageIcon(\"./src/Project3/wKnight.png\");\r\n\r\n bRook = new ImageIcon(\"./src/Project3/bRook.png\");\r\n bBishop = new ImageIcon(\"./src/Project3/bBishop.png\");\r\n bQueen = new ImageIcon(\"./src/Project3/bQueen.png\");\r\n bKing = new ImageIcon(\"./src/Project3/bKing.png\");\r\n bPawn = new ImageIcon(\"./src/Project3/bPawn.png\");\r\n bKnight = new ImageIcon(\"./src/Project3/bKnight.png\");\r\n }", "public void setIcon(char c) {\r\n\ticon = c;\r\n\t}", "@Override\r\n\t\tpublic void requestIcon(String arg0) {\n\t\t\t\r\n\t\t}", "Icon getIcon();", "private void setIcon() {\n \n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"iconabc.png\")));\n }", "@Override\r\n protected void paintIconImpl(Component c, Graphics2D g2, int x, int y, int width, int height) {\r\n Paint background = getBackground();\r\n if (background == null) {\r\n background = c == null ? Color.WHITE : c.getBackground();\r\n }\r\n\r\n if (background != null) {\r\n if (background instanceof Color) {\r\n g2.setColor((Color) background);\r\n } else {\r\n background = PaintUtils.resizeGradient(background, width, height);\r\n g2.setPaint(background);\r\n }\r\n g2.fillRect(x, y, width, height);\r\n }\r\n }", "public GUICell(ImageIcon img){\n\t\tsuper(img);\n\t}", "@SideOnly(Side.CLIENT)\n public static void drawTexture(int x, int y, IIcon icon, int width, int height, float zLevel)\n {\n for(int i = 0; i < width; i += 16)\n for(int j = 0; j < height; j += 16)\n drawScaledTexturedRect(x + i, y + j, icon, Math.min(width - i, 16), Math.min(height - j, 16),zLevel);\n \n GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);\n }", "String getIcon();", "String getIcon();", "private void drawDebugInfo(final Graphics2D theGraphics, final int theX, final int theY) {\n\n if (myDebugFlag) {\n // draw numbers for the row and column\n final Paint oldPaint = theGraphics.getPaint();\n theGraphics.setPaint(Color.BLACK);\n\n final int leftx = theX * SQUARE_SIZE;\n final int topy = theY * SQUARE_SIZE;\n theGraphics.drawString(\"(\" + theX + \", \" + theY + \")\", leftx, topy + DEBUG_OFFSET);\n theGraphics.setPaint(oldPaint);\n }\n }", "private void drawTile(int i, int j, Tile tile) {\n\t\tRectangle rect = new Rectangle(175*i+50,j*175+25,175, 175);\r\n\t\ttilesDrawn.add(rect);\r\n\t}", "public void paint(Graphics g) {\n iconMain.paintIcon(\n this,\n g,\n INT_ICON_X,\n INT_ICON_Y);\n iconRed.paintIcon(\n this,\n g,\n iconMain.getX() + iconMain.getIconWidth() + 5,\n INT_ICON_Y);\n iconOrange.paintIcon(\n this,\n g,\n iconRed.getX() + iconRed.getIconWidth() + 5,\n INT_ICON_Y);\n iconYellow.paintIcon(\n this,\n g,\n iconOrange.getX() + iconOrange.getIconWidth() + 5,\n INT_ICON_Y);\n iconGray.paintIcon(\n this,\n g,\n iconYellow.getX() + iconYellow.getIconWidth() + 5,\n INT_ICON_Y);\n iconWhite.paintIcon(\n this,\n g,\n iconGray.getX() + iconGray.getIconWidth() + 5,\n INT_ICON_Y);\n\n }", "private void drawBubbleStatus(Graphics g, int x, int y) throws IOException{\n\t\t ImageIcon bg;\n\t\t bg = new ImageIcon(ImageIO.read(new File(relativePath + \"bubbleStatus.png\")));\n\t\t bg.paintIcon(this, g, x, y);\n\t }", "@Override\n\tpublic Icon getIcon(int width, int height) {\n\t\treturn null; // Use Display Name instead of an icon.\n\t}", "@Override\n\t\t\tpublic void render(com.google.gwt.cell.client.Cell.Context context,\n\t\t\t\t\tString value, SafeHtmlBuilder sb) {\n\t\t\t \n\t\t\t \t sb.appendHtmlConstant(\"<span class=\\\"ui-icon ui-icon-help\\\"></span>\");\n\t\t\t\n\t\t\t \n\t\t\t\t\n\t\t\t}", "@Override\n\tpublic void draw() {\n\t\tSystem.out.println(\"绘制五角形\");\n\t}", "@Override\n\tpublic void setIcon(Drawable icon) {\n\t\t\n\t}", "public Icon getIcon();", "private void drawMarker(int row, int col, Cell[][] gridCells) {\r\n\t\tfor (int i = 0; i < 6; i++) { //Check in each type of the 6 markers\r\n\t\t\t//Get the draw order and draw in that order\r\n\t\t\tint drawOrder = this.markerDrawOrders.get(gridCells[row][col]);\r\n\t\t\tif (drawOrder == 0) {\r\n\t\t\t\t//Draw a marker if one exists for either of the species\r\n\t\t\t\tif (gridCells[row][col].getMarker(0, i)) {\r\n\t\t\t\t\tdrawImage(this.blackMarker, row, col, 0);\r\n\t\t\t\t}\r\n\t\t\t\tif (gridCells[row][col].getMarker(1, i)) {\r\n\t\t\t\t\tdrawImage(this.redMarker, row, col, 0);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tif (gridCells[row][col].getMarker(1, i)) {\r\n\t\t\t\t\tdrawImage(this.redMarker, row, col, 0);\r\n\t\t\t\t}\r\n\t\t\t\tif (gridCells[row][col].getMarker(0, i)) {\r\n\t\t\t\t\tdrawImage(this.blackMarker, row, col, 0);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public BugInfoWindow(Bug aBug) {\n\t\ttheBug = aBug;\n\tthis.display();\n }", "public static void drawIncrustedUpTriangle(final int x, final int y, final int size, final JHelpImage image)\n {\n final boolean drawMode = image.isDrawMode();\n\n if (!drawMode)\n {\n image.startDrawMode();\n }\n\n final int xx = x + (size >> 1);\n image.drawThickLine(x, y + size, x + size, y + size, 2, 0xFF000000);\n image.drawThickLine(x, y + size, xx, y, 2, 0xFF808080);\n image.drawThickLine(x + size, y + size, xx, y, 2, 0xFFFFFFFF);\n\n if (!drawMode)\n {\n image.endDrawMode();\n }\n }", "public void createBug(Vector2 tilePosition)\n {\n BoardTile tile = getTile(tilePosition);\n if(tile != null)\n {\n BoardBug bug = new BoardBug(bugsId);\n ++bugsId;\n\n bug.setTilePosition(tilePosition);\n tile.setBug(bug);\n board.addChild(bug);\n }\n }", "public void draw(PApplet marker) {\n\t\tif (whiteSquares) {\n\t\t\tmarker.pushStyle();\n\t\t\tmarker.fill(255);\n\t\t\tmarker.rect(760, 460, 30, 30);\n\t\t\tif (!over)\n\t\t\t\tmarker.rect(10, 460, 30, 30);\n\t\t\tmarker.popStyle();\n\t\t}\n\t\t\n\t\t//show images\n\t\tmarker.image(helpIcon, help.x, help.y, help.width, help.height);\n\t\tif (!over)\n\t\t\tmarker.image(backIcon, back.x, back.y, back.width, back.height);\n\t}", "public org.netbeans.modules.j2ee.dd.api.common.Icon getIcon(){return null;}", "public Icon getIcon() {\n \t\treturn null;\n \t}", "@Override\n public boolean isIcon(){\n return super.isIcon() || speciallyIconified;\n }", "protected String getStatusIcon() {\n return isDone ? \"x\" : \" \";\n }", "@Override\n\tpublic void debugDraw(Graphics g) {\n\t\tfor(int i = 0; i < CELL_SIDE_COUNT; i++)\n\t\t{\n\t\t\tfor(int j = 0; j < CELL_SIDE_COUNT; j++)\n\t\t\t{\n\t\t\t\t//Place code for debug drawing here\n\t\t\t}\n\t\t}\n\t}", "@SideOnly(Side.CLIENT)\n public static void drawTexture_Items(int x, int y, IIcon icon, int width, int height, float zLevel)\n {\n for(int i = 0; i < width; i += 16)\n for(int j = 0; j < height; j += 16)\n drawScaledTexturedRect_Items(x + i, y + j, icon, Math.min(width - i, 16), Math.min(height - j, 16),zLevel);\n \n GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);\n }", "public void drawDebugInfo() {\n\n\t\t// Draw our home position.\n\t\tbwapi.drawText(new Point(5,0), \"Our home position: \"+String.valueOf(homePositionX)+\",\"+String.valueOf(homePositionY), true);\n\t\t\n\t\t// Draw circles over workers (blue if they're gathering minerals, green if gas, white if inactive)\n\t\tfor (Unit u : bwapi.getMyUnits()) {\n\t\t\tif (u.isGatheringMinerals()) \n\t\t\t\tbwapi.drawCircle(u.getX(), u.getY(), 12, BWColor.BLUE, false, false);\n\t\t\telse if (u.isGatheringGas())\n\t\t\t\tbwapi.drawCircle(u.getX(), u.getY(), 12, BWColor.GREEN, false, false);\n\t\t\telse if (u.getTypeID() == UnitTypes.Protoss_Probe.ordinal() && u.isIdle())\n\t\t\t\tbwapi.drawCircle(u.getX(), u.getY(), 12, BWColor.WHITE, false, false);\n\t\t\t\t\n\t\t}\n\t\t\n\t}", "@Override\n public void run() {\n if (mIcon.getVisibility() == VISIBLE) {\n mIcon.getLayoutParams().width = (int) (mLegend.getMeasuredHeight() * 0.9);\n mIcon.getLayoutParams().height = (int) (mLegend.getMeasuredHeight() * 0.9);\n }\n // if border's width is >= text's height, set the border's width to half of text's height\n if (mLegendContainer.getMeasuredHeight() <= mBackground.getBorder_width()) {\n mBackground.setBorder_width((int) (mLegendContainer.getMeasuredHeight() * 0.5));\n setContainerMargins(mBackground.getBorder_width());\n }\n // set margins and appropriate gravity\n if (legendPosition == ENUM_LEGEND_POSITION.RIGHT) {\n ((LayoutParams) mLegendContainer.getLayoutParams()).gravity = Gravity.TOP | Gravity.RIGHT;\n int margin = mBackground.getBorder_width() >= mBackground.getBorder_radius() ? mBackground.getBorder_width() + mBackground.getBorder_radius() : mBackground.getBorder_radius();\n ((LayoutParams) mLegendContainer.getLayoutParams()).setMargins(0, 0, margin + legendMarginRight, 0);\n } else if (legendPosition == ENUM_LEGEND_POSITION.LEFT) {\n ((LayoutParams) mLegendContainer.getLayoutParams()).gravity = Gravity.TOP | Gravity.LEFT;\n int margin = mBackground.getBorder_width() >= mBackground.getBorder_radius() ? mBackground.getBorder_width() + mBackground.getBorder_radius() : mBackground.getBorder_radius();\n ((LayoutParams) mLegendContainer.getLayoutParams()).setMargins(legendMarginLeft + margin, 0, 0, 0);\n } else {\n ((LayoutParams) mLegendContainer.getLayoutParams()).gravity = Gravity.TOP | Gravity.CENTER_HORIZONTAL;\n }\n // set the top border inline with legend\n LayoutParams frameParams = (LayoutParams) mFrame.getLayoutParams();\n frameParams.setMargins(0, (mLegendContainer.getMeasuredHeight() - mBackground.getBorder_width()) / 2, 0, 0);\n // draw the border\n updateFrame();\n }", "public String getIcon() {\n\t\treturn \"icon\";\n\t}", "@Override\n public void paintComponent(Graphics g) {\n super.paintComponent(g);\n g.drawImage(map.getImage(), mapX, mapY, mapWidth, mapHeight, null);\n //draw hexagon\n for (int j = 0; j < BOARD_HEIGHT; j++) {\n for (int i = 0; i < BOARD_WIDTH; i++) {\n gridCell.setCellIndex(i, j);\n if (mapCells[j][i] != 0) {\n gridCell.computeCorners(mCornersX, mCornersY);\n// g.setColor((mapCells[j][i] == L_ON) ? Color.ORANGE : Color.GRAY);\n// g.fillPolygon(mCornersX, mCornersY, NUM_HEX_CORNERS);\n g.drawPolygon(mCornersX, mCornersY, NUM_HEX_CORNERS);\n }\n }\n }\n }", "@Override\n\tpublic String drawForConsole() {\n\t\tString[][] output = new String[this.getWidth()][this.getHeight()];\n\t\tString image = \"\";\n\t\tfor (int x = 0; x < this.getWidth(); x++) {\n\t\t\tfor (int y = 0; y < this.getHeight(); y++) {\n\t\t\t\tif (x == 0 || x == this.getWidth() - 1) {\n\t\t\t\t\toutput[x][y] = \"#\";\n\t\t\t\t} else if (y == 0 || y == this.getHeight() -1) {\n\t\t\t\t\toutput[x][y] = \"#\";\n\t\t\t\t} else if (this.isFilledIn()) {\n\t\t\t\t\toutput[x][y] = \"#\";\n\t\t\t\t} else {\n\t\t\t\t\toutput[x][y] = \" \";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (int y = 0; y < this.getHeight(); y++) {\n\t\t\tfor (int x = 0; x < this.getWidth(); x++) {\n\t\t\t\timage += output[x][y];\n\t\t\t\tif (x == this.getWidth() - 1) {\n\t\t\t\t\timage += \"\\n\";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn image;\n\t}", "public void draw()\n\t{\n\t\tSystem.out.println(\" |-------------------------------|\");\n\t\t\n\t\tfor (int i = 0; i < board_size; i++)\n\t\t{\n\t\t\tSystem.out.print(board_size - i + \" |\");\n\t\t\t\n\t\t\tfor (int j = 0; j < board_size; j++)\n\t\t\t{\n\t\t\t\tif (getPiece(i,j) == null) {System.out.print(\" |\");}\n\t\t\t\telse {System.out.print(\" \" + getPiece(i,j).getSymbol().toChar() + \" |\");}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(\"\");\n\t\t\tSystem.out.println(\" |-------------------------------|\");\n\t\t}\n\t\t\n\t\tSystem.out.println(\" A B C D E F G H \\n\");\n\t}", "public String getStatusIcon() {\n return (isDone ? \"\\u2713\" : \"\\u2718\"); //return tick or X symbols\n }", "public String getStatusIcon() {\n return (isDone ? \"\\u2713\" : \"\\u2718\"); //return tick or X symbols\n }", "public String getStatusIcon() {\n return (isDone ? \"\\u2713\" : \"\\u2718\"); //return tick or X symbols\n }", "public void debugDraw(Graphics g)\n\t{\n\t}", "public void draw(Graphics g) {\n g.drawImage(grid, 20, 0, Graphics.LEFT | Graphics.TOP);\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < n; j++) {\n if (crashTest[i][j]) {\n g.setColor(255, 96, 0);\n g.fillRect(i * 16 + 20, j * 16, 15, 15);\n g.setColor(255, 255, 255);\n g.drawString(String.valueOf(i - 1), i * 16 + 28, j * 16 + 8, Graphics.HCENTER | Graphics.TOP);\n }\n }\n }\n }", "public CKDrawerTab(Node contents, DrawerSides side, Double x, Double y,\r\n\t\t\tDouble w, Double h, String icon)\r\n\t{\r\n\t\tthis.contents = contents;\r\n\t\tthis.side = side;\r\n\t\tthis.iconimage = new Image(icon);\r\n\t\t//this.setStyle(\"-fx-background-color: green;\");\r\n\t\t//this.setBackground(new Background(new BackgroundFill(Color.LIGHTGREY,\r\n\t\t// null, null)));\r\n\t\t// this.setOpacity(0.8);\r\n\t\tthis.x = x;\r\n\t\tthis.y = y;\r\n\t\tthis.width = w;\r\n\t\tthis.height = h;\r\n\t\tthis.relocate(x, y);\r\n\t\tthis.setPrefSize(width, height);\r\n\t\tclip = new Rectangle(0, 0, w, h);\r\n\r\n\t\tcreateOpen(iconimage);\r\n\t\tthis.getChildren().addAll(contents);\r\n\t\tcreateClose();\r\n\t\tsetPos();\r\n\t\tthis.setClip(clip);\r\n\t\tthis.setPickOnBounds(false);\r\n\t\tsetContents();\r\n\r\n\t}", "public static void drawIncrustedTriangle(\n final int x, final int y, final int size, final JHelpImage image, final\n WayTriangle wayTriangle)\n {\n if (wayTriangle == null)\n {\n throw new NullPointerException(\"wayTriangle MUST NOT be null\");\n }\n\n switch (wayTriangle)\n {\n case DOWN:\n UtilImage.drawIncrustedDownTriangle(x, y, size, image);\n break;\n case LEFT:\n UtilImage.drawIncrustedLeftTriangle(x, y, size, image);\n break;\n case RIGHT:\n UtilImage.drawIncrustedRightTriangle(x, y, size, image);\n break;\n case UP:\n UtilImage.drawIncrustedUpTriangle(x, y, size, image);\n break;\n }\n }", "public View getGraphic()\n{\n // Get image for file\n //Image img = _type==FileType.PACKAGE_DIR? Package : ViewUtils.getFileIconImage(_file);\n Image img = ViewUtils.getFileIconImage(_file);\n View grf = new ImageView(img); grf.setPrefSize(18,18);\n \n // If error/warning add Error/Warning badge as composite icon\n /*BuildIssue.Kind status = _proj!=null? _proj.getRootProject().getBuildIssues().getBuildStatus(_file) : null;\n if(status!=null) {\n Image badge = status==BuildIssue.Kind.Error? ErrorBadge : WarningBadge;\n ImageView bview = new ImageView(badge); bview.setLean(Pos.BOTTOM_LEFT);\n StackView spane = new StackView(); spane.setChildren(grf, bview); grf = spane;\n }*/\n \n // Return node\n return grf;\n}", "@Override\n public void drawTile(GraphicsContext gc, double dx, double dy) {\n gc.drawImage(tile, dx, dy, 64, 64);\n }", "public void registerIcons(IIconRegister iconRegister) {\n/* 51 */ this.itemIcon = iconRegister.registerIcon(\"forgottenrelics:Soul_Tome\");\n/* */ }", "public void clearMainIcon();", "public IIcon getIcon(int p_149691_1_, int p_149691_2_)\n {\n return func_149887_c(p_149691_2_) ? this.field_149893_M[0] : this.field_149893_M[p_149691_2_ & 7];\n }", "public void Draw() {\n\t\timgIcon = new ImageIcon(imgUrl);\n\t}", "@Override\n\tpublic void drawFeedback(EditorInterface i, GraphicsContext gc) {\n\t\ti.getBoard().draw(gc);\n\t\ti.getSelection().drawFeedback(gc);\n\t}", "public abstract String typeIcon();", "@Override\n public String getStatusIcon() {\n if (isDone) {\n return \"[X]\";\n } else {\n return \"[ ]\";\n }\n }", "@Override\n\tprotected String iconResourceName() {\n\t\treturn \"nkv550.png\";\n\t}", "public MatteIcon() {\r\n this(32, 32, null);\r\n }", "private void paintNull(Graphics g, int j, int i) {\n // Image img=imgVec[NULL_ST];\n // if(img==null){\n // img=createImage(ISIZE,ISIZE);\n // imgVec[NULL_ST]=img;\n // Graphics ig=img.getGraphics();\n g.setColor(Color.black);\n g.fillRect(j * CELL_SIZE, i * CELL_SIZE, CELL_SIZE, CELL_SIZE);\n // }\n // g.drawImage(img,j * DIM, i * DIM,this);\n }", "public Result testGetIcon() {\n try {\n assertNull(beanInfo.getIcon(BeanInfo.ICON_MONO_16x16));\n Bean1BeanInfo.verifyException();\n return passed();\n } catch (Exception e) {\n e.printStackTrace();\n return failed(e.getMessage());\n }\n }", "public void drawTile() {\n\n }", "public void drawKeysChipsPics() throws IOException {\n Graphics g = infoCanvas.getGraphics();\n\n // draw keys collected.\n List<Key> keys = board.getChip().getKeys();\n int size = infoCanvas.getHeight() / 16;\n int startX = infoCanvas.getWidth() / 2 - size * 3;\n for (int i = 0; i < 5; i++) {\n drawSquare((Graphics2D) g, startX + size * i, 14 * infoCanvas.getHeight() / 20, size);\n }\n if(keys.size() > 0){\n for(int i = 0; i < keys.size(); i++){\n Color color = keys.get(i).getColour();\n String pathName = \"./assets/Items/\";\n if(color.equals(Color.red)){\n pathName += \"KeyRed.png\";\n }else if(color.equals(Color.blue)){\n pathName += \"KeyBlue.png\";\n }else if(color.equals(Color.green)){\n pathName += \"KeyGreen.png\";\n }\n BufferedImage bi = ImageIO.read(new File(pathName));\n g.drawImage(bi, startX + size * i + 2, 14 * infoCanvas.getHeight()/20 + 2, size - 4, size -4, null);\n }\n }\n\n // draw chips collected.\n int chipsNum = originalChipNumber - board.getTreasureRemainingAmount();\n BufferedImage bi = ImageIO.read(new File(\"./assets/Items/Treasure.png\"));\n if(chipsNum > 0){\n int lineNumber = chipsNum / 6;\n int remainingInLastLine = chipsNum % 6;\n if(lineNumber > 0){\n for(int i = 0; i < lineNumber; i++){\n for(int j = 0; j < 6; j++){\n g.drawImage(bi, startX + size * j + 2, 14 * infoCanvas.getHeight()/20 + size * (i + 1) + 2, size - 4, size -4, null);\n }\n }\n }\n for(int i = 0; i < remainingInLastLine; i++){\n g.drawImage(bi, startX + size * i + 2, 14 * infoCanvas.getHeight()/20 + size * (1 + lineNumber) + 2, size - 4, size -4, null);\n }\n }\n }", "@Override\n\t\t\tpublic void render(com.google.gwt.cell.client.Cell.Context context,\n\t\t\t\t\tAnswerProxy value, SafeHtmlBuilder sb) {\n\t\t\t if (value == null) {\n\t\t\t \t sb.appendHtmlConstant(\"<span class=\\\"ui-icon ui-icon-help\\\"></span>\");\n\t\t\t return;\n\t\t\t }\n\t\t\t String validityIcon = \"\";\n\t\t\t switch (value.getValidity()) {\n\t\t\t\t\tcase Wahr: ; validityIcon += \"<span class=\\\"ui-icon ui-icon-check\\\"></span>\";\n\t\t\t\t\t\t\t break;\n\t\t\t\t\t\t\t\n\t\t\t\t\tcase Falsch: validityIcon += \"<span class=\\\"ui-icon ui-icon-close\\\"></span>\";\n\t\t\t\t\t\t\t break;\n\t\t\t\t\t\t\t \n\t\t\t\t\t/*case Weil:\t validityIcon += \"<span class=\\\"ui-icon ui-icon-refresh\\\"></span>\";\t\n\t\t\t\t\t\t\t\tbreak;*/\n\t\t\t\t\t\t\t \n\t\t\t\t\tdefault:\t validityIcon += \"<span class=\\\"ui-icon ui-icon-help\\\"></span>\";\t\n\t\t\t\t\t\t\t break;\n\t\t\t\t\t}\n\n\t\t\t \n\t\t\t sb.appendHtmlConstant(validityIcon);\n\t\t\t \n\t\t\t\t\n\t\t\t}", "public void setMainIcon(IconReference ref);", "java.lang.String getIcon();", "java.lang.String getIcon();", "boolean hasIcon();", "boolean hasIcon();", "public Icon getIcon() {\n\t\treturn null;\n\t}", "public void draw(Graphics g) {\n\t\tif (visible) {\n\t\t\tcurrentImage.paintIcon(this.c, g, x, y);\n\t\t}\n\t}", "protected abstract void paintBoard() throws TilePixelOutOfRangeException;", "public final void mo3386x() {\n Drawable drawable;\n Toolbar toolbar;\n if ((this.f2803b & 4) != 0) {\n toolbar = this.f2802a;\n drawable = this.f2808g;\n if (drawable == null) {\n drawable = this.f2817p;\n }\n } else {\n toolbar = this.f2802a;\n drawable = null;\n }\n toolbar.setNavigationIcon(drawable);\n }" ]
[ "0.6310203", "0.62195706", "0.62171483", "0.61953795", "0.6044179", "0.5967584", "0.5896052", "0.588874", "0.5829875", "0.57768583", "0.5749597", "0.57366115", "0.57274836", "0.57189333", "0.5703731", "0.5687344", "0.565899", "0.56529045", "0.5643317", "0.5574493", "0.55653477", "0.55230564", "0.5503074", "0.5501899", "0.54581374", "0.5441014", "0.5412048", "0.5403672", "0.539386", "0.53844947", "0.5378472", "0.5377737", "0.5374166", "0.53571683", "0.53405434", "0.53281647", "0.5327931", "0.5313743", "0.5306762", "0.52977115", "0.5280729", "0.5280729", "0.52681607", "0.5267367", "0.5263514", "0.52560973", "0.52517945", "0.52363294", "0.52326494", "0.5232059", "0.5208405", "0.5208228", "0.5201393", "0.51899856", "0.5189378", "0.5187671", "0.5179091", "0.51777536", "0.5171798", "0.5170863", "0.5166398", "0.5161678", "0.51550585", "0.51543057", "0.5149477", "0.51440734", "0.514068", "0.5139808", "0.51378226", "0.51378226", "0.51378226", "0.51161957", "0.5113631", "0.51084244", "0.510264", "0.50997657", "0.5096511", "0.5095398", "0.50823605", "0.5075815", "0.5067376", "0.5064454", "0.5048736", "0.5048456", "0.50440353", "0.50377154", "0.5034359", "0.5032682", "0.5030074", "0.50284904", "0.50276583", "0.5002924", "0.5001175", "0.5001175", "0.49970946", "0.49970946", "0.4995225", "0.49944687", "0.49935958", "0.49920002" ]
0.5224726
50
Move this bug to the given cell.
public boolean moveTo(Cell cell) { if (cell == this.position) { return true; } if (cell.equals(this.position.getNorth())) { return moveUp(); } if (cell.equals(this.position.getSouth())) { return moveDown(); } if (cell.equals(this.position.getEast())) { return moveRight(); } if (cell.equals(this.position.getWest())) { return moveLeft(); } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void move(FightCell cell);", "void move(char entry, int column, int row) {\n if(!moveIsOnBoard(column, row) ) {\n // throw an exception\n } else if (!this.state[column][row].isEmpty) {\n // throw a different exception\n } else {\n this.state[column][row].makeEntry(entry);\n }\n this.checkIfFull();\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic static <T extends Cell> void moveCell(Grid<Cell> grid, T cellToMove, EmptyCell emptyCellToMoveTo) {\n\t\tGridPoint oldPoint = grid.getLocation(cellToMove);\n\t\tContext<Cell> context = ContextUtils.getContext(cellToMove);\n\t\treplaceCell(grid, emptyCellToMoveTo, cellToMove);\n\t\t\n\t\tEmptyCell emptyCell = new EmptyCell(grid);\n\t\tcontext.add(emptyCell);\n\t\tif (isGridBiDimensional(grid)) {\n\t\t\tgrid.moveTo(emptyCell, oldPoint.getX(), oldPoint.getY());\n\t\t} else {\n\t\t\tgrid.moveTo(emptyCell, oldPoint.getX(), oldPoint.getY(), oldPoint.getZ());\n\t\t}\n\t\tcontext.add(emptyCell);\n\t}", "public void punishment(){\n\t\tthis.cell = 0;\n\t}", "public void move() {\n\t\tGrid<Actor> gr = getGrid();\n\t\tif (gr == null) {\n\t\t\treturn;\n\t\t}\n\t\tLocation loc = getLocation();\n\t\tLocation next = loc.getAdjacentLocation(getDirection());\n\t\t\n\t\tLocation next2 = next.getAdjacentLocation(getDirection());\n\t\tif (gr.isValid(next2)) {\n\t\t\tmoveTo(next2);\n\t\t} else {\n\t\t\tremoveSelfFromGrid();\n\t\t}\n\t}", "private void moveTile()\n {\n int[] moveIndices = null;\n \n int sourceRow = moveIndices[0];\n int sourceCol = moveIndices[1];\n int destRow = moveIndices[2] - 1;\n int destCol = moveIndices[3];\n \n if (sourceRow == 0) \n {\n try\n {\n game.playTileFromHand(sourceCol, destRow, destCol);\n }\n catch(ArrayIndexOutOfBoundsException ex)\n {\n // TODO: ConsoleUtils.message(\"Unable to complete your play, wrong indices!\");\n }\n }\n else\n {\n sourceRow--;\n try\n {\n game.moveTileInBoard(sourceRow, sourceCol, destRow, destCol); \n }\n catch(ArrayIndexOutOfBoundsException ex)\n {\n // TODO: ConsoleUtils.message(\"Unable to complete your play, wrong indices!\");\n }\n }\n }", "public void move(Cell[][] board) {\n Cell[] nextCells = generateNeighbors(this.x, this.y);\n Cell nextCell = nextCells[rand.nextInt(4)];\n if (!this.objectFound) {\n if (nextCell != null && nextCell.isOccupied() && nextCell.occupiedBy instanceof Integer) {\n this.objectFound = true;\n this.goal = nextCell;\n } else if (nextCell != null && !nextCell.isOccupied()) {\n synchronized (board[this.x][this.y]) {\n board[this.x][this.y].resetCell();\n nextCell.occupiedBy = this;\n }\n }\n } else {\n // bfs to location\n System.out.println(\"BFS to goal\");\n }\n }", "public void setCell(Cell cell)\n {\n myCell = cell;\n }", "public WritableCell copyTo(int col, int row)\r\n/* 179: */ {\r\n/* 180:319 */ Assert.verify(false);\r\n/* 181:320 */ return null;\r\n/* 182: */ }", "@Override\n Figure move(Cell dest) {\n return new Bishop(dest, this.strategy);\n }", "public void doCell(Parse cell, int column) {\n\t\tignore(cell);\n\t}", "public void move(GridPanel bugGrid)\n\t{\tRandom generator = new Random();\n\t\tif (row < bugGrid.getBoardRows()) \n\t\t\t\t\t\t\t\t\n\t\t // -----------------------------------------------------\n\t\t // Simple bug mover randomly, 0-3 spaces\n\t\t //-----------------------------------------------------\n\t\n\t\t bugGrid.addImage(null, row, column);\n\t\t row++;\n\t\t bugGrid.addImage(image, row, column);\n\n }", "@Override\n public void move(int col) throws ColumnFullException, IllegalColumnException {\n //handle exceptions\n if (col < 0 || col >= NUM_COLS) {\n throw new IllegalColumnException(col);\n }\n if (isColumnFull(col)) {\n throw new ColumnFullException(col);\n }\n\n //loop to next empty space in the col\n //catch errors\n int j = 0;\n try {\n while (getCounterAt(col, j) != EMPTY) {\n j++;\n }\n } catch (IllegalColumnException e) {\n System.out.println(e + \" in MyGameState.java Method move\");\n\n } catch (IllegalRowException e) {\n System.out.println(e + \" in MyGameState.java Method move\");\n }\n\n //set the found position to the current turn\n board[j][col] = whoseTurn();\n //change the turn\n changeTurn();\n //update the last position that was set\n lastPlacedRow = j;\n lastPlacedCol = col;\n\n\n }", "public void insertIntoGraph(mxICell cell) {\n mxICell parent = cell.getParent();\n mxICell source = cell.getTerminal(true);\n mxICell target = cell.getTerminal(false);\n\n // Fixes possible inconsistencies during insert into graph\n cell.setTerminal(null, false);\n cell.setTerminal(null, true);\n cell.setParent(null);\n\n if (parent != null) {\n parent.insert(cell);\n }\n\n if (source != null) {\n source.insertEdge(cell, true);\n }\n\n if (target != null) {\n target.insertEdge(cell, false);\n }\n }", "private void setCell(int x, int y, int newValue) {\n hiddenGrid[x][y] = newValue;\n }", "@Override\n\tpublic void setColumnForMove(int col) {\n\t\tthis.dropCol = col;\n\t}", "public PuzzleState move(int row, int column, Operation op);", "private boolean moveTo(AntArea.Cell dest) throws AntArtException {\n if (dest.isAntPresent()) {\n return false;\n }\n\n getCurrentCell().leave(this);\n dest.move(this);\n\n //Update the ant location\n Pair<Integer, Integer> newLoc = dest.getLocation();\n location = new Pair<>(newLoc.getKey(), newLoc.getValue());\n\n return true;\n }", "@Override\n\tpublic boolean move(int col, int row, piece[][] board) {\n\t\treturn false;\n\t}", "public BoardCell(BoardCell existingBoardCell){\n xCor=existingBoardCell.getXCor();\n yCor=existingBoardCell.getYCor();\n }", "public void makeMove(Game game) {\n\t\t\n\t\tint row,col;\n\t\tTickTackToe tttGame = (TickTackToe) game;\n\t\tView.playerNameSet(name);\n while(true){\n \n if(View.selectedCol!=-1){\n col=View.selectedCol;\n View.selectedCol=-1;\n if(tttGame.isValidCell(col))\n break;\n else{\n JOptionPane.showMessageDialog(this,\"Please Choose Another Column\", \"Alert\", JOptionPane.PLAIN_MESSAGE);\n \n }\n }\n }\n \n\t\t/*boolean first = true;\n\t\tdo\n\t\t{\n\t\t\tif(first) \tSystem.out.println(\"Insert column [0,2]\");\n\t\t\telse System.out.println(\"Invalid input! Insert column [0,2] again.\");\n\t\t\t//row = in.nextInt();\n\t\t\tcol = in.nextInt();\n\t\t\tfirst=false;\n\t\t}while(!tttGame.isValidCell(col));*/\n\t\t\n \n for(row=tttGame.row-1;row>=0;row--){\n \n if(tttGame.board[row][col]==-1){\n tttGame.board[row][col] = role;\n \n \n break;\n }\n \n }\n\t\t\n\t}", "public synchronized void switchCell()\n {\n cellValue = (cellValue == ALIVE) ? DEAD : ALIVE;\n }", "@Test\n public void testMovePlayerToCell()\n {\n theEngine.start();\n assertTrue(theEngine.inPlayingState());\n \n assertFalse(getThePlayer().getLocation() == getEmptyCell());\n movePlayerToCell(getEmptyCell());\n assertEquals(getThePlayer().getLocation(), getEmptyCell());\n }", "private void easyMove(Board board) {\n\t\t\r\n\t}", "public abstract void move(int row, int col) throws IllegalMoveException;", "public void moveCell(long cellId, double x, double y)\n\t{\n\t\tCalicoPacket packet = new CalicoPacket();\n\t\tpacket.putInt(IntentionalInterfacesNetworkCommands.CIC_MOVE);\n\t\tpacket.putLong(cellId);\n\t\tpacket.putInt((int) x);\n\t\tpacket.putInt((int) y);\n\n\t\tpacket.rewind();\n\t\tPacketHandler.receive(packet);\n\t\tNetworking.send(packet);\n\t}", "private void swapPosition(int curRow, int curCol, int newRow, int newCol){\n gameBoard[newRow][newCol] = gameBoard[curRow][curCol];\n gameBoard[curRow][curCol] = new EmptyPiece();\n }", "public abstract void setCell(int row, int column, T item);", "private void tryMove(int row, int column) {\n game.move(new Point(row, column));\n }", "public static void move(int row, int col){\n \n if(board[row][col] == ' '){\n board[row][col] = xo;\n changeXO();\n }\n else\n System.out.println(\"There is already a character there. Please try another spot.\");\n \n }", "public void move() {\n if (this.nextMove.equals(\"a\")) { // move down\n this.row = row + 1;\n progress += 1;\n if (progress == steps) {\n nextMove = \"b\";\n progress = 0;\n }\n } else if (this.nextMove.equals(\"b\")) { // move right\n this.col = col + 1;\n progress += 1;\n if (progress == steps) {\n nextMove = \"c\";\n progress = 0;\n }\n } else if (this.nextMove.equals(\"c\")) { // move up\n this.row = row - 1;\n progress += 1;\n if (progress == steps) {\n nextMove = \"a\";\n progress = 0;\n }\n }\n }", "public Cell(Cell original){\n this.i = original.i;\n this.j = original.j;\n this.type = original.type;\n if (original.entity != null) {\n if (original.entity instanceof Agent) {\n Agent agent = (Agent) original.entity;\n this.entity = new Agent(agent);\n }\n else if (original.entity instanceof Box) {\n Box box = (Box) original.entity;\n this.entity = new Box(box);\n }\n }\n else {\n this.entity = null;\n }\n this.goalLetter = original.goalLetter;\n }", "public void move() {\n\t\tGrid<Actor> gr = getGrid();\n\t\tif (gr == null) {\n\t\t\treturn;\n\t\t}\n\t\tLocation loc = getLocation();\n\t\tif (gr.isValid(next)) {\n\t\t\tsetDirection(getLocation().getDirectionToward(next));\n\t\t\tmoveTo(next);\n\t\t} else {\n\t\t\tremoveSelfFromGrid();\n\t\t}\n\t\tFlower flower = new Flower(getColor());\n\t\tflower.putSelfInGrid(gr, loc);\n\t}", "private void overwritePosition(int oldRow, int oldCol, int newRow, int newCol){\n gameBoard[newRow][newCol] = gameBoard[oldRow][oldCol];\n gameBoard[oldRow][oldCol] = new EmptyPiece();\n }", "public boolean move(Cell destCell)\n\t{\n\t\t// Checking whether of not the Cells are adjacent is redundant so long as only a\n\t\t// DPad-type system is used to control movement\n\t\tif(currentCell.isAdjecentWithCorners(destCell) && destCell.getSpaceOpen())\n\t\t{\n\t\t\t// Store the origin Cell temporarily\n\t\t\tCell prevCell = currentCell;\n\n\t\t\t// Assign this Character to its destination Cell\n\t\t\t// currentCell is automatically updated by setOccupant()\n\t\t\tif(destCell.setOccupant(this))\n\t\t\t{\n\t\t\t\t// Remove this Character from its current Cell\n\t\t\t\tprevCell.setOccupant(null);\n\n\t\t\t\t// Set movement animation offsets\n\t\t\t\tanimationOffsetX += Tile.TILE_SCALE * Tile.TILE_WIDTH * (prevCell.getGridX() - currentCell.getGridX());\n\t\t\t\tanimationOffsetY += Tile.TILE_SCALE * Tile.TILE_HEIGHT * (prevCell.getGridY() - currentCell.getGridY());\n\n\t\t\t\treturn true;\n\t\t\t} else\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} else\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t}", "public void move() throws InstructionExecutionException\r\n\t{\r\n\t\t\r\n\t\ttry \r\n\t\t{\r\n\t\t\tStreet street=this.getHeadingStreet();\r\n\t\t\tif(street==null){\r\n\t\t\t\tString err=\"WALL·E says: There is no street in direction \"+this.getCurrentHeading();\r\n\t\t\t\tif(isSwing()){\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, err);\r\n\t\t\t\t}\r\n\t\t\t\tthrow new InstructionExecutionException(err);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tPlace nextPlace=street.nextPlace(this.currentPlace);\r\n\t\t\tif (street.isOpen()){\r\n\t\t\t\tthis.currentPlace=nextPlace;\r\n\t\t\t\tif(isSwing()){\r\n\t\t\t\t\tthis.navigationPanel.updateCell(currentDirection, nextPlace);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}else{\r\n\t\t\t\tString err=\"WALL·E says: Arrggg, there is a street but it is closed!\";\r\n\t\t\t\tif(isSwing()){\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, err);\r\n\t\t\t\t}\r\n\t\t\t\tthrow new InstructionExecutionException(err);\r\n\t\t\t}\r\n\t\t}catch (Exception e){\r\n\t\t\tthrow e;\r\n\t\t}\r\n\t}", "public void undoMove(Move move) {\n b[move.from.row][move.from.column] = true;\r\n\r\n // Set 'to' space to free\r\n b[move.to.row][move.to.column] = false;\r\n\r\n // Set 'step' space to occupied\r\n b[(move.from.row + move.to.row)/2][(move.from.column + move.to.column)/2] = true;\r\n\r\n // Increment number of pegs left on the board\r\n pegsLeft++;\r\n }", "public void pushCell(int x, int y) {\n\n if (fieldManager.isCellMined(x, y)) {\n fieldInerface.putLethalMineToButton(x, y);\n death(x, y);\n return;\n }\n\n fieldManager.openCell(x, y);\n fieldInerface.putEnvToButton(x, y, (int) fieldManager.getEnv(x, y));\n if (fieldManager.getEnv(x, y) == 0)\n for (int i = x - 1; i < x + 2; i++)\n for (int j = y - 1; j < y + 2; j++)\n if ((i >= 0) && (i < widthOfField) && (j >= 0)\n && (j < heightOfField))\n if (fieldManager.isCellOpenable(i, j))\n pushCell(i, j);\n }", "public static void move(int square, char mark) {\n\t\tif (isSquareEmpty(square)) {\n\t\t\tspacesLeft = spacesLeft - 1;\n\t\t}\n\n\t\tif (square == 1) {\n\t\t\tboard[0][0] = mark;\n\t\t} else if (square == 2) {\n\t\t\tboard[0][1] = mark;\n\t\t} else if (square == 3) {\n\t\t\tboard[0][2] = mark;\n\t\t} else if (square == 4) {\n\t\t\tboard[1][0] = mark;\n\t\t} else if (square == 5) {\n\t\t\tboard[1][1] = mark;\n\t\t} else if (square == 6) {\n\t\t\tboard[1][2] = mark;\n\t\t} else if (square == 7) {\n\t\t\tboard[2][0] = mark;\n\t\t} else if (square == 8) {\n\t\t\tboard[2][1] = mark;\n\t\t} else if (square == 9) {\n\t\t\tboard[2][2] = mark;\n\t\t}\n\t}", "public void testSetCell()\r\n {\r\n board.loadBoardState(\"OOOO\",\r\n \"OOOO\",\r\n \"O+OO\",\r\n \"OOOO\");\r\n board.setCell(1, 2, MineSweeperCell.FLAGGED_MINE);\r\n assertBoard(board, \"OOOO\",\r\n \"OOOO\",\r\n \"OMOO\",\r\n \"OOOO\");\r\n }", "@Override\n public void updateCellState(CellPosition cellPosition, CellState cellState) {\n grid.replace(cellPosition, cellState);\n }", "void makeMove(int row, int col, int nextRow, int nextCol) {\r\n int temp = checks[row][col];\r\n checks[nextRow][nextCol] = temp;\r\n checks[row][col] = 0;\r\n if (Math.abs(nextRow - row) == 2){\r\n removePiece(nextRow, nextCol,row, col);\r\n }\r\n checkKing(nextRow,nextCol);\r\n }", "public void putCellInGoodPlace(JmtCell cell, int x, int y, boolean flag) {\n \t\tif (sp > 9) {\r\n \t\t\tsp = 0;\r\n \t\t}\r\n \t\tint oldPointX = 0;\r\n \t\tint oldPointY = 0;\r\n \t\tboolean inGroup = false;\r\n \t\t// Il flag stato creato per capire sapere se e' una block regione e\r\n \t\t// quindi utilizzare\r\n \t\t// il vecchio metodo oppure se e' una cella quindi flag=true allora uso\r\n \t\t// il nuovo\r\n \t\t// System.out.println(\"------------PUT CELL IN GOOD PLACE\r\n \t\t// ----------------------\");\r\n \r\n \t\tif (flag) {\r\n \t\t\tRectangle bounds = GraphConstants.getBounds(cell.getAttributes()).getBounds();\r\n \t\t\tRectangle bounds2 = new Rectangle((int) bounds.getX() - 20, (int) bounds.getY(), (int) bounds.getWidth() + 38, (int) bounds.getHeight());\r\n \r\n \t\t\toldPointX = x;\r\n \t\t\toldPointY = y;\r\n \t\t\t// ---------inzio\r\n \t\t\t// Object[] cells=(graph).getDescendants(graph.getRoots());\r\n \t\t\t// for(int j=0;j<cells.length;j++){\r\n \t\t\t// if((cells[j] instanceof JmtCell) &&(cells[j]!=cell)){\r\n \t\t\t// Rectangle\r\n \t\t\t// boundcell=GraphConstants.getBounds(((JmtCell)cells[j]).getAttributes()).getBounds();\r\n \t\t\t// if(boundcell.intersects(bounds2)){\r\n \t\t\t// System.out.println(\"true\");\r\n \t\t\t// }\r\n \t\t\t// }\r\n \t\t\t// }\r\n \r\n \t\t\t// ---------------fine\r\n \t\t\t// check if a cell isInGroup\r\n \t\t\tif (isInGroup(cell)) {\r\n \r\n \t\t\t\tinGroup = true;\r\n \t\t\t}\r\n \r\n \t\t\t// Avoids negative starting point\r\n \t\t\tif (bounds.getX() < 20) {\r\n \t\t\t\tbounds.setLocation(20, (int) bounds.getY());\r\n \t\t\t}\r\n \t\t\tif (bounds.getY() < 0) {\r\n \t\t\t\tbounds.setLocation((int) bounds.getX(), 0);\r\n \t\t\t}\r\n \r\n \t\t\t// Qua ho le celle e archi che intersecano la mia cella\r\n \t\t\t// selezionata..bounds (molto efficente dal punto di vista della\r\n \t\t\t// pesantezza)\r\n \t\t\tObject[] overlapping = graph.getDescendants(graph.getRoots(bounds2));\r\n \r\n \t\t\tPoint2D zero = new Point(20, 0);\r\n \t\t\tresetOverLapping = 0;\r\n \t\t\twhile (overlapping.length > 0) {\r\n \r\n \t\t\t\t// Moves bounds until it doesn't overlap with anything\r\n \t\t\t\tPoint2D last = (Point2D) zero.clone();\r\n \t\t\t\tfor (int j = 0; j < overlapping.length; j++) {\r\n \r\n \t\t\t\t\tresetOverLapping++;\r\n \t\t\t\t\t// resetOverLapping is inserted for an anormall behavior of\r\n \t\t\t\t\t// Tool\r\n \t\t\t\t\t// in fact, if you disable this variable you can see that\r\n \t\t\t\t\t// the tools\r\n \t\t\t\t\t// stop and \"for cycle\" will be repeated infinite times\r\n \t\t\t\t\tif (resetOverLapping > 50) {\r\n \t\t\t\t\t\tbounds.setLocation(new Point(oldPointX, oldPointY));\r\n \t\t\t\t\t\tGraphConstants.setBounds(cell.getAttributes(), bounds);\r\n \t\t\t\t\t\tresetOverLapping = 0;\r\n \t\t\t\t\t\treturn;\r\n \t\t\t\t\t}\r\n \t\t\t\t\t// System.out.println(\"---flag in for---\");\r\n \t\t\t\t\t// if(overlapping[j] instanceof JmtEdge\r\n \t\t\t\t\t// &&((JmtEdge)overlapping[j]).intersects((EdgeView)(graph.getGraphLayoutCache()).getMapping(overlapping[j],\r\n \t\t\t\t\t// false),\r\n \t\t\t\t\t// GraphConstants.getBounds(((JmtCell)cell).getAttributes())))\r\n \t\t\t\t\t// System.out.println(\"Intersect TRUE\");\r\n \r\n \t\t\t\t\t// Puts last to last corner of overlapping cells\r\n \t\t\t\t\tif (overlapping[j] instanceof JmtCell && overlapping[j] != cell && inGroup) {\r\n \t\t\t\t\t\tRectangle2D b2 = GraphConstants.getBounds(((JmtCell) overlapping[j]).getAttributes());\r\n \t\t\t\t\t\tif (b2.intersects(bounds)) {\r\n \t\t\t\t\t\t\tif (b2.getMaxX() > last.getX()) {\r\n \t\t\t\t\t\t\t\tlast.setLocation(b2.getMaxX(), last.getY());\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\tif (b2.getMaxY() > last.getY()) {\r\n \t\t\t\t\t\t\t\tlast.setLocation(last.getX(), b2.getMaxY());\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t\tlast.setLocation(new Point((int) (last.getX() + .5), (int) (last.getY() + .5)));\r\n \t\t\t\t\t}\r\n \r\n \t\t\t\t\tint numberOfChild = cell.getChildCount();\r\n \r\n \t\t\t\t\tif (!inGroup && overlapping[j] instanceof JmtCell && overlapping[j] != cell) {\r\n \r\n \t\t\t\t\t\tRectangle2D b = GraphConstants.getBounds(((JmtCell) overlapping[j]).getAttributes());\r\n \t\t\t\t\t\t// Consider only rectangles that intersects with given\r\n \t\t\t\t\t\t// bound\r\n \t\t\t\t\t\tif (b.intersects(bounds2)) {\r\n \t\t\t\t\t\t\tlast.setLocation(new Point(oldPointX, oldPointY));\r\n \r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t}\r\n \t\t\t\t\t// inizio a controllare se l intersezione e' un lato\r\n \t\t\t\t\tif (overlapping[j] instanceof JmtEdge\r\n \t\t\t\t\t\t\t&& overlapping[j] != cell\r\n \t\t\t\t\t\t\t&& !isInGroup(overlapping[j])\r\n \t\t\t\t\t\t\t&& ((JmtEdge) overlapping[j]).intersects((EdgeView) (graph.getGraphLayoutCache()).getMapping(overlapping[j], false),\r\n \t\t\t\t\t\t\t\t\tGraphConstants.getBounds(cell.getAttributes())) && ((JmtEdge) overlapping[j]).getSource() != cell.getChildAt(0)) {\r\n \t\t\t\t\t\tboolean access = false;\r\n \t\t\t\t\t\tboolean access2 = false;\r\n \r\n \t\t\t\t\t\t// Nonostatne SourceCell e SinkCell estendano JMTCell\r\n \t\t\t\t\t\t// avevo problemi di nullPointerException per questo\r\n \t\t\t\t\t\t// verifico di che\r\n \t\t\t\t\t\t// tipo sono\r\n \r\n \t\t\t\t\t\tif (cell instanceof SourceCell\r\n \t\t\t\t\t\t\t\t&& ((JmtEdge) overlapping[j]).intersects((EdgeView) (graph.getGraphLayoutCache()).getMapping(overlapping[j], false),\r\n \t\t\t\t\t\t\t\t\t\tGraphConstants.getBounds(((SourceCell) cell).getAttributes()))) {\r\n \t\t\t\t\t\t\tif (((JmtEdge) overlapping[j]).getSource() != cell.getChildAt(0)) {\r\n \t\t\t\t\t\t\t\t// _______INIZIO_____\r\n \t\t\t\t\t\t\t\tArrayList<Point2D> intersectionPoints = ((JmtEdge) overlapping[j]).getIntersectionVertexPoint();\r\n \t\t\t\t\t\t\t\tPoint2D tmp = (intersectionPoints.get(0));\r\n \t\t\t\t\t\t\t\tRectangle2D cellBound = GraphConstants.getBounds(((SourceCell) cell).getAttributes());\r\n \t\t\t\t\t\t\t\tdouble vertexMaxX = (int) cellBound.getMaxX();\r\n \t\t\t\t\t\t\t\tdouble vertexMaxY = (int) cellBound.getMaxY();\r\n \t\t\t\t\t\t\t\tdouble vertexHeight = (int) cellBound.getHeight();\r\n \t\t\t\t\t\t\t\tdouble vertexWidth = (int) cellBound.getWidth();\r\n \t\t\t\t\t\t\t\tboolean upperSideIntersaction = ((JmtEdge) overlapping[j]).getUpperSideIntersaction();\r\n \t\t\t\t\t\t\t\tboolean lowerSideIntersaction = ((JmtEdge) overlapping[j]).getLowerSideIntersaction();\r\n \t\t\t\t\t\t\t\tboolean leftSideIntersaction = ((JmtEdge) overlapping[j]).getLeftSideIntersaction();\r\n \t\t\t\t\t\t\t\tboolean rightSideIntersaction = ((JmtEdge) overlapping[j]).getRightSideIntersaction();\r\n \t\t\t\t\t\t\t\tif (upperSideIntersaction && lowerSideIntersaction) {\r\n \r\n \t\t\t\t\t\t\t\t\tint valoreIntermedio = ((int) vertexMaxX - (int) (vertexWidth / 2));\r\n \t\t\t\t\t\t\t\t\tif ((int) tmp.getX() < valoreIntermedio) {\r\n \r\n \t\t\t\t\t\t\t\t\t\tPoint newPosition = (this.overlapping).findFreePosition(((JmtEdge) overlapping[j]), cell, cellBound, tmp,\r\n \t\t\t\t\t\t\t\t\t\t\t\tfalse, false, true, false);\r\n \t\t\t\t\t\t\t\t\t\tbounds.setLocation(newPosition);\r\n \t\t\t\t\t\t\t\t\t} else {\r\n \r\n \t\t\t\t\t\t\t\t\t\tPoint newPosition = (this.overlapping).findFreePosition(((JmtEdge) overlapping[j]), cell, cellBound, tmp,\r\n \t\t\t\t\t\t\t\t\t\t\t\tfalse, false, false, true);\r\n \t\t\t\t\t\t\t\t\t\tbounds.setLocation(newPosition);\r\n \t\t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\t} else if (leftSideIntersaction && rightSideIntersaction) {\r\n \r\n \t\t\t\t\t\t\t\t\tint valoreIntermedio = ((int) vertexMaxY - (int) (vertexHeight / 2));\r\n \t\t\t\t\t\t\t\t\tif ((int) tmp.getY() < valoreIntermedio) {\r\n \t\t\t\t\t\t\t\t\t\tPoint newPosition = (this.overlapping).findFreePosition(((JmtEdge) overlapping[j]), cell, cellBound, tmp,\r\n \t\t\t\t\t\t\t\t\t\t\t\tfalse, true, false, false);\r\n \t\t\t\t\t\t\t\t\t\tPoint newPosition2 = new Point(newPosition.x, newPosition.y + sp);\r\n \t\t\t\t\t\t\t\t\t\tbounds.setLocation(newPosition2);\r\n \t\t\t\t\t\t\t\t\t\tsp = sp + 2;\r\n \t\t\t\t\t\t\t\t\t\t// cellBounds.setLocation(newPosition);\r\n \t\t\t\t\t\t\t\t\t\t// GraphConstants.setBounds(((SinkCell)cell).getAttributes(),\r\n \t\t\t\t\t\t\t\t\t\t// cellBounds);\r\n \t\t\t\t\t\t\t\t\t} else {\r\n \t\t\t\t\t\t\t\t\t\tPoint newPosition = (this.overlapping).findFreePosition(((JmtEdge) overlapping[j]), cell, cellBound, tmp,\r\n \t\t\t\t\t\t\t\t\t\t\t\ttrue, false, false, false);\r\n \r\n \t\t\t\t\t\t\t\t\t\tbounds.setLocation(newPosition);\r\n \t\t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\t} else if (upperSideIntersaction && rightSideIntersaction) {\r\n \r\n \t\t\t\t\t\t\t\t\tPoint newPosition = (this.overlapping).findFreePosition(((JmtEdge) overlapping[j]), cell, cellBound, tmp, false,\r\n \t\t\t\t\t\t\t\t\t\t\tfalse, false, true);\r\n \t\t\t\t\t\t\t\t\tbounds.setLocation(newPosition);\r\n \r\n \t\t\t\t\t\t\t\t} else if (upperSideIntersaction && leftSideIntersaction) {\r\n \r\n \t\t\t\t\t\t\t\t\tPoint newPosition = (this.overlapping).findFreePosition(((JmtEdge) overlapping[j]), cell, cellBound, tmp, false,\r\n \t\t\t\t\t\t\t\t\t\t\tfalse, true, false);\r\n \t\t\t\t\t\t\t\t\tbounds.setLocation(newPosition);\r\n \t\t\t\t\t\t\t\t} else if (lowerSideIntersaction && rightSideIntersaction) {\r\n \r\n \t\t\t\t\t\t\t\t\tPoint2D tmp1 = (intersectionPoints.get(1));\r\n \t\t\t\t\t\t\t\t\tPoint newPosition = (this.overlapping).findFreePosition(((JmtEdge) overlapping[j]), cell, cellBound, tmp1, false,\r\n \t\t\t\t\t\t\t\t\t\t\tfalse, false, true);\r\n \t\t\t\t\t\t\t\t\tbounds.setLocation(newPosition);\r\n \t\t\t\t\t\t\t\t} else if (lowerSideIntersaction && leftSideIntersaction) {\r\n \r\n \t\t\t\t\t\t\t\t\tPoint newPosition = (this.overlapping).findFreePosition(((JmtEdge) overlapping[j]), cell, cellBound, tmp, false,\r\n \t\t\t\t\t\t\t\t\t\t\tfalse, true, false);\r\n \t\t\t\t\t\t\t\t\tbounds.setLocation(newPosition);\r\n \t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\taccess = true;\r\n \t\t\t\t\t\t\t}\r\n \r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t\tif (cell instanceof SinkCell) {\r\n \r\n \t\t\t\t\t\t\tif (((JmtEdge) overlapping[j]).getTarget() != cell.getChildAt(0)) {\r\n \r\n \t\t\t\t\t\t\t\tif (((JmtEdge) overlapping[j]).intersects((EdgeView) (graph.getGraphLayoutCache()).getMapping(overlapping[j], false),\r\n \t\t\t\t\t\t\t\t\t\tGraphConstants.getBounds(((SinkCell) cell).getAttributes()))) {\r\n \r\n \t\t\t\t\t\t\t\t\tArrayList<Point2D> intersectionPoints = ((JmtEdge) overlapping[j]).getIntersectionVertexPoint();\r\n \t\t\t\t\t\t\t\t\tPoint2D tmp = (intersectionPoints.get(0));\r\n \t\t\t\t\t\t\t\t\tRectangle2D cellBound = GraphConstants.getBounds(((SinkCell) cell).getAttributes());\r\n \t\t\t\t\t\t\t\t\tdouble vertexMaxX = (int) cellBound.getMaxX();\r\n \t\t\t\t\t\t\t\t\tdouble vertexMaxY = (int) cellBound.getMaxY();\r\n \t\t\t\t\t\t\t\t\tdouble vertexHeight = (int) cellBound.getHeight();\r\n \t\t\t\t\t\t\t\t\tdouble vertexWidth = (int) cellBound.getWidth();\r\n \t\t\t\t\t\t\t\t\tboolean upperSideIntersaction = ((JmtEdge) overlapping[j]).getUpperSideIntersaction();\r\n \t\t\t\t\t\t\t\t\tboolean lowerSideIntersaction = ((JmtEdge) overlapping[j]).getLowerSideIntersaction();\r\n \t\t\t\t\t\t\t\t\tboolean leftSideIntersaction = ((JmtEdge) overlapping[j]).getLeftSideIntersaction();\r\n \t\t\t\t\t\t\t\t\tboolean rightSideIntersaction = ((JmtEdge) overlapping[j]).getRightSideIntersaction();\r\n \t\t\t\t\t\t\t\t\tif (upperSideIntersaction && lowerSideIntersaction) {\r\n \r\n \t\t\t\t\t\t\t\t\t\tint valoreIntermedio = ((int) vertexMaxX - (int) (vertexWidth / 2));\r\n \t\t\t\t\t\t\t\t\t\tif ((int) tmp.getX() < valoreIntermedio) {\r\n \t\t\t\t\t\t\t\t\t\t\tPoint newPosition = (this.overlapping).findFreePosition(((JmtEdge) overlapping[j]), cell, cellBound, tmp,\r\n \t\t\t\t\t\t\t\t\t\t\t\t\tfalse, false, true, false);\r\n \t\t\t\t\t\t\t\t\t\t\tbounds.setLocation(newPosition);\r\n \t\t\t\t\t\t\t\t\t\t} else {\r\n \r\n \t\t\t\t\t\t\t\t\t\t\tPoint newPosition = (this.overlapping).findFreePosition(((JmtEdge) overlapping[j]), cell, cellBound, tmp,\r\n \t\t\t\t\t\t\t\t\t\t\t\t\tfalse, false, false, true);\r\n \t\t\t\t\t\t\t\t\t\t\tbounds.setLocation(newPosition);\r\n \t\t\t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\t\t} else if (leftSideIntersaction && rightSideIntersaction) {\r\n \r\n \t\t\t\t\t\t\t\t\t\tint valoreIntermedio = ((int) vertexMaxY - (int) (vertexHeight / 2));\r\n \t\t\t\t\t\t\t\t\t\tif ((int) tmp.getY() < valoreIntermedio) {\r\n \t\t\t\t\t\t\t\t\t\t\tPoint newPosition = (this.overlapping).findFreePosition(((JmtEdge) overlapping[j]), cell, cellBound, tmp,\r\n \t\t\t\t\t\t\t\t\t\t\t\t\tfalse, true, false, false);\r\n \t\t\t\t\t\t\t\t\t\t\tPoint newPosition2 = new Point(newPosition.x, newPosition.y + sp);\r\n \t\t\t\t\t\t\t\t\t\t\tbounds.setLocation(newPosition2);\r\n \t\t\t\t\t\t\t\t\t\t\tsp = sp + 3;\r\n \t\t\t\t\t\t\t\t\t\t\t// bounds.setLocation(newPosition);\r\n \t\t\t\t\t\t\t\t\t\t} else {\r\n \t\t\t\t\t\t\t\t\t\t\tPoint newPosition = (this.overlapping).findFreePosition(((JmtEdge) overlapping[j]), cell, cellBound, tmp,\r\n \t\t\t\t\t\t\t\t\t\t\t\t\ttrue, false, false, false);\r\n \r\n \t\t\t\t\t\t\t\t\t\t\tbounds.setLocation(newPosition);\r\n \t\t\t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\t\t} else if (upperSideIntersaction && rightSideIntersaction) {\r\n \r\n \t\t\t\t\t\t\t\t\t\tPoint newPosition = (this.overlapping).findFreePosition(((JmtEdge) overlapping[j]), cell, cellBound, tmp,\r\n \t\t\t\t\t\t\t\t\t\t\t\tfalse, false, false, true);\r\n \t\t\t\t\t\t\t\t\t\tbounds.setLocation(newPosition);\r\n \r\n \t\t\t\t\t\t\t\t\t} else if (upperSideIntersaction && leftSideIntersaction) {\r\n \r\n \t\t\t\t\t\t\t\t\t\tPoint newPosition = (this.overlapping).findFreePosition(((JmtEdge) overlapping[j]), cell, cellBound, tmp,\r\n \t\t\t\t\t\t\t\t\t\t\t\tfalse, false, true, false);\r\n \t\t\t\t\t\t\t\t\t\tbounds.setLocation(newPosition);\r\n \t\t\t\t\t\t\t\t\t} else if (lowerSideIntersaction && rightSideIntersaction) {\r\n \r\n \t\t\t\t\t\t\t\t\t\tPoint2D tmp1 = (intersectionPoints.get(1));\r\n \t\t\t\t\t\t\t\t\t\tPoint newPosition = (this.overlapping).findFreePosition(((JmtEdge) overlapping[j]), cell, cellBound, tmp1,\r\n \t\t\t\t\t\t\t\t\t\t\t\tfalse, false, false, true);\r\n \t\t\t\t\t\t\t\t\t\tbounds.setLocation(newPosition);\r\n \t\t\t\t\t\t\t\t\t} else if (lowerSideIntersaction && leftSideIntersaction) {\r\n \r\n \t\t\t\t\t\t\t\t\t\tPoint newPosition = (this.overlapping).findFreePosition(((JmtEdge) overlapping[j]), cell, cellBound, tmp,\r\n \t\t\t\t\t\t\t\t\t\t\t\tfalse, false, true, false);\r\n \t\t\t\t\t\t\t\t\t\tbounds.setLocation(newPosition);\r\n \t\t\t\t\t\t\t\t\t\t// GraphConstants.setBounds(((SinkCell)cell).getAttributes(),\r\n \t\t\t\t\t\t\t\t\t\t// cellBounds);\r\n \t\t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\t\taccess2 = true;\r\n \t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t}\r\n \r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t\tif (!isInGroup(overlapping[j]) && !access && !access2 && overlapping[j] instanceof JmtEdge) {\r\n \t\t\t\t\t\t\tif ((numberOfChild == 2)\r\n \t\t\t\t\t\t\t\t\t&& ((JmtEdge) overlapping[j]).getSource() != cell.getChildAt(0)\r\n \t\t\t\t\t\t\t\t\t&& ((JmtEdge) overlapping[j]).getSource() != cell.getChildAt(1)\r\n \t\t\t\t\t\t\t\t\t&& ((JmtEdge) overlapping[j]).getTarget() != cell.getChildAt(0)\r\n \t\t\t\t\t\t\t\t\t&& ((JmtEdge) overlapping[j]).getTarget() != cell.getChildAt(1)\r\n \t\t\t\t\t\t\t\t\t&& ((JmtEdge) overlapping[j]).intersects((EdgeView) (graph.getGraphLayoutCache()).getMapping(overlapping[j],\r\n \t\t\t\t\t\t\t\t\t\t\tfalse), GraphConstants.getBounds(cell.getAttributes()))) {\r\n \r\n \t\t\t\t\t\t\t\taccess = access2 = false;\r\n \r\n \t\t\t\t\t\t\t\tArrayList<Point2D> intersectionPoints = ((JmtEdge) overlapping[j]).getIntersectionVertexPoint();\r\n \t\t\t\t\t\t\t\tif ((intersectionPoints == null) || intersectionPoints.size() <= 0) {\r\n \t\t\t\t\t\t\t\t\tbounds.setLocation(new Point(oldPointX, oldPointY));\r\n \t\t\t\t\t\t\t\t\tGraphConstants.setBounds(cell.getAttributes(), bounds);\r\n \t\t\t\t\t\t\t\t\tresetOverLapping = 0;\r\n \t\t\t\t\t\t\t\t\treturn;\r\n \t\t\t\t\t\t\t\t} else {\r\n \t\t\t\t\t\t\t\t\tPoint2D tmp = (intersectionPoints.get(0));\r\n \r\n \t\t\t\t\t\t\t\t\tRectangle2D cellBound = GraphConstants.getBounds(cell.getAttributes());\r\n \t\t\t\t\t\t\t\t\tdouble vertexMaxX = (int) cellBound.getMaxX();\r\n \t\t\t\t\t\t\t\t\tdouble vertexMaxY = (int) cellBound.getMaxY();\r\n \t\t\t\t\t\t\t\t\tdouble vertexHeight = (int) cellBound.getHeight();\r\n \t\t\t\t\t\t\t\t\tdouble vertexWidth = (int) cellBound.getWidth();\r\n \t\t\t\t\t\t\t\t\tboolean upperSideIntersaction = ((JmtEdge) overlapping[j]).getUpperSideIntersaction();\r\n \t\t\t\t\t\t\t\t\tboolean lowerSideIntersaction = ((JmtEdge) overlapping[j]).getLowerSideIntersaction();\r\n \t\t\t\t\t\t\t\t\tboolean leftSideIntersaction = ((JmtEdge) overlapping[j]).getLeftSideIntersaction();\r\n \t\t\t\t\t\t\t\t\tboolean rightSideIntersaction = ((JmtEdge) overlapping[j]).getRightSideIntersaction();\r\n \t\t\t\t\t\t\t\t\tif (upperSideIntersaction && lowerSideIntersaction) {\r\n \r\n \t\t\t\t\t\t\t\t\t\tint valoreIntermedio = ((int) vertexMaxX - (int) (vertexWidth / 2));\r\n \t\t\t\t\t\t\t\t\t\tif ((int) tmp.getX() < valoreIntermedio) {\r\n \r\n \t\t\t\t\t\t\t\t\t\t\tPoint newPosition = (this.overlapping).findFreePosition(((JmtEdge) overlapping[j]), cell, cellBound, tmp,\r\n \t\t\t\t\t\t\t\t\t\t\t\t\tfalse, false, true, false);\r\n \t\t\t\t\t\t\t\t\t\t\tbounds.setLocation(newPosition);\r\n \t\t\t\t\t\t\t\t\t\t} else {\r\n \r\n \t\t\t\t\t\t\t\t\t\t\t;\r\n \t\t\t\t\t\t\t\t\t\t\tPoint newPosition = (this.overlapping).findFreePosition(((JmtEdge) overlapping[j]), cell, cellBound, tmp,\r\n \t\t\t\t\t\t\t\t\t\t\t\t\tfalse, false, false, true);\r\n \t\t\t\t\t\t\t\t\t\t\tbounds.setLocation(newPosition);\r\n \t\t\t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\t\t} else if (leftSideIntersaction && rightSideIntersaction) {\r\n \r\n \t\t\t\t\t\t\t\t\t\tint valoreIntermedio = ((int) vertexMaxY - (int) (vertexHeight / 2));\r\n \t\t\t\t\t\t\t\t\t\tif ((int) tmp.getY() < valoreIntermedio) {\r\n \r\n \t\t\t\t\t\t\t\t\t\t\tPoint newPosition = (this.overlapping).findFreePosition(((JmtEdge) overlapping[j]), cell, cellBound, tmp,\r\n \t\t\t\t\t\t\t\t\t\t\t\t\tfalse, true, false, false);\r\n \t\t\t\t\t\t\t\t\t\t\tPoint newPosition2 = new Point(newPosition.x, newPosition.y + sp);\r\n \t\t\t\t\t\t\t\t\t\t\tbounds.setLocation(newPosition2);\r\n \t\t\t\t\t\t\t\t\t\t\tsp = sp + 3;\r\n \t\t\t\t\t\t\t\t\t\t\t// bounds.setLocation(newPosition);\r\n \t\t\t\t\t\t\t\t\t\t\t// GraphConstants.setBounds(((SinkCell)cell).getAttributes(),\r\n \t\t\t\t\t\t\t\t\t\t\t// cellBounds);\r\n \t\t\t\t\t\t\t\t\t\t} else {\r\n \t\t\t\t\t\t\t\t\t\t\tPoint newPosition = (this.overlapping).findFreePosition(((JmtEdge) overlapping[j]), cell, cellBound, tmp,\r\n \t\t\t\t\t\t\t\t\t\t\t\t\ttrue, false, false, false);\r\n \t\t\t\t\t\t\t\t\t\t\tbounds.setLocation(newPosition);\r\n \t\t\t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\t\t} else if (upperSideIntersaction && rightSideIntersaction) {\r\n \r\n \t\t\t\t\t\t\t\t\t\tPoint newPosition = (this.overlapping).findFreePosition(((JmtEdge) overlapping[j]), cell, cellBound, tmp,\r\n \t\t\t\t\t\t\t\t\t\t\t\tfalse, false, false, true);\r\n \t\t\t\t\t\t\t\t\t\tbounds.setLocation(newPosition);\r\n \t\t\t\t\t\t\t\t\t} else if (upperSideIntersaction && leftSideIntersaction) {\r\n \r\n \t\t\t\t\t\t\t\t\t\tPoint newPosition = (this.overlapping).findFreePosition(((JmtEdge) overlapping[j]), cell, cellBound, tmp,\r\n \t\t\t\t\t\t\t\t\t\t\t\tfalse, false, true, false);\r\n \t\t\t\t\t\t\t\t\t\tbounds.setLocation(newPosition);\r\n \t\t\t\t\t\t\t\t\t} else if (lowerSideIntersaction && rightSideIntersaction) {\r\n \r\n \t\t\t\t\t\t\t\t\t\tPoint2D tmp1 = (intersectionPoints.get(1));\r\n \t\t\t\t\t\t\t\t\t\tPoint newPosition = (this.overlapping).findFreePosition(((JmtEdge) overlapping[j]), cell, cellBound, tmp1,\r\n \t\t\t\t\t\t\t\t\t\t\t\tfalse, false, false, true);\r\n \t\t\t\t\t\t\t\t\t\tbounds.setLocation(newPosition);\r\n \t\t\t\t\t\t\t\t\t} else if (lowerSideIntersaction && leftSideIntersaction) {\r\n \r\n \t\t\t\t\t\t\t\t\t\tPoint newPosition = (this.overlapping).findFreePosition(((JmtEdge) overlapping[j]), cell, cellBound, tmp,\r\n \t\t\t\t\t\t\t\t\t\t\t\tfalse, false, true, false);\r\n \t\t\t\t\t\t\t\t\t\tbounds.setLocation(newPosition);\r\n \t\t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t} // end if of edge\r\n \t\t\t\t}\r\n \r\n \t\t\t\tif (last.equals(zero)) {\r\n \t\t\t\t\tbreak;\r\n \t\t\t\t}\r\n \r\n \t\t\t\tbounds.setLocation(new Point((int) (last.getX()), (int) (last.getY())));\r\n \r\n \t\t\t\toverlapping = graph.getDescendants(graph.getRoots(bounds));\r\n \t\t\t}\r\n \r\n \t\t\t// Puts this cell in found position\r\n \t\t\tGraphConstants.setBounds(cell.getAttributes(), bounds);\r\n \r\n \t\t} else {\r\n \r\n \t\t\tRectangle bounds = GraphConstants.getBounds(cell.getAttributes()).getBounds();\r\n \t\t\tif (isInGroup(cell)) {\r\n \t\t\t\tinGroup = true;\r\n \t\t\t}\r\n \r\n \t\t\t// Avoids negative starting point\r\n \t\t\tif (bounds.getX() < 20) {\r\n \t\t\t\tbounds.setLocation(20, (int) bounds.getY());\r\n \t\t\t}\r\n \t\t\tif (bounds.getY() < 0) {\r\n \t\t\t\tbounds.setLocation((int) bounds.getX(), 0);\r\n \t\t\t}\r\n \t\t\tObject[] overlapping = graph.getDescendants(graph.getRoots(bounds));\r\n \r\n \t\t\tif (overlapping == null) {\r\n \r\n \t\t\t\treturn;\r\n \t\t\t}\r\n \r\n \t\t\tPoint2D zero = new Point(20, 0);\r\n \t\t\twhile (overlapping.length > 0) {\r\n \t\t\t\tPoint2D last = (Point2D) zero.clone();\r\n \t\t\t\tfor (Object element : overlapping) {\r\n \t\t\t\t\tif (element instanceof JmtCell && element != cell && inGroup) {\r\n \t\t\t\t\t\tRectangle2D b2 = GraphConstants.getBounds(((JmtCell) element).getAttributes());\r\n \t\t\t\t\t\tif (b2.intersects(bounds)) {\r\n \t\t\t\t\t\t\tif (b2.getMaxX() > last.getX()) {\r\n \t\t\t\t\t\t\t\tlast.setLocation(b2.getMaxX(), last.getY());\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\tif (b2.getMaxY() > last.getY()) {\r\n \t\t\t\t\t\t\t\tlast.setLocation(last.getX(), b2.getMaxY());\r\n \t\t\t\t\t\t\t}\r\n \r\n \t\t\t\t\t\t\tlast.setLocation(new Point((int) (last.getX() + .5), (int) (last.getY() + .5)));\r\n \t\t\t\t\t\t}\r\n \r\n \t\t\t\t\t}\r\n \t\t\t\t\tif (!inGroup && element instanceof JmtCell && element != cell) {\r\n \t\t\t\t\t\tlast.setLocation(new Point((int) (last.getX() + .5), (int) (last.getY() + .5)));\r\n \t\t\t\t\t}\r\n \t\t\t\t\tint numberOfChild = cell.getChildCount();\r\n \t\t\t\t\tif (isInGroup(element) && element instanceof JmtEdge) {\r\n \t\t\t\t\t\tif ((numberOfChild == 2)\r\n \t\t\t\t\t\t\t\t&& ((JmtEdge) element).getSource() != cell.getChildAt(0)\r\n \t\t\t\t\t\t\t\t&& ((JmtEdge) element).getSource() != cell.getChildAt(1)\r\n \t\t\t\t\t\t\t\t&& ((JmtEdge) element).getTarget() != cell.getChildAt(0)\r\n \t\t\t\t\t\t\t\t&& ((JmtEdge) element).getTarget() != cell.getChildAt(1)\r\n \t\t\t\t\t\t\t\t&& ((JmtEdge) element).intersects((EdgeView) (graph.getGraphLayoutCache()).getMapping(element, false), GraphConstants\r\n \t\t\t\t\t\t\t\t\t\t.getBounds(cell.getAttributes()))) {\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t\tRectangle2D b2 = GraphConstants.getBounds(((JmtEdge) element).getAttributes());\r\n \t\t\t\t\t\tif (b2.intersects(bounds)) {\r\n \t\t\t\t\t\t\t// ___\r\n \t\t\t\t\t\t}\r\n \r\n \t\t\t\t\t\tlast.setLocation(new Point((int) (last.getX() + .5), (int) (last.getY() + .5)));\r\n \t\t\t\t\t}\r\n \r\n \t\t\t\t}\r\n \t\t\t\tif (last.equals(zero)) {\r\n \t\t\t\t\tbreak;\r\n \t\t\t\t}\r\n \t\t\t\tbounds.setLocation(new Point((int) (last.getX()), (int) (last.getY())));\r\n \t\t\t\toverlapping = graph.getDescendants(graph.getRoots(bounds));\r\n \t\t\t}\r\n \t\t\tGraphConstants.setBounds(cell.getAttributes(), bounds);\r\n \r\n \t\t}\r\n \r\n \t}", "public void move() {\n\n\tGrid<Actor> gr = getGrid();\n\tif (gr == null) {\n\n\t return;\n\t}\n\n\tLocation loc = getLocation();\n\tif (gr.isValid(next)) {\n\n\t setDirection(loc.getDirectionToward(next));\n\t moveTo(next);\n\n\t int counter = dirCounter.get(getDirection());\n\t dirCounter.put(getDirection(), ++counter);\n\n\t if (!crossLocation.isEmpty()) {\n\t\t\n\t\t//reset the node of previously occupied location\n\t\tArrayList<Location> lastNode = crossLocation.pop();\n\t\tlastNode.add(next);\n\t\tcrossLocation.push(lastNode);\t\n\t\t\n\t\t//push the node of current location\n\t\tArrayList<Location> currentNode = new ArrayList<Location>();\n\t\tcurrentNode.add(getLocation());\n\t\tcurrentNode.add(loc);\n\n\t\tcrossLocation.push(currentNode);\t\n\t }\n\n\t} else {\n\t removeSelfFromGrid();\n\t}\n\n\tFlower flower = new Flower(getColor());\n\tflower.putSelfInGrid(gr, loc);\n\t\n\tlast = loc;\n\t\t\n }", "public MovableElement(Cell cell, Cell beginCell) {\n this.cell = cell;\n this.beginCell = beginCell;\n }", "public void moveCellLocal(long cellId, double x, double y)\n\t{\n\t\tcells.get(cellId).setLocation(x, y);\n\t\tIntentionGraphController.getInstance().localUpdateAttachedArrows(cellId, x, y);\n\t}", "public void doMove(Mark mark, int x, int y) {\n\t\tfor (int z = sizeZ - 1; z >= 0; z--) {\r\n\t\t\t// Get cell below this cell\r\n\t\t\tCell below = this.getCell(x, y, z - 1);\r\n\r\n\t\t\tif (below == null || below.getMark() != Mark.EMPTY) {\r\n\t\t\t\t// Drop mark on top of empty cell\r\n\t\t\t\tthis.getCell(x, y, z).setMark(mark);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic void setCell(Integer x, Integer y, Integer value) {\n\t\tgame[x][y] = value;\r\n\t}", "public boolean makeMove( int col, String token){\n for(int i=7; i>=0; i--){\n if(grid[i][col].equals(\"-\")){\n grid[i][col]=token;\n return true;\n }\n\n }\n\n return false;\n }", "public void makesMove() {\n\n\t\tint column = 0;\n\n\t\tSystem.out.println(name + \", please indicate which column you'd like to drop the disc\");\n\t\tScanner scan = new Scanner(System.in);\n\n\t\ttry {\n\t\t\tcolumn = scan.nextInt();\n\t\t} catch (InputMismatchException ex) {\n\t\t\tSystem.out.println(\"This is not an integer. Please input an integer!\");\n\t\t\tscan.nextLine();\n\t\t\tcolumn = scan.nextInt();\n\t\t}\n\n\t\t// if move is legal, modify the board to reflect the move; if move is illegal,\n\t\t// prompt the user to try again\n\n\t\twhile (board.isMoveLegal(column) == false) {\n\t\t\tSystem.out.println(name + \", the move is illegal, please try again!\");\n\t\t\tcolumn = scan.nextInt();\n\t\t}\n\n\t\t// if the move is legal, drop the disc to the bottom of the column\n\n\t\tfor (int i = 5; i >= 0; i--) {\n\t\t\tif (board.board[i][column - 1] == 0) {\n\t\t\t\tboard.board[i][column - 1] = playerNumber;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t}", "private void setCell(boolean[][] board, int i, int j) {\n\t\tint numOfNeighbors = getNeighbors(board, i, j);\n\t\tif(board[i][j]) { // if alive\n\t\t\tif(numOfNeighbors < 2 || numOfNeighbors >= 4) {\n\t\t\t\ttempBoard[i][j] = false; // kill cell\n\t\t\t}\n\t\t}else{ // if dead\n\t\t\tif(numOfNeighbors == 3)\n\t\t\t\ttempBoard[i][j] = true; // become alive\n\t\t}\n\t}", "private void setCellVisited(Cell cell) {\n\n\t\tif (!isIn(cell))\n\t\t\treturn;\n\n\t\tint r = cell.r;\n\t\tint c = cell.c;\n\t\tif (maze.type == HEX) {\n\t\t\tc = c - (r + 1) / 2;\n\t\t}\n\t\ttry {\n\t\t\tvisited[r][c] = true;\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void testSetCell() {\n maze1.setCell(test, MazeCell.WALL);\n assertEquals(MazeCell.UNEXPLORED, maze1.getCell(test));\n test = new Location(9, 9);\n maze1.setCell(test, MazeCell.WALL);\n assertEquals(MazeCell.UNEXPLORED, maze1.getCell(test));\n test = new Location(1, 0);\n maze1.setCell(test, MazeCell.WALL);\n assertEquals(MazeCell.WALL, maze1.getCell(test));\n test = new Location(0, 1);\n maze1.setCell(test, MazeCell.WALL);\n assertEquals(MazeCell.WALL, maze1.getCell(test));\n \n \n \n maze1.setCell(test, MazeCell.CURRENT_PATH);\n assertEquals(MazeCell.CURRENT_PATH, maze1.getCell(test));\n maze1.setCell(test, MazeCell.FAILED_PATH);\n assertEquals(MazeCell.FAILED_PATH, maze1.getCell(test));\n \n }", "public void move( char tL, int selectCell ){\r\n boardCells[ selectCell ].setData( tL );\r\n }", "public void setOpBoardMove(int row, int col, int oppiece)\n\t{\n\t\tboard[row][col] = oppiece;\n\t}", "protected void set(int row, int col, Cell cell) {\n\t\tmyGrid.set(row, col, cell);\n\t}", "public void move() {\n Grid<Actor> gr = getGrid();\n if (gr == null) {\n return;\n }\n Location loc = getLocation();\n if (gr.isValid(next)) {\n setDirection(getLocation().getDirectionToward(next));\n moveTo(next);\n } else {\n removeSelfFromGrid();\n }\n Flower flower = new Flower(getColor());\n flower.putSelfInGrid(gr, loc);\n }", "public void move(Actor actor)\n\t\t {\n\t\t\t \t//PO: updated the methods after the move from the Bug Class to be called from\n\t\t \t//PO: the passed actor\n\t\t Grid<Actor> gr = actor.getGrid();\n\t\t if (gr == null)\n\t\t return;\n\t\t Location loc = actor.getLocation();\n\t\t Location next = loc.getAdjacentLocation(actor.getDirection());\n\t\t if (gr.isValid(next))\n\t\t \t//PO: alter the original code instead of calling the \n\t\t \t//PO: moveTo method in Actor call the method that is from this current behaviour\n\t\t this.moveTo(actor, next);\n\t\t else\n\t\t actor.removeSelfFromGrid();\n\t\t Flower flower = new Flower(actor.getColor());\n\t\t flower.putSelfInGrid(gr, loc);\n\t\t \n\t\t }", "public abstract void move(int newXPosition, int newYPosition, PiecePosition position) throws BoardException;", "public void setSquare(Square cell) {\n\t\tcells[cell.getRow()][cell.getColumn()] = cell; \n\t}", "protected abstract void setCell(int x, int y, boolean state);", "public void makeMove(Location loc)\n {\n if (loc == null)\n removeSelfFromGrid();\n else\n {\n int newDirection = getLocation().getDirectionToward(loc);\n Location nextLocation = getLocation().getAdjacentLocation(newDirection);\n Actor otherActor = getGrid().get(nextLocation);\n if(otherActor != null)\n {\n if(otherActor instanceof AbstractPokemon)\n {\n AbstractPokemon otherPokemon = (AbstractPokemon) otherActor;\n battle(otherPokemon);\n }\n else\n {\n PokemonTrainer otherTrainer = (PokemonTrainer) otherActor;\n battleTrainer(otherTrainer);\n }\n }\n if(getGrid() != null)\n moveTo(loc);\n }\n }", "private void moveMine(int row, int col){\n\t\tboolean moved = false;\n\t\t//cycle the board looking for a non mine space\n\t\tfor (int r = 0; r < board.length; r++) {\n\t\t\tif (moved) //breaks out if it moves the mine\n\t\t\t\tbreak;\n\t\t\telse\n\t\t\t\tfor (int c = 0; c < board[0].length; c++)\n\t\t\t\t\tif(moved) //breaks out if it moves the mine\n\t\t\t\t\t\tbreak;\n\t\t\t\t\telse if (!board[r][c].isMine()) {\n\t\t\t\t\t\tboard[r][c].setMine(true);\n\t\t\t\t\t\tmoved = true;\n\t\t\t\t\t}\n\t\t}\n\n\t\tboard[row][col].setMine(false);\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic static <T extends Cell, S extends Cell> void replaceCell(Grid<Cell> grid, T cellToReplace, S cellToCreate) {\n\t\tGridPoint gpt = grid.getLocation(cellToReplace);\n\t\tContext<Cell> context = ContextUtils.getContext(cellToReplace);\n\t\tcontext.remove(cellToReplace);\n\t\tcontext.add(cellToCreate);\n\t\tif (isGridBiDimensional(grid)) {\n\t\t\tgrid.moveTo(cellToCreate, gpt.getX(), gpt.getY());\n\t\t} else {\n\t\t\tgrid.moveTo(cellToCreate, gpt.getX(), gpt.getY(), gpt.getZ());\n\t\t}\n\t\tcontext.add(cellToCreate);\n\t}", "public void moveTo(Actor actor, Location newLocation)\n\t {\n\t\t \t//creating the variables to make the code easier to read\n\t\t \tGrid<Actor> grid = actor.getGrid();\n\t\t \tLocation location = actor.getLocation();\n\t\t \n\t if (grid == null)\n\t throw new IllegalStateException(\"This actor is not in a grid.\");\n\t if (grid.get(location) != actor)\n\t throw new IllegalStateException(\n\t \"The grid contains a different actor at location \"\n\t + location + \".\");\n\t if (!grid.isValid(newLocation))\n\t throw new IllegalArgumentException(\"Location \" + newLocation\n\t + \" is not valid.\");\n\n\t if (newLocation.equals(location))\n\t return;\n\t \n\t //this line below was added\n\t actor.removeSelfFromGrid();\n\t //changed the code slightly to make sure now that not being called from within the actor that we refer to the\n\t //actor itself when removing and placing actor on grid\n\t //grid.remove(location);\n\t Actor other = grid.get(newLocation);\n\t if (other != null)\n\t other.removeSelfFromGrid();\n\t location = newLocation;\n\t actor.putSelfInGrid(grid, location);\n\t //grid.put(location, actor);\n\t }", "public void InsertCell(Point2D pt, JmtCell newCell) {\r\n \t\tpt = graph.snap(pt);\r\n \t\tObject[] arg = new Object[] { newCell };\r\n \t\tgraph.getModel().insert(arg, newCell.setAttributes(pt, graph), null, null, null);\r\n \t\t// Puts new cell on back to go under blocking regions\r\n \t\tgraph.getModel().toBack(new Object[] { newCell });\r\n \t\tnewCell.resetParent();\r\n \t\tsetConnect.setEnabled(true);\r\n \t}", "void makeMove(String move) {\n if (!isLegal(move)) {\n throw new IllegalArgumentException(\"This is an illegal move.\");\n }\n int column = Integer.parseInt(move.substring(2)) - 1;\n int row = Integer.parseInt(move.substring(0, 1)) - 1;\n _board[column][row] = currPlayer;\n alternatePlayer(currPlayer);\n }", "public void moveUp()\n\t{\n\t\tthis.grid.moveUp();\n\t}", "public void makeMove(int move) {\n makeMove(legalMoves[nextPiece][move]);\n }", "public void moveLeft()\n\t{\n\t\tcol--;\n\t}", "public void moveToDestination(Move move) {\r\n\t\tx = move.getToX();\r\n\t\ty = move.getToY();\r\n\r\n\t}", "@Test\n public void testMoveMonsterToCell()\n {\n theEngine.start();\n assertTrue(theEngine.inPlayingState());\n \n assertFalse(getTheMonster().getLocation() == getEmptyCell());\n moveMonsterToCell(getEmptyCell());\n assertEquals(getTheMonster().getLocation(), getEmptyCell());\n }", "void moveMonsterToCell(Cell target)\n {\n theEngine.moveMonster(getTheMonster(),\n target.getX() - getTheMonster().getLocation().getX(),\n target.getY() - getTheMonster().getLocation().getY());\n }", "public void moveRight()\n\t{\n\t\tcol++;\n\t}", "public void movePiece(Coordinate from, Coordinate to);", "@Override\n\tpublic void makeMove(Game game) \n\t{\n\t\t\n\t\tint row1,col1,row2,col2;\n\t\tCheckers tttGame = (Checkers) game;\n\t\t\n\t\tboolean first = true;\n\n\t\t\tcorrectmove= false;\n\t\t\tSystem.out.println(\"Insert target (row,column) and destination (row, column) ([0,7])\");\n\n\t\t\trow1 = tttGame.x1;\n\t\t\tcol1 = tttGame.y1;\n\t\t\trow2 = tttGame.x2;\n\t\t\tcol2 = tttGame.y2;\n\t\t\tSystem.out.println(row1 + \" \" + col1 + \" \" + row2 + \" \" + col2 + \" \" + role);\n\t\t\t\n\t\t\tfirst=false;\n\t\tcorrectmove= tttGame.isValidCell(row1, col1, row2, col2,role);\n\t\tSystem.out.println(correctmove);\n\n\t\tif(correctmove)\n\t\t{\n\t\t\ttttGame.board[row2][col2]= tttGame.board[row1][col1];\n\t\t\tif(row2==0 && role==0) \n\t\t\t{\n\t\t\t\tif(role==0) tttGame.board[row2][col2]= 2;\n\t\t\t\telse tttGame.board[row2][col2]= -2;\n\t\t\t}\n\t\t\telse if(row2==7 && role==1) \n\t\t\t{\n\t\t\t\tif(role==0) tttGame.board[row2][col2]= 2;\n\t\t\t\telse tttGame.board[row2][col2]= -2;\n\t\t\t}\n\t\t\ttttGame.board[row1][col1]=0;\n\t\t\tif(abs(row1-row2)==2)\n\t\t\t{\n\t\t\t\tint x= (row1+ row2)/2;\n\t\t\t\tint y= (col1+ col2)/2;\n\t\t\t\ttttGame.board[x][y]=0;\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"invalid move!\");\n\t\t}\n\t\t\n//\t\ttttGame.board[row][col] = role;\n\t}", "public void moveDown()\n\t{\n\t\tthis.grid.moveDown();\n\t}", "private void placeBomb(int x, int y, int newValue) {\n setCell(x, y, newValue); // a: Turns this cell into a bomb\n ++bombsPlaced; // b: increments bombs placed\n GridHelper.oneUpAll(x, y, hiddenGrid); // b: Increments all cells surrounding the new bomb\n }", "public void actualMove(int temprow, int tempcolumn, boolean hasMoved) \r\n\t\t\tthrows IllegalMoveException {\r\n\t\tif(temprow < 0 || temprow > 7 || column < 0 || column > 7){\r\n\t\t\tthrow new IllegalMoveException();\r\n\t\t}\r\n\t\tthis.row = temprow;\r\n\t\tthis.column = tempcolumn;\r\n\t\tthis.moved = hasMoved;\r\n\t}", "public void growCellAt(int row, int col) {\n\t\t// Complete this method\n\t\tgameGrid[row][col] = 1;\n\t}", "private Board moveTo(int direction) {\n Board newBoard = new Board(this.state);\n int oZ = this.zero;\n int nZ = oZ;\n switch (direction) {\n case Board.LEFT: nZ = oZ - 1; break;\n case Board.RIGHT: nZ = oZ + 1; break;\n case Board.UP: nZ = oZ - Board.dim; break;\n case Board.DOWN: nZ = oZ + Board.dim; break;\n default: return null;\n }\n newBoard.state[oZ] = state[nZ];\n newBoard.state[nZ] = 0;\n newBoard.zero = nZ;\n\n // update heuristic iteratively except for MAN\n switch(Board.heuristic) {\n case HAM:\n if (state[nZ] == oZ) newBoard.dist = this.dist - 1;\n else if (state[nZ] == nZ) newBoard.dist = this.dist + 1;\n else newBoard.dist = this.dist;\n break;\n case INT: // iterative update the interference\n // this is the most logically complicated code I have\n // done in a while\n int moved = state[nZ];\n int oC;\n newBoard.inter = inter;\n switch (direction) {\n case Board.LEFT:\n case Board.RIGHT: // LEFT AND RIGHT\n if (Board.colOf[state[nZ]] == Board.colOf[nZ]) {\n // we've replaced a piece on its col with a zero\n // interference can only decrease since we know\n // the piece didn't belong to its old column\n //System.out.println(\"Took \" + state[nZ] + \" out of its col\");\n for (int i = Board.colOf[nZ]; i < nZ; i+=Board.dim)\n if (Board.colOf[state[i]] == Board.colOf[nZ] &&\n state[i] > state[nZ])\n newBoard.inter--;\n for (int i = nZ + Board.dim; i < state.length; i+=Board.dim)\n if (Board.colOf[state[i]] == Board.colOf[nZ] &&\n state[i] < state[nZ])\n newBoard.inter--;\n \n } else if (Board.colOf[state[nZ]] == Board.colOf[oZ]) {\n // we've put a piece on its col that was a zero\n // interference can only increase since we know\n // the piece didn't below to its old column\n //System.out.println(\"Put \" + state[nZ] + \" into its col\");\n for (int i = Board.colOf[oZ]; i < oZ; i+=Board.dim)\n if (Board.colOf[state[i]] == Board.colOf[oZ] &&\n state[i] > state[nZ])\n newBoard.inter++;\n for (int i = oZ + Board.dim; i < state.length; i+=Board.dim)\n if (Board.colOf[state[i]] == Board.colOf[oZ] &&\n state[i] < state[nZ])\n newBoard.inter++;\n }\n break;\n default: // UP AND DOWN\n if (Board.rowOf[state[nZ]] == Board.rowOf[nZ]) {\n // we've replaced a piece on its row with a zero\n // interference can only decrease since we know\n // the piece didn't belong to its old row\n //System.out.println(\"Took \" + state[nZ] + \" out of its row\");\n for (int i = Board.dim*Board.rowOf[nZ]; i < nZ; i++)\n if (Board.rowOf[state[i]] == Board.rowOf[nZ] &&\n state[i] > state[nZ])\n newBoard.inter--;\n for (int i = nZ+1; i < Board.dim*(Board.rowOf[nZ]+1); i++)\n if (Board.rowOf[state[i]] == Board.rowOf[nZ] &&\n state[i] < state[nZ])\n newBoard.inter--;\n } else if (Board.rowOf[state[nZ]] == Board.rowOf[oZ]) {\n // we've put a piece on its row that was a zero\n // interference can only increase since we know\n // the piece didn't belong to its old row\n //System.out.println(\"Put \" + state[nZ] + \" into its row\");\n for (int i = Board.dim*Board.rowOf[oZ]; i < oZ; i++)\n if (Board.rowOf[state[i]] == Board.rowOf[oZ] &&\n state[i] > state[nZ])\n newBoard.inter++;\n for (int i = oZ+1; i < Board.dim*(Board.rowOf[oZ]+1); i++)\n if (Board.rowOf[state[i]] == Board.rowOf[oZ] &&\n state[i] < state[nZ])\n newBoard.inter++;\n }\n } \n default: // update the manhattan distance\n newBoard.dist = this.dist - \n Board.manhattanTable[state[nZ]][nZ] +\n Board.manhattanTable[state[nZ]][oZ];\n }\n return newBoard;\n }", "@Override\n public boolean moveWorker(Worker worker, Box pos) {\n return super.moveWorker(worker, pos);\n }", "void onMove(Sudoku.State state, Location loc, Numeral num);", "public void setObstacleCell(int row, int col, boolean obstacle) {\n if (obstacle && (in_start(row, col) || in_goal(row, col)))\n return;\n\n grid[row][col].setIsObstacle(obstacle);\n\n if (row >= 1) {\n grid[row - 1][col].setVirtualWall(obstacle); // bottom cell\n\n if (col < MapConstant.MAP_Y - 1) {\n grid[row - 1][col + 1].setVirtualWall(obstacle); // bottom-right cell\n }\n\n if (col >= 1) {\n grid[row - 1][col - 1].setVirtualWall(obstacle); // bottom-left cell\n }\n }\n\n if (row < MapConstant.MAP_X - 1) {\n grid[row + 1][col].setVirtualWall(obstacle); // top cell\n\n if (col < MapConstant.MAP_Y - 1) {\n grid[row + 1][col + 1].setVirtualWall(obstacle); // top-right cell\n }\n\n if (col >= 1) {\n grid[row + 1][col - 1].setVirtualWall(obstacle); // top-left cell\n }\n }\n\n if (col >= 1) {\n grid[row][col - 1].setVirtualWall(obstacle); // left cell\n }\n\n if (col < MapConstant.MAP_Y - 1) {\n grid[row][col + 1].setVirtualWall(obstacle); // right cell\n }\n }", "private void setGridElement (int row, int column, Player player)\n {\n mGrid[row][column] = new Move(player, row, column);\n }", "public void movePiece(Location a, Location b)\n {\n Square s1 = getSquare(a);\n Square s2 = getSquare(b);\n Piece p = s1.getPiece();\n if (p==null)\n return;\n int moveType = canMoveTo(p,b);\n boolean taking = getPiece(b)!=null;\n boolean fiftyMoveBreak = getPiece(b)!=null||p.getType()==Type.PAWN;\n s2.setPiece(s1.removePiece());\n p.setHasMoved(true);\n if (p.getType()==Type.PAWN)\n {\n if (mainBoard&&((p.white()&&getLocation(p).getRow()==0)\n || !p.white()&&getLocation(p).getRow()==7))\n promotePawn(p);\n else if (moveType==EN_PASSANT)\n {\n int row = a.getRow();\n int col = b.getCol();\n removePiece(new Location(row,col));\n taking = true;\n }\n }\n else if (moveType==KINGSIDE_CASTLING||moveType==QUEENSIDE_CASTLING)\n {\n Location rookLoc;\n Location rookDest;\n if (moveType==KINGSIDE_CASTLING)\n {\n rookLoc = b.farther(Direction.EAST);\n rookDest = b.farther(Direction.WEST);\n }\n else\n {\n rookLoc = new Location(b.getRow(),b.getCol()-2);\n rookDest = b.farther(Direction.EAST);\n }\n //movePiece(getLocation(rook),rookDest);\n getSquare(rookDest).setPiece(removePiece(rookLoc)); //moves the rook\n }\n if (mainBoard)\n {\n turn++;\n if (fiftyMoveBreak)\n fiftyMove= 0;\n else fiftyMove++;\n }\n for (Piece piece: getPieces())\n piece.setHasJustMoved(false);\n p.setHasJustMoved(true);\n if (mainBoard)\n {\n positions.add(toString());\n \n //this is all for the notation on the side\n notateMove(p,b,moveType,taking);\n /*JTable not = frame.getNotation();\n DefaultTableModel d = (DefaultTableModel)not.getModel();\n String notation;\n PieceColor color = p.getColor();\n if (color==PieceColor.WHITE)\n notation = turn/2+1+\". \"; //the turn number first, on the left\n else notation = \"\";\n if (moveType==QUEENSIDE_CASTLING)\n notation += \"0-0-0\";\n else if (moveType==KINGSIDE_CASTLING)\n notation += \"0-0\";\n else //normal move\n {\n if (p.getType()!=Type.PAWN)\n notation+=p.getType().toNotation(); //the type of piece (K,N,R,etc)\n if (taking)\n notation+=\"x\"; //this is if the move involves taking\n notation+=Location.LocToNot(b);\n }\n if (checkmate(colorGoing())) //notates # for checkmate\n notation+=\"#\";\n else if (inCheck(colorGoing())) //notates + for check\n notation+=\"+\";\n \n if (color==PieceColor.WHITE)\n d.addRow(new Object[]{notation,\"\"});\n else \n d.setValueAt(notation, (turn-1)/2, 1);*/\n }\n }", "void makeMove(Move move) {\n assert isLegal(move);\n _moves.add(move);\n Piece replaced = move.replacedPiece();\n int c0 = move.getCol0(), c1 = move.getCol1();\n int r0 = move.getRow0(), r1 = move.getRow1();\n if (replaced != EMP) {\n set(c1, r1, EMP);\n }\n set(c1, r1, move.movedPiece());\n set(c0, r0, EMP);\n _turn = _turn.opposite();\n }", "public void put(int x, int y, T cell) {\n int index = convert2d(x, y);\n if (map[index] != null) {\n cells.remove((T) map[index]);\n }\n\n map[index] = cell;\n cells.put(cell, index);\n }", "@Override\n\tpublic boolean move(LifeForm lifeForm, Cell[][] cells, int row, int column, int spaces)\n\t{\n\t\tboolean moved = false;\n\t\tint numberOfColumns = Environment.getWorldInstance().getWorldCols();\n\t\t\n\t\tif((column+spaces) >= numberOfColumns)\n\t\t{\n\t\t\tspaces = (numberOfColumns - column) - 1;\n\t\t}\n\t\t\n\t\tint i = 0;\n\t\twhile(!moved && (i < spaces))\n\t\t{\n\t\t\tif(cells[row][column+(spaces-i)].getLifeForm() == null)\n\t\t\t{\n\t\t\t\tcells[row][column].removeLifeForm();\n\t\t\t\tcells[row][column+(spaces-i)].addLifeForm(lifeForm);\n\t\t\t\tEnvironment.getWorldInstance().setSelectedLFRow(row);\n\t\t\t\tEnvironment.getWorldInstance().setSelectedLFCol(column+(spaces-i));\n\t\t\t\tmoved = true;\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\n\t\treturn moved;\n\t}", "public void move() {\n if (!canMove) {\n return;\n }\n int moveX = currDirection == EAST ? PACE : currDirection == WEST ? -PACE : 0;\n int moveY = currDirection == NORTH ? PACE : currDirection == SOUTH ? -PACE : 0;\n if (grid == null || grid.isOutside(currX + moveX, currY + moveY)) {\n return;\n }\n currX += moveX;\n currY += moveY;\n }", "public void paradiseMove(){\n if (!getCurrentMainCellCoordinates().equals(new DiscreteCoordinates(11, 9))) {\n move(30);\n }\n }", "private void undoMove(int row, int column) {\n numbersAdded--;\n square[row * dimensions + column] = 0;\n }", "@Override\n\tpublic boolean canMoveTo(Integer row, Integer col, ChessBoard board) {\n\t\tif((0<=(this.row - row)<=1 && 0<=(this.col - col)<=1) && (1==(this.row - row) || (this.col - col)==1));\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t\tfor(int i=0; i<=1 i++) {\n\t\t\tfor(int j=0, j<=1, j++) {\n\t\t\t\tif((i=0) && (j=0))\n\t\t\t\t\t\tcontinue;\n\t\t\t\tboard.pieceAt(row, col);\n\t\t\t}\n\t\t}\n\t\tboard.pieceAt(row, col)\n\t\t\n\t\telse if()\n\t}\n\n\t@Override\n\tpublic void moveTo(Integer row, Integer col) {\n\t\t\n\t\t\n\t}\n\n\t@Override\n\tpublic PieceType getType() {\n\t\t// TODO Auto-generated method stub\n\t\treturn null;\n\t}\n}", "private Cell[][] updateCellLocation(Cell[][] grid) {\n\n //Iterate through the grid\n for (int x = 0; x < this.width; x++) {\n for (int y = 0; y < this.height; y++) {\n grid[x][y].setXCord(x); //Set the new X co-ordinate\n grid[x][y].setYCord(y); //Set the new Y co-ordinate\n }\n }\n\n return grid;\n }", "void doMove() {\n\t\t// we saved the moves in a queue to avoid recursing.\n\t\tint[] move;\n\t\twhile(!moveQueue.isEmpty()) {\n\t\t\tmove = moveQueue.remove(); \n\t\t\tif (board[move[0]][move[1]] == 0) {\n\t\t\t\tinsertNumber(move[0], move[1], move[2]);\n\t\t\t}\n\t\t}\n\t\tgoOverLines();\n\t}", "public void moveTo (Coordinate c) throws Exception\n\t{\n\t\tcurrentLocation = c;\n\t\tgrid[c.x][c.y] = GridChar.VISITED;\n\t}", "public synchronized void moveDown(){\n if (!this.isAtBottom()){\n for (int j = 1; j < 25; j++){\n for (int i = 1; i < 13; i++){\n if (this.movable[i][j]){\n this.map[i][j - 1] = this.map[i][j];\n this.movable[i][j - 1] = this.movable[i][j];\n this.colors[i][j - 1] = this.colors[i][j];\n\n this.map[i][j] = false;\n this.movable[i][j] = false;\n this.colors[i][j] = null;\n\n }\n }\n }\n }\n this.piecePositionY--;\n repaint();\n }", "public void move() {\n\t\t// Override move so we don't move, then get location set by owner.\n\t}", "private boolean move(int startRow, int startCol, int toRow, int toCol) {\n return model.getPiece(startRow, startCol).moveTo(toRow, toCol);\n }", "public void step() {\n\t\t// calculate new values\n\t\tfor (int x = 0; x < gridX; x++) {\n\t\t\tfor (int y = 0; y < gridY; y++) {\n\t\t\t\tCell c = cells[x + (y * gridX)];\n\t\t\t\tCell newCell = newCells[x + (y * gridX)];\n\n\t\t\t\tint neighborCount = sameNeighborCount(x, y);\n\n\t\t\t\tif (c.isActive) {\n\t\t\t\t\tif (neighborCount < 2) {\n\t\t\t\t\t\t// all alone, die of loneliness\n\t\t\t\t\t\tnewCell.isActive = false;\n\t\t\t\t\t\tnewCell.cellColor = app.color(deadColor);\n\t\t\t\t\t}\n\t\t\t\t\telse if (neighborCount > 3) {\n\t\t\t\t\t\tnewCell.isActive = false;\n\t\t\t\t\t\tnewCell.cellColor = app.color(deadColor);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t// Dead cells can be reborn if surrounded by enough neighbors of the same\n\t\t\t\t\t// color. The cell will be reborn using the most prominent color.\n\t\t\t\t\tint populousColor = mostPopulousColor(x, y);\n\t\t\t\t\tif (populousColor > Integer.MIN_VALUE) {\n\t\t\t\t\t\tnewCell.isActive = true;\n\t\t\t\t\t\tnewCell.cellColor = populousColor;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// update to new state\n\t\tfor (int i = 0; i < cells.length; i++) {\n\t\t\tcells[i].isActive = newCells[i].isActive;\n\t\t\tcells[i].cellColor = newCells[i].cellColor;\n\t\t}\n\t}" ]
[ "0.6591634", "0.6413922", "0.6395823", "0.6321812", "0.62859255", "0.6278262", "0.61090356", "0.60985595", "0.60821784", "0.60683995", "0.60640925", "0.6046468", "0.5948004", "0.59327036", "0.5926858", "0.591077", "0.5893168", "0.58824134", "0.5878834", "0.58654076", "0.58411974", "0.583908", "0.5810988", "0.58004737", "0.57901984", "0.5788039", "0.57815814", "0.5772965", "0.57589924", "0.5754701", "0.5754447", "0.5746332", "0.57357246", "0.57253003", "0.57118464", "0.56988543", "0.5691489", "0.5683662", "0.5680274", "0.56797916", "0.56761473", "0.56728446", "0.5670955", "0.56704897", "0.56502914", "0.5643659", "0.5637392", "0.56359655", "0.56348383", "0.56290615", "0.56192726", "0.5611563", "0.56040347", "0.5603842", "0.55977887", "0.5590011", "0.5551383", "0.5547896", "0.55476826", "0.5544325", "0.554389", "0.5533756", "0.5522198", "0.5506866", "0.5492987", "0.54927635", "0.5489544", "0.5488917", "0.5482232", "0.5478395", "0.54752797", "0.5470986", "0.54687506", "0.5466523", "0.5464636", "0.5455528", "0.5453794", "0.54534805", "0.54477143", "0.54475826", "0.54452944", "0.544289", "0.54379225", "0.543046", "0.54293793", "0.5425312", "0.5422699", "0.5422116", "0.5412939", "0.5412088", "0.5410687", "0.54077935", "0.53931105", "0.5393056", "0.5384737", "0.5379491", "0.5379404", "0.5377678", "0.53770375", "0.53758496" ]
0.62635195
6
Move this bug to the cell to its north.
public boolean moveUp() { if (position.isLinked(position.getNorth())) { position.getGameObjects().remove(this.type); position = position.getNorth(); position.getGameObjects().add(this.type); return true; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void move() {\n\t\tGrid<Actor> gr = getGrid();\n\t\tif (gr == null) {\n\t\t\treturn;\n\t\t}\n\t\tLocation loc = getLocation();\n\t\tLocation next = loc.getAdjacentLocation(getDirection());\n\t\t\n\t\tLocation next2 = next.getAdjacentLocation(getDirection());\n\t\tif (gr.isValid(next2)) {\n\t\t\tmoveTo(next2);\n\t\t} else {\n\t\t\tremoveSelfFromGrid();\n\t\t}\n\t}", "public void move() {\n\n\tGrid<Actor> gr = getGrid();\n\tif (gr == null) {\n\n\t return;\n\t}\n\n\tLocation loc = getLocation();\n\tif (gr.isValid(next)) {\n\n\t setDirection(loc.getDirectionToward(next));\n\t moveTo(next);\n\n\t int counter = dirCounter.get(getDirection());\n\t dirCounter.put(getDirection(), ++counter);\n\n\t if (!crossLocation.isEmpty()) {\n\t\t\n\t\t//reset the node of previously occupied location\n\t\tArrayList<Location> lastNode = crossLocation.pop();\n\t\tlastNode.add(next);\n\t\tcrossLocation.push(lastNode);\t\n\t\t\n\t\t//push the node of current location\n\t\tArrayList<Location> currentNode = new ArrayList<Location>();\n\t\tcurrentNode.add(getLocation());\n\t\tcurrentNode.add(loc);\n\n\t\tcrossLocation.push(currentNode);\t\n\t }\n\n\t} else {\n\t removeSelfFromGrid();\n\t}\n\n\tFlower flower = new Flower(getColor());\n\tflower.putSelfInGrid(gr, loc);\n\t\n\tlast = loc;\n\t\t\n }", "public void move() {\n\t\tGrid<Actor> gr = getGrid();\n\t\tif (gr == null) {\n\t\t\treturn;\n\t\t}\n\t\tLocation loc = getLocation();\n\t\tif (gr.isValid(next)) {\n\t\t\tsetDirection(getLocation().getDirectionToward(next));\n\t\t\tmoveTo(next);\n\t\t} else {\n\t\t\tremoveSelfFromGrid();\n\t\t}\n\t\tFlower flower = new Flower(getColor());\n\t\tflower.putSelfInGrid(gr, loc);\n\t}", "public void move() {\n if (!canMove) {\n return;\n }\n int moveX = currDirection == EAST ? PACE : currDirection == WEST ? -PACE : 0;\n int moveY = currDirection == NORTH ? PACE : currDirection == SOUTH ? -PACE : 0;\n if (grid == null || grid.isOutside(currX + moveX, currY + moveY)) {\n return;\n }\n currX += moveX;\n currY += moveY;\n }", "public void move() {\n Grid<Actor> gr = getGrid();\n if (gr == null) {\n return;\n }\n Location loc = getLocation();\n if (gr.isValid(next)) {\n setDirection(getLocation().getDirectionToward(next));\n moveTo(next);\n } else {\n removeSelfFromGrid();\n }\n Flower flower = new Flower(getColor());\n flower.putSelfInGrid(gr, loc);\n }", "public void moveUp()\n\t{\n\t\tthis.grid.moveUp();\n\t}", "public void punishment(){\n\t\tthis.cell = 0;\n\t}", "public void move() throws InstructionExecutionException\r\n\t{\r\n\t\t\r\n\t\ttry \r\n\t\t{\r\n\t\t\tStreet street=this.getHeadingStreet();\r\n\t\t\tif(street==null){\r\n\t\t\t\tString err=\"WALL·E says: There is no street in direction \"+this.getCurrentHeading();\r\n\t\t\t\tif(isSwing()){\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, err);\r\n\t\t\t\t}\r\n\t\t\t\tthrow new InstructionExecutionException(err);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tPlace nextPlace=street.nextPlace(this.currentPlace);\r\n\t\t\tif (street.isOpen()){\r\n\t\t\t\tthis.currentPlace=nextPlace;\r\n\t\t\t\tif(isSwing()){\r\n\t\t\t\t\tthis.navigationPanel.updateCell(currentDirection, nextPlace);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}else{\r\n\t\t\t\tString err=\"WALL·E says: Arrggg, there is a street but it is closed!\";\r\n\t\t\t\tif(isSwing()){\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, err);\r\n\t\t\t\t}\r\n\t\t\t\tthrow new InstructionExecutionException(err);\r\n\t\t\t}\r\n\t\t}catch (Exception e){\r\n\t\t\tthrow e;\r\n\t\t}\r\n\t}", "private void moveTile()\n {\n int[] moveIndices = null;\n \n int sourceRow = moveIndices[0];\n int sourceCol = moveIndices[1];\n int destRow = moveIndices[2] - 1;\n int destCol = moveIndices[3];\n \n if (sourceRow == 0) \n {\n try\n {\n game.playTileFromHand(sourceCol, destRow, destCol);\n }\n catch(ArrayIndexOutOfBoundsException ex)\n {\n // TODO: ConsoleUtils.message(\"Unable to complete your play, wrong indices!\");\n }\n }\n else\n {\n sourceRow--;\n try\n {\n game.moveTileInBoard(sourceRow, sourceCol, destRow, destCol); \n }\n catch(ArrayIndexOutOfBoundsException ex)\n {\n // TODO: ConsoleUtils.message(\"Unable to complete your play, wrong indices!\");\n }\n }\n }", "public void move()\n\t{\n\t\tVector v = ship.v;\n\t\tb = b.getLocation().add(v).getBlock();\n\t\tif(triangle != null) triangle.move();\n\t\tif(rear != null) rear.move();\n\t\tif(foreAndAft != null) foreAndAft.move();\n\t\tif(sails != null) for(int i = 0; i < sails.size(); i++)\n\t\t{\n\t\t\tSail sail = sails.get(i);\n\t\t\tsail.move();\n\t\t}\n\t}", "private void moveToWall() {\n\t\t// TODO Auto-generated method stub\n\t\t// if front is clear then keep moving\n\t\twhile (this.frontIsClear()) {\n\t\t\tthis.move();\n\t\t}\n\t}", "@Override\n public void act()\n {\n Location loc = getLocation();\n int r = loc.getRow();\n int c = loc.getCol();\n int dir = getDirection();\n if(dir == Location.NORTH)\n {\n if(r - START_ROW + 1 > -2*(address & ADDRESS))\n {\n move();\n }\n else\n {\n setDirection(Location.WEST);\n }\n }\n else if(dir == Location.WEST)\n {\n if(c <= RETURN_COL)\n {\n setDirection(Location.SOUTH);\n }\n else\n {\n Bit b = null;\n Actor a = getGrid().get(loc.getAdjacentLocation(Location.SOUTH));\n if(a instanceof Bit) b = (Bit)a;\n if(b != null)\n {\n processBit(b,-c-1);\n }\n move();\n }\n }\n else if(dir == Location.SOUTH)\n {\n if(r == -1)\n {\n setDirection(Location.EAST);\n }\n else\n {\n move();\n }\n }\n else if(dir == Location.EAST)\n {\n move();\n }\n else\n {\n System.err.println(\"yer bus is on an angle bud\");\n }\n }", "@Override\r\n public void move() {\r\n Grid<Actor> gr = getGrid();\r\n if (gr == null) {\r\n return;\r\n }\r\n Location loc = getLocation();\r\n if (gr.isValid(next)) {\r\n setDirection(getLocation().getDirectionToward(next));\r\n moveTo(next);\r\n } else {\r\n removeSelfFromGrid();\r\n }\r\n Flower flower = new Flower(getColor());\r\n flower.putSelfInGrid(gr, loc);\r\n }", "public void move(GridPanel bugGrid)\n\t{\tRandom generator = new Random();\n\t\tif (row < bugGrid.getBoardRows()) \n\t\t\t\t\t\t\t\t\n\t\t // -----------------------------------------------------\n\t\t // Simple bug mover randomly, 0-3 spaces\n\t\t //-----------------------------------------------------\n\t\n\t\t bugGrid.addImage(null, row, column);\n\t\t row++;\n\t\t bugGrid.addImage(image, row, column);\n\n }", "protected void moveWest(){\n\t\tcar.setXLocation(currentX - 1);\n\t\tcurrentX -= 1;\n\t}", "public void move() {\n\t\t// Override move so we don't move, then get location set by owner.\n\t}", "public void moveDown()\n\t{\n\t\tthis.grid.moveDown();\n\t}", "protected void moveEast(){\n\t\tcar.setXLocation(currentX + 1);\n\t\tcurrentX += 1;\n\t}", "void positionToStart () {\n currentRow = 0 - currentPiece.getOffset();\n currentColumn = board.columns / 2 - currentPiece.width / 2;\n }", "public void move(){\n super.move();\n if(getX() >= Main.WIDTH - getWidth() * 1.5) {\n setDirection(-1);\n } else if(getX() <= 50) {\n setDirection(1);\n }\n }", "public void move() {\n\t\t\tar.setAhead(10 * fahrtrichtung);\n\n\t\t\t// Wie schnell sich der Roboter drehen soll\n\t\t\tar.setTurnRight(45 * drehrichtung);\n\t\t\tar.execute();\n\t\t\tfarbschema = farbschema * (-1);\n\t\t}", "@Test\n public void testMovePlayerToCell()\n {\n theEngine.start();\n assertTrue(theEngine.inPlayingState());\n \n assertFalse(getThePlayer().getLocation() == getEmptyCell());\n movePlayerToCell(getEmptyCell());\n assertEquals(getThePlayer().getLocation(), getEmptyCell());\n }", "public void move(){\n \n currentFloor = currentFloor + ( 1 * this.direction);\n //if we're at the bottom or top after move, flip the bit\n if(Elevator.MIN_FLOOR == currentFloor \n || currentFloor == Elevator.MAX_FLOOR)\n this.direction *= -1;\n \n if(destinedPassengers[ currentFloor ] > 0)\n elevatorStop( currentFloor, true );\n \n if(building.floor(currentFloor).passengersWaiting() > 0)\n elevatorStop(currentFloor, false);\n \n }", "public void move(Cell[][] board) {\n Cell[] nextCells = generateNeighbors(this.x, this.y);\n Cell nextCell = nextCells[rand.nextInt(4)];\n if (!this.objectFound) {\n if (nextCell != null && nextCell.isOccupied() && nextCell.occupiedBy instanceof Integer) {\n this.objectFound = true;\n this.goal = nextCell;\n } else if (nextCell != null && !nextCell.isOccupied()) {\n synchronized (board[this.x][this.y]) {\n board[this.x][this.y].resetCell();\n nextCell.occupiedBy = this;\n }\n }\n } else {\n // bfs to location\n System.out.println(\"BFS to goal\");\n }\n }", "private void goAcrossWall() {\n\t\t// TODO Auto-generated method stub\n\t\tthis.move();\n\t\tthis.turnRight();\n\t}", "public void moveRight() {\n this.position.addColumn(1);\n }", "public void moveLeft()\n\t{\n\t\tcol--;\n\t}", "public void move() {\n energy -= 0.03;\n if (energy < 0) {\n energy = 0;\n }\n }", "public void\nshiftToOrigin()\n{\n\tthis.setLine(0.0, 0.0,\n\t\tthis.getP2().getX() - this.getP1().getX(),\n\t\tthis.getP2().getY() - this.getP1().getY());\n}", "public void right () {\n Grid<Actor> gr = getGrid();\n if (gr == null)\n return;\n Location loc = getLocation();\n Location next = loc.getAdjacentLocation(Location.EAST);\n if (canMove(next)) {\n moveTo(next);\n }\n }", "private void move() {\n\n if(currentPosition.getX() == -1 && currentPosition.getY() == -1) {\n System.out.println(\"Robot is not placed, yet.\");\n return;\n }\n\n Position.Direction direction = currentPosition.getDirection();\n int newX = -1;\n int newY = -1;\n switch (direction) {\n case EAST:\n newX = currentPosition.getX() + 1;\n newY = currentPosition.getY();\n break;\n case WEST:\n newX = currentPosition.getX() - 1;\n newY = currentPosition.getY();\n break;\n case NORTH:\n newX = currentPosition.getX();\n newY = currentPosition.getY() + 1;\n break;\n case SOUTH:\n newX = currentPosition.getX();\n newY = currentPosition.getY() - 1;\n break;\n }\n\n if(newX < lowerBound.getX() || newY < lowerBound.getY()\n || newX > upperBound.getX() || newY > upperBound.getY()) {\n System.out.println(\"Cannot move to \" + direction);\n return;\n }\n\n currentPosition.setX(newX);\n currentPosition.setY(newY);\n }", "public synchronized void moveDown(){\n if (!this.isAtBottom()){\n for (int j = 1; j < 25; j++){\n for (int i = 1; i < 13; i++){\n if (this.movable[i][j]){\n this.map[i][j - 1] = this.map[i][j];\n this.movable[i][j - 1] = this.movable[i][j];\n this.colors[i][j - 1] = this.colors[i][j];\n\n this.map[i][j] = false;\n this.movable[i][j] = false;\n this.colors[i][j] = null;\n\n }\n }\n }\n }\n this.piecePositionY--;\n repaint();\n }", "public void act() \n {\n move(-2);\n if(isAtEdge())\n {\n turn(180);\n getImage().mirrorVertically();\n }\n }", "public void move() {\n\t\tthis.position.stepForwad();\n\t\tthis.position.spin();\n\t}", "public boolean moveTo(Cell cell) {\n if (cell == this.position) {\n return true;\n }\n if (cell.equals(this.position.getNorth())) {\n return moveUp();\n }\n if (cell.equals(this.position.getSouth())) {\n return moveDown();\n }\n if (cell.equals(this.position.getEast())) {\n return moveRight();\n }\n if (cell.equals(this.position.getWest())) {\n return moveLeft();\n }\n return false;\n }", "public void paradiseMove(){\n if (!getCurrentMainCellCoordinates().equals(new DiscreteCoordinates(11, 9))) {\n move(30);\n }\n }", "public void left () {\n Grid<Actor> gr = getGrid();\n if (gr == null)\n return;\n Location loc = getLocation();\n Location next = loc.getAdjacentLocation(Location.WEST);\n if (canMove(next)) {\n moveTo(next);\n }\n }", "private boolean moveTo(AntArea.Cell dest) throws AntArtException {\n if (dest.isAntPresent()) {\n return false;\n }\n\n getCurrentCell().leave(this);\n dest.move(this);\n\n //Update the ant location\n Pair<Integer, Integer> newLoc = dest.getLocation();\n location = new Pair<>(newLoc.getKey(), newLoc.getValue());\n\n return true;\n }", "private Board moveTo(int direction) {\n Board newBoard = new Board(this.state);\n int oZ = this.zero;\n int nZ = oZ;\n switch (direction) {\n case Board.LEFT: nZ = oZ - 1; break;\n case Board.RIGHT: nZ = oZ + 1; break;\n case Board.UP: nZ = oZ - Board.dim; break;\n case Board.DOWN: nZ = oZ + Board.dim; break;\n default: return null;\n }\n newBoard.state[oZ] = state[nZ];\n newBoard.state[nZ] = 0;\n newBoard.zero = nZ;\n\n // update heuristic iteratively except for MAN\n switch(Board.heuristic) {\n case HAM:\n if (state[nZ] == oZ) newBoard.dist = this.dist - 1;\n else if (state[nZ] == nZ) newBoard.dist = this.dist + 1;\n else newBoard.dist = this.dist;\n break;\n case INT: // iterative update the interference\n // this is the most logically complicated code I have\n // done in a while\n int moved = state[nZ];\n int oC;\n newBoard.inter = inter;\n switch (direction) {\n case Board.LEFT:\n case Board.RIGHT: // LEFT AND RIGHT\n if (Board.colOf[state[nZ]] == Board.colOf[nZ]) {\n // we've replaced a piece on its col with a zero\n // interference can only decrease since we know\n // the piece didn't belong to its old column\n //System.out.println(\"Took \" + state[nZ] + \" out of its col\");\n for (int i = Board.colOf[nZ]; i < nZ; i+=Board.dim)\n if (Board.colOf[state[i]] == Board.colOf[nZ] &&\n state[i] > state[nZ])\n newBoard.inter--;\n for (int i = nZ + Board.dim; i < state.length; i+=Board.dim)\n if (Board.colOf[state[i]] == Board.colOf[nZ] &&\n state[i] < state[nZ])\n newBoard.inter--;\n \n } else if (Board.colOf[state[nZ]] == Board.colOf[oZ]) {\n // we've put a piece on its col that was a zero\n // interference can only increase since we know\n // the piece didn't below to its old column\n //System.out.println(\"Put \" + state[nZ] + \" into its col\");\n for (int i = Board.colOf[oZ]; i < oZ; i+=Board.dim)\n if (Board.colOf[state[i]] == Board.colOf[oZ] &&\n state[i] > state[nZ])\n newBoard.inter++;\n for (int i = oZ + Board.dim; i < state.length; i+=Board.dim)\n if (Board.colOf[state[i]] == Board.colOf[oZ] &&\n state[i] < state[nZ])\n newBoard.inter++;\n }\n break;\n default: // UP AND DOWN\n if (Board.rowOf[state[nZ]] == Board.rowOf[nZ]) {\n // we've replaced a piece on its row with a zero\n // interference can only decrease since we know\n // the piece didn't belong to its old row\n //System.out.println(\"Took \" + state[nZ] + \" out of its row\");\n for (int i = Board.dim*Board.rowOf[nZ]; i < nZ; i++)\n if (Board.rowOf[state[i]] == Board.rowOf[nZ] &&\n state[i] > state[nZ])\n newBoard.inter--;\n for (int i = nZ+1; i < Board.dim*(Board.rowOf[nZ]+1); i++)\n if (Board.rowOf[state[i]] == Board.rowOf[nZ] &&\n state[i] < state[nZ])\n newBoard.inter--;\n } else if (Board.rowOf[state[nZ]] == Board.rowOf[oZ]) {\n // we've put a piece on its row that was a zero\n // interference can only increase since we know\n // the piece didn't belong to its old row\n //System.out.println(\"Put \" + state[nZ] + \" into its row\");\n for (int i = Board.dim*Board.rowOf[oZ]; i < oZ; i++)\n if (Board.rowOf[state[i]] == Board.rowOf[oZ] &&\n state[i] > state[nZ])\n newBoard.inter++;\n for (int i = oZ+1; i < Board.dim*(Board.rowOf[oZ]+1); i++)\n if (Board.rowOf[state[i]] == Board.rowOf[oZ] &&\n state[i] < state[nZ])\n newBoard.inter++;\n }\n } \n default: // update the manhattan distance\n newBoard.dist = this.dist - \n Board.manhattanTable[state[nZ]][nZ] +\n Board.manhattanTable[state[nZ]][oZ];\n }\n return newBoard;\n }", "public void move() {\r\n if(direction == 1) {\r\n if(userRow < grid.getNumRows() - 1) {\r\n userRow++;\r\n handleCollision(userRow, 1);\r\n }\r\n } else if(direction == -1) {\r\n if(userRow > 0) {\r\n userRow--;\r\n handleCollision(userRow, 1);\r\n }\r\n }\r\n }", "public void lowerFuelCell() {\n FuelCell.fuelCellFlipSol = false;\n raiseHopper.set(false);\n lowerHopper.set(true);\n }", "public void move(FightCell cell);", "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 move() {\n\t\t// tolerance of angle at which the Base starts moving\n\t\tint tolerance = 10;\n\t\tif(Math.abs(angle) < Math.abs(angleDesired)+tolerance && Math.abs(angleDesired)-tolerance < Math.abs(angle)) {\n\t\t\tdouble vX = Math.cos(Math.toRadians(this.angle + 90)) * v;\n\t\t\tdouble vY = Math.sin(Math.toRadians(this.angle + 90)) * v;\n\t\t\t\n\t\t\tthis.x += vX;\n\t\t\tthis.y += vY;\t\n\t\t\tthis.rectHitbox = new Rectangle((int)(x-rectHitbox.width/2),(int)(y-rectHitbox.height/2),rectHitbox.width,rectHitbox.height);\n\t\t}\n\t\t// curTargetPathBoardRectangle\n\t\tRectangle curTPBR = pathBoardRectangles.get(curTargetPathCellIndex).rect;\n\t\tRectangle rectSmallerBR = new Rectangle((int)curTPBR.getCenterX()-5,(int)curTPBR.getCenterY()-5,10,10);\n\t\t// updates the index when it crosses a pathCell so it counts down from pathCell to pathCell,\n\t\t// always having the next pathCell in the array as the target until the end is reached then it stops\n\t\tif(rectSmallerBR.contains(new Point((int)x,(int)y))) {\n\t\t\tif(curTargetPathCellIndex < pathBoardRectangles.size()-1) {\n\t\t\t\tcurTargetPathCellIndex++;\n\t\t\t\tparentGP.boardRect = pathBoardRectangles.get(curTargetPathCellIndex-1);\n\t\t\t\ttAutoDirectionCorrection.restart();\n\t\t\t}else {\n\t\t\t\tparentGP.isMoving = false;\n\t\t\t\tparentGP.boardRect = pathBoardRectangles.get(curTargetPathCellIndex);\n\t\t\t\tpathBoardRectangles.clear();\n\t\t\t\ttAutoDirectionCorrection.stop();\n\t\t\t\tStagePanel.tryCaptureGoldMine(parentGP);\n\t\t\t}\n\t\t}\n\t}", "public void moveToLastAcceptableLocation(){\n\t\tthis.x=this.xTemp;\n\t\tthis.y=this.yTemp;\n\t}", "@Override\n\tprotected void activateBoard() {\n\t\tsuper.activateBoard();\n\t\taddMsg(\"Click on an origin cell\\n\");\n\t}", "@Override\n\tprotected void activateBoard() {\n\t\tsuper.activateBoard();\n\t\taddMsg(\"Click on an origin cell\\n\");\n\t}", "public void makeMove(Location loc)\n {\n if (loc == null)\n removeSelfFromGrid();\n else\n {\n int newDirection = getLocation().getDirectionToward(loc);\n Location nextLocation = getLocation().getAdjacentLocation(newDirection);\n Actor otherActor = getGrid().get(nextLocation);\n if(otherActor != null)\n {\n if(otherActor instanceof AbstractPokemon)\n {\n AbstractPokemon otherPokemon = (AbstractPokemon) otherActor;\n battle(otherPokemon);\n }\n else\n {\n PokemonTrainer otherTrainer = (PokemonTrainer) otherActor;\n battleTrainer(otherTrainer);\n }\n }\n if(getGrid() != null)\n moveTo(loc);\n }\n }", "public void wrap(){\n\t\tif(this.y_location >=99){\n\t\t\tthis.y_location = this.y_location%99;\n\t\t}\n\t\telse if(this.y_location <=0){\n\t\t\tthis.y_location = 99 - (this.y_location%99);\n\t\t}\n\t\tif(this.x_location >= 99){\n\t\t\tthis.x_location = this.x_location%99;\n\t\t}\n\t\telse if(this.x_location <=0){\n\t\t\tthis.x_location = 99-(this.x_location%99);\n\t\t}\n\t}", "@Override\r\n public void act() \r\n {\n int posx = this.getX();\r\n int posy = this.getY();\r\n //calculamos las nuevas coordenadas\r\n int nuevox = posx + incx;\r\n int nuevoy = posy + incy;\r\n \r\n //accedemos al mundo para conocer su tamaño\r\n World mundo = this.getWorld();\r\n if(nuevox > mundo.getWidth())//rebota lado derecho\r\n {\r\n incx = -incx;\r\n }\r\n if(nuevoy > mundo.getHeight())//rebota en la parte de abajo\r\n {\r\n incy = -incy;\r\n }\r\n \r\n if(nuevoy < 0)//rebota arriba\r\n {\r\n incy = -incy;\r\n }\r\n if(nuevox < 0)//rebota izquierda\r\n {\r\n incx = -incx;\r\n }\r\n //cambiamos de posicion a la pelota\r\n this.setLocation(nuevox,nuevoy);\r\n }", "public void swim() {\r\n\t\tif(super.getPosition()[0] == Ocean.getInstance().getWidth()-71){\r\n\t\t\tinvX = true;\r\n\t\t} else if(super.getPosition()[0] == 0){\r\n\t\t\tinvX = false;\r\n\t\t}\r\n\t\tif(super.getPosition()[1] == Ocean.getInstance().getDepth()-71){\r\n\t\t\tinvY = true;\r\n\t\t} else if(super.getPosition()[1] == 0){\r\n\t\t\tinvY = false;\r\n\t\t}\r\n\t\tif(invX){\r\n\t\t\tsuper.getPosition()[0]-=1;\r\n\t\t} else {\r\n\t\t\tsuper.getPosition()[0]+=1;\r\n\t\t}\r\n\t\tif(invY){\r\n\t\t\tsuper.getPosition()[1]-=1;\r\n\t\t} else {\r\n\t\t\tsuper.getPosition()[1]+=1;\r\n\t\t}\r\n\t}", "void move(char entry, int column, int row) {\n if(!moveIsOnBoard(column, row) ) {\n // throw an exception\n } else if (!this.state[column][row].isEmpty) {\n // throw a different exception\n } else {\n this.state[column][row].makeEntry(entry);\n }\n this.checkIfFull();\n }", "public void move(){\n\t\t\tbx += (int)movex;\n\t\t\tby += (int)movey;\n\t\t\tthis.setBounds((int)bx,(int)by,10,10);\n\n\t\t\t\n\t\t}", "public void move() {\n\t\tx+= -1;\n\t\tif (x < 0) {\n\t\t\tx = (processing.width - 1);\n\t\t}\n\t\ty+= 1;\n\t\tif (y > processing.height-1)\n\t\t\ty=0;\n\t}", "private void move() {\n\t\t\tx += Math.PI/12;\n\t\t\thead.locY = intensity * Math.cos(x) + centerY;\n\t\t\thead.yaw = spinYaw(head.yaw, 3f);\n\t\t\t\t\t\n\t\t\tPacketHandler.teleportFakeEntity(player, head.getId(), \n\t\t\t\tnew Location(player.getWorld(), head.locX, head.locY, head.locZ, head.yaw, 0));\n\t\t}", "public void move()\r\n\t{\r\n\t\ty-=8;\r\n\t}", "public void originalSpace() {\n\t\tpos.x = 65;\n\t\tpos.y = p.height/2 + 100;\n\t\t\n\t}", "public void move() {\n float diffX = cDestination.getX() - getCenterX();\n float diffY = cDestination.getY() - getCenterY();\n\n float newX = cPosition.getX() + cSpeed * Math.signum(diffX);\n float newY = cPosition.getY() + cSpeed * Math.signum(diffY);\n\n cPosition.setX(newX);\n cPosition.setY(newY);\n }", "private void makeEntranceAndExit() {\n int rowView = calcRowViewAndWalk(rowEntry, Direction.up);\r\n int colView = calcColViewAndWalk(colEntry, Direction.up);\r\n setCell(rowView, colView, Cell.corridor);\r\n \r\n rowView = calcRowViewAndWalk(rowExit, Direction.down);\r\n colView = calcColViewAndWalk(colExit, Direction.down);\r\n setCell(rowView, colView, Cell.corridor);\r\n }", "public void moveCellLocal(long cellId, double x, double y)\n\t{\n\t\tcells.get(cellId).setLocation(x, y);\n\t\tIntentionGraphController.getInstance().localUpdateAttachedArrows(cellId, x, y);\n\t}", "void move() {\n\t\tif (reachedEdge()) {\n\t\t\tvelocityX = velocityX * -1;\n\t\t\ty = y + 50;\n\t\t}\n\t\tif (reachedLeft()) {\n\t\t\tvelocityX = velocityX * -1;\n\t\t\ty = y + 50;\n\t\t}\n\n\t\tx = x + velocityX;\n\t}", "public void movePiece(Coordinate from, Coordinate to);", "protected void up() {\n move(positionX, positionY - 1);\n orientation = BattleGrid.RIGHT_ANGLE * 3;\n }", "public void move()\n {\n double angle = Math.toRadians( getRotation() );\n int x = (int) Math.round(getX() + Math.cos(angle) * WALKING_SPEED);\n int y = (int) Math.round(getY() + Math.sin(angle) * WALKING_SPEED);\n setLocation(x, y);\n }", "private void move() {\n\n for (int z = snakeLength; z > 0; z--) {\n xLength[z] = xLength[(z - 1)];\n yLength[z] = yLength[(z - 1)];\n }\n\n if (left) {\n xLength[0] -= elementSize;\n }\n\n if (right) {\n xLength[0] += elementSize;\n }\n\n if (up) {\n yLength[0] -= elementSize;\n }\n\n if (down) {\n yLength[0] += elementSize;\n }\n }", "@Test\n public void testMoveMonsterToCell()\n {\n theEngine.start();\n assertTrue(theEngine.inPlayingState());\n \n assertFalse(getTheMonster().getLocation() == getEmptyCell());\n moveMonsterToCell(getEmptyCell());\n assertEquals(getTheMonster().getLocation(), getEmptyCell());\n }", "public void move(Actor actor)\n\t\t {\n\t\t\t \t//PO: updated the methods after the move from the Bug Class to be called from\n\t\t \t//PO: the passed actor\n\t\t Grid<Actor> gr = actor.getGrid();\n\t\t if (gr == null)\n\t\t return;\n\t\t Location loc = actor.getLocation();\n\t\t Location next = loc.getAdjacentLocation(actor.getDirection());\n\t\t if (gr.isValid(next))\n\t\t \t//PO: alter the original code instead of calling the \n\t\t \t//PO: moveTo method in Actor call the method that is from this current behaviour\n\t\t this.moveTo(actor, next);\n\t\t else\n\t\t actor.removeSelfFromGrid();\n\t\t Flower flower = new Flower(actor.getColor());\n\t\t flower.putSelfInGrid(gr, loc);\n\t\t \n\t\t }", "public void pushCell(int x, int y) {\n\n if (fieldManager.isCellMined(x, y)) {\n fieldInerface.putLethalMineToButton(x, y);\n death(x, y);\n return;\n }\n\n fieldManager.openCell(x, y);\n fieldInerface.putEnvToButton(x, y, (int) fieldManager.getEnv(x, y));\n if (fieldManager.getEnv(x, y) == 0)\n for (int i = x - 1; i < x + 2; i++)\n for (int j = y - 1; j < y + 2; j++)\n if ((i >= 0) && (i < widthOfField) && (j >= 0)\n && (j < heightOfField))\n if (fieldManager.isCellOpenable(i, j))\n pushCell(i, j);\n }", "public void stepForwad() {\n\t\t\t\n\t\t\tswitch(this.direction) {\n\t\t\t\tcase 0:\n\t\t\t\t\tthis.y += 1;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 1:\n\t\t\t\t\tthis.x += 1;\n\t\t\t\t\tthis.y += 1;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\tthis.x += 1;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\tthis.x += 1;\n\t\t\t\t\tthis.y -= 1;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4:\n\t\t\t\t\tthis.y -= 1;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 5:\n\t\t\t\t\tthis.x -= 1;\n\t\t\t\t\tthis.y -= 1;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 6:\n\t\t\t\t\tthis.x -= 1;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 7: \n\t\t\t\t\tthis.x -= 1;\n\t\t\t\t\tthis.y += 1;\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tthis.x = (this.worldWidth + this.x)%this.worldWidth;\n\t\t\tthis.y = (this.worldHeight + this.y)%this.worldHeight;\n\t\t}", "public void move() {\n\t\tmoveX();\n\t\tmoveY();\n\t}", "private void easyMove(Board board) {\n\t\t\r\n\t}", "public void pin() {\n this.pin = new Vec(this.pos);\n }", "public void move()\n {\n universe.erase(this);\n \n // compute new position\n \n yPosition += ySpeed;\n xPosition += xSpeed;\n\n // check if it has hit the ground\n if(yPosition >= (groundPosition - diameter) && ySpeed > 0) {\n yPosition = groundPosition - diameter;\n ySpeed = -ySpeed; \n }\n // check if top\n if(yPosition <= 0 && ySpeed < 0){\n ySpeed = -ySpeed; \n }\n //check right\n if(xPosition >= (universe.getLength() - diameter) && xSpeed >0){\n xSpeed = -xSpeed;\n }\n //check left\n if(xPosition <= 0 && xSpeed < 0){\n xSpeed = -xSpeed;\n }\n \n // draw again at new position\n universe.draw(this);\n }", "@Override\n\tprotected boolean moveRobot(boolean printEachStep) {\n\t\tboolean move=true;\n\t\tint incOrDecR = destRow > curRow ? 1 : -1, \n\t\t\tincOrDecC = destCol > curCol ? 1 : -1, \n\t\t\tcount = diagonalCount();\n\t\t\t// Move diagonally as close to the destination it can get to\n\t\t\tfor(int i=0; i<count; ++i) {\n\t\t\t\tif(move=grid.moveFromTo(this, curRow, curCol, \n\t\t\t\t\t\tblockedRow=curRow+incOrDecR, \n\t\t\t\t\t\tblockedCol=curCol+incOrDecC)) { \n\t\t\t\t\tcurRow+=incOrDecR; \n\t\t\t\t\tcurCol+=incOrDecC;\n\t\t\t\t\t--energyUnits;\n\t\t\t\t\tif(printEachStep)\n\t\t\t\t\t\tgrid.printGrid();\n\t\t\t\t} else {\n\t\t\t\t\treturn move; \n\t\t\t\t}\n\t\t\t}\n\t\tmove=super.moveRobot(printEachStep);\n\t\treturn move;\n\t}", "public void moveToDestination(Move move) {\r\n\t\tx = move.getToX();\r\n\t\ty = move.getToY();\r\n\r\n\t}", "public abstract void move(int row, int col) throws IllegalMoveException;", "@Override\n\tpublic void move() {\n\t\theading = Heading.randHeading();\n\t\tif (heading == Heading.NORTH) {\n\t\t\tthis.location.y -= Utilities.rng.nextInt(Simulation.WORLD_SIZE/10);\n\t\t} else if (heading == Heading.EAST) {\n\t\t\tthis.location.x += Utilities.rng.nextInt(Simulation.WORLD_SIZE/10);\n\t\t} else if (heading == Heading.SOUTH) {\n\t\t\tthis.location.y += Utilities.rng.nextInt(Simulation.WORLD_SIZE/10);\n\t\t} else if (heading == Heading.WEST) {\n\t\t\tthis.location.x -= Utilities.rng.nextInt(Simulation.WORLD_SIZE/10);\n\t\t}\n\t\tadjustPos();\n\t\tinfect();\n\t}", "public void moveLeft() {\n locX = locX - 1;\n }", "public void moveTo(Actor actor, Location newLocation)\n\t {\n\t\t \t//creating the variables to make the code easier to read\n\t\t \tGrid<Actor> grid = actor.getGrid();\n\t\t \tLocation location = actor.getLocation();\n\t\t \n\t if (grid == null)\n\t throw new IllegalStateException(\"This actor is not in a grid.\");\n\t if (grid.get(location) != actor)\n\t throw new IllegalStateException(\n\t \"The grid contains a different actor at location \"\n\t + location + \".\");\n\t if (!grid.isValid(newLocation))\n\t throw new IllegalArgumentException(\"Location \" + newLocation\n\t + \" is not valid.\");\n\n\t if (newLocation.equals(location))\n\t return;\n\t \n\t //this line below was added\n\t actor.removeSelfFromGrid();\n\t //changed the code slightly to make sure now that not being called from within the actor that we refer to the\n\t //actor itself when removing and placing actor on grid\n\t //grid.remove(location);\n\t Actor other = grid.get(newLocation);\n\t if (other != null)\n\t other.removeSelfFromGrid();\n\t location = newLocation;\n\t actor.putSelfInGrid(grid, location);\n\t //grid.put(location, actor);\n\t }", "public void move() {\n\t\tif (!visible) {\r\n\t\t\thideTurtle();\r\n\t\t}\r\n\t}", "@Override\n Figure move(Cell dest) {\n return new Bishop(dest, this.strategy);\n }", "@Override\n\tpublic void placementcell() {\n\t\t\n\t}", "public void move() {\n if (this.nextMove.equals(\"a\")) { // move down\n this.row = row + 1;\n progress += 1;\n if (progress == steps) {\n nextMove = \"b\";\n progress = 0;\n }\n } else if (this.nextMove.equals(\"b\")) { // move right\n this.col = col + 1;\n progress += 1;\n if (progress == steps) {\n nextMove = \"c\";\n progress = 0;\n }\n } else if (this.nextMove.equals(\"c\")) { // move up\n this.row = row - 1;\n progress += 1;\n if (progress == steps) {\n nextMove = \"a\";\n progress = 0;\n }\n }\n }", "private void playerMove(PlayerPiece playerPiece, String direction) {\n // Row will be -1 from player location with the same column value\n System.out.println(playerPiece + \" trying to move \" + direction + \".\");\n Tile playerLocation = playerPiece.getLocation();\n System.out.println(\"Player in: \" + playerLocation.getRow() + \" \" + playerLocation.getColumn());\n int newRow = playerLocation.getRow();\n int newColumn = playerLocation.getColumn();\n switch (direction) {\n case \"u\":\n newRow -= 1;\n break;\n case \"d\":\n newRow += 1;\n break;\n case \"l\":\n newColumn -= 1;\n break;\n case \"r\":\n newColumn += 1;\n break;\n }\n if (newRow >= 0 && newColumn >= 0 && newRow < this.board.getGrid().getRows() && newColumn < this.board.getGrid().getColumns()) {\n System.out.println(newRow + \" \" + newColumn);\n Tile newLocation = this.board.getGrid().getTile(newRow, newColumn);\n System.out.println(\"New Location:\" + newLocation);\n System.out.println(\"Cords: \" + newLocation.getRow() + \" \" + newLocation.getColumn());\n if (newLocation.isAvailable()) {\n playerLocation.removeOccupier();\n playerPiece.setLocation(newLocation);\n newLocation.setOccupier(playerPiece);\n System.out.println(\"Player moved to: \" + playerLocation.getRow() + \" \" + playerLocation.getColumn());\n this.board.getGrid().print();\n }\n }\n }", "private void recalculatePosition()\n {\n position.x = gridCoordinate.getCol()*(width+horizontal_spacing);\n position.y = gridCoordinate.getRow()*(heigh+vertical_spacing);\n }", "public void jumpLocation ( Point loc )\r\n\t{\r\n\t\tif ( loc.x < 0 || loc.y < 0 || \r\n\t\t\t\t loc.x >= size || loc.y >= size )\r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tmaze [currentRow] [currentCol].removeWalker(Direction.NONE);\r\n\t\tcurrentRow = loc.y;\r\n\t\tcurrentCol = loc.x;\r\n\t\tmaze [currentRow] [currentCol].InsertWalker();\r\n\t}", "protected void move()\n {\n // Find a location to move to.\n Debug.print(\"Fish \" + toString() + \" attempting to move. \");\n Location nextLoc = nextLocation();\n\n // If the next location is different, move there.\n if ( ! nextLoc.equals(location()) )\n {\n // Move to new location.\n Location oldLoc = location();\n changeLocation(nextLoc);\n\n // Update direction in case fish had to turn to move.\n Direction newDir = environment().getDirection(oldLoc, nextLoc);\n changeDirection(newDir);\n Debug.println(\" Moves to \" + location() + direction());\n }\n else\n Debug.println(\" Does not move.\");\n }", "private Cell[][] updateCellLocation(Cell[][] grid) {\n\n //Iterate through the grid\n for (int x = 0; x < this.width; x++) {\n for (int y = 0; y < this.height; y++) {\n grid[x][y].setXCord(x); //Set the new X co-ordinate\n grid[x][y].setYCord(y); //Set the new Y co-ordinate\n }\n }\n\n return grid;\n }", "public Location north()\r\n {\r\n\r\n return new Location(x, y - 1);\r\n }", "private void move() {\n\t\t\tangle += Math.PI/24;\n\t\n\t\t\tcow.locX = Math.sin(angle) * 2.5 + player.getLocation().getX();\n\t\t\tcow.locZ = Math.cos(angle) * 2.5 + player.getLocation().getZ();\n\t\t\t\n\t\t\tLocation loc = new Location(player.getWorld(), cow.locX, player.getLocation().getY() + 1.5, cow.locZ);\n\t\t\tloc.setDirection(player.getLocation().subtract(loc).toVector()); //Look at the player\n\t\t\t\n\t\t\tPacketHandler.teleportFakeEntity(player, cow.getId(), loc);\n\t\t}", "public void moveSpaceShipUp() {\n\t\tSpaceship sp = getTheSpaceship();\n\t\tsp.moveUp();\n\t}", "private void escapeFromMaze() throws Exception {\n\t\tassert robot.distanceToObstacle(Direction.BACKWARD) != Integer.MAX_VALUE : \"Unexpected exit environment.\";\n\t\t\n\t\tswitch(robot.getCurrentDirection()){\n\t\t\tcase East:\n\t\t\t\tif(robot.getController().getMazeConfiguration().getMazecells().hasNoWall(robot.getCurrentPosition()[0], robot.getCurrentPosition()[1], CardinalDirection.East)\n\t\t\t\t\t\t&& !robot.getController().getMazeConfiguration().isValidPosition(robot.getCurrentPosition()[0]+1, robot.getCurrentPosition()[1])){\n\t\t\t\t\trobot.move(1, false);\n\t\t\t\t}\n\t\t\t\telse if(robot.getController().getMazeConfiguration().getMazecells().hasNoWall(robot.getCurrentPosition()[0], robot.getCurrentPosition()[1], CardinalDirection.North)){\n\t\t\t\t\trobot.rotate(Turn.RIGHT);\n\t\t\t\t\trobot.move(1, false);\n\t\t\t\t}else{\n\t\t\t\t\trobot.rotate(Turn.LEFT);\n\t\t\t\t\trobot.move(1, false);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase West:\n\t\t\t\tif(robot.getController().getMazeConfiguration().getMazecells().hasNoWall(robot.getCurrentPosition()[0], robot.getCurrentPosition()[1], CardinalDirection.West)\n\t\t\t\t\t\t&& !robot.getController().getMazeConfiguration().isValidPosition(robot.getCurrentPosition()[0]-1, robot.getCurrentPosition()[1])){\n\t\t\t\t\trobot.move(1, false);\n\t\t\t\t}\n\t\t\t\telse if (robot.getController().getMazeConfiguration().getMazecells().hasNoWall(robot.getCurrentPosition()[0], robot.getCurrentPosition()[1], CardinalDirection.North)){\n\t\t\t\t\trobot.rotate(Turn.LEFT);\n\t\t\t\t\trobot.move(1, false);\n\t\t\t\t}else{\n\t\t\t\t\trobot.rotate(Turn.RIGHT);\n\t\t\t\t\trobot.move(1, false);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase North:\n\t\t\t\tif(robot.getController().getMazeConfiguration().getMazecells().hasNoWall(robot.getCurrentPosition()[0], robot.getCurrentPosition()[1], CardinalDirection.North)\n\t\t\t\t\t\t&& !robot.getController().getMazeConfiguration().isValidPosition(robot.getCurrentPosition()[0], robot.getCurrentPosition()[1]-1)){\n\t\t\t\t\trobot.move(1, false);\n\t\t\t\t}\n\t\t\t\telse if (robot.getController().getMazeConfiguration().getMazecells().hasNoWall(robot.getCurrentPosition()[0], robot.getCurrentPosition()[1], CardinalDirection.East)){\n\t\t\t\t\trobot.rotate(Turn.LEFT);\n\t\t\t\t\trobot.move(1, false);\n\t\t\t\t}else{\n\t\t\t\t\trobot.rotate(Turn.RIGHT);\n\t\t\t\t\trobot.move(1, false);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase South:\n\t\t\t\tif(robot.getController().getMazeConfiguration().getMazecells().hasNoWall(robot.getCurrentPosition()[0], robot.getCurrentPosition()[1], CardinalDirection.South)\n\t\t\t\t\t\t&& !robot.getController().getMazeConfiguration().isValidPosition(robot.getCurrentPosition()[0], robot.getCurrentPosition()[1]+1)){\n\t\t\t\t\trobot.move(1, false);\n\t\t\t\t}\n\t\t\t\telse if (robot.getController().getMazeConfiguration().getMazecells().hasNoWall(robot.getCurrentPosition()[0], robot.getCurrentPosition()[1], CardinalDirection.West)){\n\t\t\t\t\trobot.rotate(Turn.LEFT);\n\t\t\t\t\trobot.move(1, false);\n\t\t\t\t}else{\n\t\t\t\t\trobot.rotate(Turn.RIGHT);\n\t\t\t\t\trobot.move(1, false);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t}\n\t\t\n\t\t\n\t}", "public void move(){\n\t\t\n\t}", "public void setNeighbors(){\t\t\t\t\n\t\tint row = position[0];\n\t\tint column = position[1];\t\t\n\t\tif(column+1 < RatMap.SIDELENGTH){\n\t\t\teastCell = RatMap.getMapCell(row,column+1);\t\t\t\n\t\t}else{\n\t\t\teastCell = null;\n\t\t}\t\n\t\tif(row+1 < RatMap.SIDELENGTH){\n\t\t\tnorthCell = RatMap.getMapCell(row+1,column);\n\t\t}else{\n\t\t\tnorthCell = null;\n\t\t}\t\n\t\tif(column-1 > -1){\n\t\t\twestCell = RatMap.getMapCell(row, column-1);\t\t\t\n\t\t}else{\n\t\t\twestCell = null;\n\t\t}\n\t\tif(row-1 > -1){\n\t\t\tsouthCell = RatMap.getMapCell(row-1, column);\n\t\t}else{\n\t\t\tsouthCell = null;\n\t\t}\n\t}", "public void move() {\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t}", "void placePowerStation() {\n this.board.get(powerRow).get(powerCol).placePowerStation();\n }", "public boolean moveUpLeft() {\n\t\tif (check(col-1, row-1)) {\n\t\t\tHiVolts.board.squares[row][col] = 0; // set current location to nothing\n\t\t\tcol = col - 1; // get new x\n\t\t\trow = row - 1; // get new y\n\t\t\tHiVolts.board.squares[row][col] = 2; // set new location to avatar\n\t\t\tsuper.moveUpLeft(); // calls move function in piece\n\t\t}\n\t\treturn true;\n\t}", "public MazeBug() {\r\n setColor(Color.GREEN);\r\n last = new Location(0, 0);\r\n crossLocation = new Stack<ArrayList<Location>>();\r\n crossLocation.push(new ArrayList<Location>());\r\n hasShown = false;\r\n isEnd = false;\r\n probablyDir = new int[] { 0, 0, 0, 0 };\r\n stepCount = 0;\r\n }", "public void move(GeoCoordFine geoCoord) throws ARDInstanceException;", "@Override\n\tpublic boolean move(int col, int row, piece[][] board) {\n\t\treturn false;\n\t}", "@Override\n public double getLocationX() {\n return myMovable.getLocationX();\n }" ]
[ "0.6745991", "0.631559", "0.62153727", "0.620679", "0.61582565", "0.6105444", "0.60793847", "0.6076443", "0.60417217", "0.6001185", "0.5990742", "0.5987357", "0.595466", "0.5945374", "0.59383774", "0.5937056", "0.59312975", "0.5907525", "0.5897598", "0.58822936", "0.58642197", "0.5857615", "0.5819856", "0.5817593", "0.5794083", "0.5787015", "0.57786196", "0.5760314", "0.5759832", "0.57487947", "0.57432085", "0.57186455", "0.5714393", "0.5710638", "0.5708864", "0.5693431", "0.5682208", "0.5676346", "0.567026", "0.56690985", "0.5667018", "0.5630013", "0.56250376", "0.5618352", "0.5613388", "0.5613312", "0.5613312", "0.5608651", "0.5607146", "0.56046736", "0.5604085", "0.5597499", "0.5596372", "0.55954194", "0.5595151", "0.559401", "0.5586176", "0.55800885", "0.5575985", "0.55744594", "0.5557142", "0.55514944", "0.5544512", "0.5535193", "0.55220366", "0.5506183", "0.54799724", "0.5475151", "0.5474326", "0.54714525", "0.54658633", "0.5460376", "0.5451261", "0.54475546", "0.5446167", "0.54276633", "0.5423364", "0.54213774", "0.54198533", "0.54181355", "0.5417827", "0.5417354", "0.541226", "0.54038507", "0.5396344", "0.5382596", "0.53809065", "0.5379668", "0.53753346", "0.5371454", "0.5365229", "0.5362532", "0.53622985", "0.53613394", "0.5343354", "0.5341093", "0.5339895", "0.53346115", "0.5330187", "0.53298783", "0.5327545" ]
0.0
-1
Move this bug to the cell to its south.
public boolean moveDown() { if (position.isLinked(position.getSouth())) { position.getGameObjects().remove(this.type); position = position.getSouth(); position.getGameObjects().add(this.type); return true; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void moveRight() {\n this.position.addColumn(1);\n }", "public synchronized void moveDown(){\n if (!this.isAtBottom()){\n for (int j = 1; j < 25; j++){\n for (int i = 1; i < 13; i++){\n if (this.movable[i][j]){\n this.map[i][j - 1] = this.map[i][j];\n this.movable[i][j - 1] = this.movable[i][j];\n this.colors[i][j - 1] = this.colors[i][j];\n\n this.map[i][j] = false;\n this.movable[i][j] = false;\n this.colors[i][j] = null;\n\n }\n }\n }\n }\n this.piecePositionY--;\n repaint();\n }", "public Location south()\r\n {\r\n return new Location(x, y + 1);\r\n }", "public void move() {\n\t\tGrid<Actor> gr = getGrid();\n\t\tif (gr == null) {\n\t\t\treturn;\n\t\t}\n\t\tLocation loc = getLocation();\n\t\tLocation next = loc.getAdjacentLocation(getDirection());\n\t\t\n\t\tLocation next2 = next.getAdjacentLocation(getDirection());\n\t\tif (gr.isValid(next2)) {\n\t\t\tmoveTo(next2);\n\t\t} else {\n\t\t\tremoveSelfFromGrid();\n\t\t}\n\t}", "public void moveDown()\n\t{\n\t\tthis.grid.moveDown();\n\t}", "public ILocation south()\n {\n Location south = new Location(x, y + 1);\n return south;\n }", "public void moveUp()\n\t{\n\t\tthis.grid.moveUp();\n\t}", "@Override\n Figure move(Cell dest) {\n return new Bishop(dest, this.strategy);\n }", "public void swapColumns() {\r\n\t\tboolean moved = false;\r\n\t\tfor(int i = 0; i < columnLocations.size() && !moved; i++) {\r\n if(!(table.getColumnName(i).equals(columnLocations.get(i)))) {\r\n int properIndex = columnLocations.indexOf(table.getColumnName(i));\r\n if ( properIndex != -1 ) {\r\n \t\ttable.moveColumn(i, properIndex);\r\n \t\tmoved = true;\r\n }\r\n }\r\n }\r\n\t\tif ( moved ) {\r\n\t\t\tswapColumns();\r\n\t\t}\r\n\t}", "private void swapPosition(int curRow, int curCol, int newRow, int newCol){\n gameBoard[newRow][newCol] = gameBoard[curRow][curCol];\n gameBoard[curRow][curCol] = new EmptyPiece();\n }", "public void move() throws InstructionExecutionException\r\n\t{\r\n\t\t\r\n\t\ttry \r\n\t\t{\r\n\t\t\tStreet street=this.getHeadingStreet();\r\n\t\t\tif(street==null){\r\n\t\t\t\tString err=\"WALL·E says: There is no street in direction \"+this.getCurrentHeading();\r\n\t\t\t\tif(isSwing()){\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, err);\r\n\t\t\t\t}\r\n\t\t\t\tthrow new InstructionExecutionException(err);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tPlace nextPlace=street.nextPlace(this.currentPlace);\r\n\t\t\tif (street.isOpen()){\r\n\t\t\t\tthis.currentPlace=nextPlace;\r\n\t\t\t\tif(isSwing()){\r\n\t\t\t\t\tthis.navigationPanel.updateCell(currentDirection, nextPlace);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}else{\r\n\t\t\t\tString err=\"WALL·E says: Arrggg, there is a street but it is closed!\";\r\n\t\t\t\tif(isSwing()){\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, err);\r\n\t\t\t\t}\r\n\t\t\t\tthrow new InstructionExecutionException(err);\r\n\t\t\t}\r\n\t\t}catch (Exception e){\r\n\t\t\tthrow e;\r\n\t\t}\r\n\t}", "private void shiftPlayerPiecesTopToBottom(int colNum) {\n for (int i = 0; i < playerPiecePositions.length; i++) {\n Position pos = playerPiecePositions[i];\n if (pos.getColNum() == colNum) {\n playerPiecePositions[i] = nextPositionTopToBottom(pos);\n playerPieces[i].addPreviousPlayerPosition(pos);\n }\n }\n }", "public void punishment(){\n\t\tthis.cell = 0;\n\t}", "public void moveRight()\n\t{\n\t\tcol++;\n\t}", "void placePowerStation() {\n this.board.get(powerRow).get(powerCol).placePowerStation();\n }", "public Location up() {\n return new Location(row - 1, column);\n }", "public void right () {\n Grid<Actor> gr = getGrid();\n if (gr == null)\n return;\n Location loc = getLocation();\n Location next = loc.getAdjacentLocation(Location.EAST);\n if (canMove(next)) {\n moveTo(next);\n }\n }", "public void moveDown()\n\t{\n\t\trow--;\n\t}", "public void move()\n\t{\n\t\tVector v = ship.v;\n\t\tb = b.getLocation().add(v).getBlock();\n\t\tif(triangle != null) triangle.move();\n\t\tif(rear != null) rear.move();\n\t\tif(foreAndAft != null) foreAndAft.move();\n\t\tif(sails != null) for(int i = 0; i < sails.size(); i++)\n\t\t{\n\t\t\tSail sail = sails.get(i);\n\t\t\tsail.move();\n\t\t}\n\t}", "@Override\n\tpublic void setColumnForMove(int col) {\n\t\tthis.dropCol = col;\n\t}", "public Location down() {\n return new Location(row + 1, column);\n }", "private void moveTile()\n {\n int[] moveIndices = null;\n \n int sourceRow = moveIndices[0];\n int sourceCol = moveIndices[1];\n int destRow = moveIndices[2] - 1;\n int destCol = moveIndices[3];\n \n if (sourceRow == 0) \n {\n try\n {\n game.playTileFromHand(sourceCol, destRow, destCol);\n }\n catch(ArrayIndexOutOfBoundsException ex)\n {\n // TODO: ConsoleUtils.message(\"Unable to complete your play, wrong indices!\");\n }\n }\n else\n {\n sourceRow--;\n try\n {\n game.moveTileInBoard(sourceRow, sourceCol, destRow, destCol); \n }\n catch(ArrayIndexOutOfBoundsException ex)\n {\n // TODO: ConsoleUtils.message(\"Unable to complete your play, wrong indices!\");\n }\n }\n }", "public void moveLeft()\n\t{\n\t\tcol--;\n\t}", "protected void moveToVisible(TableColumnExt col) {\r\n isVisibilityChange = true;\r\n // two step process: first add at end of columns\r\n // then move to \"best\" position relative to where it\r\n // was before hiding.\r\n super.addColumn(col);\r\n // this is analogous to the proposed fix in #253-swingx\r\n // but uses the currentColumns as reference.\r\n Integer addIndex = currentColumns.indexOf(col);\r\n for (int i = 0; i < (getColumnCount() - 1); i++) {\r\n TableColumn tableCol = getColumn(i);\r\n int actualPosition = currentColumns.indexOf(tableCol);\r\n if (actualPosition > addIndex) {\r\n super.moveColumn(getColumnCount() - 1, i);\r\n break;\r\n }\r\n }\r\n isVisibilityChange = false;\r\n }", "private void shiftPlayerPiecesBottomToTop(int colNum) {\n for (int i = 0; i < playerPiecePositions.length; i++) {\n Position pos = playerPiecePositions[i];\n if (pos.getColNum() == colNum) {\n playerPiecePositions[i] = nextPositionBottomToTop(pos);\n playerPieces[i].addPreviousPlayerPosition(pos);\n }\n }\n }", "public void decrementColumn() {\n setRowAndColumn(row, Math.max(column - 1, 0));\n }", "public Room goSouth() {\n return goDir(Side.SOUTH);\n }", "protected void up() {\n move(positionX, positionY - 1);\n orientation = BattleGrid.RIGHT_ANGLE * 3;\n }", "public void moveSouthButton (View View) {\n if (model.canMoveSouth()) {\n model.moveSouth();\n updateLabel();\n updateButtonStatus();\n }\n }", "public void moveDown() {\n locY = locY - 1;\n }", "@Override\n\tpublic void placementcell() {\n\t\t\n\t}", "private void moveLastPart() {\n Field lastPart = snake.getCell(snake.getSize() - 1);\n fields[lastPart.getY()][lastPart.getX()] = lastPart;\n fields[lastPart.getPreviousY()][lastPart.getPreviousX()] = null;\n }", "private int getSouthCell(Cell cell) {\n\t\tint cellNumber = cell.getNumber();\n\t\tif (cellNumber < getGridSize() - getGridWidth()) {\n\t\t\treturn (cellNumber + getGridWidth());\n\t\t} else {\n\t\t\tif (isToroidal()) {\n\t\t\t\treturn (cellNumber % getGridWidth());\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t}", "public void move() {\n if (!canMove) {\n return;\n }\n int moveX = currDirection == EAST ? PACE : currDirection == WEST ? -PACE : 0;\n int moveY = currDirection == NORTH ? PACE : currDirection == SOUTH ? -PACE : 0;\n if (grid == null || grid.isOutside(currX + moveX, currY + moveY)) {\n return;\n }\n currX += moveX;\n currY += moveY;\n }", "public void move() {\n\t\t\tar.setAhead(10 * fahrtrichtung);\n\n\t\t\t// Wie schnell sich der Roboter drehen soll\n\t\t\tar.setTurnRight(45 * drehrichtung);\n\t\t\tar.execute();\n\t\t\tfarbschema = farbschema * (-1);\n\t\t}", "public void\nshiftToOrigin()\n{\n\tthis.setLine(0.0, 0.0,\n\t\tthis.getP2().getX() - this.getP1().getX(),\n\t\tthis.getP2().getY() - this.getP1().getY());\n}", "public void moveToLastAcceptableLocation(){\n\t\tthis.x=this.xTemp;\n\t\tthis.y=this.yTemp;\n\t}", "private void overwritePosition(int oldRow, int oldCol, int newRow, int newCol){\n gameBoard[newRow][newCol] = gameBoard[oldRow][oldCol];\n gameBoard[oldRow][oldCol] = new EmptyPiece();\n }", "private void shiftTopToBottom(int colNum, int rowNum, FloorTile tile, int rotation) {\n shiftTilesTopToBottom(colNum, rowNum, tile, rotation);\n shiftPlayerPiecesTopToBottom(colNum);\n }", "public void move() {\n\n\tGrid<Actor> gr = getGrid();\n\tif (gr == null) {\n\n\t return;\n\t}\n\n\tLocation loc = getLocation();\n\tif (gr.isValid(next)) {\n\n\t setDirection(loc.getDirectionToward(next));\n\t moveTo(next);\n\n\t int counter = dirCounter.get(getDirection());\n\t dirCounter.put(getDirection(), ++counter);\n\n\t if (!crossLocation.isEmpty()) {\n\t\t\n\t\t//reset the node of previously occupied location\n\t\tArrayList<Location> lastNode = crossLocation.pop();\n\t\tlastNode.add(next);\n\t\tcrossLocation.push(lastNode);\t\n\t\t\n\t\t//push the node of current location\n\t\tArrayList<Location> currentNode = new ArrayList<Location>();\n\t\tcurrentNode.add(getLocation());\n\t\tcurrentNode.add(loc);\n\n\t\tcrossLocation.push(currentNode);\t\n\t }\n\n\t} else {\n\t removeSelfFromGrid();\n\t}\n\n\tFlower flower = new Flower(getColor());\n\tflower.putSelfInGrid(gr, loc);\n\t\n\tlast = loc;\n\t\t\n }", "public void moveUp()\n {\n if (!this.search_zone.isTopBorder(this.y_position))\n {\n this.y_position = (this.y_position - 1);\n }\n }", "public void move(GridPanel bugGrid)\n\t{\tRandom generator = new Random();\n\t\tif (row < bugGrid.getBoardRows()) \n\t\t\t\t\t\t\t\t\n\t\t // -----------------------------------------------------\n\t\t // Simple bug mover randomly, 0-3 spaces\n\t\t //-----------------------------------------------------\n\t\n\t\t bugGrid.addImage(null, row, column);\n\t\t row++;\n\t\t bugGrid.addImage(image, row, column);\n\n }", "public South(int xPos, int yPos, Rectangle symbol) {\n super(xPos, yPos, symbol);\n }", "protected void down() {\n move(positionX, positionY + 1);\n orientation = BattleGrid.RIGHT_ANGLE;\n }", "public void moveDown()\n {\n if (!this.search_zone.isDownBorder(this.y_position))\n {\n this.y_position = (this.y_position + 1);\n }\n }", "void positionToStart () {\n currentRow = 0 - currentPiece.getOffset();\n currentColumn = board.columns / 2 - currentPiece.width / 2;\n }", "public void move() {\n\t\tGrid<Actor> gr = getGrid();\n\t\tif (gr == null) {\n\t\t\treturn;\n\t\t}\n\t\tLocation loc = getLocation();\n\t\tif (gr.isValid(next)) {\n\t\t\tsetDirection(getLocation().getDirectionToward(next));\n\t\t\tmoveTo(next);\n\t\t} else {\n\t\t\tremoveSelfFromGrid();\n\t\t}\n\t\tFlower flower = new Flower(getColor());\n\t\tflower.putSelfInGrid(gr, loc);\n\t}", "private Board moveTo(int direction) {\n Board newBoard = new Board(this.state);\n int oZ = this.zero;\n int nZ = oZ;\n switch (direction) {\n case Board.LEFT: nZ = oZ - 1; break;\n case Board.RIGHT: nZ = oZ + 1; break;\n case Board.UP: nZ = oZ - Board.dim; break;\n case Board.DOWN: nZ = oZ + Board.dim; break;\n default: return null;\n }\n newBoard.state[oZ] = state[nZ];\n newBoard.state[nZ] = 0;\n newBoard.zero = nZ;\n\n // update heuristic iteratively except for MAN\n switch(Board.heuristic) {\n case HAM:\n if (state[nZ] == oZ) newBoard.dist = this.dist - 1;\n else if (state[nZ] == nZ) newBoard.dist = this.dist + 1;\n else newBoard.dist = this.dist;\n break;\n case INT: // iterative update the interference\n // this is the most logically complicated code I have\n // done in a while\n int moved = state[nZ];\n int oC;\n newBoard.inter = inter;\n switch (direction) {\n case Board.LEFT:\n case Board.RIGHT: // LEFT AND RIGHT\n if (Board.colOf[state[nZ]] == Board.colOf[nZ]) {\n // we've replaced a piece on its col with a zero\n // interference can only decrease since we know\n // the piece didn't belong to its old column\n //System.out.println(\"Took \" + state[nZ] + \" out of its col\");\n for (int i = Board.colOf[nZ]; i < nZ; i+=Board.dim)\n if (Board.colOf[state[i]] == Board.colOf[nZ] &&\n state[i] > state[nZ])\n newBoard.inter--;\n for (int i = nZ + Board.dim; i < state.length; i+=Board.dim)\n if (Board.colOf[state[i]] == Board.colOf[nZ] &&\n state[i] < state[nZ])\n newBoard.inter--;\n \n } else if (Board.colOf[state[nZ]] == Board.colOf[oZ]) {\n // we've put a piece on its col that was a zero\n // interference can only increase since we know\n // the piece didn't below to its old column\n //System.out.println(\"Put \" + state[nZ] + \" into its col\");\n for (int i = Board.colOf[oZ]; i < oZ; i+=Board.dim)\n if (Board.colOf[state[i]] == Board.colOf[oZ] &&\n state[i] > state[nZ])\n newBoard.inter++;\n for (int i = oZ + Board.dim; i < state.length; i+=Board.dim)\n if (Board.colOf[state[i]] == Board.colOf[oZ] &&\n state[i] < state[nZ])\n newBoard.inter++;\n }\n break;\n default: // UP AND DOWN\n if (Board.rowOf[state[nZ]] == Board.rowOf[nZ]) {\n // we've replaced a piece on its row with a zero\n // interference can only decrease since we know\n // the piece didn't belong to its old row\n //System.out.println(\"Took \" + state[nZ] + \" out of its row\");\n for (int i = Board.dim*Board.rowOf[nZ]; i < nZ; i++)\n if (Board.rowOf[state[i]] == Board.rowOf[nZ] &&\n state[i] > state[nZ])\n newBoard.inter--;\n for (int i = nZ+1; i < Board.dim*(Board.rowOf[nZ]+1); i++)\n if (Board.rowOf[state[i]] == Board.rowOf[nZ] &&\n state[i] < state[nZ])\n newBoard.inter--;\n } else if (Board.rowOf[state[nZ]] == Board.rowOf[oZ]) {\n // we've put a piece on its row that was a zero\n // interference can only increase since we know\n // the piece didn't belong to its old row\n //System.out.println(\"Put \" + state[nZ] + \" into its row\");\n for (int i = Board.dim*Board.rowOf[oZ]; i < oZ; i++)\n if (Board.rowOf[state[i]] == Board.rowOf[oZ] &&\n state[i] > state[nZ])\n newBoard.inter++;\n for (int i = oZ+1; i < Board.dim*(Board.rowOf[oZ]+1); i++)\n if (Board.rowOf[state[i]] == Board.rowOf[oZ] &&\n state[i] < state[nZ])\n newBoard.inter++;\n }\n } \n default: // update the manhattan distance\n newBoard.dist = this.dist - \n Board.manhattanTable[state[nZ]][nZ] +\n Board.manhattanTable[state[nZ]][oZ];\n }\n return newBoard;\n }", "public void moveTileBack()\n {\n if(!(activeTile-1 < 0) && activeTile > 0)\n {\n Tile tmpTile = tiles[activeTile];\n PImage tmpPreview = previews[activeTile];\n PImage tmpPreviewGradients = previewGradients[activeTile];\n boolean tmpPreviewHover = previewHover[activeTile];\n \n tiles[activeTile-1].setStartColor(tmpTile.getStartColor());\n tiles[activeTile-1].setEndColor(tmpTile.getEndColor());\n tmpTile.setStartColor(tiles[activeTile-1].getStartColor());\n tmpTile.setEndColor(tiles[activeTile-1].getEndColor());\n \n tiles[activeTile-1].setTileLevel(tiles[activeTile-1].getTileLevel()+1);\n tiles[activeTile] = tiles[activeTile-1];\n previews[activeTile] = previews[activeTile-1];\n previewGradients[activeTile] = previewGradients[activeTile-1];\n previewHover[activeTile] = previewHover[activeTile-1];\n \n \n tmpTile.setTileLevel(tmpTile.getTileLevel()-1);\n tiles[activeTile-1] = tmpTile;\n tiles[activeTile-1].setStartColor(tiles[activeTile-1].getStartColor());\n previews[activeTile-1] = tmpPreview;\n previewGradients[activeTile-1] = tmpPreviewGradients;\n previewHover[activeTile-1] = tmpPreviewHover;\n \n activeTile -= 1;\n createPreviewGradients();\n }\n }", "public void movePointerBackward() throws EndTaskException {\n\t\tpickBeeper();\n\t\tturnAround();\n\t\tmove();\n\t\tputBeeper();\n\t}", "private boolean moveTo(AntArea.Cell dest) throws AntArtException {\n if (dest.isAntPresent()) {\n return false;\n }\n\n getCurrentCell().leave(this);\n dest.move(this);\n\n //Update the ant location\n Pair<Integer, Integer> newLoc = dest.getLocation();\n location = new Pair<>(newLoc.getKey(), newLoc.getValue());\n\n return true;\n }", "private void transpose() {\n Utils.transpose(this._board);\n }", "public void move() {\n\t\t// Override move so we don't move, then get location set by owner.\n\t}", "public void move(){\n\t\t\tbx += (int)movex;\n\t\t\tby += (int)movey;\n\t\t\tthis.setBounds((int)bx,(int)by,10,10);\n\n\t\t\t\n\t\t}", "public void moveUp()\n\t{\n\t\trow++;\n\t}", "private void moveToWall() {\n\t\t// TODO Auto-generated method stub\n\t\t// if front is clear then keep moving\n\t\twhile (this.frontIsClear()) {\n\t\t\tthis.move();\n\t\t}\n\t}", "public void moveRight() {\n if (rec.getUpperLeft().getX() + rec.getWidth() + 5 > rightBorder) {\n rec.getUpperLeft().setX(rightBorder - rec.getWidth());\n } else {\n rec.getUpperLeft().setX(rec.getUpperLeft().getX() + 5);\n }\n }", "public void moveTo(int toIndex)\n\t{\n\t\tthis.grid.moveTo(toIndex);\t\t\n\t}", "public void moveRight()\n {\n if (!this.search_zone.isRightBorder(this.x_position))\n {\n this.x_position = (this.x_position + 1);\n }\n }", "public void moveSpaceShipDown() {\n\t\tSpaceship sp = getTheSpaceship();\n\t\tsp.moveDown();\n\t}", "private void shiftBottomToTop(int colNum, int rowNum, FloorTile tile, int rotation) {\n shiftTilesBottomToTop(colNum, rowNum, tile, rotation);\n shiftPlayerPiecesBottomToTop(colNum);\n }", "public void moveUp() {\n locY = locY + 1;\n }", "public void moveUp()\n\t{\n\t\ty = y - STEP_SIZE;\n\t}", "public void moveSpaceShipUp() {\n\t\tSpaceship sp = getTheSpaceship();\n\t\tsp.moveUp();\n\t}", "void move(char entry, int column, int row) {\n if(!moveIsOnBoard(column, row) ) {\n // throw an exception\n } else if (!this.state[column][row].isEmpty) {\n // throw a different exception\n } else {\n this.state[column][row].makeEntry(entry);\n }\n this.checkIfFull();\n }", "private void addLastValueToTable(){\n\t\t//System.out.println(theModelColumn.size()-1);\n\t\tsetValueAt(theModelColumn.get(theModelColumn.size()-1).getX(), theModelColumn.size()-1, 0);\n\t\tsetValueAt(theModelColumn.get(theModelColumn.size()-1).getY(), theModelColumn.size()-1, 1);\n\t\tsetValueAt(theModelColumn.get(theModelColumn.size()-1).getWidth(), theModelColumn.size()-1, 2);\n\t\tsetValueAt(theModelColumn.get(theModelColumn.size()-1).getHeight(), theModelColumn.size()-1, 3);\n\t}", "public void move() {\n Grid<Actor> gr = getGrid();\n if (gr == null) {\n return;\n }\n Location loc = getLocation();\n if (gr.isValid(next)) {\n setDirection(getLocation().getDirectionToward(next));\n moveTo(next);\n } else {\n removeSelfFromGrid();\n }\n Flower flower = new Flower(getColor());\n flower.putSelfInGrid(gr, loc);\n }", "protected void moveToDestination(){\n\t\tqueue.clear();\n\t\twhile (destination[0] < 0){\n\t\t\tqueue.add(\"MOVE S\");\n\t\t\tdestination[0] += 1;\n\t\t}\n\t\twhile (destination[0] > 0){\n\t\t\tqueue.add(\"MOVE N\");\n\t\t\tdestination[0] -= 1;\n\t\t}\n\t\twhile (destination[1] < 0){\n\t\t\tqueue.add(\"MOVE E\");\n\t\t\tdestination[1] += 1;\n\t\t}\n\t\twhile (destination[1] > 0){\n\t\t\tqueue.add(\"MOVE W\");\n\t\t\tdestination[1] -= 1;\n\t\t}\n\t\tdestination = null;\n\t}", "public void Mover(int origen, int destino) {\n \n // Mostramos en pantalla lo que hacemos\n Mostrar();\n System.out.println(\"Movemos desde (\"+origen+\") hasta (\"+destino+\")\");\n System.out.println(\"Movimiento: \"+ longitud());\n System.out.println(\"\");\n \n \n // Y luego, lo hacemos, claro\n columnas[destino].push(columnas[origen].pop());\n}", "public void moveUp() {\r\n\t\tmy_cursor_location.y--;\r\n\t}", "public void moveUp() {\n\n if (this.row - 1 < 16) {\n return;\n }\n this.row -= 1;\n\n playerImage.translate(0, -Cell.CELLSIZE);\n playerImage.draw();\n }", "private void makeEntranceAndExit() {\n int rowView = calcRowViewAndWalk(rowEntry, Direction.up);\r\n int colView = calcColViewAndWalk(colEntry, Direction.up);\r\n setCell(rowView, colView, Cell.corridor);\r\n \r\n rowView = calcRowViewAndWalk(rowExit, Direction.down);\r\n colView = calcColViewAndWalk(colExit, Direction.down);\r\n setCell(rowView, colView, Cell.corridor);\r\n }", "public void adjustUp() {\n\n for (int y = 0; y < MAP_HEIGHT; y++)\n for (int x = 0; x < MAP_WIDTH; x++) {\n tiles[x][y].y = tiles[x][y].y - 4;\n backGroundTiles[x][y].y = backGroundTiles[x][y].y - 4;\n grassTiles[x][y].y = grassTiles[x][y].y - 4;\n }\n }", "private int getSouthWestCell(Cell cell) {\n\t\tint cellNumber = cell.getNumber();\n\t\tif ((cellNumber < getGridSize() - getGridWidth()) && (cellNumber % getGridWidth() != 0)) {\n\t\t\treturn (cellNumber + getGridWidth() - 1);\n\t\t} else {\n\t\t\tif (isToroidal()) {\n\t\t\t\tif (cellNumber < getGridSize() - getGridWidth()) { //move west, then south\n\t\t\t\t\treturn (cellNumber + 2*getGridWidth() - 1);\n\t\t\t\t}\n\t\t\t\tif (cellNumber % getGridWidth() != (getGridWidth()-1)) { //move south, then west\n\t\t\t\t\treturn (cellNumber % getGridWidth() - 1);\n\t\t\t\t}\n\t\t\t\treturn (0); //lower left corner\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t}", "public void moveToDestination(Move move) {\r\n\t\tx = move.getToX();\r\n\t\ty = move.getToY();\r\n\r\n\t}", "public void move(FightCell cell);", "public void moveDown()\n\t{\n\t\ty = y + STEP_SIZE;\n\t}", "public void compactUp() {\n\t// Iteramos a través del tablero partiendo de la primera fila\n\t// y primera columna. Si esta contiene un 0 y la fila posterior\n\t// de la misma columna es distinta de 0, el valor se intercambia.\n\t// El proceso se repite hasta que todas las posiciones susceptibles\n\t// al cambio se hayan comprobado.\n\tfor (int i = 0; i < board.length; i++) {\n\t for (int j = 0; j < board.length - 1; j++) {\n\t\tif (board[j][i] == EMPTY && board[j + 1][i] != EMPTY) {\n\t\t board[j][i] = board[j + 1][i];\n\t\t board[j + 1][i] = EMPTY;\n\t\t compactUp();\n\t\t}\n\t }\n\t}\n }", "public void moveRight() {\n\t\tif (x1 < 24 && x2 < 24 && x3 < 24 && x4 < 24) {\n\t\t\tclearPiece();\n\t\t\tx1 += 1;\n\t\t\tx2 += 1;\n\t\t\tx3 += 1;\n\t\t\tx4 += 1;\n\t\t\tsetPiece();\n\t\t\trepaint();\n\t\t}\n\t}", "public void movePiece(Location a, Location b)\n {\n Square s1 = getSquare(a);\n Square s2 = getSquare(b);\n Piece p = s1.getPiece();\n if (p==null)\n return;\n int moveType = canMoveTo(p,b);\n boolean taking = getPiece(b)!=null;\n boolean fiftyMoveBreak = getPiece(b)!=null||p.getType()==Type.PAWN;\n s2.setPiece(s1.removePiece());\n p.setHasMoved(true);\n if (p.getType()==Type.PAWN)\n {\n if (mainBoard&&((p.white()&&getLocation(p).getRow()==0)\n || !p.white()&&getLocation(p).getRow()==7))\n promotePawn(p);\n else if (moveType==EN_PASSANT)\n {\n int row = a.getRow();\n int col = b.getCol();\n removePiece(new Location(row,col));\n taking = true;\n }\n }\n else if (moveType==KINGSIDE_CASTLING||moveType==QUEENSIDE_CASTLING)\n {\n Location rookLoc;\n Location rookDest;\n if (moveType==KINGSIDE_CASTLING)\n {\n rookLoc = b.farther(Direction.EAST);\n rookDest = b.farther(Direction.WEST);\n }\n else\n {\n rookLoc = new Location(b.getRow(),b.getCol()-2);\n rookDest = b.farther(Direction.EAST);\n }\n //movePiece(getLocation(rook),rookDest);\n getSquare(rookDest).setPiece(removePiece(rookLoc)); //moves the rook\n }\n if (mainBoard)\n {\n turn++;\n if (fiftyMoveBreak)\n fiftyMove= 0;\n else fiftyMove++;\n }\n for (Piece piece: getPieces())\n piece.setHasJustMoved(false);\n p.setHasJustMoved(true);\n if (mainBoard)\n {\n positions.add(toString());\n \n //this is all for the notation on the side\n notateMove(p,b,moveType,taking);\n /*JTable not = frame.getNotation();\n DefaultTableModel d = (DefaultTableModel)not.getModel();\n String notation;\n PieceColor color = p.getColor();\n if (color==PieceColor.WHITE)\n notation = turn/2+1+\". \"; //the turn number first, on the left\n else notation = \"\";\n if (moveType==QUEENSIDE_CASTLING)\n notation += \"0-0-0\";\n else if (moveType==KINGSIDE_CASTLING)\n notation += \"0-0\";\n else //normal move\n {\n if (p.getType()!=Type.PAWN)\n notation+=p.getType().toNotation(); //the type of piece (K,N,R,etc)\n if (taking)\n notation+=\"x\"; //this is if the move involves taking\n notation+=Location.LocToNot(b);\n }\n if (checkmate(colorGoing())) //notates # for checkmate\n notation+=\"#\";\n else if (inCheck(colorGoing())) //notates + for check\n notation+=\"+\";\n \n if (color==PieceColor.WHITE)\n d.addRow(new Object[]{notation,\"\"});\n else \n d.setValueAt(notation, (turn-1)/2, 1);*/\n }\n }", "public void moveDown() {\n\t\tstate.updateFloor(state.getFloor()-1);\n\t}", "public void compactDown() {\n\t// Iteramos a través del tablero partiendo de la primera fila\n\t// y última columna. Si esta contiene un 0 y la fila anterior\n\t// de la misma columna es distinta de 0, el valor se intercambia.\n\t// El proceso se repite hasta que todas las posiciones susceptibles\n\t// al cambio se hayan comprobado.\n\tfor (int i = 0; i < board.length; i++) {\n\t for (int j = board.length - 1; j > 0; j--) {\n\t\tif (board[j][i] == EMPTY && board[j - 1][i] != EMPTY) {\n\t\t board[j][i] = board[j - 1][i];\n\t\t board[j - 1][i] = EMPTY;\n\t\t compactDown();\n\t\t}\n\t }\n\t}\n }", "@Override\n public void act()\n {\n Location loc = getLocation();\n int r = loc.getRow();\n int c = loc.getCol();\n int dir = getDirection();\n if(dir == Location.NORTH)\n {\n if(r - START_ROW + 1 > -2*(address & ADDRESS))\n {\n move();\n }\n else\n {\n setDirection(Location.WEST);\n }\n }\n else if(dir == Location.WEST)\n {\n if(c <= RETURN_COL)\n {\n setDirection(Location.SOUTH);\n }\n else\n {\n Bit b = null;\n Actor a = getGrid().get(loc.getAdjacentLocation(Location.SOUTH));\n if(a instanceof Bit) b = (Bit)a;\n if(b != null)\n {\n processBit(b,-c-1);\n }\n move();\n }\n }\n else if(dir == Location.SOUTH)\n {\n if(r == -1)\n {\n setDirection(Location.EAST);\n }\n else\n {\n move();\n }\n }\n else if(dir == Location.EAST)\n {\n move();\n }\n else\n {\n System.err.println(\"yer bus is on an angle bud\");\n }\n }", "private void shiftDownTiles(boolean isBorder, int shiftAmount){\n List<Tile> listOfTilesToUpdate = new ArrayList<Tile>();\n int floorRowIndex;\n if(isBorder){\n floorRowIndex=this.board.gridHeight-2;\n } else {\n floorRowIndex=this.board.gridHeight-1;\n }\n\n\n //update all existing tiles y coordinates with shifted y coordinates\n //only shift tile above the row that is being removed\n for(int rowIndex=0; rowIndex<this.rowToBeRemovedIndex; rowIndex++){\n for(int colIndex=0; colIndex<this.board.gridWidth; colIndex++){\n if(this.board.getTile(colIndex,rowIndex)!=null){ //tile exist at coordinates\n if(isBorder){\n if(rowIndex<=floorRowIndex){ //Stop at floor wall\n int leftWallIndex=0;\n int rightWallIndex=this.board.gridWidth-1;\n if(colIndex>leftWallIndex && colIndex<rightWallIndex){ //Ignore the the left and right walls\n Tile tile = this.board.getTile(colIndex,rowIndex);\n tile.rowIndex+=shiftAmount;\n tile.setCoordinates(tile.columnIndex,tile.rowIndex);\n listOfTilesToUpdate.add(tile);\n }\n }\n } else {\n Tile tile = this.board.getTile(colIndex,rowIndex);\n tile.rowIndex+=shiftAmount;\n tile.setCoordinates(tile.columnIndex,tile.rowIndex);\n listOfTilesToUpdate.add(tile);\n }\n }\n }\n }\n\n //Clear Board Grid. Set every element in 2D array to null.\n for(int rowIndex=0; rowIndex<this.board.gridHeight; rowIndex++){\n for(int colIndex=0; colIndex<this.board.gridWidth; colIndex++){\n Tile tile = this.board.getTile(colIndex, rowIndex);\n this.board.removeTile(tile);\n }\n }\n\n //add back tetris border\n if(this.includeTetrisBorder) {\n addBorder();\n }\n\n //Insert new tiles\n for(Tile newTile : listOfTilesToUpdate){\n this.board.placeTile(newTile);\n }\n }", "public void move() {\r\n\t\tthis.vector2D = this.vector2D.add(Direction.DOWN.getUnitVector());\r\n\t}", "public void move()\r\n\t{\r\n\t\ty-=8;\r\n\t}", "protected void moveToInvisible(TableColumnExt col) {\r\n isVisibilityChange = true;\r\n super.removeColumn(col);\r\n isVisibilityChange = false;\r\n }", "private void prepareBoard(){\n gameBoard.arrangeShips();\n }", "public void traspose() {\n for (int row = 0; row < this.numberOfRows(); row++) {\n for (int col = row; col < this.numberOfCols(); col++) {\n double value = this.get(row, col);\n this.set(row, col, this.get(col, row));\n this.set(col, row, value);\n }\n }\n }", "@Test\n public void testMovePlayerToCell()\n {\n theEngine.start();\n assertTrue(theEngine.inPlayingState());\n \n assertFalse(getThePlayer().getLocation() == getEmptyCell());\n movePlayerToCell(getEmptyCell());\n assertEquals(getThePlayer().getLocation(), getEmptyCell());\n }", "public void move(Cell[][] board) {\n Cell[] nextCells = generateNeighbors(this.x, this.y);\n Cell nextCell = nextCells[rand.nextInt(4)];\n if (!this.objectFound) {\n if (nextCell != null && nextCell.isOccupied() && nextCell.occupiedBy instanceof Integer) {\n this.objectFound = true;\n this.goal = nextCell;\n } else if (nextCell != null && !nextCell.isOccupied()) {\n synchronized (board[this.x][this.y]) {\n board[this.x][this.y].resetCell();\n nextCell.occupiedBy = this;\n }\n }\n } else {\n // bfs to location\n System.out.println(\"BFS to goal\");\n }\n }", "public void adjustDown() {\n\n for (int y = 0; y < MAP_HEIGHT; y++)\n for (int x = 0; x < MAP_WIDTH; x++) {\n tiles[x][y].y = tiles[x][y].y + 4;\n backGroundTiles[x][y].y = backGroundTiles[x][y].y + 4;\n grassTiles[x][y].y = grassTiles[x][y].y + 4;\n }\n }", "private void moveMhos() {\n\t\tmoveAllignedMhos();\n\t\tmoveDiagonalMhos();\n\t\tmoveHorizontalMhos();\n\t\tmoveVerticalMhos();\n\t\tmoveRemainingMhos();\n\t\tupdateMhoLocationList();\n\t}", "@Override\n public void move(int col) throws ColumnFullException, IllegalColumnException {\n //handle exceptions\n if (col < 0 || col >= NUM_COLS) {\n throw new IllegalColumnException(col);\n }\n if (isColumnFull(col)) {\n throw new ColumnFullException(col);\n }\n\n //loop to next empty space in the col\n //catch errors\n int j = 0;\n try {\n while (getCounterAt(col, j) != EMPTY) {\n j++;\n }\n } catch (IllegalColumnException e) {\n System.out.println(e + \" in MyGameState.java Method move\");\n\n } catch (IllegalRowException e) {\n System.out.println(e + \" in MyGameState.java Method move\");\n }\n\n //set the found position to the current turn\n board[j][col] = whoseTurn();\n //change the turn\n changeTurn();\n //update the last position that was set\n lastPlacedRow = j;\n lastPlacedCol = col;\n\n\n }", "private void setEndLocation() {\n switch (direction) {\n case UP:\n case DOWN:\n componentToMove.setLocation(posX, Direction.UP == direction ? Math.min(endPosition, posY) : Math.max(endPosition, posY));\n break;\n default:\n componentToMove.setLocation(Direction.LEFT == direction ? Math.min(endPosition, posX) : Math.max(endPosition, posX), posY);\n }\n }", "public void stitchCells(ACell right, ACell down) {\r\n this.right = right;\r\n right.left = this;\r\n\r\n this.bottom = down;\r\n down.top = this;\r\n }", "public void undoMove(Move move) {\n b[move.from.row][move.from.column] = true;\r\n\r\n // Set 'to' space to free\r\n b[move.to.row][move.to.column] = false;\r\n\r\n // Set 'step' space to occupied\r\n b[(move.from.row + move.to.row)/2][(move.from.column + move.to.column)/2] = true;\r\n\r\n // Increment number of pegs left on the board\r\n pegsLeft++;\r\n }", "public void move(){\n \n currentFloor = currentFloor + ( 1 * this.direction);\n //if we're at the bottom or top after move, flip the bit\n if(Elevator.MIN_FLOOR == currentFloor \n || currentFloor == Elevator.MAX_FLOOR)\n this.direction *= -1;\n \n if(destinedPassengers[ currentFloor ] > 0)\n elevatorStop( currentFloor, true );\n \n if(building.floor(currentFloor).passengersWaiting() > 0)\n elevatorStop(currentFloor, false);\n \n }", "public void move(int fromRow, int fromColumn, int toRow, int toColumn) {\n ImmutablePair<Integer, Integer> from = new ImmutablePair<>(fromRow, fromColumn);\n ImmutablePair<Integer, Integer> to = new ImmutablePair<>(toRow, toColumn);\n // Step 2. Generating move action\n ShiftChipAction moveAction = new ShiftChipAction(getPlayer(), from, to);\n // Step 3. Actually performing action\n perform(moveAction);\n }", "public void move() {\n if (this.nextMove.equals(\"a\")) { // move down\n this.row = row + 1;\n progress += 1;\n if (progress == steps) {\n nextMove = \"b\";\n progress = 0;\n }\n } else if (this.nextMove.equals(\"b\")) { // move right\n this.col = col + 1;\n progress += 1;\n if (progress == steps) {\n nextMove = \"c\";\n progress = 0;\n }\n } else if (this.nextMove.equals(\"c\")) { // move up\n this.row = row - 1;\n progress += 1;\n if (progress == steps) {\n nextMove = \"a\";\n progress = 0;\n }\n }\n }", "public WritableCell copyTo(int col, int row)\r\n/* 179: */ {\r\n/* 180:319 */ Assert.verify(false);\r\n/* 181:320 */ return null;\r\n/* 182: */ }" ]
[ "0.6291503", "0.61202097", "0.6107141", "0.60748297", "0.59823835", "0.5971808", "0.58881545", "0.57934767", "0.57793415", "0.5693965", "0.5637862", "0.56038487", "0.55827194", "0.558069", "0.5574306", "0.5573342", "0.55596405", "0.55549455", "0.55440176", "0.55342185", "0.55128306", "0.55092686", "0.550516", "0.5491572", "0.5461393", "0.54602194", "0.54485947", "0.54430234", "0.5439265", "0.5439263", "0.5423937", "0.54212224", "0.54180086", "0.5405035", "0.5401898", "0.53978527", "0.53916425", "0.53869766", "0.53802437", "0.53790927", "0.5373531", "0.5370764", "0.5363999", "0.53630537", "0.5348319", "0.5330606", "0.53202915", "0.5311245", "0.5305899", "0.52906066", "0.52690446", "0.52662474", "0.52650666", "0.52528363", "0.5250261", "0.52428895", "0.52412844", "0.52315384", "0.5231529", "0.5227696", "0.52091426", "0.5209135", "0.52050173", "0.52047396", "0.5203786", "0.52019846", "0.5200746", "0.5197242", "0.5193252", "0.518993", "0.51760864", "0.517153", "0.51710355", "0.51659954", "0.5165046", "0.51622725", "0.51607245", "0.5159941", "0.51548177", "0.51536435", "0.5151106", "0.5149994", "0.51477134", "0.51468647", "0.51438683", "0.5141728", "0.5139655", "0.51277375", "0.51271755", "0.5125555", "0.51234835", "0.51198727", "0.51171744", "0.5115431", "0.51131326", "0.5103075", "0.5101427", "0.50967056", "0.5095293", "0.50944805", "0.5088951" ]
0.0
-1
Move this bug to the cell to its right.
public boolean moveRight() { if (position.isLinked(position.getEast())) { position.getGameObjects().remove(this.type); position = position.getEast(); position.getGameObjects().add(this.type); return true; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void moveRight() {\n this.position.addColumn(1);\n }", "public void moveRight()\n\t{\n\t\tcol++;\n\t}", "public void moveRight() {\n if (rec.getUpperLeft().getX() + rec.getWidth() + 5 > rightBorder) {\n rec.getUpperLeft().setX(rightBorder - rec.getWidth());\n } else {\n rec.getUpperLeft().setX(rec.getUpperLeft().getX() + 5);\n }\n }", "public void moveRight() {\r\n\t\tif (x < space.getSize() - 1) x++; \r\n\t}", "public void moveRight() {\n\t\tif (x1 < 24 && x2 < 24 && x3 < 24 && x4 < 24) {\n\t\t\tclearPiece();\n\t\t\tx1 += 1;\n\t\t\tx2 += 1;\n\t\t\tx3 += 1;\n\t\t\tx4 += 1;\n\t\t\tsetPiece();\n\t\t\trepaint();\n\t\t}\n\t}", "public void moveRight()\n {\n if (!this.search_zone.isRightBorder(this.x_position))\n {\n this.x_position = (this.x_position + 1);\n }\n }", "public void moveRight()\n\t{\n\t\tx = x + STEP_SIZE;\n\t}", "public void right(){\n\t\tmoveX=1;\n\t\tmoveY=0;\n\t}", "public void moveRight() {\n locX = locX + 1;\n }", "public void moveRight() {\n this.accelerateXR();\n this.moveX(this.getxSpeed());\n this.setPicX(0);\n this.setPicY(74);\n this.setLoopCells(true);\n }", "void moveRight() {\n\t\tsetX(x+1);\r\n\t\tdx=1;\r\n\t\tdy=0;\r\n\t}", "public void moveLeft()\n\t{\n\t\tcol--;\n\t}", "public void moveRight() {\n if (xcoor <= Game.widthOfGameBoard - movingSpeed) {\n xcoor = xcoor + movingSpeed * 2;\n }\n }", "public void right () {\n Grid<Actor> gr = getGrid();\n if (gr == null)\n return;\n Location loc = getLocation();\n Location next = loc.getAdjacentLocation(Location.EAST);\n if (canMove(next)) {\n moveTo(next);\n }\n }", "public void moveRight() {\n\t\t\n\t}", "public void moveRight() {\n\t\tsetPosX(getPosX() + steps);\n\t}", "public void moveRight() {\n Coordinate rightCoord = new Coordinate(getX() + 1, getY());\n handleMove(rightCoord, InteractionHandler.RIGHT);\n }", "protected void right() {\n move(positionX + 1, positionY);\n orientation = 0;\n }", "public void moveRight()\n\t{\n\t\tmoveRight = true;\n\t}", "public Vertex moveRight() {\n for (Edge e : current.outEdges) {\n move(e.to.x == current.x + 1, e);\n }\n return current;\n }", "public void moveRight() {\r\n\t\r\n\t\tint rightSteps=10;\r\n\t\t\ttopX+= rightSteps;\r\n\t}", "public void moveRight()\n {\n if (xPos == xBound)\n {\n movementY = 0;\n movementX = 0;\n }\n\n // Set the movement factor - positive X because we are moving RIGHT! \n movementX = 0.5;\n movementY = 0;\n }", "private void cursorMoveRightest() {\n\t\td(\"Warn cursorMoveRightest() NOT implemented\");\r\n\t}", "public void moveRight(){\n if(currentText != null) {\n //The saved character index should no longer be restored\n savedCharacterIndex = -1;\n\n //Try to move the cursor\n characterIndex += 1;\n //If the cursor did not wrap onto a new line then update it's position\n if (characterIndex < currentText.getCharacterEdges().length) {\n updateXPosition(true);\n }\n //If the cursor wrapped onto a new line\n else {\n //If this was not the very last line move to the beginning of the next line\n if (lineIndex < texts.size() - 1) {\n lineIndex++;\n currentText = texts.get(lineIndex);\n characterIndex = 0;\n updatePosition();\n }\n //If this is the last line character index should not change and position does not need to be updated\n else {\n characterIndex = currentText.getCharacterEdges().length - 1;\n }\n }\n }\n }", "private void right(int pos) {\n while (pos > gapLeft) {\n gapLeft++;\n gapRight++;\n buffer[gapLeft-1] = buffer[gapRight];\n buffer[gapRight] = '\\0';\n }\n }", "public void moveRight(){\n myRectangle.setX(myRectangle.getX() + PADDLE_SPEED);\n }", "public void moveSpaceShipRight() {\n\t\tSpaceship sp = getTheSpaceship();\n\t\tsp.moveRight();\n\t}", "public void goRight() {\n\t\tx += dx;\n\t\tbgBack.setDx(false);\n\t\tbgBack.move();\n\t\tif(x > Game.WIDTH - 200) {\n\t\t\tif(!bgBack.getReachEnd()) {\n\t\t\t\tx = Game.WIDTH - 200;\n\t\t\t\tbgFront.setDx(false);\n\t\t\t\tbgFront.move();\n\t\t\t}\n\t\t\telse if(x > Game.WIDTH - 50) {\n\t\t\t\tx = Game.WIDTH - 50;\n\t\t\t}\n\t\t}\n\t}", "private void right() {\n lastMovementOp = Op.RIGHT;\n rotate(TURNING_ANGLE);\n }", "void moveRight() {\n\t\ttry {\n\t\t\twhile(x + 60 < getWidth()) {\n\t\t\t\tx += 10;\n\t\t\t\twin.repaint();\n\t\t\t\tThread.sleep(100);\n\t\t\t}\n\t\t} catch(InterruptedException e) {\n\t\t}\n\t}", "public void compactRight() {\n\t// Iteramos a través del tablero partiendo de la primera fila\n\t// y última columna. Si esta contiene un 0 y la columna anterior\n\t// de la misma fila es distinta de 0, el valor se intercambia.\n\t// El proceso se repite hasta que todas las posiciones susceptibles\n\t// al cambio se hayan comprobado.\n\n\tfor (int i = 0; i < board.length; i++) {\n\t for (int j = board.length - 1; j > 0; j--) {\n\t\tif (board[i][j] == EMPTY && board[i][j - 1] != EMPTY) {\n\t\t board[i][j] = board[i][j - 1];\n\t\t board[i][j - 1] = EMPTY;\n\t\t compactRight();\n\t\t}\n\t }\n\t}\n }", "public boolean moveRight() {\r\n\t\tif (this.x >= 1050 == true) {\r\n\t\t\treturn false;\r\n\t\t} else {\r\n\t\t\tthis.x += 5;\r\n\t\t\treturn true;\r\n\t\t}\r\n\t}", "@Override\n\tpublic void moveRight()\n\t{\n\t\tif (!isAtEnd()) left.push(right.pop());\n\t}", "public void moveShiftRight();", "public void moveRight() {\n for(int i=0;i<this.body.size();i++){\n// TranslateTransition translate = new TranslateTransition();\n// translate.setNode(this.body.get(i));\n// smoothSnake obj=new smoothSnake();\n// obj.swiftSnake(translate,i,this,1);\n this.body.get(i).setCenterX(this.body.get(i).getCenterX()+10);\n }\n\n \tsetScoreText();\n }", "public void adjustRight() {\n\n for (int y = 0; y < MAP_HEIGHT; y++)\n for (int x = 0; x < MAP_WIDTH; x++) {\n tiles[x][y].x = tiles[x][y].x + 4;\n backGroundTiles[x][y].x = backGroundTiles[x][y].x + 4;\n grassTiles[x][y].x = grassTiles[x][y].x + 4;\n }\n\n }", "private void handleRight() {\r\n\t\tcontroller.getCurrentPosition().realocate((controller.getCurrentPosition().getY()), controller.getCurrentPosition().getX()+1);\r\n\t\t// if User reaches the end of the board reset position\r\n\t\tif(controller.getCurrentPosition().getX()== controller.getNumberColumns()-1) {\r\n\t\t\tcontroller.getCurrentPosition().realocate((controller.getCurrentPosition().getY()), 0);\r\n\t\t}\r\n\t\t// remove the pseudo Class from all nodes so that only the cell that was pressed last looks 'pressed'\r\n\t\tfor (Node n : controller.getGridBoard().getChildren()) {\r\n\t\t\t((StackPane) n).pseudoClassStateChanged(PseudoClass.getPseudoClass(\"pressed\"), false);\r\n\t\t\tif (GridPane.getColumnIndex(n) == controller.getCurrentPosition().getX() && GridPane.getRowIndex(n) == controller.getCurrentPosition().getY()) {\r\n\t\t\t\t((StackPane) n).pseudoClassStateChanged(PseudoClass.getPseudoClass(\"pressed\"), true);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void moveTileRight(float delta) {\n if (x < destinationX - COMBAT_MOVEMENT_SPEED * delta) speedX = COMBAT_MOVEMENT_SPEED;\n else {\n speedX = (destinationX - x) / delta;\n isMoving = false;\n isMovingRight = false;\n }\n direction = Direction.RIGHT;\n }", "protected void refillRight(){\n\t\tif(!shouldRepeat && isSrollingDisabled) return; //prevent next layout calls to override override first init to scrolling disabled by falling to this branch\n\t\tif(getChildCount() == 0) return;\n\t\t\n\t\tfinal int leftScreenEdge = getScrollX();\n\t\tfinal int rightScreenEdge = leftScreenEdge + getWidth();\n\t\t\n\t\tView child = getChildAt(getChildCount() - 1);\n\t\tint right = child.getRight();\n\t\tint currLayoutLeft = right + ((LoopLayoutParams)child.getLayoutParams()).rightMargin;\n\t\twhile(right < rightScreenEdge){\n\t\t\tmLastItemPosition++;\n\t\t\tif(mLastItemPosition >= mAdapter.getCount()) mLastItemPosition = 0;\n\t\t\t\n\t\t\tchild = mAdapter.getView(mLastItemPosition, getCachedView(), this);\n Validate.notNull(child,\"Your adapter has returned null from getView.\");\n\t\t\tchild = addAndMeasureChildHorizontal(child, LAYOUT_MODE_AFTER);\n\t\t\tcurrLayoutLeft = layoutChildHorizontal(child, currLayoutLeft, (LoopLayoutParams) child.getLayoutParams());\n\t\t\tright = child.getRight();\n\t\t\t\n\t\t\t//if selected view is going to screen, set selected state on him\n\t\t\tif(mLastItemPosition == mSelectedPosition){\n\t\t\t\tchild.setSelected(true);\n\t\t\t}\n\t\t}\n\t}", "public void right() {\n if (x + movementSpeed < 450) {\r\n x = x + movementSpeed;\r\n }\r\n }", "@Override\n\tpublic boolean moveRight() {\n\t\tboolean rs = super.moveRight();\n\t\tif(rs == true){\n\t\t}\n\t\treturn rs;\n\t}", "private boolean slideRight()\n {\n if (blankCol == 0) {\n return false;\n }\n board[blankRow][blankCol] = board[blankRow][blankCol - 1];\n board[blankRow][blankCol - 1] = 0;\n blankCol -= 1;\n return true;\n }", "private void moveRightLeft(int Width) {\n if (goingRight) {\n if (getX() + wolfWidth >= Width) turnAround();\n else setX(getX() + Width / 40);\n } else {\n if (getX() <= 0) turnAround();\n else setX(getX() - Width / 40);\n }\n }", "public void moveRight() {\n if (!this.state.equals(\"onRightWall\")) {\n this.dir = 1;\n this.xTargetSpeed = this.X_MAX_SPEED;\n }\n }", "public void justifyRight() {\n\t\tleft.right();\n\t}", "@Test\n void RookMoveRight() {\n Board board = new Board(8, 8);\n Piece rook = new Rook(board, 2, 2, 1);\n\n board.getBoard()[2][2] = rook;\n\n board.movePiece(rook, 4, 2);\n\n Assertions.assertEquals(rook, board.getBoard()[4][2]);\n Assertions.assertNull(board.getBoard()[2][2]);\n }", "protected void left() {\n move(positionX - 1, positionY);\n orientation = BattleGrid.RIGHT_ANGLE * 2;\n }", "void moveRight();", "public void moveRight() {\n\t\tposX += speed;\n\t}", "public void moveRight() {\n \t\n \tif(!move.moveRight()) {\n \t\tif(physinteractor(getX()+1,getY())) {\n \t\t\tmove.moveRight();\n \t\t\tnonphysinteractor(getX(),getY());\n \t\t\tupdatemove();\n \t\t}\n }else {\n \t//System.out.print(\"I moved right\" + getX() + getY());\n \tupdatemove();\n \tnonphysinteractor(getX(),getY());\n }\n }", "public void moveCursorRight();", "private void shiftRightToLeft(int colNum, int rowNum, FloorTile tile, int rotation) {\n shiftTilesRightToLeft(colNum, rowNum, tile, rotation);\n shiftPlayerPiecesRightToLeft(rowNum);\n }", "public boolean slideRight() {\n\t\tif (currentCol < COLS - 1) {\n\t\t\tboard[currentRow][currentCol] = board[currentRow][currentCol + 1];\n\t\t\tcurrentCol++;\n\t\t\tboard[currentRow][currentCol] = '0';\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "public void moveDown()\n\t{\n\t\trow--;\n\t}", "public void right() {\n\t\tstate.right();\n\t}", "public void moveRight(){\n\t\tif(GameSystem.TWO_PLAYER_MODE){\n\t\t\tif(Game.getPlayer2().dying){\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tif(animation==ANIMATION.DAMAGED||Game.getPlayer().dying||channelling||charging) return;\n\t\tmoving=true;\n\t\tbuttonReleased=false;\n\t\torientation=ORIENTATION.RIGHT;\n\t\tif(animation!=ANIMATION.MOVERIGHT) {\n\t\t\tanimation=ANIMATION.MOVERIGHT;\n\t\t\tif(run!=null) sequence.startSequence(run);\n\t\t}\n\t\tfacing=FACING.RIGHT;\n\t\tdirection=\"right\";\n\t\tsetNextXY();\n\t\tsetDestination(nextX,nextY);\n\t\tvelX=spd/2;\n\t\tvelY=0;\n\t}", "protected void down() {\n move(positionX, positionY + 1);\n orientation = BattleGrid.RIGHT_ANGLE;\n }", "private void shiftLeftToRight(int colNum, int rowNum, FloorTile tile, int rotation) {\n shiftTilesLeftToRight(colNum, rowNum, tile, rotation);\n shiftPlayerPiecesLeftToRight(rowNum);\n }", "public FallingPiece moveRight(){\r\n return new FallingPiece(coord.moveRight(), innerPiece);\r\n }", "private void shiftPlayerPiecesRightToLeft(int rowNum) {\n for (int i = 0; i < playerPiecePositions.length; i++) {\n Position pos = playerPiecePositions[i];\n if (pos.getRowNum() == rowNum) {\n playerPiecePositions[i] = nextPositionRightToLeft(pos);\n playerPieces[i].addPreviousPlayerPosition(pos);\n }\n }\n }", "public boolean right() {\r\n if( col >= MAXCOLS-1) return false;\r\n ++col;\r\n return true;\r\n }", "private void turnRight() {\n\n if(currentPosition.getX() == -1 && currentPosition.getY() == -1) {\n System.out.println(\"Robot is not placed, yet.\");\n return;\n }\n\n Position.Direction direction = currentPosition.getDirection();\n switch (direction) {\n case EAST:\n direction = Position.Direction.SOUTH;\n break;\n case WEST:\n direction = Position.Direction.NORTH;\n break;\n case NORTH:\n direction = Position.Direction.EAST;\n break;\n case SOUTH:\n direction = Position.Direction.WEST;\n break;\n }\n\n currentPosition.setDirection(direction);\n }", "public void goRight()\r\n\t{\r\n\t\tthis.X++;\r\n\t}", "@Override\n\tpublic void run() {\n\t\tmoveRight();\n\t}", "public Location right() {\n return new Location(row, column + 1);\n\n }", "public void moveRight() {\n this.velocity = this.velocity.add(rightVelocity());\n }", "public void moveAsteroidLeftToRight() {\t\r\n\t\tsetY(this.getY()+1);\r\n\t}", "private Position nextPositionRightToLeft(Position pos) {\n return (pos.getColNum() == 0\n ? new Position(pos.getRowNum(), nCols - 1)\n : new Position(pos.getRowNum(), pos.getColNum() - 1));\n }", "private void shiftPlayerPiecesLeftToRight(int rowNum) {\n for (int i = 0; i < playerPiecePositions.length; i++) {\n Position pos = playerPiecePositions[i];\n if (pos.getRowNum() == rowNum) {\n playerPiecePositions[i] = nextPositionLeftToRight(pos);\n playerPieces[i].addPreviousPlayerPosition(pos);\n }\n }\n }", "public boolean moveRight() \r\n\t{\r\n\t\tboolean moved = false;\r\n\t\tif ( maze [currentRow] [currentCol].isOpenRight() )\r\n\t\t{\r\n\t\t\tmaze [currentRow] [currentCol].removeWalker(Direction.RIGHT);\r\n\t\t\tif ( currentCol+1 >= size || maze [currentRow] [currentCol+1].isOpenLeft() )\r\n\t\t\t{\r\n\t\t\t\tcurrentCol++;\r\n\t\t\t\tmoved = true;\r\n\t\t\t}\r\n\t\t\tif ( currentCol < size )\r\n\t\t\t\tmaze [currentRow] [currentCol].InsertWalker();\r\n\t\t}\r\n\t\tSystem.out.println( \"Move Right: \" + moved );\r\n\t\treturn moved;\r\n\t}", "private void moveRight(){\n if(getXFromCamera() > -10 && getXFromCamera() < 10){\n getWorld().moveCamera(speed);\n }\n setGlobalLocation(getGlobalX() + speed, getGlobalY());\n animationSpeedRight();\n }", "private void playerMoveRight()\n {\n this.getCurrentLevel().getInLevelLocation()[this.getCurrentX()][this.getCurrentY()].setHasPlayer(false);\n this.setCurrentX(getCurrentX() + 1);\n if (this.getCurrentX() < 11) {\n if (!nextIsWall()) {\n this.getCurrentLevel().getInLevelLocation()[this.getCurrentX()][this.getCurrentY()].setHasPlayer(true);\n } else {\n this.setCurrentX(this.getCurrentX() - 1);\n this.getCurrentLevel().getInLevelLocation()[this.getCurrentX()][this.getCurrentY()].setHasPlayer(true);\n }\n } else {\n this.setCurrentX(this.getCurrentX() - 1);\n this.getCurrentLevel().getInLevelLocation()[this.getCurrentX()][this.getCurrentY()].setHasPlayer(true);\n }\n }", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tLog.i(\"after\", \"\" + cellChildView.getLeft());\r\n\t\t\t\t\r\n\t\t\t}", "public void moveLeft() {\n locX = locX - 1;\n }", "public void turnRight() {\n\t\tthis.setSteeringDirection(getSteeringDirection()+5);\n\t}", "public void moveLeft()\n {\n if (this.x >= 2) {\n --x;\n } else {\n System.out.println(\"Move is outside of the field! Try again.\");\n }\n }", "public void punishment(){\n\t\tthis.cell = 0;\n\t}", "public void left(){\n\t\tmoveX=-1;\n\t\tmoveY=0;\n\t}", "public boolean checkRight()\n\t{\n\t\tif(col+1<=9)\n\t\t\treturn true;\n\t\treturn false;\n\t}", "public void moveLeft() {\n if (rec.getUpperLeft().getX() - 5 < leftBorder) {\n rec.getUpperLeft().setX(leftBorder);\n } else {\n rec.getUpperLeft().setX(rec.getUpperLeft().getX() - 5);\n }\n\n }", "private Cell get_right_cell(int row, int col) {\n return get_cell(row, ++col);\n }", "public void moveLeft() {\n this.x -= 10;\n repaint();\n }", "public void rotatePieceRight(){\r\n if (hasFalling()){\r\n FallingPiece test =falling.rotateRight();\r\n if (!moveIfNoConflict(test, falling))\r\n Kick(test, falling);\r\n if(isGhostActivated())\r\n \t\t\tgenerateGhost();\r\n }\r\n }", "public boolean moveRight() throws EatableObjectOnPlaceException {\r\n\t\tif (!treeOnRight() && !mouseOnRight()) {\r\n\t\t\tif (!onRightBorder(positionX)) {\r\n\t\t\t\tpositionX = positionX + 1;\r\n\t\t\t\teatPerformingStep();\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\treturn moveLeft();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public boolean moveLeft() {\n\t\tif (check(col-1, row)) {\n\t\t\tHiVolts.board.squares[row][col] = 0;\n\t\t\tcol = col - 1;\n\t\t\tHiVolts.board.squares[row][col] = 2;\n\t\t\tsuper.moveLeft();\n\t\t}\n\t\treturn true;\n\t}", "private void shiftTilesLeftToRight(int colNum, int rowNum, FloorTile tile, int rotation) {\n tile.rotate(rotation);\n for (int i = nCols - 1; i != 0; i--) {\n board[rowNum][i] = board[rowNum][i - 1]; // Right tile is now the tile to its left.\n\n if (activeEffects.get(new Position(rowNum, i - 1)) != null) {\n activeEffects.put(new Position(rowNum, i), activeEffects.get(new Position(rowNum, i - 1)));\n activeEffects.remove(new Position(rowNum, i - 1));\n }\n }\n board[rowNum][colNum + 1] = tile;\n }", "private Coordinate tileCoordinateForTileRight(GuiTile tile) {\n\t\treturn new Coordinate(tile.getScreenBottomX() / GuiTile.getScale() + GuiTile.getHalfWidth() * 2 + tileSepWidth(),\n\t\t\t\ttile.getScreenBottomY() / GuiTile.getScale());\n\t}", "private Cell[][] increaseWidthRight(Cell[][] oldgrid) {\n\n //Create new grid of new size\n Cell[][] newGrid = new Cell[this.width + 2][this.height];\n\n //Iterate through old grid and add cells\n for (int x = 0; x < this.width; x++) {\n System.arraycopy(oldgrid[x], 0, newGrid[x], 0, this.height);\n }\n\n //Populate new empty locations with dead cells\n for (int x = this.width; x < this.width + 2; x++) {\n for (int y = 0; y < this.height; y++) {\n newGrid[x][y] = new Cell(this, x, y, false);\n }\n }\n\n //Add 2 to the global width\n this.width += 2;\n\n return newGrid;\n\n }", "private Position nextPositionLeftToRight(Position pos) {\n return (pos.getColNum() == nCols - 1\n ? new Position(pos.getRowNum(), 0)\n : new Position(pos.getRowNum(), pos.getColNum() + 1));\n }", "private void shiftTilesRightToLeft(int colNum, int rowNum, FloorTile tile, int rotation) {\n tile.rotate(rotation);\n for (int i = 0; i < nCols - 1; i++) {\n board[rowNum][i] = board[rowNum][i + 1];\n if (activeEffects.get(new Position(rowNum, i + 1)) != null) {\n activeEffects.put(new Position(rowNum, i), activeEffects.get(new Position(rowNum, i + 1)));\n activeEffects.remove(new Position(rowNum, i + 1));\n }\n }\n board[rowNum][colNum - 1] = tile;\n }", "@Override\n \tpublic void move(int keycode) {\n \t\t\n \t\tif (keycode == Keyboard.KEY_D) {\n \t\t\tsetRight(true);\n \t\t} else if (keycode == Keyboard.KEY_A) {\n \t\t\tsetRight(false);\n \t\t}\n \t\t\n \t\tcheckBorders(keycode);\n \t\t\n \t\tif (checkCollisions(keycode))\n \t\t\tsuper.move(keycode);\n \t\t\n \t}", "public void moveLeft()\n\t{\n\t\tx = x - STEP_SIZE;\n\t}", "public void rotateRight() {\n\t\tthis.direction = this.direction.rotateRight();\n\t}", "public void turnRight() {\r\n setDirection( modulo( myDirection+1, 4 ) );\r\n }", "public void moveRight(int x){\r\n \tbox.translate(x,0);\r\n \tif (selfmove){ //if the frog is moving itself\r\n \t\timg = imgs[1]; //draw a moving animation\r\n \t\tdelay = 10; //for 10 frames\r\n \t}\r\n \t\r\n }", "public void moveRight() {\n speedX += (speedX < 0) ? acceleration * 2 : acceleration;\n if (speedX > maxSpeed) {\n speedX = maxSpeed;\n }\n direction = Direction.RIGHT;\n }", "public void shiftRangeFarRight() {\n Range r = new Range(getMaxRangeEnd() - getRange().getLength() + 1, getMaxRangeEnd());\n setLocation(r);\n }", "public void makeRightVisible() {\n makeCharVisible(getCursor().getRightLine(),getCursor().getRightColumn());\n }", "public void move() {\n\t\t\tar.setAhead(10 * fahrtrichtung);\n\n\t\t\t// Wie schnell sich der Roboter drehen soll\n\t\t\tar.setTurnRight(45 * drehrichtung);\n\t\t\tar.execute();\n\t\t\tfarbschema = farbschema * (-1);\n\t\t}", "private Node rotateRight() {\n Node left = this.leftChild;\n this.leftChild = left.rightChild;\n left.rightChild = this;\n\n this.updateHeight();\n left.updateHeight();\n\n return left;\n }", "private void moveRight(int index) {\n if (index != dataSize)\n for (int i = dataSize; i >= index; i--)\n array[i+1] = array[i];\n }" ]
[ "0.7623036", "0.72135437", "0.71182734", "0.7058453", "0.7031986", "0.6980251", "0.6972927", "0.69033897", "0.69005185", "0.6799685", "0.67368376", "0.6720953", "0.6710528", "0.65738225", "0.6561781", "0.65394753", "0.65109825", "0.65043205", "0.6498129", "0.63873494", "0.6352223", "0.633695", "0.6298882", "0.62862587", "0.62703395", "0.6196166", "0.6185352", "0.61560184", "0.6140942", "0.6127262", "0.61134106", "0.6109159", "0.61011577", "0.6059648", "0.6059516", "0.60502213", "0.6049882", "0.6043224", "0.6036976", "0.6029263", "0.6008314", "0.59898114", "0.59854627", "0.59809774", "0.5974889", "0.59651273", "0.59625995", "0.59580016", "0.5950517", "0.5939275", "0.59349656", "0.59298193", "0.5912925", "0.58993554", "0.58939064", "0.5879408", "0.5871775", "0.5869128", "0.58637077", "0.5856259", "0.5853108", "0.5849806", "0.5829234", "0.5826499", "0.5819995", "0.5807479", "0.58020484", "0.5799872", "0.57979846", "0.57957184", "0.5770235", "0.57699573", "0.5749067", "0.57350534", "0.572895", "0.57246405", "0.5719724", "0.5718259", "0.57161593", "0.56959873", "0.5685165", "0.5680411", "0.56612384", "0.5661156", "0.5641424", "0.56317604", "0.5614242", "0.56082493", "0.5607286", "0.5606015", "0.56006634", "0.55972815", "0.55962896", "0.5583276", "0.55699897", "0.55695", "0.556929", "0.55631757", "0.5553056", "0.55494034", "0.55441517" ]
0.0
-1
Move this bug to the cell to its left.
public boolean moveLeft() { if (position.isLinked(position.getWest())) { position.getGameObjects().remove(this.type); position = position.getWest(); position.getGameObjects().add(this.type); return true; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void moveLeft()\n\t{\n\t\tcol--;\n\t}", "public void moveLeft() {\n if (rec.getUpperLeft().getX() - 5 < leftBorder) {\n rec.getUpperLeft().setX(leftBorder);\n } else {\n rec.getUpperLeft().setX(rec.getUpperLeft().getX() - 5);\n }\n\n }", "public void moveLeft()\n {\n if (!this.search_zone.isLeftBorder(this.x_position))\n {\n this.x_position = (this.x_position - 1);\n }\n }", "public void moveLeft()\n\t{\n\t\tx = x - STEP_SIZE;\n\t}", "public void moveLeft() {\n this.accelerateXL();\n this.moveX(this.getxSpeed());\n this.setPicX(0);\n this.setPicY(141);\n this.setLoopCells(true);\n }", "public boolean moveLeft() {\n\t\tif (check(col-1, row)) {\n\t\t\tHiVolts.board.squares[row][col] = 0;\n\t\t\tcol = col - 1;\n\t\t\tHiVolts.board.squares[row][col] = 2;\n\t\t\tsuper.moveLeft();\n\t\t}\n\t\treturn true;\n\t}", "public void moveLeft() {\n locX = locX - 1;\n }", "public void moveLeft()\n {\n if (this.x >= 2) {\n --x;\n } else {\n System.out.println(\"Move is outside of the field! Try again.\");\n }\n }", "public void moveLeft() {\r\n\t\tif (x > 0) x--; \r\n\t}", "public void left () {\n Grid<Actor> gr = getGrid();\n if (gr == null)\n return;\n Location loc = getLocation();\n Location next = loc.getAdjacentLocation(Location.WEST);\n if (canMove(next)) {\n moveTo(next);\n }\n }", "void moveLeft() {\n\t\tsetX(x-1);\r\n\t\tdx=-1;\r\n\t\tdy=0;\r\n\t}", "public void moveLeft(){\n if(currentText != null) {\n //The saved character index should no longer be restored\n savedCharacterIndex = -1;\n\n //Try to move the cursor\n characterIndex -= 1;\n //If the cursor did not wrap onto a new line then update it's position\n if (characterIndex >= 0) {\n updateXPosition(true);\n }\n //If the cursor wrapped onto a new line\n else {\n //If this was not the very first line move to the end of the previous line\n if (lineIndex > 0) {\n lineIndex--;\n currentText = texts.get(lineIndex);\n characterIndex = currentText.getCharacterEdges().length - 1;\n if (characterIndex < 0) {\n characterIndex = 0;\n }\n updatePosition();\n }\n //If this is the first line character index should not change and position does not need to be updated\n else {\n characterIndex = 0;\n }\n }\n }\n }", "public void moveLeft() {\n Coordinate leftCoord = new Coordinate(getX() - 1, getY());\n handleMove(leftCoord, InteractionHandler.LEFT);\n }", "public Vertex moveLeft() {\n for (Edge e : current.outEdges) {\n move(e.to.x == current.x - 1, e);\n }\n return current;\n }", "public void moveLeft() {\n\t\tsetPosX(getPosX() - steps);\n\t}", "public void moveLeft() {\n this.x -= 10;\n repaint();\n }", "protected void left() {\n move(positionX - 1, positionY);\n orientation = BattleGrid.RIGHT_ANGLE * 2;\n }", "public void left(){\n\t\tmoveX=-1;\n\t\tmoveY=0;\n\t}", "public void moveRight() {\n this.position.addColumn(1);\n }", "public void moveLeft() {\r\n\t\t\r\n\t\tint leftSteps=10;\r\n\t\t\ttopX-= leftSteps;\r\n\t}", "void positionToStart () {\n currentRow = 0 - currentPiece.getOffset();\n currentColumn = board.columns / 2 - currentPiece.width / 2;\n }", "public void compactLeft() {\n\t// Iteramos a través del tablero partiendo de la primera fila\n\t// y primera columna. Si esta contiene un 0 y la columna posterior\n\t// de la misma fila es distinta de 0, el valor se intercambia.\n\t// El proceso se repite hasta que todas las posiciones susceptibles\n\t// al cambio se hayan comprobado.\n\tfor (int i = 0; i < board.length; i++) {\n\t for (int j = 0; j < board.length - 1; j++) {\n\t\tif (board[i][j] == EMPTY && board[i][j + 1] != EMPTY) {\n\t\t board[i][j] = board[i][j + 1];\n\t\t board[i][j + 1] = EMPTY;\n\t\t compactLeft();\n\t\t}\n\t }\n\t}\n }", "public void moveSpaceShipLeft() {\n\t\tSpaceship sp = getTheSpaceship();\n\t\tsp.moveLeft();\n\t}", "@Override\r\n\tpublic void moveLeft() {\n\t\tswitch(state) {\r\n\t\tcase 0: case 2:\r\n\t\t\t{\r\n\t\t\t\tboolean ok = true;\r\n\t\t\t\tfor(Case c: cases) {\r\n\t\t\t\t\tif(!grille.isEmpty(c.getX()+x-1, c.getY()+y))\r\n\t\t\t\t\t\tok = false;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(ok)\r\n\t\t\t\t\t--x;\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\tcase 1:\r\n\t\t{\r\n\t\t\tint x3 = cases.get(3).getX()-1, y3 = cases.get(3).getY();\r\n\t\t\tif(grille.isEmpty(x+x3, y+y3))\r\n\t\t\t\t--x;\r\n\t\t\t\r\n\t\t}\r\n\t\tbreak;\r\n\t\t\r\n\t\tcase 3:\r\n\t\t{\r\n\t\t\tint x0 = cases.get(0).getX()-1, y0 = cases.get(0).getY();\r\n\t\t\tif(grille.isEmpty(x+x0, y+y0))\r\n\t\t\t\t--x;\r\n\t\t}\r\n\t\tbreak;\r\n\t\t\r\n\t\tdefault : \r\n\t\t\treturn;\r\n\t\t}\r\n\t}", "public void moveTileLeft(float delta) {\n if (x > destinationX + COMBAT_MOVEMENT_SPEED * delta) speedX = -COMBAT_MOVEMENT_SPEED;\n else {\n speedX = (destinationX - x) / delta;\n isMoving = false;\n isMovingLeft = false;\n }\n direction = Direction.LEFT;\n }", "public void adjustLeft() {\n\n for (int y = 0; y < MAP_HEIGHT; y++)\n for (int x = 0; x < MAP_WIDTH; x++) {\n tiles[x][y].x = tiles[x][y].x - 4;\n backGroundTiles[x][y].x = backGroundTiles[x][y].x - 4;\n grassTiles[x][y].x = grassTiles[x][y].x - 4;\n }\n }", "public void moveLeft() {\n\t\t\n\t}", "protected void refillLeft(){\n\t\tif(!shouldRepeat && isSrollingDisabled) return; //prevent next layout calls to override first init to scrolling disabled by falling to this branch\n\t\tif(getChildCount() == 0) return;\n\t\t\n\t\tfinal int leftScreenEdge = getScrollX();\n\t\t\n\t\tView child = getChildAt(0);\n\t\tint childLeft = child.getLeft();\n\t\tint currLayoutRight = childLeft - ((LoopLayoutParams)child.getLayoutParams()).leftMargin;\n\t\twhile(currLayoutRight > leftScreenEdge){\n\t\t\tmFirstItemPosition--;\n\t\t\tif(mFirstItemPosition < 0) mFirstItemPosition = mAdapter.getCount()-1;\n\t\t\t\n\t\t\tchild = mAdapter.getView(mFirstItemPosition, getCachedView(), this);\n Validate.notNull(child,\"Your adapter has returned null from getView.\");\n\t\t\tchild = addAndMeasureChildHorizontal(child, LAYOUT_MODE_TO_BEFORE);\n\t\t\tcurrLayoutRight = layoutChildHorizontalToBefore(child, currLayoutRight, (LoopLayoutParams) child.getLayoutParams());\n\t\t\tchildLeft = child.getLeft() - ((LoopLayoutParams)child.getLayoutParams()).leftMargin;\n\t\t\t//update left edge of children in container\n\t\t\tmLeftChildEdge = childLeft;\n\t\t\t\n\t\t\t//if selected view is going to screen, set selected state on him\n\t\t\tif(mFirstItemPosition == mSelectedPosition){\n\t\t\t\tchild.setSelected(true);\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic void moveLeft()\n\t{\n\t\tif (!isAtStart()) right.push(left.pop());\n\n\t}", "public void moveLeft()\n {\n if (xPos == 0)\n {\n movementY = 0;\n movementX = 0;\n }\n\n // Set the movement factor - negative X because we are moving LEFT! \n movementX = -0.5;\n movementY = 0;\n }", "public void moveLeft() {\n \tif(!move.moveLeft()) {\n \t\tif(physinteractor(getX()-1,getY())) {\n \t\t\tmove.moveLeft();\n \t\t\tnonphysinteractor(getX(),getY());\n \t\t\tupdatemove();\n \t\t}\n }else {\n \tupdatemove();\n \tnonphysinteractor(getX(),getY());\n }\n }", "private Cell get_left_cell(int row, int col) {\n return get_cell(row, --col);\n }", "public boolean slideLeft() {\n\t\tif (currentCol > 0) {\n\t\t\tboard[currentRow][currentCol] = board[currentRow][currentCol - 1];\n\t\t\tcurrentCol--;\n\t\t\tboard[currentRow][currentCol] = '0';\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "public void moveLeft()\n\t{\n\t\tmoveLeft = true;\n\t}", "public boolean checkLeft()\n\t{\n\t\tif(col-1>=0)\n\t\t\treturn true;\n\t\treturn false;\n\t}", "private boolean slideLeft()\n {\n if (blankCol == SIZE - 1) {\n return false;\n }\n board[blankRow][blankCol] = board[blankRow][blankCol + 1];\n board[blankRow][blankCol + 1] = 0;\n blankCol += 1;\n return true;\n }", "public Location getLeft()\n\t{\n\t\tif(checkLeft())\n\t\t{\n\t\t\treturn new Location(row,col-1);\n\t\t}\n\t\treturn this;\n\t}", "public boolean moveLeft() \r\n\t{\r\n\t\tboolean moved = false;\r\n\t\tif ( maze [currentRow] [currentCol].isOpenLeft() )\r\n\t\t{\r\n\t\t\tmaze [currentRow] [currentCol].removeWalker(Direction.LEFT);\r\n\t\t\tif ( currentCol-1 < 0 || maze [currentRow] [currentCol-1].isOpenRight() )\r\n\t\t\t{\r\n\t\t\t\tcurrentCol--;\r\n\t\t\t\tmoved = true;\r\n\t\t\t}\r\n\t\t\tif ( currentCol >= 0 )\r\n\t\t\t\tmaze [currentRow] [currentCol].InsertWalker();\r\n\t\t}\r\n\t\tSystem.out.println( \"Move Left: \" + moved );\r\n\t\treturn moved;\r\n\t}", "private static int moveLeft()\n {\n int num_chocolates = choArr[baby.row][baby.column-1];\n // change both the choArr and baby position\n baby.column=baby.column-1;\n choArr[baby.row][baby.column]=0;\n return num_chocolates;\n }", "public boolean left() {\r\n if( col <= 0 ) return false;\r\n --col;\r\n return true;\r\n }", "public void moveLeft() {\n if (xcoor >= movingSpeed) {\n xcoor = xcoor - movingSpeed * 2;\n }\n }", "public Location left() {\n return new Location(row, column - 1);\n }", "private void left(int pos) {\n while (pos < gapLeft) {\n gapLeft--;\n gapRight--;\n buffer[gapRight+1] = buffer[gapLeft];\n buffer[gapLeft] = '\\0';\n }\n }", "public void moveLeft(){\n myRectangle.setX(myRectangle.getX() - PADDLE_SPEED);\n }", "private void moveLeft(){\n \n setGlobalLocation(getGlobalX() - speed, getGlobalY());\n animationSpeedLeft();\n }", "public boolean moveUpLeft() {\n\t\tif (check(col-1, row-1)) {\n\t\t\tHiVolts.board.squares[row][col] = 0; // set current location to nothing\n\t\t\tcol = col - 1; // get new x\n\t\t\trow = row - 1; // get new y\n\t\t\tHiVolts.board.squares[row][col] = 2; // set new location to avatar\n\t\t\tsuper.moveUpLeft(); // calls move function in piece\n\t\t}\n\t\treturn true;\n\t}", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tLog.i(\"after\", \"\" + cellChildView.getLeft());\r\n\t\t\t\t\r\n\t\t\t}", "public boolean moveLeft() {\r\n\t\tif (this.x <= 0 == true) {\r\n\t\t\treturn false;\r\n\t\t} else {\r\n\t\t\tthis.x -= 5;\r\n\t\t\treturn true;\r\n\t\t}\r\n\t}", "private void playerMoveLeft()\n {\n \n this.getCurrentLevel().getInLevelLocation()[this.getCurrentX()][this.getCurrentY()].setHasPlayer(false);\n this.setCurrentX(getCurrentX() - 1);\n if (this.getCurrentX() > -1) {\n if (!nextIsWall()) {\n this.getCurrentLevel().getInLevelLocation()[this.getCurrentX()][this.getCurrentY()].setHasPlayer(true);\n } else {\n this.setCurrentX(this.getCurrentX() + 1);\n this.getCurrentLevel().getInLevelLocation()[this.getCurrentX()][this.getCurrentY()].setHasPlayer(true);\n }\n } else {\n this.setCurrentX(getCurrentX() + 1);\n this.getCurrentLevel().getInLevelLocation()[this.getCurrentX()][this.getCurrentY()].setHasPlayer(true);\n }\n }", "private Cell[][] increaseWidthLeft(Cell[][] oldgrid) {\n\n //Create new grid of new size\n Cell[][] newGrid = new Cell[this.width + 2][this.height];\n\n //Iterate through old grid and add cells\n for (int x = 0; x < this.width; x++) {\n System.arraycopy(oldgrid[x], 0, newGrid[x + 2], 0, this.height);\n }\n\n //Populate new empty locations with dead cells\n for (int x = 0; x < 2; x++) {\n for (int y = 0; y < this.height; y++) {\n newGrid[x][y] = new Cell(this, x, y, false);\n }\n }\n\n //Add 2 to the global width\n this.width += 2;\n\n //Update the cells X and Y co-ordinates with new location\n newGrid = updateCellLocation(newGrid);\n\n return newGrid;\n }", "public void moveLeft() {\n if (!this.state.equals(\"onLeftWall\")) {\n this.dir = -1;\n this.xTargetSpeed = this.X_MAX_SPEED;\n }\n }", "private void handleLeft() {\r\n\t\tcontroller.getCurrentPosition().realocate((controller.getCurrentPosition().getY()), controller.getCurrentPosition().getX()-1);\r\n\t\t// if User reaches the end of the board reset position\r\n\t\tif(controller.getCurrentPosition().getX()==-1) {\r\n\t\t\tcontroller.getCurrentPosition().realocate((controller.getCurrentPosition().getY()), controller.getNumberColumns()-1);\r\n\t\t}\r\n\t\t// remove the pseudo Class from all nodes so that only the cell that was pressed last looks 'pressed'\r\n\t\tfor (Node n : controller.getGridBoard().getChildren()) {\r\n\t\t\t((StackPane) n).pseudoClassStateChanged(PseudoClass.getPseudoClass(\"pressed\"), false);\r\n\t\t\tif (GridPane.getColumnIndex(n) == controller.getCurrentPosition().getX() && GridPane.getRowIndex(n) == controller.getCurrentPosition().getY()) {\r\n\t\t\t\t((StackPane) n).pseudoClassStateChanged(PseudoClass.getPseudoClass(\"pressed\"), true);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public BoardCoordinate getLeft() {\n return new BoardCoordinate(x-1, y);\n }", "public void moveLeft(int pathCost) {\n\t\tList<Integer> exploringNodeState = this.getState();\n\t\tList<Integer> tempState = new ArrayList<>(exploringNodeState);\n\t\tint blankIndex = Utility.findIndex(exploringNodeState, 0);\n\t\tif ((blankIndex % EightPuzzle.columnCount) <= 0) {\n\t\t\treturn;\n\t\t}\n\t\tInteger elementToBeMoved = tempState.get(blankIndex - 1);\n\t\ttempState.set(blankIndex, elementToBeMoved);\n\t\ttempState.set(blankIndex - 1, 0);\n\t\tint edgeCost = (EightPuzzle.heuristicType == 1) ? calculateMisplacedTiles(tempState, EightPuzzle.goalState)\n\t\t\t\t: calculateManhattanDistance(tempState, EightPuzzle.goalState);\n\t\tList<Node> adjacentNodes = this.getAdjacentNodes();\n\t\tadjacentNodes.add(new Node(this, tempState, pathCost, edgeCost,\"left\"));\n\t\tthis.setAdjacentNodes(adjacentNodes);\n\t}", "private void moveLeft(int index) {\n for (int i = index; i < dataSize; i++) {\n array[i] = array[i + 1];\n }\n\n array[dataSize] = 0;\n }", "public CellIDExpression getLeftCell() {\n\t\treturn leftCell;\n\t}", "public void moveLeft() {\n\t\tposX -= speed;\n\t}", "public FallingPiece moveLeft(){\r\n return new FallingPiece(coord.moveLeft(), innerPiece);\r\n }", "public void moveSelectionLeft(){\n Cursor c = getCursor();\n int line = c.getLeftLine();\n int column = c.getLeftColumn();\n if(column - 1 >= 0){\n int toLeft = 1;\n if(column - 2 >= 0) {\n char ch = mText.charAt(line,column - 2);\n if(isEmoji(ch)) {\n column--;\n toLeft++;\n }\n }\n setSelection(line, column - 1);\n if(mACPanel.isShowing()) {\n String prefix = mACPanel.getPrefix();\n if(prefix.length() > toLeft) {\n prefix = prefix.substring(0,prefix.length() - toLeft);\n mACPanel.setPrefix(prefix);\n }else{\n mACPanel.hide();\n }\n }\n if(column - 1 <= 0) {\n mACPanel.hide();\n }\n }else{\n if(line == 0){\n setSelection(0, 0);\n }else{\n int c_column = getText().getColumnCount(line - 1);\n setSelection(line - 1, c_column);\n }\n }\n }", "public GameGridBuilder left(int distance) {\n return putNewGameTileToMap(distance, () -> columnIndex--);\n }", "public Dir moveLeft() {\n\t\t\tint newDir = (this.ordinal() + SIZE - 1) % SIZE;\n\t\t\treturn dirArray[newDir];\n\t\t}", "public void moveRight()\n\t{\n\t\tcol++;\n\t}", "public void moveLeft(){\n\t\tif(GameSystem.TWO_PLAYER_MODE){\n\t\t\tif(Game.getPlayer2().dying){\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tif(animation==ANIMATION.DAMAGED||Game.getPlayer().dying||channelling||charging) return;\n\t\tmoving=true;\n\t\tbuttonReleased=false;\n\t\torientation=ORIENTATION.LEFT;\n\t\tif(animation!=ANIMATION.MOVELEFT) {\n\t\t\tanimation=ANIMATION.MOVELEFT;\n\t\t\tif(run!=null) sequence.startSequence(run);\n\t\t}\n\t\tfacing=FACING.LEFT;\n\t\tdirection=\"left\";\n\t\tsetNextXY();\n\t\tsetDestination(nextX,nextY);\n\t\tvelX=-1*spd/2;\n\t\tvelY=0;\n\t}", "@Override\n\tpublic boolean moveLeft() {\n\t\tboolean rs = super.moveLeft();\n\t\tif(rs == true){\n\t\t}\n\t\treturn rs;\n\t}", "public boolean moveLeft() throws EatableObjectOnPlaceException {\r\n\t\tif (!treeOnLeft() && !mouseOnLeft()) {\r\n\t\t\tif (!onLeftBorder(positionX)) {\r\n\t\t\t\tpositionX = positionX - 1;\r\n\t\t\t\teatPerformingStep();\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\treturn moveRight();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public void scrollLeft() {\r\n for(int i = 0; i < grid.getNumRows(); i++) {\r\n for(int j = 0; j < grid.getNumCols(); j++) {\r\n if(grid.getImage(i, j) == avoidImg) {\r\n if(j != 0) {\r\n grid.setImage(i, j, null);\r\n grid.setImage(i, j - 1, avoidImg);\r\n } else {\r\n grid.setImage(i, j, null);\r\n }\r\n } else if(grid.getImage(i, j) == getImg) {\r\n if(j != 0) {\r\n grid.setImage(i, j, null);\r\n grid.setImage(i, j - 1, getImg);\r\n } else {\r\n grid.setImage(i, j, null);\r\n }\r\n }\r\n }\r\n }\r\n \r\n handleCollision(userRow, 1);\r\n }", "public void setLeft() {\n\t\tstate = State.LEFT;\n\t}", "private static Position getLeftNeighbor(Position curr, int side) {\n int newX = curr.getX() - getNumElement(0, side) - getNumSpacePerSide(0, side) - 1;\n int newY = curr.getY() - side;\n return new Position(newX, newY);\n }", "public void move(GridPanel bugGrid)\n\t{\tRandom generator = new Random();\n\t\tif (row < bugGrid.getBoardRows()) \n\t\t\t\t\t\t\t\t\n\t\t // -----------------------------------------------------\n\t\t // Simple bug mover randomly, 0-3 spaces\n\t\t //-----------------------------------------------------\n\t\n\t\t bugGrid.addImage(null, row, column);\n\t\t row++;\n\t\t bugGrid.addImage(image, row, column);\n\n }", "public void setLeft(int x) {\r\n leftSide = x;\r\n }", "private void moveRightLeft(int Width) {\n if (goingRight) {\n if (getX() + wolfWidth >= Width) turnAround();\n else setX(getX() + Width / 40);\n } else {\n if (getX() <= 0) turnAround();\n else setX(getX() - Width / 40);\n }\n }", "private void shiftPlayerPiecesLeftToRight(int rowNum) {\n for (int i = 0; i < playerPiecePositions.length; i++) {\n Position pos = playerPiecePositions[i];\n if (pos.getRowNum() == rowNum) {\n playerPiecePositions[i] = nextPositionLeftToRight(pos);\n playerPieces[i].addPreviousPlayerPosition(pos);\n }\n }\n }", "public void justifyLeft() {\n\t\tleft.left();\n\t}", "@Test\n void RookMoveLeft() {\n Board board = new Board(8, 8);\n Piece rook = new Rook(board, 5, 5, 1);\n\n board.getBoard()[5][5] = rook;\n\n board.movePiece(rook, 1, 5);\n\n Assertions.assertEquals(rook, board.getBoard()[1][5]);\n Assertions.assertNull(board.getBoard()[5][5]);\n }", "public void rotatePieceLeft(){\r\n if (hasFalling()){\r\n FallingPiece test = falling.rotateLeft();\r\n if (!moveIfNoConflict(test, falling))\r\n Kick(test, falling);\r\n if(isGhostActivated())\r\n \t\t\tgenerateGhost();\r\n }\r\n }", "public void moveRight() {\n\t\tif (x1 < 24 && x2 < 24 && x3 < 24 && x4 < 24) {\n\t\t\tclearPiece();\n\t\t\tx1 += 1;\n\t\t\tx2 += 1;\n\t\t\tx3 += 1;\n\t\t\tx4 += 1;\n\t\t\tsetPiece();\n\t\t\trepaint();\n\t\t}\n\t}", "public void alignSelectedFurnitureOnLeft() {\n alignSelectedFurniture(new AlignmentAction() {\n public void alignFurniture(AlignedPieceOfFurniture [] alignedFurniture, \n HomePieceOfFurniture leadPiece) {\n float minXLeadPiece = getMinX(leadPiece);\n for (AlignedPieceOfFurniture alignedPiece : alignedFurniture) {\n HomePieceOfFurniture piece = alignedPiece.getPieceOfFurniture();\n float minX = getMinX(piece);\n piece.setX(piece.getX() + minXLeadPiece - minX);\n }\n }\n });\n }", "public void setXLeft(int left) {\n this.xLeft = left;\n }", "public void goLeft() {\n\t\tx -= dx;\n\t\tbgBack.setDx(true);\n\t\tbgBack.move();\n\t\tif(x < 200) {\n\t\t\tif(!bgBack.getReachBegin()) {\n\t\t\t\tx = 200;\n\t\t\t\tbgFront.setDx(true);\n\t\t\t\tbgFront.move();\n\t\t\t}\n\t\t\telse if(x < 50) {\n\t\t\t\tx = 50;\n\t\t\t}\n\t\t}\n\n\t}", "public void moveShiftLeft();", "public void moveRight() {\r\n\t\tif (x < space.getSize() - 1) x++; \r\n\t}", "public boolean moveLEFT() {\r\n\t\tint i,j,k;\r\n\t\tboolean flag = false;\r\n\t\t\r\n\t\tfor(i = (rows_size-1) ; i >= 0 ; i--) {\r\n\t\t\tfor( j = 0; j < columns_size; j++) {\r\n\t\t\t\tif( !isEmpty(i,j) ) {\r\n\t\t\t\t\tfor(k = j; k >= 0 && isEmpty(i,k-1); k--);\r\n\t\t\t\t\t\tif(k == 0) {\t\r\n\t\t\t\t\t\t\tif( k != j) {\r\n\t\t\t\t\t\t\tgame[i][k] = new Cell2048(game[i][j]);\r\n\t\t\t\t\t\t\tgame[i][j].setValue(0);\r\n\t\t\t\t\t\t\tflag = true;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tif(game[i][j].isEqual(game[i][k-1]) && game[i][k-1].getFlag() == false) {\r\n\t\t\t\t\t\t\t\tgame[i][k-1].setValue(game[i][k-1].getValue()*2);\r\n\t\t\t\t\t\t\t\tgame[i][k-1].setFlag(true);\r\n\t\t\t\t\t\t\t\tgame[i][j].setValue(0);\r\n\t\t\t\t\t\t\t\tscore += game[i][k-1].getValue();\r\n\t\t\t\t\t\t\t\t--takenCells;\r\n\t\t\t\t\t\t\t\t++freeCells;\r\n\t\t\t\t\t\t\t\tflag = true;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\tif( k != j) {\r\n\t\t\t\t\t\t\t\tgame[i][k] = new Cell2048(game[i][j]);\r\n\t\t\t\t\t\t\t\tgame[i][j].setValue(0);\r\n\t\t\t\t\t\t\t\tflag = true;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t}\t\t\r\n\t}\r\n\tFalseFlag();\t\r\n\treturn flag;\r\n\t}", "public void punishment(){\n\t\tthis.cell = 0;\n\t}", "public void moveCursorLeft();", "public void goLeft()\r\n\t{\r\n\t\tthis.X--;\r\n\t}", "private void turnLeft() {\n\n if(currentPosition.getX() == -1 && currentPosition.getY() == -1) {\n System.out.println(\"Robot is not placed, yet.\");\n return;\n }\n\n Position.Direction direction = currentPosition.getDirection();\n switch (direction) {\n case EAST:\n direction = Position.Direction.NORTH;\n break;\n case WEST:\n direction = Position.Direction.SOUTH;\n break;\n case NORTH:\n direction = Position.Direction.WEST;\n break;\n case SOUTH:\n direction = Position.Direction.EAST;\n break;\n }\n\n currentPosition.setDirection(direction);\n }", "public void move() {\n\t\tGrid<Actor> gr = getGrid();\n\t\tif (gr == null) {\n\t\t\treturn;\n\t\t}\n\t\tLocation loc = getLocation();\n\t\tLocation next = loc.getAdjacentLocation(getDirection());\n\t\t\n\t\tLocation next2 = next.getAdjacentLocation(getDirection());\n\t\tif (gr.isValid(next2)) {\n\t\t\tmoveTo(next2);\n\t\t} else {\n\t\t\tremoveSelfFromGrid();\n\t\t}\n\t}", "private void moveToWall() {\n\t\t// TODO Auto-generated method stub\n\t\t// if front is clear then keep moving\n\t\twhile (this.frontIsClear()) {\n\t\t\tthis.move();\n\t\t}\n\t}", "public void left() {\n\t\tstate.left();\n\t}", "@Override\n\tpublic void setPosition(int left)\n\t{\n\t\t_mainPanel.getElement().getStyle().setLeft(left, Style.Unit.PX) ;\n\t}", "public void moveRight()\n\t{\n\t\tx = x + STEP_SIZE;\n\t}", "protected long getLeftPosition() {\n return leftPosition;\n }", "@Override\n\tpublic void moveToStart()\n\t{\n\t\twhile (!left.isEmpty())\n\t\t{\n\t\t\tright.push(left.pop());\n\t\t}\n\t}", "public void moveRight() {\n locX = locX + 1;\n }", "public void moveLeft() {\n this.velocity = this.velocity.add(leftVelocity());\n }", "public void moveRight()\n {\n if (!this.search_zone.isRightBorder(this.x_position))\n {\n this.x_position = (this.x_position + 1);\n }\n }", "private Position nextPositionLeftToRight(Position pos) {\n return (pos.getColNum() == nCols - 1\n ? new Position(pos.getRowNum(), 0)\n : new Position(pos.getRowNum(), pos.getColNum() + 1));\n }", "public void moveX() {\n\t\tsetX( getX() + getVx() );\n\t}", "@Override\r\n\tpublic String moveLeft() {\n\r\n\t\tif((0<x && x<=50) && (0<=y && y<=10) && (0<=z && z<=50))\r\n\t\t{\r\n\t\t\tx--;\r\n\t\t}\r\n\t\telse if((0<x && x<=50) && (40<=y && y<=50) && (0<=z && z<=50))\r\n\t\t{\r\n\t\t\tx--;\r\n\t\t}\r\n\t\telse if((0<x && x<=50) && (0<=y && y<=50) && (0<=z && z<=10))\r\n\t\t{\r\n\t\t\tx--;\r\n\t\t}\r\n\t\telse if((0<x && x<=10) && (0<=y && y<=50) && (0<=z && z<=50))\r\n\t\t{\r\n\t\t\tx--;\r\n\t\t}\r\n\t\telse if((0<x && x<=50) && (0<=y && y<=50) && (40<=z && z<=50))\r\n\t\t{\r\n\t\t\tx--;\r\n\t\t}\r\n\t\telse if((40<x && x<=50) && (0<=y && y<=50) && (0<=z && z<=50))\r\n\t\t{\r\n\t\t\tx--;\r\n\t\t}\r\n\t\treturn getFormatedCoordinates();\r\n\t}", "public void alignSelectedFurnitureOnLeftSide() {\n alignSelectedFurniture(new AlignmentAction() {\n public void alignFurniture(AlignedPieceOfFurniture [] alignedFurniture, \n HomePieceOfFurniture leadPiece) {\n float [][] points = leadPiece.getPoints();\n Line2D leftLine = new Line2D.Float(points [3][0], points [3][1], points [0][0], points [0][1]); \n for (AlignedPieceOfFurniture alignedPiece : alignedFurniture) {\n alignPieceOfFurnitureAlongLeftOrRightSides(alignedPiece.getPieceOfFurniture(), leadPiece, leftLine, false);\n }\n }\n });\n }" ]
[ "0.73081726", "0.7111586", "0.7005926", "0.6898549", "0.6888124", "0.6852488", "0.68508714", "0.67012864", "0.6629056", "0.65953416", "0.6580893", "0.6534594", "0.6533793", "0.65328294", "0.6529337", "0.65079117", "0.64895904", "0.6470983", "0.6451628", "0.6407585", "0.6317797", "0.6284924", "0.628442", "0.622537", "0.62225884", "0.62072194", "0.6200648", "0.61986834", "0.61721766", "0.61533475", "0.61524737", "0.61517125", "0.61449826", "0.61365217", "0.6121476", "0.61170614", "0.610329", "0.6100998", "0.6082435", "0.6016311", "0.6012149", "0.59831446", "0.59791416", "0.5970127", "0.59697664", "0.59644103", "0.59557885", "0.5936172", "0.5931444", "0.591492", "0.59095854", "0.58971727", "0.58912283", "0.5889574", "0.5871616", "0.5869824", "0.5863155", "0.58614147", "0.58574116", "0.5839233", "0.58355606", "0.5825583", "0.5825472", "0.58167124", "0.580651", "0.5790677", "0.5790382", "0.57888794", "0.5782216", "0.57821673", "0.5777274", "0.57638085", "0.57436687", "0.5721975", "0.57119906", "0.5702954", "0.56957537", "0.56957287", "0.56897426", "0.5685909", "0.56628925", "0.56517285", "0.5649721", "0.5648658", "0.56431866", "0.56382185", "0.56368196", "0.5634576", "0.5616437", "0.56150854", "0.56063527", "0.5598613", "0.5595434", "0.5593292", "0.55918294", "0.5591185", "0.55868644", "0.55833274", "0.5576518", "0.5561871" ]
0.55976784
92
InputStream stream = new FileInputStream("../demo/src/main/java/config/config.properties");
public Properties getObjectRepository() throws IOException{ InputStream stream = new FileInputStream("../demo/src/main/resources/config.xlsx"); p.load(stream); return p; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static void getProp() throws Exception {\r\n\r\n\t\tFileInputStream fileInputStream = new FileInputStream(\r\n\t\t\t\t\"C:\\\\repos\\\\test\\\\src\\\\main\\\\java\\\\test\\\\config.properties\");\r\n\r\n\t\tProperties properties = new Properties();\r\n\t\tproperties.load(fileInputStream);\r\n\r\n\t\tSystem.out.println(\"By using File Input stream class: \" + properties.getProperty(\"username\"));\r\n\r\n\t}", "public void loadObject() {\n\n obj = new Properties();\n try {\n obj.load(new FileInputStream(\"./src/test/resources/config.properties\"));\n } catch (FileNotFoundException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }", "@BeforeClass\n\tpublic void readConfig() {\n\t\t// object creation of properties file\n\n\t\tProperties prop = new Properties();\n\n\t\t// read the file: inputstream\n\n\t\ttry {\n\t\t\tInputStream input = new FileInputStream(\"\\\\src\\\\main\\\\java\\\\config\\\\config.properties\");\n\t\t\tprop.load(input);\n\t\t\tbrowser = prop.getProperty(\"browser\");\n\t\t//\turl = prop.getProperty(\"url\");\n\t\t\t\n\t\t}\n\n\t\tcatch (IOException e) {\n\n\t\t\te.printStackTrace();\n\n\t\t}\n\t}", "private void loadPropertyFile(InputStream stream) throws IOException{\n\t\tproperties = new Properties();\n\t\tproperties.load(stream);\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}", "private static <T> InputStream getPropertiesFile(Class<T> clazz, ULocale locale) {\r\n String localeStr = \"\";\r\n if(locale != null) {\r\n localeStr = '_' + locale.getName();\r\n }\r\n String filePath = clazz.getName().replace(DOT, SLASH) + localeStr + PROPERTIES_EXT;\r\n return clazz.getClassLoader().getResourceAsStream(filePath);\r\n }", "public static String getPropertyFromFile(String propName)throws ISException{\n InputStream inputStream;\n Properties prop = new Properties();\n try {\n inputStream = new FileInputStream(new File(System.getenv(\"conf.home\")+\"\\\\application.properties\"));\n prop.load(inputStream);\n if(prop==null){\n throw new ISException(\"getProperty: Cannot open property file!\");\n }\n return prop.getProperty(propName);\n } catch(Exception e){\n throw new ISException(\"getProperty: Cannot open property file!\");\n }\n }", "public ReadConfigFile (){\n\t\ttry {\n\t\t\tinput = ReadConfigFile.class.getClassLoader().getResourceAsStream(Constant.CONFIG_PROPERTIES_DIRECTORY);\n\t\t\tprop = new Properties();\n\t\t\tprop.load(input);\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}catch ( IOException e ) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\t\t\n\t}", "private FileInputStream loadFile(String file)\n\t{\n\t\tlogger.info(\"Fetching File : \"+System.getProperty(\"user.dir\")+\"\\\\src\\\\main\\\\resources\\\\\"+file);\n\t\ttry \n\t\t{\n\t\t\treturn(new FileInputStream(System.getProperty(\"user.dir\")+\"\\\\src\\\\main\\\\resources\\\\\"+file));\n\t\t} catch (FileNotFoundException e) {\t\t\t\t\n\t\t\tAssert.assertTrue(file+\" file is missing\", false);\n\t\t\treturn null;\n\t\t}\n\t}", "private static String readPropertiesFile() {\n Properties prop = new Properties();\n\n try (InputStream inputStream = MembershipService.class.getClassLoader().getResourceAsStream(\"config.properties\")) {\n\n if (inputStream != null) {\n prop.load(inputStream);\n } else {\n throw new FileNotFoundException(\"property file 'config.properties' not found in the classpath\");\n }\n } catch (Exception e) {\n return \"\";\n }\n return prop.getProperty(\"introducer\");\n }", "File getPropertiesFile();", "public void init(){\n\t\tif(prop==null){\r\n\t\t\tprop=new Properties();\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tFileInputStream fs = new FileInputStream(System.getProperty(\"user.dir\")+\"//src//test//resources//projectconfig.properties\");\r\n\t\t\t\tprop.load(fs);\r\n\t\t\t\t\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\t\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static void loadProps(InputStream in) {\r\n\t\ttry {\r\n properties.load(in);\r\n } catch (IOException e) {\r\n System.out.println( \"No config.properties was found.\");\r\n e.printStackTrace();\r\n }\r\n\t}", "private void loadData() {\n\n \tInputStream inputStream = this.getClass().getResourceAsStream(propertyFilePath);\n \n //Read configuration.properties file\n try {\n //prop.load(new FileInputStream(propertyFilePath));\n \tprop.load(inputStream);\n //prop.load(this.getClass().getClassLoader().getResourceAsStream(\"configuration.properties\"));\n } catch (IOException e) {\n System.out.println(\"Configuration properties file cannot be found\");\n }\n \n //Get properties from configuration.properties\n browser = prop.getProperty(\"browser\");\n testsiteurl = prop.getProperty(\"testsiteurl\");\n defaultUserName = prop.getProperty(\"defaultUserName\");\n defaultPassword = prop.getProperty(\"defaultPassword\");\n }", "private static InputStream getInputStream(final String filename) throws IOException, FileNotFoundException {\r\n final ResourcePatternResolver applicationContext = new ClassPathXmlApplicationContext(new String[] {});\r\n final Resource[] resource = applicationContext.getResources(\"classpath*:\" + filename);\r\n if (resource.length == 0) {\r\n throw new FileNotFoundException(\"Unable to find file '\" + filename + \"' in classpath.\");\r\n }\r\n return resource[0].getInputStream();\r\n }", "public ReadPropertyFile()\n\t{\n\t prob = new Properties(); \n\t \n\t try\n\t {\n\t FileInputStream fis = new FileInputStream(\".//config.properties\");\n\t prob.load(fis);\n\t }\n\t catch(FileNotFoundException e)\n\t {\n\t\t System.out.println(e.getMessage());\n\t }\n catch(IOException e)\n\t {\n \t System.out.println(e.getMessage());\n\t }\n\t}", "private void readProperties() {\n // reading config files\n if (driver == null) {\n try {\n fis = new FileInputStream(userDir + \"\\\\src\\\\main\\\\resources\\\\properties\\\\Config.properties\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n try {\n config.load(fis);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }", "public static void main(String[] args) throws ClassNotFoundException, IOException {\n InputStream n = Class.forName(\"com.ezzra.Main\").getClassLoader().getResourceAsStream(\"config.properties\");\n// System.out.println(path);\n InputStream rin = Main.class.getClassLoader().getResourceAsStream(\"config.properties\");\n// InputStream in = new FileInputStream(path);\n Reader reader = new InputStreamReader(n,\"GBK\");\n Properties prop = new Properties();\n prop.load(reader);\n System.out.println(prop);\n }", "static void getProps() throws Exception {\r\n\t\tFileReader fileReader = new FileReader(\"C:\\\\repos\\\\test\\\\src\\\\main\\\\java\\\\test\\\\config.properties\");\r\n\t\tProperties properties = new Properties();\r\n\r\n\t\tproperties.load(fileReader);\r\n\r\n\t\tSystem.out.println(\"By using File Reader: \" + properties.getProperty(\"username\"));\r\n\r\n\t}", "public static InputStream getRelativeFileStream(String confPath) {\r\n\t\tInputStream in = ClientConfiguration.class.getClassLoader().getResourceAsStream(confPath);\r\n\t\t\r\n\t\treturn in;\r\n\t}", "public static void main(String[] args) { \n\t\t \n\t\t String path =ResourceHelper.getResourcePath(\"src/main/resources/configfile/log4j.properties\"); \n\t\t System.out.println(path);\n\t }", "private InputStream getResourceAsStream(String path) throws FileNotFoundException {\n\t\tInputStream in = Thread.currentThread().getContextClassLoader().getResourceAsStream(path);\n\t\tif (in == null) {\n\t\t\tin = getClass().getResourceAsStream(path);\n\t\t}\n\n\t\tif (in == null) {\n\t\t\tFile file = new File(path);\n\t\t\tif (file.isFile()) {\n\t\t\t\tin = new FileInputStream(file);\n\t\t\t}\n\t\t}\n\n\t\treturn in;\n\t}", "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}", "@SuppressWarnings(\"resource\")\n\tpublic static InputStream getStream(String fileName){\n\t\tInputStream fileInputStream = null;\n\t\ttry{\n\t\t\tfileInputStream = new FileInputStream(new File(fileName));\n\t\t\tLOGGER.info(\"Property File:\" + fileName);\n\t\t}catch(Exception e){\n\t\t\tLOGGER.debug(\"Attempting to grab resource as stream.\"+e.getMessage());\n\t\t}\n\n\t\t//Just in case file doesn't exist.\n\t\tif(null == fileInputStream){\t\t\t\n\t\t\tfileInputStream = PropertyUtil.class.getClassLoader().getResourceAsStream(fileName);\n\t\t\tLOGGER.info(\"Property File:\" + fileName);\n\t\t}\t\t\n\t\treturn fileInputStream;\n\t}", "@BeforeClass\r\n\tpublic static void setUp() throws FileNotFoundException, IOException {\r\n\t\tfinal String resourcePath = \"/tests/resources/test_config.properties\";\r\n\t\tfinal File res = new File(new File(\"\").getAbsolutePath() + resourcePath);\r\n\r\n\t\tif (res.exists()) {\r\n\t\t\tproperties = new Properties();\r\n\t\t\tproperties.load(new FileInputStream(res));\r\n\t\t} else {\r\n\t\t\tthrow new FileNotFoundException(\"File not found: \" + resourcePath);\r\n\t\t}\r\n\t}", "private static File getItestPropertiesForCurrentTestSetup() {\n return new File(\"src/itest/resources/itest-dockercompose.properties\");\n }", "public InputStream open() {\n return demoResourceLoader.getResourceAsStream(\n MessageFormat.format(\"{0}/{1}.groovy\",\n scenario.getName().toLowerCase(), name));\n }", "@Test\r\n\t\tpublic static void Properties() \r\n\r\n\t\t{\r\n\t\t\ttry{\r\n\t\t\t\tprop = new Properties();\r\n\t\t\t\tfile = new File(\"C:\\\\Users\\\\vardhan\\\\eclipse-workspace\\\\com.makemytrip\\\\prop.properties\");\r\n\t\t\t\tfilereader = new FileReader(file);\r\n\t\t\t\tprop.load(filereader);\r\n\t\t\t\t\r\n\t\t\t }\r\n\t\t\r\n\t\t\r\n\t\t\tcatch(Exception e)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(e.getMessage());\r\n\t\t\t\r\n\t\t\t}\r\n\t\t}", "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 Properties loadConfigProperties() {\n \tProperties prop = new Properties();\n \tInputStream in = null;\n \ttry {\n \t\tin = this.getClass().getClassLoader().getResourceAsStream(\"resources/config.properties\");\n \t\tprop.load(in);\n \t} catch (IOException ex) {\n \t\tex.printStackTrace();\n \t} finally {\n \t\tif (in != null) {\n \t\t\ttry {\n \t\t\t\tin.close();\n \t\t\t} catch (IOException e) {\n \t\t\t\te.printStackTrace();\n \t\t\t}\n \t\t}\n \t}\n \treturn prop;\n\t}", "private static InputStream readFile(String path)\n\t{\n\t\tInputStream input = NativeLibraryLoader.class.getResourceAsStream(\"/\" + path);\n\t\tif (input == null)\n\t\t{\n\t\t\tthrow new RuntimeException(\"Unable to find file: \" + path);\n\t\t}\n\t\treturn input;\n\t}", "public String readConfiguration(String path);", "@Test\n public void in() throws IOException {\n InputStream in = getResourceAstream(\"peizhi.xml\");\n\n //InputStream in = new FileInputStream(\"G:\\\\IDEA\\\\Java_test\\\\src\\\\main\\\\resources\\\\peizhi.xml\");\n //定义一个数组相当于缓存\n byte by[]=new byte[1024];\n int n=0;\n while((n=in.read(by))!=-1)\n {\n String s=new String(by,0,n);\n System.out.println(s);\n }\n }", "public String getConfigProperties(String key) {\n String value = null;\n try {\n FileReader fileReader=new FileReader(System.getProperty(\"user.dir\")+\"/src/main/resources/config.properties\");\n Properties properties=new Properties();\n properties.load(fileReader);\n value= properties.getProperty(key);\n }catch (Exception e){\n e.printStackTrace();\n }\n return value;\n }", "InputStream getInputStream() {\r\n\r\n\t\tif (inputStream != null) {\r\n\t\t\treturn inputStream;\r\n\t\t} else {\r\n\t\t\ttry {\r\n\t\t\t\treturn new FileInputStream(path);\r\n\t\t\t} catch (FileNotFoundException e) {\r\n\t\t\t\tthrow new RuntimeException(\"Configuration file could not be loaded from \" + getPath());\r\n\t\t\t} // catch\r\n\t\t} // else\r\n\t}", "public final Properties init() throws FileNotFoundException, IOException{\n /*\n Your properties file must be in the deployed .war file in WEB-INF/classes/tokens. It is there automatically\n if you have it in Source Packages/java/tokens when you build. That is how this will read it in without defining a root location\n https://stackoverflow.com/questions/2395737/java-relative-path-of-a-file-in-a-java-web-application\n */\n String fileLoc =TinyTokenManager.class.getResource(Constant.PROPERTIES_FILE_NAME).toString();\n fileLoc = fileLoc.replace(\"file:\", \"\");\n setFileLocation(fileLoc);\n InputStream input = new FileInputStream(propFileLocation);\n props.load(input);\n input.close();\n currentAccessToken = props.getProperty(\"access_token\");\n currentRefreshToken = props.getProperty(\"refresh_token\");\n currentS3AccessID = props.getProperty(\"s3_access_id\");\n currentS3Secret = props.getProperty(\"s3_secret\");\n currentS3BucketName = props.getProperty(\"s3_bucket_name\");\n currentS3Region = Region.US_WEST_2;\n apiSetting = props.getProperty(\"open_api_cors\");\n return props;\n }", "public static void basefn() throws IOException {\r\n\t\t//Below line creates an object of Properties called 'prop'\r\n\t\tprop = new Properties(); \r\n\t\t\r\n\t\t//Below line creates an object of FileInputStream called 'fi'. Give the path of the properties file which you have created\r\n\t\tFileInputStream fi = new FileInputStream(\"D:\\\\Java\\\\workspace\\\\Buffalocart\\\\src\\\\test\\\\resources\\\\config.properties\");\r\n\t\t\r\n\t\t//Below line of code will load the property file\r\n\t\tprop.load(fi);\t\t\t\t\r\n\t}", "public static File getFile(String fileName){\n \tString basedir = System.getProperty(\"user.dir\");\n \tString dir = basedir+\"/src/test/resources/\" + fileName;\n \treturn new File(dir);\n }", "public FileInputStream getFileInputStream(){\n\t\t//String filePath=System.getProperty((\"user.dir\")+\"\\\\src\\\\test\\\\java\\\\data\\\\userData.xlsx\");\n\t\tString filePath=System.getProperty(\"user.dir\")+\"/src/test/java/data/userData.xlsx\";\n\t\t//String filePath=System.getProperty((\"user.dir\")+\"src/test/java/data/userData.xlsx\");\n\t\tFile srcFile=new File(filePath);\n\t\ttry {\n\t\t\tfis=new FileInputStream(srcFile);\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"Test Data file not found.terminating process!! :Check file path of test data file\");\n\t\t}\n\n\t\treturn fis;\n\t}", "private static Properties readPropertiesFile(String fileName) throws IOException\n {\n LOG.log(Level.FINE, \"Searching for {0} file...\", fileName);\n try (final InputStream stream = SmartProperties.class.getClassLoader().getResourceAsStream(fileName))\n {\n Properties properties = new Properties();\n properties.load(stream);\n LOG.log(Level.FINE, \"{0} loaded successfully\", fileName);\n return properties;\n }\n }", "@Test\n public void testInputStream() throws IOException {\n final Path file = Paths.get(FILTER1_PROPERTIES);\n assertTrue(Files.exists(file));\n try (final InputStream inputStream = Files.newInputStream(file)) {\n PropertyConfigurator.configure(inputStream);\n }\n this.validateNested();\n LogManager.resetConfiguration();\n }", "InputStream getInputStream(String path) throws CruiseControlException;", "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}", "private static InputStream getStream(String inResName) {\n\n ClassLoader loader = Thread.currentThread().getContextClassLoader();\n InputStream is = loader.getResourceAsStream(inResName);\n if (is == null) {\n log.error(\"Resource '\" + inResName + \"' not found in classpath\");\n }\n return is;\n\n }", "public void setupProp() {\r\n\t\tprop = new Properties();\r\n\t\tInputStream in = getClass().getResourceAsStream(\"C:/Users/Marcus/git/EmailProgram/EmailProgram/resources/config.properties\");\r\n\t\ttry {\r\n\t\t\tprop.load(in);\r\n\t\t\tFileInputStream fin = new FileInputStream(\"C:/Users/Marcus/git/EmailProgram/EmailProgram/resources/config.properties\");\r\n\t\t\tObjectInputStream ois = new ObjectInputStream(fin);\r\n\t\t\tdblogic = (PatronDBLogic) ois.readObject();\r\n\t\t\tois.close();\r\n\r\n\t\t} catch (IOException | ClassNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public static void main(String[] args) throws IOException {\n\n\t\tString projectPath=System.getProperty(\"user.dir\");\n\t\t\n\t\tString filePath=projectPath+\"\\\\configs\\\\test.properties\";\n\t\t\n\t\tFileInputStream input=new FileInputStream(filePath);\n\t\t\n\t\tProperties prop=new Properties();\n\t\t\n\t\tprop.load(input);\n\t\t\n\t\tSystem.out.println(prop);\n\t\t\n\t\tSystem.out.println(prop.getProperty(\"takim\"));\n\t\t\n\t\tprop.setProperty(\"memleket\", \"gasdamonu\");\n\t\t\n\t\tFileOutputStream output=new FileOutputStream(filePath);\n\t\t\n\t\tprop.setProperty(\"hava\", \"yagmurlu\");\n\t\t\n\t\tprop.store(output, \"added hava durumu\");\n\t\t\n\t}", "public static void main(String[] args) throws IOException {\n\n String path = System.getProperty(\"user.dir\")+\"\\\\Files\\\\Config2.properties\";\n FileInputStream fileInputStream=new FileInputStream(path);\n Properties properties=new Properties();\n properties.load(fileInputStream);\n System.out.println(properties.get(\"browser\"));\n System.out.println(properties.get(\"url\"));\n System.out.println(properties.get(\"username\"));\n System.out.println(properties.get(\"password\"));\n //fileInputStream.close();\n FileOutputStream fileOutputStream=new FileOutputStream(path);\n Properties properties1=new Properties();\n properties.store(fileOutputStream,\"Masoud\");\n\n\n\n\n }", "@Test\n public void testCreateFromProperties_Properties() throws Exception {\n System.out.println(\"createFromProperties\");\n Properties props = new Properties();\n props.load(Thread.currentThread().getContextClassLoader().getResourceAsStream(propertiesName));\n EngineConfiguration result = EngineConfiguration.createFromProperties(props);\n assertProperties(result);\n }", "private InputStream getFileFromResourceAsStream(String fileName) {\n\n // The class loader that loaded the class\n ClassLoader classLoader = getClass().getClassLoader();\n InputStream inputStream = classLoader.getResourceAsStream(fileName);\n\n // the stream holding the file content\n if (inputStream == null) {\n throw new IllegalArgumentException(\"file not found! \" + fileName);\n } else {\n return inputStream;\n }\n\n }", "public BaseTest() {\n\n String path = System.getProperty(\"user.dir\") + \"/src/test/resources/config.properties\";\n prop = new Properties();\n /** Stream to read the spreadsheet. */\n FileInputStream fis = null;\n try {\n fis = new FileInputStream(path);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n try {\n prop.load(fis);\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n\n }", "public static String setConfigPath(String propertFileName ) {\n String propFilePath;\n\n propFilePath = \"src\" + File.separator + \"main\" + File.separator\n + \"resources\" + File.separator + propertFileName;\n return propFilePath;\n }", "public ConfigFileReader(){\r\n\t\t \r\n\t\t BufferedReader reader;\r\n\t\t try {\r\n\t\t\t reader = new BufferedReader(new FileReader(propertyFilePath));\r\n\t\t\t properties = new Properties();\r\n\t\t\t try {\r\n\t\t\t\t properties.load(reader);\r\n\t\t\t\t reader.close();\r\n\t\t\t } catch (IOException e) {\r\n\t\t\t\t e.printStackTrace();\r\n\t\t\t }\r\n\t\t } catch (FileNotFoundException e) {\r\n\t\t\t e.printStackTrace();\r\n\t\t\t throw new RuntimeException(\"configuration.properties not found at \" + propertyFilePath);\r\n\t \t } \r\n\t }", "private InputStream getFileFromResourceAsStream(String fileName) {\n ClassLoader classLoader = getClass().getClassLoader();\n InputStream inputStream = classLoader.getResourceAsStream(fileName);\n\n // the stream holding the file content\n if (inputStream == null) {\n throw new IllegalArgumentException(\"file not found! \" + fileName);\n } else {\n return inputStream;\n }\n }", "static InputStream openStreamFromURL(String path) {\n\t\tClassLoader cl = PropertiesUtil.class.getClassLoader();\n\t\tURL url = cl.getResource(path);\n\t\tif (url != null) {\n\t\t\ttry {\n\t\t\t\tInputStream stream = url.openStream();\n\t\t\t\treturn stream;\n\t\t\t} catch (IOException ioex) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "private static Path copyFileFromJar(String path) {\n try {\n Path file = Files.createTempFile(\"configme-\", \"-democonfig.yml\");\n Files.copy(TestUtils.class.getResourceAsStream(path), file, REPLACE_EXISTING);\n return file;\n } catch (IOException e) {\n throw new IllegalStateException(e);\n }\n }", "private Properties loadProperties() {\n Properties properties = new Properties();\n try {\n properties.load(getClass().getResourceAsStream(\"/config.properties\"));\n } catch (IOException e) {\n throw new WicketRuntimeException(e);\n }\n return properties;\n }", "private static InputStream getRepositoryConfigAsStream() throws RepositoryException {\n String configPath = System.getProperty(SYSTEM_CONFIG_PROPERTY);\n\n if (configPath == null || \"\".equals(configPath)) {\n configPath = System.getProperty(SYSTEM_SERVLETCONFIG_PROPERTY);\n }\n\n if (configPath == null || \"\".equals(configPath)) {\n log.info(\"Using default repository config: \" + DEFAULT_REPOSITORY_CONFIG);\n return LocalHippoRepository.class.getResourceAsStream(DEFAULT_REPOSITORY_CONFIG);\n }\n\n if (!configPath.startsWith(\"file:\")) {\n log.info(\"Using resource repository config: \" + configPath);\n return LocalHippoRepository.class.getResourceAsStream(configPath);\n }\n\n configPath = RepoUtils.stripFileProtocol(configPath);\n\n log.info(\"Using file repository config: file:/\" + configPath);\n\n File configFile = new File(configPath);\n try {\n return new BufferedInputStream(new FileInputStream(configFile));\n } catch (FileNotFoundException e) {\n throw new RepositoryException(\"Repository config not found: file:/\" + configPath);\n }\n }", "private void loadProperties() {\n try (InputStream in = getClass().getClassLoader().getResourceAsStream(PATH_TO_PROPERTIES)) {\n this.prs.load(in);\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n }", "private static ConfigImpl loadProperties(Path path) throws IOException {\n final ConfigImpl ret;\n try (FileInputStream stream = new FileInputStream(path.toFile())) {\n try (InputStreamReader reader = new InputStreamReader(stream, UTF_8)) {\n ret = loadProperties(reader);\n }\n }\n return ret;\n }", "public\n YutilProperties(InputStream in)\n {\n super(new Properties());\n setPropertiesDefaults(in);\n }", "public static void main(String[] args) throws FileNotFoundException {\n\r\n\t\r\n\t\tProperties property = new Properties();\r\n\t\t\r\n\t\tFileInputStream input=new FileInputStream(\"C:\\\\Users\\\\MY PC\\\\Desktop\\\\java\\\\SeleniumJava\\\\src\\\\Config\\\\Config.properties.exe\");\r\n\t\tproperty.load(input);\r\n\t\tSystem.out.println(property.getProperty(\"browser\"));\r\n\t\tSystem.out.println(property.getProperty(\"url\"));\r\n\t\t\r\n\t\t\r\n\t\r\n\t}", "public ConfigFileReader(){\r\n\t\tBufferedReader reader;\r\n\t\ttry {\r\n\t\t\treader = new BufferedReader(new FileReader(propertyFilePath));\r\n\t\t\tproperties = new Properties();\r\n\t\t\ttry {\r\n\t\t\t\tproperties.load(reader);\r\n\t\t\t\treader.close();\r\n\t\t\t}catch(IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}catch(FileNotFoundException ex) {\r\n\t\t\tSystem.out.println(\"Configuration.properties not found at \"+propertyFilePath);\r\n\t\t}\r\n\t}", "@BeforeSuite\n\tpublic void propertiesFileReader(){\n\t\tif(prop == null){\t\t\t\n\t\t\tprop = new Properties();\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\t/*\n\t\t\t\t * if(strEnvironment.equalsIgnoreCase(\"qa\")){ prop.load(new\n\t\t\t\t * FileInputStream(qaProperty)); }else\n\t\t\t\t * if(strEnvironment.equalsIgnoreCase(\"stage\")){ prop.load(new\n\t\t\t\t * FileInputStream(stagProperty)); }else\n\t\t\t\t * if(strEnvironment.equalsIgnoreCase(\"prod\")){ prop.load(new\n\t\t\t\t * FileInputStream(prodProperty)); }\n\t\t\t\t */\n\t\t\t\t\n\t\t\t\tif(strEnvironment.equalsIgnoreCase(\"qa\")) \n\t\t\t\t\tFileUtils.copyFile(new File(qaProperty), new File(defaultProperty));\n\t\t\t\tif(strEnvironment.equalsIgnoreCase(\"stage\"))\n\t\t\t\t\tFileUtils.copyFile(new File(stagProperty), new File(defaultProperty));\n\t\t\t\tif(strEnvironment.equalsIgnoreCase(\"prod\"))\n\t\t\t\t\tFileUtils.copyFile(new File(prodProperty), new File(defaultProperty));\n\t\t\t\t\n\t\t\t\tprop.load(new FileInputStream(defaultProperty));\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"user + pass [\"+prop.getProperty(\"username\")+\"===\"+prop.getProperty(\"password\"));\n\t\t\t\t\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public static void loadConfig(String path) throws IOException {\n \tInputStream stream = null;\n \t\n \t// Load the config\n \ttry {\n \t\t// Get the stream\n \t\ttry {\n \t\t\tstream = new FileInputStream(new File(path));\n \t\t} catch(FileNotFoundException e) {\n \t\t\tstream = NotaQL.class.getClassLoader().getResourceAsStream(path);\n \t\t}\n\n \t\tif(stream == null) {\n \t\t\tthrow new FileNotFoundException(\"Unable to find \" + path + \" in classpath.\");\n \t\t}\n\n \t\t\n \t\t// load the properties\n \t\tloadConfig(stream);\n\n \t} finally {\n \t\t// Always close the stream if any\n \t\tif (stream != null)\n \t\t\tstream.close();\n\t\t}\n }", "public static Properties loadResource(String propertyName) throws IOException {\n Properties properties = new Properties();\n InputStream in = Configuration.class.getClassLoader().getResourceAsStream(propertyName);\n try {\n if (null == in) {\n String path = propertyName.replace('/', separatorChar);\n path = path.replace('\\\\', separatorChar);\n if (!path.startsWith(File.separator)) {\n path = separatorChar + path;\n }\n File configurationFile = new File(ConfigurationHolder.getHome() + separatorChar\n + \"properties\" + path);\n if (configurationFile.exists()) {\n in = new FileInputStream(configurationFile);\n }\n }\n if (null != in) {\n properties.load(in);\n }\n } finally {\n IOUtils.closeQuietly(in);\n }\n return properties;\n }", "public ConfigFile(String fileName, String encoding) {\n InputStream inputStream = null;\n try {\n inputStream = getClassLoader().getResourceAsStream(fileName); // properties.load(ConfigFile.class.getResourceAsStream(fileName));\n if (inputStream == null) {\n throw new IllegalArgumentException(\"Properties file not found in classpath: \" + fileName);\n }\n\n properties = new Properties();\n if (fileName.endsWith(\"yml\")){\n isYml = true;\n properties= new Yaml().loadAs(new InputStreamReader(inputStream, encoding),Properties.class);\n }else\n properties.load(new InputStreamReader(inputStream, encoding));\n } catch (IOException e) {\n throw new RuntimeException(\"Error loading properties file.\", e);\n } finally {\n if (inputStream != null) try {\n inputStream.close();\n } catch (IOException e) {\n LogKit.error(e.getMessage(), e);\n }\n }\n }", "public InputStream getResource(String path) {\n return getClass().getResourceAsStream(path);\n }", "private static InputStream getResourceAsStream(final String filename) throws IOException {\n\t\t// Try to load resource from jar\n\t\tInputStream stream = TextureLoader.class.getResourceAsStream(filename);\n\t\t// If not found in jar, then load from disk\n\t\tif (stream == null) {\n\t\t\treturn new BufferedInputStream( new FileInputStream(filename) );\n\t\t} else {\n\t\t\treturn stream;\n\t\t}\n\t}", "public Map<String, String> fetchPropertyFromFile()\n {\n Map<String, String> components = new HashMap<>();\n Properties props = new Properties();\n InputStream in = null;\n try {\n in = new FileInputStream(\"/slog/properties/LogAnalyzer.properties\");\n props.load(in);\n in.close();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n\n catch (IOException e) {\n e.printStackTrace();\n }\n// Add component config , logname RegEx pattern to a Map. This map will be used to search matching files and forming logstash command\n for (String key : props .stringPropertyNames())\n {\n System.out.println(key + \" = \" + props .getProperty(key));\n components.put (key, props.getProperty(key));\n }\n\n return components;\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 }", "void loadPropertiesFile()\n\t{\n\t\tlogger.info(\"Fetching the properties files\");\n\t\t\n\t\tconfigProp=new Properties(); \n\t\ttry{\tconfigProp.load(loadFile(\"Config.properties\"));\t\t} \n\t\tcatch (IOException e){\tAssert.assertTrue(\"Cannot initialise the Config properties file, Check if the file is corrupted\", false);\t}\t\t\t\n\t}", "public static String fetchMyProperties(String req) throws Exception {\n\n String val;\n\n FileReader reader = new FileReader(\"src\\\\test\\\\java\\\\resources\\\\westpac.properties\");\n Properties p = new Properties();\n p.load(reader);\n val = p.getProperty(req);\n\n return val;// returning the requested value.\n }", "public static void main(String[] args) throws IOException {\n String readPath=\"C:\\\\Users\\\\masou\\\\IdeaProjects\\\\SDETjavaBATCH10\\\\Files\\\\Config1.properties\";\n String writePath=\"C:\\\\Users\\\\masou\\\\IdeaProjects\\\\SDETjavaBATCH10\\\\Files\\\\Config.properties\";\n\n\n FileInputStream fileInputStream=new FileInputStream(readPath);\n FileInputStream fileInputStream1=new FileInputStream(writePath);\n\n\n Properties properties1=new Properties();\n properties1.load(fileInputStream1);\n\n Properties properties=new Properties();\n properties.load(fileInputStream);\n\n String URL=properties.get(\"URL\").toString(); // store it in a string\n\n\n properties1.put(\"URL\",URL);\n FileOutputStream fileOutputStream=new FileOutputStream(writePath);\n properties1.store(fileOutputStream,\"some comments\");\n\n\n\n }", "public static FileInputStream getMavenTestRessourcesFileInputStream(\r\n\t Object object, String filename)\r\n {\r\n\treturn FilesURLs.getRessourcesFileInputStream(object,\r\n\t\tMAVEN_TEST_RESSOURCES, filename);\r\n }", "public Properties initProperties() {\r\n\t\tprop = new Properties();\r\n\t\ttry {\r\n\t\t\tFileInputStream fis = new FileInputStream(\"./src/main/java/com/automation/qe/config/config.properties\");\r\n\t\t\tprop.load(fis);\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn prop;\r\n\t}", "private Properties getProperties() throws IOException {\r\n\t\tInputStream input = this.getClass().getResourceAsStream(\"/properties/application.properties\");\r\n\t\tProperties properties = new Properties();\r\n\t\tproperties.load(input);\r\n\t\treturn properties;\r\n\t}", "private void getPropValues() {\n Properties prop = new Properties();\n \n InputStream inputStream = getClass().getClassLoader().getResourceAsStream(propFileName);\n try {\n prop.load(inputStream);\n } catch (IOException ex) {\n Logger.getLogger(PropResources.class.getName()).log(Level.SEVERE, null, ex);\n }\n if (inputStream == null) {\n try {\n throw new FileNotFoundException(\"ERROR: property file '\" + propFileName + \"' not found in the classpath\");\n } catch (FileNotFoundException ex) {\n Logger.getLogger(PropResources.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n // get property values\n this.defaultDirectory = prop.getProperty(\"defaultDirectory\");\n this.topicsFile = this.defaultDirectory + prop.getProperty(\"topics\");\n this.scripturesFile = this.defaultDirectory + prop.getProperty(\"scriptures\");\n this.defaultJournalXML = this.defaultDirectory + prop.getProperty(\"defaultJournalXML\");\n this.defaultJournalTxt = this.defaultDirectory + prop.getProperty(\"defaultJournalTxt\");\n }", "public File getConfigurationFile();", "public static void main(String[] args)throws Throwable {\n FileLib flib = new FileLib();\n flib.readPropertyData(\"./data/config.properties\", \"browser\");\n // System.out.println(value); \n\t}", "public void getConfigProperty() {\n Properties properties = new Properties();\n try(InputStream input = new FileInputStream(\"config.properties\");){\n properties.load(input);\n logger.info(\"BASE URL :\" + properties.getProperty(\"BASEURL\"));\n setBaseUrl(properties.getProperty(\"BASEURL\"));\n setLoginMode(properties.getProperty(\"LOGINMODE\"));\n setProjectId(properties.getProperty(\"PROJECTID\"));\n setReportId(properties.getProperty(\"REPORTID\"));\n if (!(properties.getProperty(\"PASSWORD\").trim().equals(\"\"))) {\n setPassword(properties.getProperty(\"PASSWORD\"));\n }\n if (!(properties.getProperty(\"USERNAME\").trim().equals(\"\"))) {\n setUserName(properties.getProperty(\"USERNAME\"));\n }\n }catch(IOException ex) {\n logger.debug(\"Failed to fetch value from configure file: \", ex);\n }\n\n }", "public String accessLocationPropFile(){\n\t\tProperties prop = new Properties();\n\t\tString loc=\"\";\n\t\ttry {\n\t\t\t//load a properties file\n\t\t\tprop.load(new FileInputStream(\"C:/Users/SARA/Desktop/OpenMRS/de/DeIdentifiedPatientDataExportModule/api/src/main/resources/config1.properties\"));\n\t\t\tInteger a = getRandomBetween(1, 3);\n\t\t\tloc = prop.getProperty(a.toString());\n\n\t\t} catch (IOException ex) {\n\t\t\tlog.error(\"IOException in accessing Location File\", ex);\n\t\t}\n\t\treturn loc;\n\t}", "@Test\n public void getFileLocation() throws Exception {\n ReadConfig conf = new ReadConfig();\n try {\n conf.getFileLocation();\n } catch (Exception e) {\n assertTrue(e.getMessage().equals(\"Try to access config file before reading it.\") );\n }\n try {\n conf.readFile();\n } catch (IOException e) {\n e.printStackTrace();\n }\n assertNotNull(conf.getFileLocation());\n }", "public static InputStream getInputStream(String resource) throws URISyntaxException, IOException {\r\n\t\tString projectDirectory = DirectoryUtils.getProjectDirectory();\r\n\t\tURL url = DirectoryUtils.class.getClassLoader().getResource(resource);\r\n\r\n\t\t/**\r\n\t\t * Rank 1: Local resources path.\r\n\t\t */\r\n\t\tif (url != null && \"file\".equals(url.getProtocol())) {\r\n\t\t\tFile file = new File(url.toURI());\r\n\t\t\tString path = file.getAbsolutePath();\r\n\r\n\t\t\tif (file.exists() && path.indexOf(projectDirectory) == 0) {\r\n\t\t\t\treturn new FileInputStream(file);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t/**\r\n\t\t * Rank 2: Project directory.\r\n\t\t */\r\n\t\tPath resourcePath = Paths.get(projectDirectory, resource);\r\n\t\tFile resourceFile = resourcePath.toFile();\r\n\r\n\t\tif (resourceFile.exists()) {\r\n\t\t\treturn new FileInputStream(resourceFile);\r\n\t\t}\r\n\r\n\t\t/**\r\n\t\t * Rank 3: Other project resources path.\r\n\t\t */\r\n\t\tif (url != null && \"file\".equals(url.getProtocol())) {\r\n\t\t\tFile file = new File(url.toURI());\r\n\r\n\t\t\tif (file.exists()) {\r\n\t\t\t\treturn new FileInputStream(file);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t/**\r\n\t\t * Rank 4: Dependent jar package file.\r\n\t\t */\r\n\t\tif (url != null && \"jar\".equals(url.getProtocol())) {\r\n\t\t\treturn url.openStream();\r\n\t\t}\r\n\r\n\t\treturn null;\r\n\t}", "public ReadConfig() \n\t{\n\t\tFile scr = new File(\"./Configuration/config.properties\"); //property file\n\n\t\tFileInputStream fis;\n\t\ttry {\n\t\t\tfis = new FileInputStream(scr); // READ the DATA (read mode)\n\t\t\tpro = new Properties(); // pro object\n\t\t\tpro.load(fis); // Load method -load at the \n\n\t\t} catch (final Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tSystem.out.println(\"Except is \" + e.getMessage());\n\t\t} \n\t}", "public TestBase() {\n try {\n properties = new Properties();\n FileInputStream fileInputStream = new FileInputStream(\"F:/LearningStuff/PracticalWork\" +\n \"/Frameworks/DataDrivenFrameworkSelenium/src/main/resources/config/config.properties\");\n properties.load(fileInputStream);\n } catch (FileNotFoundException f) {\n f.printStackTrace();\n } catch (IOException i) {\n i.printStackTrace();\n }\n }", "public InputStream openStream(String str) {\n return Thread.currentThread().getContextClassLoader().getResourceAsStream(str);\n }", "static String readResource(String name) throws IOException {\n InputStream is = Server.class.getResourceAsStream(name);\n String value = new Scanner(is).useDelimiter(\"\\\\A\").next();\n is.close();\n return value;\n }", "public void loadProperties(){\n\n\ttry{\n\t prop.load(file);\n // get the property value and print it out\n host = prop.getProperty(\"host\");\n\t port = prop.getProperty(\"port\");\n\t sslmode = prop.getProperty(\"sslmode\");\n\t source = prop.getProperty(\"source\");\n dbname = prop.getProperty(\"dbname\");\n help_url_prefix = prop.getProperty(\"base.help.url\");\n password = prop.getProperty(\"password\");\n\t user = prop.getProperty(\"user\");\t \n\t temp_dir = new File(System.getProperty(\"java.io.tmpdir\")).toString();\n\t working_dir = new File(System.getProperty(\"user.dir\")).toString();\n\t file.close();\n\t}catch(IOException ioe){\n\t\t\n\t} \n\t \n }", "String getConfigFileName();", "private void initConfig(String initParameter) {\n InputStream inputStream = null;\n inputStream = this.getClass().getClassLoader().getResourceAsStream(initParameter);\n try {\n properties.load(inputStream);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public interface Constants {\r\n\t/**\r\n\t * Example directory.\r\n\t */\r\n\tPath EXAMPLE_DIR = Path.of(\"src/main/resources\");\r\n\t/**\r\n\t * Example XML file.\r\n\t */\r\n\tPath EXAMPLE_PATH = Path.of(EXAMPLE_DIR.toString(), \"example.xml\");\r\n\t/**\r\n\t * Example text file name.\r\n\t */\r\n\tString EXAMPLE_TXT_FILE_NAME = \"example.txt\";\r\n\t/**\r\n\t * Example ZIP file name.\r\n\t */\r\n\tString EXAMPLE_ZIP_FILE_NAME = \"example.zip\";\r\n\t/**\r\n\t * Example ZIP file.\r\n\t */\r\n\tPath EXAMPLE_ZIP_PATH = Path.of(EXAMPLE_DIR.toString(), EXAMPLE_ZIP_FILE_NAME);\r\n\t/**\r\n\t * Example ZIP file entry.\r\n\t */\r\n\tString EXAMPLE_ZIP_ENTRY = \"data/example.xml\";\r\n\t/**\r\n\t * Example properties file.\r\n\t */\r\n\tPath EXAMPLE_PROPERTIES_PATH = Path.of(System.getProperty(\"user.dir\"), EXAMPLE_DIR.toString(),\r\n\t\t\t\"example.properties\");\r\n\t/**\r\n\t * Length of string to read.\r\n\t */\r\n\tString XML_CONTENT = \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\";\r\n}", "private static InputStream getResourceAsStream(String resource)\r\n {\r\n return KuBatschTheme.class.getResourceAsStream(String.format(\"%s/%s\",\r\n RESOURCES_DIR, resource));\r\n }", "private void getData() {\r\n Properties config = new Properties();\r\n\tFileInputStream input = null;\r\n\ttry {\r\n input = new FileInputStream(\"src/signupsigninserver/config/connection.properties\");\r\n config.load(input);\r\n port=Integer.parseInt(config.getProperty(\"port\"));\r\n maxThreads=Integer.parseInt(config.getProperty(\"max_threads\"));\r\n \r\n } catch (FileNotFoundException ex) {\r\n LOGGER.info(\"No encuentra archivo\");\r\n } catch (IOException ex) {\r\n Logger.getLogger(ILogicImplementation.class.getName()).log(Level.SEVERE, null, ex);\r\n } finally {\r\n if (input != null)\r\n\t\ttry {\r\n input.close();\r\n } catch (IOException ex) {\r\n Logger.getLogger(ILogicImplementation.class.getName()).log(Level.SEVERE, null, ex);\r\n } \r\n\t}\r\n }", "public\n void setProperties(InputStream in)\n {\n if (in == null)\n return;\n\n try {\n load(in);\n }\n catch (IOException excp) {\n System.out.println(excp);\n }\n }", "public static InputStream openStream(String fileName) throws IOException {\r\n\t\treturn MarkLogicUtils.class.getClassLoader().getResourceAsStream(fileName);\r\n\t}", "private static void loadPropertiesFile() {\n checkNotNull(propertyFileName, \"propertyFileName cannot be null\");\n String currentDir = new File(\"\").getAbsolutePath();\n propertyFile = currentDir + \"/\" + propertyFileName;\n File propFile = new File(propertyFile);\n try {\n propFile.createNewFile();\n } catch (IOException ex) {\n Debugger.logMessage(ex);\n }\n\n props = new Properties();\n try {\n FileInputStream fis = new FileInputStream(propertyFile);\n props.load(fis);\n fis.close();\n } catch (IOException ex) {\n Debugger.logMessage(ex);\n }\n }", "private void loadProperties() {\n Path path = getSamplePropertiesPath();\n LOG.info(\"Loading Properties from {}\", path.toString());\n try {\n FileInputStream fis = new FileInputStream(getSamplePropertiesPath().toFile());\n Properties properties = new Properties();\n properties.load(fis);\n\n String privateKey = properties.getProperty(PRIVATE_KEY);\n this.credentials = Credentials.create(privateKey);\n this.contract1Address = properties.getProperty(CONTRACT1_ADDRESS);\n this.contract2Address = properties.getProperty(CONTRACT2_ADDRESS);\n this.contract3Address = properties.getProperty(CONTRACT3_ADDRESS);\n this.contract4Address = properties.getProperty(CONTRACT4_ADDRESS);\n this.contract5Address = properties.getProperty(CONTRACT5_ADDRESS);\n this.contract6Address = properties.getProperty(CONTRACT6_ADDRESS);\n\n } catch (IOException ioEx) {\n // By the time we have reached the loadProperties method, we should be sure the file\n // exists. As such, just throw an exception to stop.\n throw new RuntimeException(ioEx);\n }\n }", "public static Properties readProperties(String resource) {\n Properties \t\tresult;\n InputStream \tin;\n\n result = new Properties();\n in = null;\n\n try {\n in = Content.class.getClassLoader().getResourceAsStream(resource);\n result.load(in);\n }\n catch (Exception e) {\n LOGGER.log(Level.SEVERE, \"Failed to read properties from resource file: \" + resource, e);\n return null;\n }\n finally {\n IOUtils.closeQuietly(in);\n }\n\n return result;\n }", "private void initiate(){try{\n\t//String dataIni = run.class.getResource(\"../util/DataBase.ini\").getFile();\n //FileInputStream fin=new FileInputStream(dataIni); // 打开文件,从根目录开始寻找\n//\tFileInputStream fin=new FileInputStream(\"src/util/DataBase.ini\"); // 打开文件,从根目录开始寻找\n//\tProperties props=new Properties(); // 建立属性类,读取ini文件\n//\tprops.load(fin); \n//\tdriver=props.getProperty(\"driver\"); //根据键读取值\n//\turl=props.getProperty(\"url\");\n//\tusername=props.getProperty(\"username\");\n//\tuserpassword=props.getProperty(\"userpassword\");\n\t}\n\tcatch(Exception e){e.printStackTrace();}\n\t}", "public void loadProperties() throws IOException\n\t{\n\t\tFile src = new File(\"D://Selenium Stuff//Selenium Workspace//OpenCartL2_28112017//ObjectRepo.properties\");\n\t\tFileInputStream fis = new FileInputStream(src);\n\t\tpro = new Properties();\n\t\tpro.load(fis);\n\t}" ]
[ "0.65259314", "0.6413559", "0.6384995", "0.6339525", "0.6323464", "0.6207721", "0.6174881", "0.61725163", "0.61665493", "0.6112151", "0.6053543", "0.6024446", "0.6007398", "0.59827334", "0.5974574", "0.595437", "0.59424216", "0.59372485", "0.59025484", "0.5882502", "0.587255", "0.58586246", "0.585621", "0.58311677", "0.5805301", "0.57962716", "0.57911384", "0.57746434", "0.57695115", "0.57685506", "0.57657117", "0.5763729", "0.57529116", "0.57356334", "0.57326263", "0.5732288", "0.5728339", "0.57131314", "0.57012975", "0.56902134", "0.5680089", "0.56718946", "0.56657016", "0.565855", "0.5649759", "0.56440574", "0.56262946", "0.5624231", "0.56192803", "0.5618085", "0.5607976", "0.5604683", "0.56043375", "0.55783576", "0.5564043", "0.55340844", "0.552856", "0.5524938", "0.5523913", "0.5523562", "0.5507633", "0.5504099", "0.55020803", "0.54991865", "0.54958975", "0.5488778", "0.5482701", "0.5475827", "0.5450284", "0.5448854", "0.5443696", "0.54435056", "0.5440623", "0.54331255", "0.54308116", "0.5429151", "0.5417354", "0.5415954", "0.54147804", "0.5370031", "0.5368105", "0.5361646", "0.53610027", "0.535637", "0.5342799", "0.5342568", "0.5339044", "0.53175896", "0.5305562", "0.5305328", "0.5292922", "0.52902913", "0.5289784", "0.52863127", "0.52773046", "0.52758545", "0.52758414", "0.5274035", "0.5263659", "0.52631724" ]
0.5269239
98
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() { jPanel1 = new javax.swing.JPanel(); jPanel2 = new javax.swing.JPanel(); jLabel3 = new javax.swing.JLabel(); cbox = new javax.swing.JComboBox<>(); btOk = new javax.swing.JButton(); jPanel3 = new javax.swing.JPanel(); bt3 = new javax.swing.JButton(); bt2 = new javax.swing.JButton(); bt1 = new javax.swing.JButton(); jPanel5 = new javax.swing.JPanel(); jPanel4 = new javax.swing.JPanel(); img1 = new javax.swing.JLabel(); jLabel7 = new javax.swing.JLabel(); jPanel6 = new javax.swing.JPanel(); jLabel6 = new javax.swing.JLabel(); img2 = new javax.swing.JLabel(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); setMinimumSize(new java.awt.Dimension(1200, 650)); setResizable(false); setSize(new java.awt.Dimension(1200, 650)); getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); jPanel1.setBackground(new java.awt.Color(227, 230, 232)); jPanel1.setMaximumSize(new java.awt.Dimension(1200, 650)); jPanel1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); jPanel2.setBackground(new java.awt.Color(27, 47, 71)); jPanel2.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); jPanel2.setMaximumSize(new java.awt.Dimension(1050, 50)); jPanel2.setMinimumSize(new java.awt.Dimension(1050, 50)); jPanel2.setPreferredSize(new java.awt.Dimension(1050, 50)); jPanel2.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); jLabel3.setFont(new java.awt.Font("sansserif", 1, 14)); // NOI18N jLabel3.setForeground(new java.awt.Color(255, 255, 255)); jLabel3.setText("Choisissez un image : "); jPanel2.add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 6, 190, 30)); cbox.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" })); jPanel2.add(cbox, new org.netbeans.lib.awtextra.AbsoluteConstraints(210, 10, 200, -1)); btOk.setText("OK"); btOk.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btOkActionPerformed(evt); } }); jPanel2.add(btOk, new org.netbeans.lib.awtextra.AbsoluteConstraints(430, 10, -1, -1)); jPanel1.add(jPanel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(150, 0, -1, -1)); jPanel3.setBackground(new java.awt.Color(27, 47, 71)); jPanel3.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); jPanel3.setMaximumSize(new java.awt.Dimension(150, 650)); jPanel3.setMinimumSize(new java.awt.Dimension(150, 650)); jPanel3.setName(""); // NOI18N jPanel3.setPreferredSize(new java.awt.Dimension(150, 650)); jPanel3.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); bt3.setBackground(new java.awt.Color(27, 47, 71)); bt3.setFont(new java.awt.Font("sansserif", 0, 14)); // NOI18N bt3.setForeground(new java.awt.Color(255, 255, 255)); bt3.setText("Détection Dirham"); bt3.setMaximumSize(new java.awt.Dimension(160, 35)); bt3.setMinimumSize(new java.awt.Dimension(160, 35)); bt3.setPreferredSize(new java.awt.Dimension(130, 35)); bt3.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { bt3ActionPerformed(evt); } }); jPanel3.add(bt3, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 280, -1, 80)); bt2.setBackground(new java.awt.Color(27, 47, 71)); bt2.setFont(new java.awt.Font("sansserif", 0, 14)); // NOI18N bt2.setForeground(new java.awt.Color(255, 255, 255)); bt2.setText("Calcul Dirhams"); bt2.setMaximumSize(new java.awt.Dimension(160, 35)); bt2.setMinimumSize(new java.awt.Dimension(160, 35)); bt2.setPreferredSize(new java.awt.Dimension(130, 35)); bt2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { bt2ActionPerformed(evt); } }); jPanel3.add(bt2, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 200, -1, 70)); bt1.setBackground(new java.awt.Color(27, 47, 71)); bt1.setFont(new java.awt.Font("sansserif", 1, 14)); // NOI18N bt1.setForeground(new java.awt.Color(255, 255, 255)); bt1.setText("Contours"); bt1.setMaximumSize(new java.awt.Dimension(160, 35)); bt1.setMinimumSize(new java.awt.Dimension(160, 35)); bt1.setPreferredSize(new java.awt.Dimension(130, 35)); bt1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { bt1ActionPerformed(evt); } }); jPanel3.add(bt1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 125, -1, 70)); jPanel1.add(jPanel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, -1, -1)); jPanel5.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); jPanel4.setBackground(new java.awt.Color(255, 255, 255)); jPanel4.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); img1.setText("jLabel1"); jPanel4.add(img1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 50, 490, 490)); jLabel7.setFont(new java.awt.Font("sansserif", 0, 14)); // NOI18N jLabel7.setText("Image originale"); jLabel7.setMaximumSize(new java.awt.Dimension(410, 24)); jLabel7.setMinimumSize(new java.awt.Dimension(410, 24)); jLabel7.setPreferredSize(new java.awt.Dimension(410, 24)); jPanel4.add(jLabel7, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 6, 480, -1)); jPanel5.add(jPanel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 10, 510, 560)); jPanel6.setBackground(new java.awt.Color(255, 255, 255)); jPanel6.setMaximumSize(new java.awt.Dimension(510, 560)); jPanel6.setMinimumSize(new java.awt.Dimension(510, 560)); jPanel6.setPreferredSize(new java.awt.Dimension(440, 560)); jPanel6.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); jLabel6.setFont(new java.awt.Font("sansserif", 0, 14)); // NOI18N jLabel6.setText("Image Résultat"); jLabel6.setMaximumSize(new java.awt.Dimension(410, 24)); jLabel6.setMinimumSize(new java.awt.Dimension(410, 24)); jLabel6.setPreferredSize(new java.awt.Dimension(410, 24)); jPanel6.add(jLabel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(6, 6, 480, -1)); img2.setText("jLabel2"); jPanel6.add(img2, new org.netbeans.lib.awtextra.AbsoluteConstraints(6, 48, 490, 490)); jPanel5.add(jPanel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(530, 10, 500, 560)); jPanel1.add(jPanel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(160, 60, 1040, 580)); getContentPane().add(jPanel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, -1, -1)); pack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n initComponents();\n }", "public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }", "public FormListRemarking() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n \n }", "public FormPemilihan() {\n initComponents();\n }", "public GUIForm() { \n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "public TorneoForm() {\n initComponents();\n }", "public FormCompra() {\n initComponents();\n }", "public muveletek() {\n initComponents();\n }", "public Interfax_D() {\n initComponents();\n }", "public quanlixe_form() {\n initComponents();\n }", "public SettingsForm() {\n initComponents();\n }", "public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public Soru1() {\n initComponents();\n }", "public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }", "public soal2GUI() {\n initComponents();\n }", "public EindopdrachtGUI() {\n initComponents();\n }", "public MechanicForm() {\n initComponents();\n }", "public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }", "public quotaGUI() {\n initComponents();\n }", "public BloodDonationGUI() {\n initComponents();\n }", "public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }", "public PatientUI() {\n initComponents();\n }", "public myForm() {\n\t\t\tinitComponents();\n\t\t}", "public Oddeven() {\n initComponents();\n }", "public Magasin() {\n initComponents();\n }", "public intrebarea() {\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}", "@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 LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }", "public kunde() {\n initComponents();\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 FrmMenu() {\n initComponents();\n }", "public Botonera() {\n initComponents();\n }", "public OffertoryGUI() {\n initComponents();\n setTypes();\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 JFFornecedores() {\n initComponents();\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.73201853", "0.7291607", "0.7291607", "0.7291607", "0.7285772", "0.7248832", "0.721371", "0.72083634", "0.71965843", "0.7190274", "0.71847606", "0.71592176", "0.71481156", "0.70935035", "0.70799935", "0.70570904", "0.6987588", "0.6977819", "0.69557554", "0.6953564", "0.6945299", "0.6942377", "0.69355065", "0.69326174", "0.69278985", "0.69251215", "0.69248855", "0.6911974", "0.6911815", "0.68930984", "0.68926644", "0.6890748", "0.689013", "0.6889194", "0.68833196", "0.68817353", "0.68812305", "0.68779206", "0.6875422", "0.6874629", "0.687249", "0.6859694", "0.6857467", "0.6855978", "0.68553996", "0.68549085", "0.6853271", "0.6853271", "0.68530285", "0.68427855", "0.6837456", "0.68367314", "0.682818", "0.6828002", "0.6826416", "0.6823491", "0.6823434", "0.68172073", "0.6816386", "0.6810029", "0.68090403", "0.680861", "0.6807909", "0.6807168", "0.680365", "0.67955285", "0.6795115", "0.6792028", "0.6790702", "0.6789993", "0.67889", "0.67872643", "0.6782707", "0.67665267", "0.6765798", "0.6765086", "0.6755966", "0.6755084", "0.6751955", "0.6750892", "0.67433685", "0.67388666", "0.6737211", "0.6735823", "0.673344", "0.67278177", "0.67267376", "0.67203826", "0.6716326", "0.67144203", "0.6713941", "0.6707991", "0.67068243", "0.6704236", "0.6701207", "0.66996884", "0.6698865", "0.6697606", "0.6693878", "0.6691149", "0.6689875" ]
0.0
-1
End of variables declaration//GENEND:variables
private void ErreurImage() { JOptionPane.showMessageDialog(rootPane, "Cette image n'est plus disponible"); }
{ "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
deve andare alla sezione dove visualizza le richieste
@Override public void goToEvent() { startActivity(new Intent(AddGuests.this, DetailEventRequest.class)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void afficherLru() {\n\t\tint nbrCols = listEtape.size();\n\t\tint nbrRows = 0;\n\t\tfor(ArrayList<Processus> list: listEtape) {\n\t\t\tif(list.size() > nbrRows) nbrRows = list.size(); \n\t\t}\n\t\t\n\t\taddColsRows(resultPane, nbrCols+1, nbrRows);\n\t\taddPanelForResult(resultPane);\n\t\n\n\t\tresultPane.setStyle(\"-fx-background-color: #23CFDC\");\n\n\t\t// Affichage du résultat\n\t\tfor(int i=0; i< listEtape.size();i++) {\n\t\t\tArrayList<Processus> list = listEtape.get(i); \n\t\t\tfor(int j=0; j<list.size(); j++) {\n\t\t\t\tProcessus p = list.get(j); \n\t\t\t\tLabel label = new Label(\"\" + p.getValue());\n\n\t\t\t\tresultPane.add(label, i+1, j);\n\t\t\t\tGridPane.setHalignment(label, HPos.CENTER);\n\n\t\t\t}\n\t\t}\n\t\tresultPane.setVisible(true);\n\t\tgenere = true;\n\t}", "private void renderObjetos()\n {\n for (int i=0;i<NCONSUMIBLES;i++)\n {\n //EDIT:Ruta de Inventario\n Consumible consumible=(Consumible)VenganzaBelial.atributoGestion.getInv().getItems().get(i);\n if(eleccionJugador==i)\n {\n opcionesJugadorTTF.drawString(10,i*20+400,consumible.getNombre()+\" \"+consumible.getNumero()+\"/10\");\n }\n else{\n opcionesJugadorTTF.drawString(10, i * 20 + 400, consumible.getNombre()+\" \"+consumible.getNumero()+\"/10\", notChosen);\n }\n }\n }", "public abstract String visualizar();", "public void visualizzaCampo(){\r\n\t\tInputOutput.stampaCampo(nome, descrizione, obbligatorio);\r\n\t}", "public void prenderVehiculo();", "@Override\r\n public void prenderVehiculo() {\r\n System.out.println(\"___________________________________________________\");\r\n System.out.println(\"prender Jet\");\r\n }", "public void afficherLfu() {\n\t\tint nbrCols = listEtapeLfu.size();\n\t\tint nbrRows = 0;\n\t\tfor(ArrayList<ProcessusLfu> list: listEtapeLfu) {\n\t\t\tif(list.size() > nbrRows) nbrRows = list.size(); \n\t\t}\n\t\taddColsRows(resultPane, nbrCols+1, nbrRows);\n\t\taddPanelForResult(resultPane);\n\t\t\n\t\tresultPane.setStyle(\"-fx-background-color: #23CFDC\");\n\n\t\t// Affichage du résultat\n\t\tfor(int i=0; i< listEtapeLfu.size();i++) {\n\t\t\tArrayList<ProcessusLfu> list = listEtapeLfu.get(i); \n\t\t\tfor(int j=0; j<list.size(); j++) {\n\t\t\t\tProcessusLfu p = list.get(j); \n\t\t\t\tLabel label = new Label(\"\" + p.getValue());\n\n\t\t\t\tresultPane.add(label, i+1, j);\n\t\t\t\tGridPane.setHalignment(label, HPos.CENTER);\n\n\t\t\t}\n\t\t}\n\t\tresultPane.setVisible(true);\n\t\tgenere = true;\n\t}", "private void visualizaPersonajes() {\r\n\r\n\t\t// Recogemos nuestro personaje y comprobamos su personaje para mostrar una\r\n\t\t// imagen u\r\n\t\t// otra.\r\n\t\tthis.personaje = DatabaseOperaciones.getPersonaje();\r\n\r\n\t\tString clase = (personaje == null) ? null : personaje.getClass().toString().substring(24);\r\n\r\n\t\tif (clase != null) {\r\n\r\n\t\t\tthis.character1.setStyle(\"visibility: visible;\" + \"-fx-background-image: url('\"\r\n\t\t\t\t\t+ this.personaje.getAspecto() + \"'); \" + \"-fx-background-size: cover;\");\r\n\r\n\t\t}\r\n\r\n\t\telse {\r\n\r\n\t\t\tthis.character1.setStyle(\"visibility: hidden;\");\r\n\t\t}\r\n\r\n\t\tcompruebaPersonajes();\r\n\t}", "public void afficherFifo() {\n\t\tint nbrCols = listEtapeFifo.size();\n\t\tint nbrRows = 0;\n\t\tfor(ArrayList<Integer> list: listEtapeFifo) {\n\t\t\tif(list.size() > nbrRows) nbrRows = list.size(); \n\t\t}\n\t\t\n\t\taddColsRows(resultPane, nbrCols+1, nbrRows);\n\t\taddPanelForResult(resultPane);\n\t\t\n\t\tresultPane.setStyle(\"-fx-background-color: #23CFDC\");\n\n\t\t// Affichage du résultat\n\t\tfor(int i=0; i< listEtapeFifo.size();i++) {\n\t\t\tArrayList<Integer> list = listEtapeFifo.get(i); \n\t\t\tfor(int j=0; j<list.size(); j++) {\n\t\t\t\t//Processus p = list.get(j); \n\t\t\t\tLabel label = new Label(\"\" + list.get(j));\n\t\t\t\tresultPane.add(label, i+1, j);\n\t\t\t\tGridPane.setHalignment(label, HPos.CENTER);\n\t\t\t}\n\t\t}\n\t\tresultPane.setVisible(true);\n\t\tgenere = true;\n\t}", "public void getSconti() {\r\n\t\tsconti = ac.getScontiDisponibili();\r\n\t\t//la tabella sara' non nulla quando sara' caricato il file VisualizzaLog.fxml\r\n\t\tif(tabellaSconti!= null) {\r\n\t\t\tvaloreScontiCol.setCellValueFactory(new PropertyValueFactory<Sconto, Integer>(\"valore\"));\r\n\t puntiRichiestiCol.setCellValueFactory(new PropertyValueFactory<Sconto, String>(\"puntiRichiesti\"));\r\n\t spesaMinimaCol.setCellValueFactory(new PropertyValueFactory<Sconto, String>(\"spesaMinima\"));\r\n\t \r\n\t Collections.sort(sconti);\r\n\t tabellaSconti.getItems().setAll(sconti);\r\n\t \r\n\t tabellaSconti.setOnMouseClicked(e -> {\r\n\t \tif(aggiungi.isDisabled() && elimina.isDisabled()) \r\n\t \t\ttotale.setText(\"\" + ac.applicaSconto(tabellaSconti.getSelectionModel().getSelectedItem()));\r\n\t });\r\n\t }\r\n\t}", "private void mostrarMensajes() {\r\n\t\tint indice=tablaMensajes.getSelectionIndex();\r\n\t\ttablaMensajes.removeAll();\r\n\t\tint i = 0;\r\n\t\tint numNuevos = 0;\r\n\t\t// Crear una fuente cursiva y otra negrita\r\n\t\tFontData[] fd = tablaMensajes.getFont().getFontData();\r\n\t\tfd[0].setStyle(SWT.ITALIC);\r\n\t\tFont fCursiva = new Font(tablaMensajes.getDisplay(),fd);\r\n\t\tfd[0].setStyle(SWT.BOLD);\r\n\t\tFont fNegrita = new Font(tablaMensajes.getDisplay(),fd);\r\n\t\tColor yellow = new Color(tablaMensajes.getDisplay(),255,255,0);\r\n\t\t\t\r\n\t\twhile (vista.getEmpleados().size()>0 && i + primerMensaje < vista.getTodosMensajesEntrantes().size() && i < vista.getNum_men_hoja()) {\r\n\t\t\tTableItem tItem = new TableItem(tablaMensajes, SWT.NONE);\r\n\t\t\tif (vista.getTodosMensajesEntrantes().get(vista.getTodosMensajesEntrantes().size()-i-1-primerMensaje).isMarcado())\r\n\t\t\t{\r\n\t\t\t\ttItem.setBackground(yellow);\r\n\t\t\t}\r\n\t\t\t//TODO mostrar mensajes leídos o no leídos\r\n\t\t\tif (vista.getTodosMensajesEntrantes().get(vista.getTodosMensajesEntrantes().size()-i-1-primerMensaje).isLeido()) \r\n\t\t\t{\r\n\t\t\t\ttItem.setImage(vista.getImagenes().getIco_mens_l());\r\n\t\t\t}\t\r\n\t\t\telse \r\n\t\t\t{\r\n\t\t\t\ttItem.setImage(vista.getImagenes().getIco_mens());\r\n\t\t\t\ttItem.setFont(fNegrita);\r\n\t\t\t\tnumNuevos++;\r\n\t\t\t}\r\n\t\t\tif (remitentes.size()>i)\r\n\t\t\ttItem.setText(1, remitentes.get(vista.getTodosMensajesEntrantes().size()-i-1));\r\n\t\t\t\r\n\t\t\ttItem.setText(2, Util.recortarTituloTexto(vista.getTodosMensajesEntrantes().get(vista.getTodosMensajesEntrantes().size()-i-1-primerMensaje).getAsunto(), prevAsuntoMens));\r\n\t\t\ttItem.setText(3, Util.recortarContenidoTexto(vista.getTodosMensajesEntrantes().get(vista.getTodosMensajesEntrantes().size()-i-1-primerMensaje).getTexto(), prevTextoMens));\r\n\t\t\ttItem.setText(4, Util.dateAString(vista.getTodosMensajesEntrantes().get(vista.getTodosMensajesEntrantes().size()-i-1-primerMensaje).getFecha()));\r\n\t\t\ttItem.setText(5, Util.dateAStringHora(vista.getTodosMensajesEntrantes().get(vista.getTodosMensajesEntrantes().size()-i-1-primerMensaje).getFecha()));\r\n\t\t\ti++;\r\n\t\t}\r\n\t\tint min;\r\n\t\tif(primerMensaje + vista.getNum_men_hoja()<vista.getTodosMensajesEntrantes().size())\r\n\t\t{\r\n\t\t\tmin = primerMensaje + vista.getNum_men_hoja();\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tmin = vista.getTodosMensajesEntrantes().size();\r\n\t\t}\r\n\t\tlMensajes.setText(bundle.getString(\"I02_lab_MostrandoMensajes1\") + \" \" + String.valueOf(primerMensaje+1) + \" \" + \r\n\t\t\t\tbundle.getString(\"I02_lab_MostrandoMensajes2\") + \" \" + String.valueOf(min)+ \" \" + \r\n\t\t\t\tbundle.getString(\"I02_lab_MostrandoMensajes3\") + \" \" + String.valueOf(vista.getTodosMensajesEntrantes().size()));\r\n\t\t/*dMensajes.setText(bundle.getString(\"I02_lab_MostrandoMensajes4\") + \" \" + String.valueOf(numNuevos) + \" \" +\r\n\t\t\t\tbundle.getString(\"I02_lab_MostrandoMensajes5\"));*/\r\n\t\ttablaMensajes.setEnabled(true);\r\n\t\ttablaMensajes.setCursor(new Cursor(tablaMensajes.getDisplay(), SWT.CURSOR_ARROW));\r\n\t\t\r\n\t\tint totalEntrantes = vista.getTodosMensajesEntrantes().size();\r\n\t\tif(primerMensaje+vista.getNum_men_hoja() < totalEntrantes)\r\n\t\t\tbSig = true;\r\n\t\telse \r\n\t\t\tbSig = false;\r\n\t\tbMensSiguientes.setEnabled(bSig);\r\n\t\t\r\n\t\tif(primerMensaje > 0)\r\n\t\t\tbAnt = true;\r\n\t\telse \r\n\t\t\tbAnt = false;\r\n\t\tbMensAnteriores.setEnabled(bAnt);\r\n\t\t\r\n\t\tbActualizar.setEnabled(true);\r\n\t\ttablaMensajes.setSelection(indice);\r\n\t}", "public void mostrarSocios()\n\t{\n\t\t//titulo libro, autor\n\t\tIterator<Socio> it=socios.iterator();\n\t\t\n\t\tSystem.out.println(\"***********SOCIOS***********\");\n\t\tSystem.out.printf(\"\\n%-40s%-40s\", \"NOMBRE\" , \"APELLIDO\");\n\t\twhile(it.hasNext())\n\t\t{\n\t\t\tSocio socio=(Socio)it.next();\n\t\t\tSystem.out.printf(\"\\n%-40s%-40s\\n\",socio.getNombre(),socio.getApellidos());\n\t\t}\n\t}", "public void affichageLabyrinthe () {\n\t\t//Affiche le nombre de coups actuel sur la console et sur la fenetre graphique\n\t\tSystem.out.println(\"Nombre de coups : \" + this.laby.getNbCoups() + \"\\n\");\t\t\n\t\tthis.enTete.setText(\"Nombre de coups : \" + this.laby.getNbCoups());\n\n\t\t//Affichage dans la fenêtre et dans la console du labyrinthe case par case, et quand la case est celle ou se trouve le mineur, affiche ce dernier\n\t\tfor (int i = 0 ; i < this.laby.getHauteur() ; i++) {\n\t\t\tString ligne = new String();\n\t\t\tfor (int j = 0 ; j < this.laby.getLargeur() ; j++) {\n\t\t\t\tif (i != this.laby.getMineur().getY() || j != this.laby.getMineur().getX()) {\n\t\t\t\t\tligne = ligne + this.laby.getLabyrinthe()[i][j].graphismeCase();\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tthis.laby.getLabyrinthe()[i][j]=new Case();\n\t\t\t\t\tligne = ligne + this.laby.getMineur().graphismeMineur();\n\t\t\t\t}\t\t\t\t\n\t\t\t\tif (grille.getComponentCount() < this.laby.getLargeur()*this.laby.getHauteur()) {\n\t\t\t\t\tgrille.add(new JLabel());\n\t\t\t\t\t((JLabel)grille.getComponents()[i*this.laby.getLargeur()+j]).setIcon(this.laby.getLabyrinthe()[i][j].imageCase(themeJeu));\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(ligne);\n\t\t}\n\t\t((JLabel)grille.getComponents()[this.laby.getMineur().getY()*this.laby.getLargeur()+this.laby.getMineur().getX()]).setIcon(this.laby.getMineur().imageCase(themeJeu));\n\t}", "@Override\n public void mostrarMediosRecientesRv() {\n iPerfilFragmentView.inicializarAdaptadorRV(iPerfilFragmentView.crearAdaptador(mascotas));\n iPerfilFragmentView.generarGridLayout();// Luego se debe indicar que genere el GridLayout\n }", "private void renderObjetos() {\n\n \t// Ver el boton de borrar\n this.rBotones.add(this.btnCancel);\n this.rBotones.add(this.btnFind);\n \n this.rBotones.setAlignment(Alignment.ALIGN_RIGHT);\n\n }", "private void Show (int inicio, int fin){\n int start = inicio;\n int end = fin; \n for(int i = start; i<=end; i++){\n areaT.append(this.letrasTexto[i]);\n } \n areaT.append(this.tipo.getDescripcion()+\"\\n\");\n }", "private void mostrarEmenta (){\n }", "private void render()\n {\n //Applicazione di un buffer \"davanti\" alla tela grafica. Prima di disegnare \n //sulla tela grafica il programma disegnerà i nostri oggetti grafici sul buffer \n //che, in seguito, andrà a disegnare i nostri oggetti grafici sulla tela\n bufferStrategico = display.getTelaGrafica().getBufferStrategy();\n \n //Se il buffer è vuoto (== null) vengono creati 3 buffer \"strategici\"\n if(bufferStrategico == null)\n {\n display.getTelaGrafica().createBufferStrategy(3);\n return;\n }\n \n //Viene definito l'oggetto \"disegnatore\" di tipo Graphic che disegnerà i\n //nostri oggetti grafici sui nostri buffer. Può disegnare qualsiasi forma\n //geometrica\n disegnatore = bufferStrategico.getDrawGraphics();\n \n //La riga seguente pulisce lo schermo\n disegnatore.clearRect(0, 0, larghezza, altezza);\n \n //Comando per cambiare colore dell'oggetto \"disegnatore\". Qualsiasi cosa\n //disengata dal disegnatore dopo questo comando avrà questo colore.\n \n /*disegnatore.setColor(Color.orange);*/\n \n //Viene disegnato un rettangolo ripieno. Le prime due cifre indicano la posizione \n //da cui il nostro disegnatore dovrà iniziare a disegnare il rettangolo\n //mentre le altre due cifre indicano le dimensioni del rettangolo\n \n /*disegnatore.fillRect(10, 50, 50, 70);*/\n \n //Viene disegnato un rettangolo vuoto. I parametri hanno gli stessi valori\n //del comando \"fillRect()\"\n \n /*disegnatore.setColor(Color.blue);\n disegnatore.drawRect(0,0,10,10);*/\n \n //I comandi seguenti disegnano un cerchio seguendo la stessa logica dei\n //rettangoli, di colore verde\n \n /*disegnatore.setColor(Color.green);\n disegnatore.fillOval(50, 10, 50, 50);*/\n \n /*Utilizziamo il disegnatore per caricare un'immagine. Il primo parametro\n del comando è l'immagine stessa, il secondo e il terzo parametro sono \n le coordinate dell'immagine (x,y) mentre l'ultimo parametro è l'osservatore\n dell'immagine (utilizzo ignoto, verrà impostato a \"null\" in quanto non\n viene usato)*/\n //disegnatore.drawImage(testImmagine,10,10,null);\n \n /*Comando che disegna uno dei nostri sprite attraverso la classe \"FoglioSprite\".*/\n //disegnatore.drawImage(foglio.taglio(32, 0, 32, 32), 10, 10,null);\n \n /*Viene disegnato un albero dalla classe \"Risorse\" attraverso il disegnatore.*/\n //disegnatore.drawImage(Risorse.omino, x, y,null);\n \n /*Se lo stato di gioco esiste eseguiamo la sua renderizzazione.*/\n if(Stato.getStato() != null)\n {\n \t Stato.getStato().renderizzazione(disegnatore);\n }\n \n //Viene mostrato il rettangolo\n bufferStrategico.show();\n disegnatore.dispose();\n }", "private void aggiornaContiFiglioRicorsivamente(Conto contoPadre) {\n\t\tString methodName = \"aggiornaContiFiglioRicorsivamente\";\n\t\tcontoPadre.setDataInizioValiditaFiltro(this.conto.getDataInizioValidita());\n\t\t\n\t\tListaPaginata<Conto> contiFiglio = contoDad.ricercaSinteticaContoFigli(contoPadre, new ParametriPaginazione(0,Integer.MAX_VALUE));\n\t\tfor (Conto contoFiglio : contiFiglio) {\n\t\t\t\n\t\t\t//TODO aggiungere qui tutti i parametri da ribaltare sui conti figli.\n\t\t\tcontoFiglio.setAttivo(contoPadre.getAttivo()); //in analisi c'è solo questo parametro!\n\t\t\t\n\t\t\tif(isContoDiLivelloDiLegge()) {\n\t\t\t\tlog.debug(methodName, \"Conto di livello di legge: aggiorno tutti i campi del figlio \" + contoFiglio.getCodice());\n\t\t\t\t\n\t\t\t\t//TODO controllare eventuali altri parametri da ribaltare ai conti figlio.\n\t\t\t\tcontoFiglio.setElementoPianoDeiConti(contoPadre.getElementoPianoDeiConti());\n\t\t\t\tcontoFiglio.setCategoriaCespiti(contoPadre.getCategoriaCespiti());\n\t\t\t\tcontoFiglio.setTipoConto(contoPadre.getTipoConto());\n\t\t\t\tcontoFiglio.setTipoLegame(contoPadre.getTipoLegame());\n\t\t\t\tcontoFiglio.setContoAPartite(contoPadre.getContoAPartite());\n\t\t\t\tcontoFiglio.setContoDiLegge(contoPadre.getContoDiLegge());\n\t\t\t\tcontoFiglio.setCodiceBilancio(contoPadre.getCodiceBilancio());\n\t\t\t\tcontoFiglio.setContoCollegato(contoPadre.getContoCollegato());\n\t\t\t} else {\n\t\t\t\tlog.debug(methodName, \"Conto NON di livello di legge: aggiorno solo il flag Attivo del figlio \" + contoFiglio.getCodice());\n\t\t\t}\n\t\t\t\n\t\t\tcontoDad.aggiornaConto(contoFiglio);\n\t\t\tlog.debug(methodName, \"Aggiornato conto figlio: \"+ contoFiglio.getCodice());\n\t\t\taggiornaContiFiglioRicorsivamente(contoFiglio);\n\t\t}\n\t}", "void setupRender() {\n List<Predmet> predmets = adminService.findAllPredmetsForPredavac(predavac);\n // create a SelectModel from my izlistaj of colors\n predmetSelectModel = selectModelFactory.create(predmets, \"name\");\n years = adminService.getYears();\n// List<Aktivnost> activities = adminService.getActivities(1, 2015);\n }", "private void colocar(){\n setLayout(s);\n eleccion = new BarraEleccion(imagenes,textos);\n eleccion.setLayout(new GridLayout(4,4));\n eleccion.setBorder(BorderFactory.createTitledBorder(\n BorderFactory.createBevelBorder(5), \"SELECCIONA EL MAGUEY\",\n TitledBorder.CENTER, TitledBorder.TOP,new Font(\"Helvetica\",Font.BOLD,15),Color.WHITE));\n eleccion.setFondoImagen(imgFond);\n etqAlcohol = new JLabel(\"SELECCIONA EL GRADO DE ALCOHOL\");\n etqAlcohol.setFont(new Font(\"Helvetica\", Font.BOLD, 14));\n etqAlcohol.setForeground(Color.WHITE);\n alcohol = new JComboBox<>();\n etqTipo = new JLabel(\"SELECCIONA EL TIPO DE MEZCAL\");\n etqTipo.setFont(new Font(\"Helvetica\", Font.BOLD, 14));\n etqTipo.setForeground(Color.WHITE);\n tipo = new JComboBox<>();\n btnRegistrar = new JButton();\n btnRegistrar.setFont(new Font(\"Sylfaen\", Font.BOLD, 17));\n btnRegistrar.setText(\"Registrar\");\n btnRegistrar.setHorizontalAlignment(SwingConstants.CENTER);\n btnRegistrar.setActionCommand(\"registrar\");\n add(eleccion);\n add(etqAlcohol);\n add(alcohol);\n add(etqTipo);\n add(tipo);\n add(btnRegistrar);\n iniciarVistas();\n }", "public hesapekrani() {\n initComponents();\n getedits();\n \n \n }", "@Override\r\n\tpublic void mostrar() {\n\t\t\r\n\t}", "public bEvaluacionOrientacionAresultados(int i, int c) {\n this.id_evaluacion = i;\n this.codigo = c;\n initComponents();\n jLabel1.setText(\"<html><b>Define prioridades y orienta a su equipo a lograr los objetivos</b></html>\");\n jLabel2.setText(\"<html><b>Acuerda con sus compañeros la entrega de los resultados en el tiempo\\n\" +\n\"establecido</b></html>\");\n jLabel3.setText(\"<html><b>Promueve con sus compañeros la utilización adecuada de los recursos para,\\n\" +\n\"realizar su trabajo</b></html>\");\n jLabel4.setText(\"<html><b>Investiga y busca conocimiento sobre temas relacionados con su\\n\" +\n\"trabajo</b></html>\");\n jLabel5.setText(\"<html><b>Incorpora mejoras en los procesos bajo su responsabilidad</b></html>\");\n \n jLabel6.setText(\"<html><b>2.Orientación a resultados: realizar las funciones y cumplir los compromisos organizacionales con eficacia y calidad.</b></html>\");\n l1.setText(\"<html><b><center> por debajo de lo esperado <br> 0 - 50 </center></b></html>\");\n l2.setText(\"<html><b><center> A mejorar <br> 51 - 65 </center></b></html>\");\n l3.setText(\"<html><b><center> Aceptable <br> 66 - 84 </center></b></html>\");\n l4.setText(\"<html><b><center> Destacado <br> 85 - 100 </center></b></html>\");\n foto();\n \n }", "@Override\n public void visualize() {\n if (this.count() > 0){\n for (int i = 0; i < this.count(); i++){\n System.out.println(i + \".- \" + this.bench.get(i).getName() + \" (ID: \" + this.bench.get(i).getId() + \")\");\n }\n } else {\n System.out.println(\"La banca está vacía.\");\n }\n\n }", "public void generarCuestionario() {\n setLayout(null);\n \n setTitle(\"Cuestionario de Fin de Curso\"); \n \n //Con el modelo construido debemos representar uestra pregunta\n //y mostrarala\n //Primero creamos las opciones\n \n Opcion op1 = new Opcion();\n op1.setTitulo(\"Londres\");\n op1.setCorrecta(false);\n\n Opcion op2 = new Opcion();\n op2.setTitulo(\"Roma\");\n op2.setCorrecta(false);\n\n Opcion op3 = new Opcion();\n op3.setTitulo(\"Paris\");\n op3.setCorrecta(true);\n\n Opcion op4 = new Opcion();\n op4.setTitulo(\"Oslo\");\n op4.setCorrecta(false);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones = {op1, op2, op3, op4};\n Pregunta p1 = new Pregunta();\n p1.setTitulo(\"¿Cual es la capital de Francia\");\n p1.setOpciones(opciones);\n \n //Opiciones de la pregumta Numero 2\n Opcion op21 = new Opcion();\n op21.setTitulo(\"Atlantico\");\n op21.setCorrecta(false);\n\n Opcion op22 = new Opcion();\n op22.setTitulo(\"Indico\");\n op22.setCorrecta(false);\n\n Opcion op23 = new Opcion();\n op23.setTitulo(\"Artico\");\n op23.setCorrecta(false);\n\n Opcion op24 = new Opcion();\n op24.setTitulo(\"Pacifico\");\n op24.setCorrecta(true);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones2 = {op21, op22, op23, op24};\n Pregunta p2 = new Pregunta();\n p2.setTitulo(\"¿Cual es el oceano más grande del mundo?\");\n p2.setOpciones(opciones2);\n \n //Opiciones de la pregumta Numero 3\n Opcion op31 = new Opcion();\n op31.setTitulo(\"Cristobal Colon\");\n op31.setCorrecta(true);\n\n Opcion op32 = new Opcion();\n op32.setTitulo(\"Cristobal Nodal\");\n op32.setCorrecta(false);\n\n Opcion op33 = new Opcion();\n op33.setTitulo(\"Cuahutemoc blanco\");\n op33.setCorrecta(false);\n\n Opcion op34 = new Opcion();\n op34.setTitulo(\"Cuahutemoc\");\n op34.setCorrecta(false);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones3 = {op31, op32, op33, op34};\n Pregunta p3 = new Pregunta();\n p3.setTitulo(\"¿Quien descubrio América?\");\n p3.setOpciones(opciones3);\n \n //Opiciones de la pregumta Numero 4\n Opcion op41 = new Opcion();\n op41.setTitulo(\"Fernanflo\");\n op41.setCorrecta(false);\n\n Opcion op42 = new Opcion();\n op42.setTitulo(\"Polinesios\");\n op42.setCorrecta(false);\n\n Opcion op43 = new Opcion();\n op43.setTitulo(\"Eh vegeta\");\n op43.setCorrecta(true);\n\n Opcion op44 = new Opcion();\n op44.setTitulo(\"Willyrex\");\n op44.setCorrecta(false);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones4 = {op41, op42, op43, op44};\n Pregunta p4 = new Pregunta();\n p4.setTitulo(\"¿Quien es el mejor youtuber?\");\n p4.setOpciones(opciones4);\n \n //Opiciones de la pregumta Numero 5\n Opcion op51 = new Opcion();\n op51.setTitulo(\"Amarillo patito\");\n op51.setCorrecta(false);\n\n Opcion op52 = new Opcion();\n op52.setTitulo(\"Verde Sherec\");\n op52.setCorrecta(false);\n\n Opcion op53 = new Opcion();\n op53.setTitulo(\"Rojo me faltas tú\");\n op53.setCorrecta(false);\n\n Opcion op54 = new Opcion();\n op54.setTitulo(\"Azul\");\n op54.setCorrecta(true);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones5 = {op51, op52, op53, op54};\n Pregunta p5 = new Pregunta();\n p5.setTitulo(\"¿De que color es el cielo?\");\n p5.setOpciones(opciones5);\n \n //Opiciones de la pregumta Numero 6\n Opcion op61 = new Opcion();\n op61.setTitulo(\"200\");\n op61.setCorrecta(false);\n\n Opcion op62 = new Opcion();\n op62.setTitulo(\"100\");\n op62.setCorrecta(false);\n\n Opcion op63 = new Opcion();\n op63.setTitulo(\"45\");\n op63.setCorrecta(true);\n\n Opcion op64 = new Opcion();\n op64.setTitulo(\"13\");\n op64.setCorrecta(false);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones6 = {op61, op62, op63, op64};\n Pregunta p6 = new Pregunta();\n p6.setTitulo(\"¿De cuantas localidades se compone una memoria de 8x5?\");\n p6.setOpciones(opciones6);\n \n //Opiciones de la pregumta Numero 7\n Opcion op71 = new Opcion();\n op71.setTitulo(\"Try - Catch\");\n op71.setCorrecta(false);\n\n Opcion op72 = new Opcion();\n op72.setTitulo(\"IF\");\n op72.setCorrecta(true);\n\n Opcion op73 = new Opcion();\n op73.setTitulo(\"Switch - Case\");\n op73.setCorrecta(false);\n\n Opcion op74 = new Opcion();\n op74.setTitulo(\"For anidado\");\n op74.setCorrecta(false);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones7 = {op71, op72, op73, op74};\n Pregunta p7 = new Pregunta();\n p7.setTitulo(\"¿Que estructura condicional se recomienda usar menos en una interfaz de usuario?\");\n p7.setOpciones(opciones7);\n \n //Opiciones de la pregumta Numero 8\n Opcion op81 = new Opcion();\n op81.setTitulo(\"Access\");\n op81.setCorrecta(false);\n\n Opcion op82 = new Opcion();\n op82.setTitulo(\"Oracle\");\n op82.setCorrecta(false);\n\n Opcion op83 = new Opcion();\n op83.setTitulo(\"MySQL\");\n op83.setCorrecta(false);\n\n Opcion op84 = new Opcion();\n op84.setTitulo(\"Mongo DB\");\n op84.setCorrecta(true);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones8 = {op81, op82, op83, op84};\n Pregunta p8 = new Pregunta();\n p8.setTitulo(\"¿Es una base de datos no relacional de uso moderno?\");\n p8.setOpciones(opciones8);\n \n //Opiciones de la pregumta Numero 9\n Opcion op91 = new Opcion();\n op91.setTitulo(\"GitHub\");\n op91.setCorrecta(true);\n\n Opcion op92 = new Opcion();\n op92.setTitulo(\"MIcrosoft teams\");\n op22.setCorrecta(false);\n\n Opcion op93 = new Opcion();\n op93.setTitulo(\"Zoom\");\n op93.setCorrecta(false);\n\n Opcion op94 = new Opcion();\n op94.setTitulo(\"Collaborate\");\n op94.setCorrecta(false);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones9 = {op91, op92, op93, op94};\n Pregunta p9 = new Pregunta();\n p9.setTitulo(\"¿Es una plataforma para trabajo en línea?\");\n p9.setOpciones(opciones9);\n\n //Opiciones de la pregumta Numero 10\n Opcion op101 = new Opcion();\n op101.setTitulo(\"Prog. a nivel maquina\");\n op101.setCorrecta(false);\n\n Opcion op102 = new Opcion();\n op102.setTitulo(\"Prog. orientada a objetos\");\n op102.setCorrecta(true);\n\n Opcion op103 = new Opcion();\n op103.setTitulo(\"MySQL\");\n op103.setCorrecta(false);\n\n Opcion op104 = new Opcion();\n op104.setTitulo(\"C++\");\n op104.setCorrecta(false);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones10 = {op101, op102, op103, op104};\n Pregunta p10 = new Pregunta();\n p10.setTitulo(\"¿Que aprendi en este curso?\");\n p10.setOpciones(opciones10);\n\n\n //Vamos a adaptar el cuestioanario a lo que ya teniamos\n Cuestionario c = new Cuestionario();\n //Creamos el list de preguntas\n\n //Se agrega a este list la unica prgunta que tenemos\n preguntas.add(p1);\n preguntas.add(p2);\n preguntas.add(p3);\n preguntas.add(p4);\n preguntas.add(p5);\n preguntas.add(p6);\n preguntas.add(p7);\n preguntas.add(p8);\n preguntas.add(p9);\n preguntas.add(p10);\n //A este list le vamos a proporcionar el valor del correspondiente\n //cuestioanrio\n c.setPreguntas(preguntas);\n//Primero ajustamos el titulo de la primer pregunta en la etiqueta de la preunta\n mostrarPregunta(preguntaActual);\n \n Salir.setVisible(false);\n siguiente.setEnabled(false);\n \n }", "private void mostrarRota() {\n int cont = 1;\n int contMelhorRota = 1;\n int recompensa = 0;\n int distanciaTotal = 0;\n List<Rota> calculaMR;\n\n System.out.println(\"\\n=================== =================== ========== #Entregas do dia# ========== =================== ===================\");\n for (RotasEntrega re : rotas) {\n Rota r = re.getRotaMenor();\n\n System.out\n .print(\"\\n\\n=================== =================== A \" + cont + \"º possível rota a ser realizada é de 'A' até '\" + r.getDestino() + \"' =================== ===================\");\n\n\n boolean isTrue = false;\n if (r.getRecompensa() == 1) {\n isTrue = true;\n }\n\n System.out.println(\"\\n\\nA possivel rota é: \" + printRoute(r));\n System.out.println(\n \"Com a chegada estimada de \" + r.getDistancia() + \" unidades de tempo no destino \" + \"'\"\n + r.getDestino() + \"'\" + \" e o valor para esta entrega será de \" + (isTrue ?\n r.getRecompensa() + \" real\" : r.getRecompensa() + \" reais\") + \".\");\n\n\n distanciaTotal += r.getDistancia();\n cont++;\n }\n\n calculaMR = calculaMelhorEntraga(distanciaTotal);\n System.out.println(\"\\n#############################################################################################################################\");\n\n for(Rota reS : calculaMR)\n {\n System.out\n .print(\"\\n\\n=================== =================== A \" + contMelhorRota + \"º rota a ser realizada é de 'A' até '\" + reS.getDestino() + \"' =================== ===================\");\n\n\n boolean isTrue = false;\n if (reS.getRecompensa() == 1) {\n isTrue = true;\n }\n\n System.out.println(\"\\n\\nA melhor rota é: \" + printRoute(reS));\n System.out.println(\n \"Com a chegada estimada de \" + reS.getDistancia() + \" unidades de tempo no destino \" + \"'\"\n + reS.getDestino() + \"'\" + \" e o valor para esta entrega será de \" + (isTrue ?\n reS.getRecompensa() + \" real\" : reS.getRecompensa() + \" reais\") + \".\");\n\n recompensa += reS.getRecompensa();\n contMelhorRota ++;\n }\n\n System.out.println(\"\\n\\nO lucro total do dia: \" + recompensa + \".\");\n }", "public void stampa() {\n GridPane matrice = new GridPane();\n buildGriglia(matrice);\n Text scritta;\n for (int i = 0; i < N; i++) {\n for (int j = 0; j < N; j++) {\n if (getElementAt(griglia, i, j).cerchio.isVisible()) {\n scritta = new Text(\"1\");\n }\n else {\n scritta = new Text(\"0\");\n }\n matrice.add(scritta, j, i);\n }\n }\n Scene scene3 = new Scene(matrice, N * 100, N * 100);\n Stage stage3 = new Stage();\n stage3.setTitle(\"Matrice di occupazione:\");\n stage3.setScene(scene3);\n stage3.show();\n }", "private void renderObjetos() {\n // Agrego los botones a la barra\n this.rBotones.add(this.btnOK);\n this.rBotones.add(this.btnCancel);\n }", "public VentanaFichaMedica() {\n initComponents(); \n setSize(1195, 545);\n setIcon();\n setLocationRelativeTo(null);\n setResizable(false);\n cargar(\"\");\n setTitle(\"LISTA DE FICHAS MÉDICAS\");\n inicar(); \n }", "public void MostrarListas (){\n Nodo recorrer=inicio; // esto sirve para que el elemento de la lista vaya recorriendo conforme se inserta un elemento\r\n System.out.println(); // esto nos sirve para dar espacio a la codificacion de la lista al imprimir \r\n while (recorrer!=null){ // esta secuencia iterativa nos sirve para repetir las opciones del menu\r\n System.out.print(\"[\" + recorrer.dato +\"]--->\");\r\n recorrer=recorrer.siguiente;\r\n }\r\n }", "public void MostrarValores() {\r\n Nodo recorrido = UltimoValorIngresado;\r\n\r\n while (recorrido != null) {\r\n Lista += recorrido.informacion + \"\\n\";\r\n recorrido = recorrido.siguiente;\r\n }\r\n\r\n JOptionPane.showMessageDialog(null, Lista);\r\n Lista = \"\";\r\n }", "public void majAffichageConnectes() {\n effacerConnectes(); // on efface ce qui est deja ecrit dans la zone reservees a la liste des\n // connectes\n\n choixMessage.removeAllItems(); // Suppression de tous les items de la comboBox\n choixMessage.addItem(\"Tout le monde\");\n choixMessage.setSelectedIndex(0); // Par defaut => envoi a tout le monde\n\n // Parcours de la liste des personnes connectees\n for (Map.Entry<String, Color> entry : couleurs.entrySet()) {\n String nom = entry.getKey(); // recuperation du nom\n Color rgb = new Color(chercherCouleur(nom)); // recuperation de la couleur correspondante\n\n // Mise a jour de la combobox\n if(!fenetre.getClient().getNom().equals(nom)){\n choixMessage.addItem(nom);\n }\n\n // Mise a jour de l'affichage dans le panneau \"Connectes\"\n StyledDocument doc = connectes.getStyledDocument();\n StyleContext style = StyleContext.getDefaultStyleContext();\n // Modification de la couleur\n AttributeSet aset = style.addAttribute(style.getEmptySet(), StyleConstants.Foreground, rgb);\n // Mettre en gras\n aset = style.addAttributes(aset, style.addAttribute(style.getEmptySet(), StyleConstants.Bold, true));\n\n // ajout de la personne dans la liste avec la couleur correspondante\n try {\n doc.insertString(doc.getLength(), nom+\"\\n\", aset);\n } catch (BadLocationException e) {\n e.printStackTrace();\n }\n }\n\n System.out.println(\"maj de l'affichage de la liste des connectes\");\n }", "public TelaFimDeJogo() {\n initComponents();\n gerenciador.pegaJogadorDaRodada();\n mensagemBaixo.setForeground(gerenciador.pegaJogadorDaRodada().getColor());\n mensagemCima.setForeground(gerenciador.pegaJogadorDaRodada().getColor());\n mensagemCima.setText(\"PARABÉNS JOGADOR \" + gerenciador.pegaJogadorDaRodada().getNomeCor().toUpperCase() + \", VOCÊ VENCEU!!\");\n }", "private void selectedRowGuide(){\r\n xy log_guide_rel_inv = tb_guias.getSelectionModel().getSelectedItem(); \r\n loadTables(log_guide_rel_inv.getGuias());\r\n loadCarga(log_guide_rel_inv.getGuias());\r\n \r\n List<Fxp_Archguid_gfc> data = Ln.getList_log_Archguid_gfc(Ln.getInstance().find_Archguid_gfc(log_guide_rel_inv.getGuias()));\r\n\r\n tp_factura.setText(\r\n \"Relación de Guia / Facturas / Clientes \" + \r\n \" - \" + \r\n data.size() + \" / \" + \r\n data.get(0).getNumfact() + \" / \" + \r\n data.get(0).getNumclie());\r\n\r\n tp_factura.setExpanded(true);\r\n \r\n }", "public void mostrarTablero(){\n\t\tIterator<String> itr = getIteradorMinas();\n\t\tString mina = null;\n\t\tint col;\n\t\tint fila;\n\t\tint conta=1;\n\t\tCasilla casilla;\n\t\tif (lMinas.size()>0){\n\t\t\twhile(itr.hasNext()){\n\t\t\t\tconta++;\n\t\t\t\tmina=itr.next(); \n\t\t\t\tcol=this.separarCoordenadasCol(this.separarCoordenadasString(mina));\n\t\t\t\tfila=this.separarCoordenadasFil(this.separarCoordenadasString(mina));\n\t\t\t\tcasilla=buscarCasilla(fila, col);\n\t\t\t\tif(!casilla.estaDesvelada()&&!casilla.tieneBandera()){\n\t\t\t\t\tcasilla.descubrir();\n\t\t\t\t\tsetChanged();\n\t\t\t\t\tnotifyObservers(fila+\",\"+col+\",\"+10);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcomprobarBanderas();\n\t\t\n\t}", "public void generarCuestionario() {\n \n try{\n ValidarOpcionSeleccionada.validar (radios);\n }catch (OpcionNoSeleccionadaException e) {\n etiquetaRespuesta.setText(\"Debes selecionar una opcion\");\n}\n \n\n //Con el modelo construido debemos representar nuestra pregunta\n //y mostrarala\n //Primero creamos las opciones\n Opcion op1 = new Opcion();\n op1.setTitulo(\"Inglaterra\");\n op1.setCorrecta(false);\n\n Opcion op2 = new Opcion();\n op2.setTitulo(\"México\");\n op2.setCorrecta(false);\n\n Opcion op3 = new Opcion();\n op3.setTitulo(\"Italia\");\n op3.setCorrecta(false);\n\n Opcion op4 = new Opcion();\n op4.setTitulo(\"Francia\");\n op4.setCorrecta(true);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones = {op1, op2, op3, op4};\n Pregunta p1 = new Pregunta();\n p1.setTitulo(\"¿Que país tiene más Premios Nobel de Literatura?\");\n p1.setOpciones(opciones);\n\n \n //opciones de la pregunta 2\n Opcion op21 = new Opcion();\n op21.setTitulo(\"Ares\");\n op21.setCorrecta(false);\n\n Opcion op22 = new Opcion();\n op22.setTitulo(\"Prometeo\");\n op22.setCorrecta(false);\n\n Opcion op23 = new Opcion();\n op23.setTitulo(\"Poseidón\");\n op23.setCorrecta(true);\n\n Opcion op24 = new Opcion();\n op24.setTitulo(\"Hefesto\");\n op24.setCorrecta(false);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones2 = {op21, op22, op23, op24};\n Pregunta p2 = new Pregunta();\n p2.setTitulo(\"¿Quién es el padre del cíclope Polifemo según la mitología griega?\");\n p2.setOpciones(opciones2);\n \n //opciones de la pregunta 3\n Opcion op31 = new Opcion();\n op31.setTitulo(\"J.K Rowling\");\n op31.setCorrecta(false);\n\n Opcion op32 = new Opcion();\n op32.setTitulo(\"Emily Bronte\");\n op32.setCorrecta(false);\n\n Opcion op33 = new Opcion();\n op33.setTitulo(\"Stephen King\");\n op33.setCorrecta(false);\n\n Opcion op34 = new Opcion();\n op34.setTitulo(\"Jane Austen\");\n op34.setCorrecta(true);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones3 = {op31, op32, op33, op34};\n Pregunta p3 = new Pregunta();\n p3.setTitulo(\"¿Quien escribio el libro Orgullo y Prejuicio?\");\n p3.setOpciones(opciones3);\n \n //Opciones pregunta 4\n Opcion op41 = new Opcion();\n op41.setTitulo(\"El Cáliz de Fuego\");\n op41.setCorrecta(true);\n\n Opcion op42 = new Opcion();\n op42.setTitulo(\"Festin de Cuervos\");\n op42.setCorrecta(false);\n\n Opcion op43 = new Opcion();\n op43.setTitulo(\"El prisionero de Azkaban\");\n op43.setCorrecta(false);\n\n Opcion op44 = new Opcion();\n op44.setTitulo(\"Principe Mecánico\");\n op44.setCorrecta(false);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones4 = {op41, op42, op43, op44};\n Pregunta p4 = new Pregunta();\n p4.setTitulo(\"¿Como se llama el cuarto libro de Harry Potter?\");\n p4.setOpciones(opciones4);\n \n //Opciones pregunta 5\n Opcion op51 = new Opcion();\n op51.setTitulo(\"Dunkirk\");\n op51.setCorrecta(false);\n\n Opcion op52 = new Opcion();\n op52.setTitulo(\"Los Miserables\");\n op52.setCorrecta(true);\n\n Opcion op53 = new Opcion();\n op53.setTitulo(\"Interestelar\");\n op53.setCorrecta(false);\n\n Opcion op54 = new Opcion();\n op54.setTitulo(\"Batman: El caballero de la noche\");\n op54.setCorrecta(false);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones5= {op51, op52, op53, op54};\n Pregunta p5 = new Pregunta();\n p5.setTitulo(\"¿Que película NO dirigio Chistopher Nolan?\");\n p5.setOpciones(opciones5);\n \n //Opciones pregunta 6\n Opcion op61 = new Opcion();\n op61.setTitulo(\"Joe Greene\");\n op61.setCorrecta(false);\n\n Opcion op62 = new Opcion();\n op62.setTitulo(\"Tom Brady\");\n op62.setCorrecta(false);\n\n Opcion op63 = new Opcion();\n op63.setTitulo(\"Joe Montana\");\n op63.setCorrecta(false);\n\n Opcion op64 = new Opcion();\n op64.setTitulo(\"Peyton Manning\");\n op64.setCorrecta(true);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones6 = {op61, op62, op63, op64};\n Pregunta p6 = new Pregunta();\n p6.setTitulo(\"¿Que jugador ha ganado más MVP en la NFL?\");\n p6.setOpciones(opciones6);\n \n //Opciones pregunta 7\n Opcion op71 = new Opcion();\n op71.setTitulo(\"Bayern Munich\");\n op71.setCorrecta(false);\n\n Opcion op72 = new Opcion();\n op72.setTitulo(\"Real Madrid\");\n op72.setCorrecta(true);\n\n Opcion op73 = new Opcion();\n op73.setTitulo(\"Barcelona\");\n op73.setCorrecta(false);\n\n Opcion op74 = new Opcion();\n op74.setTitulo(\"Manchester United\");\n op74.setCorrecta(false);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones7 = {op71, op72, op73, op74};\n Pregunta p7 = new Pregunta();\n p7.setTitulo(\"¿Que equipo ha ganado más Champions League en la hsitoria?\");\n p7.setOpciones(opciones7);\n \n \n //Opciones pregunta 8\n \n Opcion op81 = new Opcion();\n op81.setTitulo(\"Tratado de Versalles\");\n op81.setCorrecta(true);\n\n Opcion op82 = new Opcion();\n op82.setTitulo(\"Tratado de Granada\");\n op82.setCorrecta(false);\n\n Opcion op83 = new Opcion();\n op83.setTitulo(\"Tratado de Lyon\");\n op83.setCorrecta(false);\n\n Opcion op84 = new Opcion();\n op84.setTitulo(\"Tratado de Londres\");\n op84.setCorrecta(false);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones8 = {op81, op82, op83, op84};\n Pregunta p8 = new Pregunta();\n p8.setTitulo(\"¿Como se llamo el tratado con el que se le dio fin a la PGM?\");\n p8.setOpciones(opciones8);\n \n //opciones pregunta 9 \n \n Opcion op91 = new Opcion();\n op91.setTitulo(\"Hermanos Lumiere\");\n op91.setCorrecta(false);\n\n Opcion op92 = new Opcion();\n op92.setTitulo(\"Steven Spielberg\");\n op92.setCorrecta(false);\n\n Opcion op93 = new Opcion();\n op93.setTitulo(\"Thomas Harper\");\n op93.setCorrecta(false);\n\n Opcion op94 = new Opcion();\n op94.setTitulo(\"George Mellies\");\n op94.setCorrecta(true);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones9 = {op91, op92, op93, op94};\n Pregunta p9 = new Pregunta();\n p9.setTitulo(\"¿A quien se le considera como el mago del cine?\");\n p9.setOpciones(opciones9);\n \n //Opciones pregunta 10\n Opcion op101 = new Opcion();\n op101.setTitulo(\"Miguel Ángel\");\n op101.setCorrecta(false);\n\n Opcion op102 = new Opcion();\n op102.setTitulo(\"Rafael Sanzio\");\n op102.setCorrecta(false);\n\n Opcion op103 = new Opcion();\n op103.setTitulo(\"Leonardo Da Vinci\");\n op103.setCorrecta(true);\n\n Opcion op104 = new Opcion();\n op104.setTitulo(\"Bernini\");\n op104.setCorrecta(false);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones10 = {op101, op102, op103, op104};\n Pregunta p10 = new Pregunta();\n p10.setTitulo(\"¿Que artífice NO participo en la construcción de la Basílica de San Pedro?\");\n p10.setOpciones(opciones10);\n \n \n \n //Pregunta p11 =new Pregunta();\n System.out.println(\"Fin de Cuestionario \");\n \n \n \n //Vamos a adaptar el cuestioanario a lo que ya teniamos\n Cuestionario c = new Cuestionario();\n //Creamos el list de preguntas\n \n \n \n //Se agrega a este list las preguntas que tenemos\n preguntas.add(p1);\n preguntas.add(p2);\n preguntas.add(p3);\n preguntas.add(p4);\n preguntas.add(p5);\n preguntas.add(p6);\n preguntas.add(p7);\n preguntas.add(p8);\n preguntas.add(p9);\n preguntas.add(p10);\n // preguntas.add(p11);\n //A este list le vamos a proporcionar el valor del correspondiente\n //cuestioanrio\n \n c.setPreguntas(preguntas);\n //Ajustamos el titulo de la primera pregunta\n mostrarPregunta (preguntaActual); \n//Primero ajustamos el titulo de la primer pregunta en la etiqueta de la pregunta\ntry{\n int opcion= Integer.parseInt (etiquetaRespuesta.getText());\n ValidarNumeroPreguntas.validar (opcion);\n }catch (NumberFormatException e) {\n \n}\n \n }", "private String creaElenco() {\n String testoTabella ;\n String riga = CostBio.VUOTO;\n ArrayList listaPagine = new ArrayList();\n ArrayList listaRiga;\n HashMap mappaTavola = new HashMap();\n String cognomeText;\n int num;\n int taglioPagine = Pref.getInt(CostBio.TAGLIO_COGNOMI_PAGINA);\n String tag = \"Persone di cognome \";\n ArrayList titoli = new ArrayList();\n titoli.add(LibWiki.setBold(\"Cognome\"));\n titoli.add(LibWiki.setBold(\"Voci\"));\n\n for (Map.Entry<String, Integer> mappa: mappaCognomi.entrySet()) {\n\n cognomeText = mappa.getKey();\n num = mappa.getValue();\n if (num >= taglioPagine) {\n cognomeText = tag + cognomeText + CostBio.PIPE + cognomeText;\n cognomeText = LibWiki.setQuadre(cognomeText);\n cognomeText = LibWiki.setBold(cognomeText);\n }// end of if cycle\n\n listaRiga = new ArrayList();\n listaRiga.add(cognomeText);\n listaRiga.add(num);\n listaPagine.add(listaRiga);\n\n }// end of for cycle\n mappaTavola.put(Cost.KEY_MAPPA_SORTABLE_BOOLEAN, true);\n mappaTavola.put(Cost.KEY_MAPPA_TITOLI, titoli);\n mappaTavola.put(Cost.KEY_MAPPA_RIGHE_LISTA, listaPagine);\n testoTabella = LibWiki.creaTable(mappaTavola);\n\n return testoTabella;\n }", "private void moverCarroLujo() {\n for (Auto auto : arrEnemigosAuto) {\n auto.render(batch);\n\n auto.moverIzquierda();\n }\n }", "@Override\n\tpublic List<EntidadeDominio> Visualizar(EntidadeDominio entidade) {\n\t\tLivro livro = (Livro)entidade;\n\t\tPreparedStatement pst = null;\n\t\tPreparedStatement pst2 = null;\n\t\tPreparedStatement pst3 = null;\n\t\tPreparedStatement pst4 = null;\n\t\tPreparedStatement pst5 = null;\n\t\tStringBuilder sql = new StringBuilder();\n\t\tsql.append(\"SELECT * FROM livro WHERE idlivro=?\");\n\t\ttry {\n\t\t\topenConnection();\t\n\t\n\t\tpst = connection.prepareStatement(sql.toString());\n\t\tpst.setInt(1, livro.getId());\n\t\tResultSet rs = pst.executeQuery();\n\t\tList<EntidadeDominio> livros = new ArrayList<EntidadeDominio>();\n\t\tif(rs.next()) {\n\t\t\tlivro.setTitulo(rs.getString(\"livTitulo\"));\n\t\t\tlivro.setSinopse(rs.getString(\"livSinopse\"));\n\t\t\tlivro.setCodigoBarras(rs.getString(\"livCodigoDeBarras\"));\n\t\t\tDimensoes dimensao = new Dimensoes();\n\t\t\tdouble Altura = rs.getDouble(\"livAltura\");\n\t\t\tdouble Largura = rs.getDouble(\"livLargura\");\n\t\t\tdouble Peso = rs.getDouble(\"livPeso\");\n\t\t\tdouble profundidade = rs.getDouble(\"livProfundidade\");\n\t\t\tdimensao.setAltura(Altura);\n\t\t\tdimensao.setLargura(Largura);\n\t\t\tdimensao.setPeso(Peso);\n\t\t\tdimensao.setProfundidade(profundidade);\n\t\t\tlivro.setDimensoes(dimensao);\n\t\t\tlivro.setISBN(rs.getString(\"livISBN\"));\n\t\t\tlivro.setNumeroPaginas(rs.getInt(\"livNumeroPaginas\"));\n\t\t\tlivro.setEdicao(rs.getInt(\"livEdicao\"));\n\t\t\tlivro.setStatus(rs.getString(\"livStatus\"));\n\t\t\tlivro.setAno(rs.getInt(\"livAno\"));\n\t\t}\n\t\t\tStringBuilder sql2 = new StringBuilder();\n\t\t\t sql2.append(\"SELECT * FROM livcat JOIN categoria ON livcat.id_categoria= categoria.id_Categoria WHERE livcat.id_livro=?\");\n\t\t\t pst2 = connection.prepareStatement(sql2.toString());\n\t\t\t pst2.setInt(1, livro.getId());\n\t\t\tResultSet rs2 = pst2.executeQuery();\n\t\t\tList<Categoria> cat = new ArrayList<Categoria>();\n\t\t\tCategoria c = new Categoria();\n\t\t\tif(rs2.next()) {\n\t\t\t\tc.setNome(rs2.getString(\"categoria\"));\n\t\t\t\tc.setId(rs2.getInt(\"id_Categoria\"));\n\t\t\t\tcat.add(c);\n\t\t\t}\n\t\t\t\n\t\t//TERCEIRA PARTE PUXAR AUTOR\n\t\t\tStringBuilder sql3 = new StringBuilder();\n\t\t\t sql3.append(\"SELECT * FROM livro JOIN autor ON livro.livIdAutor = autor.id_Autor WHERE livro.idlivro=?\");\n\t\t\t pst3 = connection.prepareStatement(sql3.toString());\n\t\t\t pst3.setInt(1, rs.getInt(\"idlivro\"));\n\t\t\tResultSet rs3 = pst3.executeQuery();\n\t\t\twhile(rs3.next())\n\t\t\t{\n\t\t\t\tAutor autor = new Autor();\n\t\t\t\tautor.setId(rs3.getInt(\"id_Autor\"));\n\t\t\t\tautor.setNome(rs3.getString(\"autor\"));\n\t\t\t\tlivro.setAutor(autor);\n\t\t\t\t\n\t\t\t}\n\t\t//QUARTA PARTE PUXANDO A EDITORA\n\t\t\tStringBuilder sql4 = new StringBuilder();\n\t\t\t sql4.append(\"SELECT * FROM livro JOIN editora ON livro.livIdEditora = editora.id_editora WHERE livro.idlivro=?\");\n\t\t\t pst4 = connection.prepareStatement(sql4.toString());\n\t\t\t pst4.setInt(1, rs.getInt(\"idlivro\"));\n\t\t\t ResultSet rs4 = pst4.executeQuery();\n\t\t\t if(rs4.next())\n\t\t\t {\n\t\t\t\t Editora edit = new Editora();\n\t\t\t\t edit.setId(rs4.getInt(\"id_editora\"));\n\t\t\t\t edit.setNome(rs4.getString(\"editora\"));\n\t\t\t\t livro.setEditora(edit);\n\t\t\t }\n\t\t//QUINTA PARTE PUXANDO A PRECIFICACAO\n\t\t\t StringBuilder sql5 = new StringBuilder();\n\t\t\t sql5.append(\"SELECT * FROM livro JOIN precificacao ON livro.livIdPrecificacao = precificacao.id_precificacao WHERE idlivro=?\");\n\t\t\t pst5 = null;\n\t\t\t pst5 = connection.prepareStatement(sql5.toString());\n\t\t\t pst5.setInt(1, rs.getInt(\"idlivro\"));\n\t\t\t ResultSet rs5 = pst5.executeQuery();\n\t\t\t if(rs5.next())\n\t\t\t {\n\t\t\t\t Precificacao preci = new Precificacao();\n\t\t\t\t preci.setClassificacao(rs5.getString(\"precificacao\"));\n\t\t\t\t preci.setTipo(rs5.getInt(\"id_precificacao\"));\n\t\t\t\t livro.setPrecificacao(preci);\n\t\t\t }\n\t\t//SEXTA PARTE MONTANDO O RETORNO\t\t\t\n\t\t\t\tlivro.setIdcategoria(cat);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tlivros.add(livro);\n\t\t\t\treturn livros;\n\t//java.sql.Date dtCadastroEmLong = rs.getDate(\"dt_cadastro\");\n\t//Date dtCadastro = new Date(dtCadastroEmLong.getTime());\t\t\t\t\n\t//p.setDtCadastro(dtCadastro);\n\t//produtos.add(p);\n\t} catch (SQLException e) {\n\t\te.printStackTrace();\n\t}\n\t\treturn null;\n\t}", "@Override\n public void paintComponent(Graphics g) {\n super.paintComponent(g);\n // dessiner les Objets que contient le dessin\n for (Chenille c : listeDesChenilles) {\n c.dessiner(g);\n }\n }", "private void createContents() {\n\t\tshlEditionRussie = new Shell(getParent(), getStyle());\n\t\tshlEditionRussie.setSize(470, 262);\n\t\tshlEditionRussie.setText(\"Edition r\\u00E9ussie\");\n\t\t\n\t\tLabel lblLeFilm = new Label(shlEditionRussie, SWT.NONE);\n\t\tlblLeFilm.setBounds(153, 68, 36, 15);\n\t\tlblLeFilm.setText(\"Le film\");\n\t\t\n\t\tLabel lblXx = new Label(shlEditionRussie, SWT.NONE);\n\t\tlblXx.setBounds(195, 68, 21, 15);\n\t\tlblXx.setText(\"\" + getViewModel());\n\t\t\n\t\tLabel lblABient = new Label(shlEditionRussie, SWT.NONE);\n\t\tlblABient.setText(\"a bien \\u00E9t\\u00E9 modifi\\u00E9\");\n\t\tlblABient.setBounds(222, 68, 100, 15);\n\t\t\n\t\tButton btnRevenirLa = new Button(shlEditionRussie, SWT.NONE);\n\t\tbtnRevenirLa.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tm_Infrastructure.runController(shlEditionRussie, ListMoviesController.class);\n\t\t\t}\n\t\t});\n\t\tbtnRevenirLa.setBounds(153, 105, 149, 25);\n\t\tbtnRevenirLa.setText(\"Revenir \\u00E0 la liste des films\");\n\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 }", "protected void narisi(Graphics2D g, double wp, double hp) {\n\n FontMetrics fm = g.getFontMetrics();\n\n int hPisava = fm.getAscent();\n\n double xColumn = 0.0;\n double yColumn = sirinaStolpca(wp, hp);\n\n for(int i = 0; i < podatki.length; i++){\n\n g.setColor(Color.ORANGE);\n g.fillRect((int)xColumn,(int)(hp - visinaStolpca(i, wp, hp)), (int) sirinaStolpca(wp, hp), (int) visinaStolpca(i, wp, hp));\n\n g.setColor(Color.RED);\n g.drawRect((int)((i)*sirinaStolpca(wp, hp)),(int) (hp-visinaStolpca(i, wp, hp)), (int)sirinaStolpca(wp, hp), (int)visinaStolpca(i, wp, hp));\n\n g.setColor(Color.BLUE);\n if(i < podatki.length - 1){\n double startCrtaX = sredinaVrha(i, wp, hp)[0];\n double startCrtaY = sredinaVrha(i, wp, hp)[1];\n\n double endCrtaX = sredinaVrha(i + 1, wp, hp)[0];\n double endCrtaY = sredinaVrha(i+1, wp, hp)[1];\n\n g.drawLine((int)startCrtaX,(int) startCrtaY,(int) endCrtaX,(int) endCrtaY);\n\n }\n\n g.setColor(Color.BLACK);\n\n String toWrite = Integer.toString(i+1);\n double wNapis=fm.stringWidth(toWrite);\n double xNapis=xColumn+(xColumn-wNapis)/2;\n double yNapisLowerLine=hp-hPisava;\n xColumn+=sirinaStolpca(wp, hp);\n g.drawString(toWrite,ri (xNapis),ri(yNapisLowerLine));\n\n }\n\n }", "@Override\n protected String elaboraBody() {\n String text = CostBio.VUOTO;\n int numCognomi = mappaCognomi.size();\n int numVoci = Bio.count();\n int taglioVoci = Pref.getInt(CostBio.TAGLIO_NOMI_ELENCO);\n\n text += A_CAPO;\n text += \"==Cognomi==\";\n text += A_CAPO;\n text += \"Elenco dei \";\n text += LibWiki.setBold(LibNum.format(numCognomi));\n text += \" cognomi '''differenti''' utilizzati nelle \";\n text += LibWiki.setBold(LibNum.format(numVoci));\n text += \" voci biografiche con occorrenze maggiori di \";\n text += LibWiki.setBold(taglioVoci);\n text += A_CAPO;\n text += creaElenco();\n text += A_CAPO;\n\n return text;\n }", "@Override\n public void paint(Graphics g){\n GraficasEstatus cantidad=new GraficasEstatus();\n super.paint(g);\n if(bandera==true){\n \n int nuevoingreso=cantidad.nuevoIngreso();\n int noreparado=cantidad.noReparado();\n int enrevision=cantidad.enRevision();\n int reparado=cantidad.reparado();\n int entregado=cantidad.entregado();\n int otro=cantidad.otro();\n \n int valormayor=mayorValor(nuevoingreso, noreparado, enrevision, reparado, entregado, otro);\n \n int ningreso=nuevoingreso*400/valormayor;\n int nreparados=noreparado*400/valormayor;\n int erevision=enrevision*400/valormayor;\n int reparados=reparado*400/valormayor;\n int entregados=entregado*400/valormayor;\n int otros=otro*400/valormayor;\n \n g.setColor(new Color(255,170,0));\n g.fillRect(100, 100, ningreso, 40);\n g.drawString(\"Nuevo ingreso\", 10, 118);\n g.drawString(\"Cantida \"+nuevoingreso, 10, 133);\n \n g.setColor(new Color(255,0,0));\n g.fillRect(100, 150, nreparados, 40);\n g.drawString(\"No reparados\", 10, 168);\n g.drawString(\"Cantida \"+noreparado, 10, 180);\n \n g.setColor(new Color(0,0,255));\n g.fillRect(100, 200, erevision, 40);\n g.drawString(\"En revision\", 10, 218);\n g.drawString(\"Cantida \"+enrevision, 10, 233);\n \n g.setColor(new Color(0,150,255));\n g.fillRect(100, 250, reparados, 40);\n g.drawString(\"Reparados\", 10, 268);\n g.drawString(\"Cantida \"+reparado, 10, 280);\n \n g.setColor(new Color(0,130,0));\n g.fillRect(100, 300, entregados, 40);\n g.drawString(\"Entregados\", 10, 318);\n g.drawString(\"Cantida \"+entregado, 10, 333);\n \n g.setColor(new Color(150,100,100));\n g.fillRect(100, 350, otros, 40);\n g.drawString(\"Otro\", 10, 368);\n g.drawString(\"Cantida \"+otro, 10, 380);\n \n }\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 }", "private void renderObjetos() {\n \tcpPrincipal.add(_cPrincipal);\n\n _cPrincipal.add(rPrincipal);\n rPrincipal.add(cLabels);\n rPrincipal.add(cTexts);\n \n //rPrincipal.setBorder(new Border(1, Color.BLUE,Border.STYLE_DASHED));\n \n _cPrincipal.add(rMensaje);\n _cPrincipal.add(rBotones); \n \n cLabels.add(lApellido);\n cLabels.add(lNombres);\n cLabels.add(lDocNum);\n cLabels.add(lTelefono);\n cLabels.add(lCelular);\n //cLabels.add(lRazonSocial);\n \n cTexts.add(tApellido);\n cTexts.add(tNombres); \n cTexts.add(tDoc);\n cTexts.add(tTelefono);\n cTexts.add(tCelular);\n //cTexts.add(tRazonSocial); \n \n rMensaje.add(lMensaje);\n\n ApplicationInstance.getActive().setFocusedComponent(tApellido);\n \n }", "public JPanel convertisseur(){\n JPanel pano = new JPanel();\n stop.addActionListener(this);\n envoi.addActionListener(this);\n \n //empeche qu'un retard essaye de fuck up la sortie\n this.resultat.setFocusable(false);\n \n //le GridBagLayout permet d'avoir une grille relative entre les elements\n pano.setLayout(new GridBagLayout());\n GridBagConstraints c = new GridBagConstraints();\n c.fill = GridBagConstraints.HORIZONTAL;\n c.gridx = 0;\n c.gridy = 1;\n pano.add(saisie, c);\n c.gridx = 1;\n pano.add(format, c);\n c.gridx = 3;\n pano.add(resultat, c);\n c.gridx = 2;\n pano.add(envoi, c);\n c.gridy = 2;\n pano.add(stop, c);\n c.gridy = 0;\n c.gridx = 0;\n pano.add(new JLabel(\"Heure de depart \"), c);\n c.gridx = 1;\n pano.add(new JLabel(\"duree\"), c);\n return pano;\n }", "public JPanel getRepresentacionGrafica();", "private void mostraResultado() {\n int linha = jTableResultados.getSelectedRow();\n if (linha >= 0) {\n int a = new Integer(\"\" + jTableResultados.getValueAt(linha, 0));\n double c0 = Double.parseDouble(\"\" + jTableResultados.getValueAt(linha, 1));\n double c1 = Double.parseDouble(\"\" + jTableResultados.getValueAt(linha, 2));\n telaSemivariograma.getJTextFieldAlcance().setText(\"\" + a);\n telaSemivariograma.getJTextFieldEfeitoPepita().setText(\"\" + c0);\n telaSemivariograma.getJTextFieldContribuicao().setText(\"\" + c1);\n telaSemivariograma.getJSliderAlcance().setValue(a);\n telaSemivariograma.getJSliderEfeitoPepita().setValue((int) (c0 * 10000));\n telaSemivariograma.getJSliderContribuicao().setValue((int) (c1 * 10000));\n if (telaSemivariograma.isVisible()) {\n telaSemivariograma.setVisible(false);\n }\n telaSemivariograma.setVisible(true);\n }\n }", "private void MostrarSombra()\n {\n // Si tiene el valor por defecto\n if (EsDefecto())\n {\n // Si tenemos establecida la sombra \"defecto\"\n if (m_SombraD.m_nShadowColor != Color.TRANSPARENT)\n {\n setShadowLayer(m_SombraD.m_nShadowRadius, m_SombraD.m_nShadowDx,\n m_SombraD.m_nShadowDy, m_SombraD.m_nShadowColor);\n }\n else setShadowLayer(0, 0, 0, Color.TRANSPARENT);\n }\n else\n {\n // Si tenemos establecida la sombra \"normal\"\n if (m_SombraN.m_nShadowColor != Color.TRANSPARENT)\n {\n setShadowLayer(m_SombraN.m_nShadowRadius, m_SombraN.m_nShadowDx,\n m_SombraN.m_nShadowDy, m_SombraN.m_nShadowColor);\n }\n else setShadowLayer(0, 0, 0, Color.TRANSPARENT);\n }\n }", "public void MostrarDatos(){\n // En este caso, estamos mostrando la informacion necesaria del objeto\n // podemos acceder a la informacion de la persona y de su arreglo de Carros por medio de un recorrido\n System.out.println(\"Hola, me llamo \" + nombre);\n System.out.println(\"Tengo \" + contador + \" carros.\");\n for (int i = 0; i < contador; i++) {\n System.out.println(\"Tengo un carro marca: \" + carros[i].getMarca());\n System.out.println(\"El numero de placa es: \" + carros[i].getPlaca()); \n System.out.println(\"----------------------------------------------\");\n }\n }", "Rey(){\r\n \r\n color_rey=Color.BLANCO;\r\n posicion_rey.fila=1;\r\n posicion_rey.columna='e';\r\n \r\n }", "@Override\n\tpublic void mostrarDados() {\n\t\t\n\t}", "private IngenicoDisplay(){\n\n }", "private static void statistique(){\n\t\tfor(int i = 0; i<7; i++){\n\t\t\tfor(int j = 0; j<7; j++){\n\t\t\t\tfor(int l=0; l<jeu.getJoueurs().length; l++){\n\t\t\t\t\tif(jeu.cases[i][j].getCouleurTapis() == jeu.getJoueurs()[l].getNumJoueur()){\n\t\t\t\t\t\tjeu.getJoueurs()[l].setTapis(jeu.getJoueurs()[l].getTapisRest()+1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tJoueur j;\n\t\tSystem.out.println(\"// Fin de la partie //\");\n\t\tfor(int i=0; i<jeu.getJoueurs().length; i++) {\n\t\t\tj =jeu.getJoueurs()[i];\n\t\t\tSystem.out.println(\"Joueur \"+ (j.getNumJoueur()+1) + \" a obtenue \"+j.getTapisRest()+j.getMonnaie()+\" points\" );\n\t\t}\n\t}", "public void afficheInfos() {\n int i;\n Polygone p;\n for(i=0;i<this.list.size();i++){\n p = (Polygone) this.list.get(i);\n System.out.println(\"–––––––––––––––––––––\");\n System.out.println(\"Type : \" + p.toString());\n System.out.println(\"Sommet :\");\n System.out.print(p.texteSommets());\n System.out.println(\"Perimetre : \" + p.perimetre());\n System.out.println(\"Surface : \" + p.surface());\n System.out.println(\"–––––––––––––––––––––\");\n } \n }", "@FXML\r\n private void mostrarSolicitudes() {\r\n try {\r\n //Carga la vista \r\n FXMLLoader loader = new FXMLLoader();\r\n loader.setLocation(Principal.class.getResource(\"/vista/MostrarRma.fxml\"));\r\n VBox vistaMostrar = (VBox) loader.load();\r\n\r\n //Crea un dialogo para mostrar la vista\r\n Stage dialogo = new Stage();\r\n dialogo.setTitle(\"Solicitudes enviadas\");\r\n dialogo.initModality(Modality.WINDOW_MODAL);\r\n dialogo.initOwner(primerStage);\r\n Scene escena = new Scene(vistaMostrar);\r\n dialogo.setScene(escena);\r\n\r\n //Annadir controlador y datos\r\n ControladorMostrarRma controlador = loader.getController();\r\n controlador.setDialogs(primerStage, dialogo);\r\n\r\n //Modifica el dialogo para que no se pueda cambiar el tamaño y lo muestra\r\n dialogo.setResizable(false);\r\n dialogo.showAndWait();\r\n\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }", "public Leiho4ZerbitzuGehigarriak(Ostatua hartutakoOstatua, double prezioTot, Date dataSartze, Date dataIrtetze,\r\n\t\t\tint logelaTot, int pertsonaKop) {\r\n\t\tsetIconImage(Toolkit.getDefaultToolkit().getImage(\".\\\\Argazkiak\\\\logoa.png\"));\r\n\t\tgetContentPane().setLayout(null);\r\n\t\tthis.setBounds(350, 50, 600, 600);\r\n\t\tthis.setResizable(false); // neurketak ez aldatzeko\r\n\t\tthis.setSize(new Dimension(600, 600));\r\n\t\tthis.setTitle(\"Airour ostatu bilatzailea\");\r\n\t\tprezioTot2 = prezioTot;\r\n\t\t// botoiak\r\n\t\tbtn_next.addActionListener(new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\r\n\t\t\t\tMetodoakLeihoAldaketa.bostgarrenLeihoa(hartutakoOstatua, prezioTot2, dataSartze, dataIrtetze, logelaTot,\r\n\t\t\t\t\t\tpertsonaKop, cboxPentsioa.getSelectedItem() + \"\", zerbitzuArray, gosaria);\r\n\r\n\t\t\t\tdispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtn_next.setBounds(423, 508, 122, 32);\r\n\t\tbtn_next.setFont(new Font(\"Tahoma\", Font.ITALIC, 16));\r\n\t\tbtn_next.setBackground(Color.LIGHT_GRAY);\r\n\t\tbtn_next.setForeground(Color.RED);\r\n\t\tgetContentPane().add(btn_next);\r\n\r\n\t\tbtn_prev.addActionListener(new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t// System.out.println(hartutakoOstatua.getOstatuMota());\r\n\t\t\t\tif (hartutakoOstatua.getOstatuMota().equals(\"H\"))\r\n\t\t\t\t\tMetodoakLeihoAldaketa.hirugarrenLeihoaHotelak(hartutakoOstatua, dataSartze, dataIrtetze);\r\n\t\t\t\telse\r\n\t\t\t\t\tMetodoakLeihoAldaketa.hirugarrenLeihoaEtxeak(hartutakoOstatua, prezioTot, dataIrtetze, dataIrtetze);\r\n\t\t\t\tdispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtn_prev.setBounds(38, 508, 107, 32);\r\n\t\tbtn_prev.setFont(new Font(\"Tahoma\", Font.ITALIC, 16));\r\n\t\tbtn_prev.setForeground(Color.RED);\r\n\t\tbtn_prev.setBackground(Color.LIGHT_GRAY);\r\n\t\tgetContentPane().add(btn_prev);\r\n\r\n\t\trestart.addActionListener(new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tMetodoakLeihoAldaketa.lehenengoLeihoa();\r\n\t\t\t\tdispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\trestart.setBounds(245, 508, 72, 32);\r\n\t\trestart.setForeground(Color.RED);\r\n\t\trestart.setBackground(Color.LIGHT_GRAY);\r\n\t\tgetContentPane().add(restart);\r\n\r\n\t\t// panela\r\n\t\tlblIzena.setText(hartutakoOstatua.getIzena());\r\n\t\tlblIzena.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblIzena.setFont(new Font(\"Verdana\", Font.BOLD | Font.ITALIC, 21));\r\n\t\tlblIzena.setBounds(0, 13, 594, 32);\r\n\t\tgetContentPane().add(lblIzena);\r\n\r\n\t\tlblLogelak.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\r\n\t\tlblLogelak.setBounds(210, 114, 72, 25);\r\n\t\tgetContentPane().add(lblLogelak);\r\n\r\n\t\ttxtLogelak = new JTextField();\r\n\t\ttxtLogelak.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\r\n\t\ttxtLogelak.setEditable(false);\r\n\t\ttxtLogelak.setText(logelaTot + \"\");\r\n\t\ttxtLogelak.setBounds(285, 116, 32, 20);\r\n\t\ttxtLogelak.setColumns(10);\r\n\t\tgetContentPane().add(txtLogelak);\r\n\r\n\t\tlblPentsioa.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\r\n\t\tlblPentsioa.setBounds(210, 165, 72, 14);\r\n\t\tif (!hartutakoOstatua.getOstatuMota().equals(\"H\"))\r\n\t\t\tlblPentsioa.setVisible(false);\r\n\t\tgetContentPane().add(lblPentsioa);\r\n\r\n\t\tcboxPentsioa.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\r\n\t\tcboxPentsioa.addItem(\"Pentsiorik ez\");\r\n\t\tcboxPentsioa.addItem(\"Erdia\");\r\n\t\tcboxPentsioa.addItem(\"Osoa\");\r\n\t\tcboxPentsioa.setBounds(285, 162, 111, 20);\r\n\t\tgetContentPane().add(cboxPentsioa);\r\n\t\tif (!hartutakoOstatua.getOstatuMota().equals(\"H\"))\r\n\t\t\tcboxPentsioa.setVisible(false);\r\n\r\n\t\tcboxPentsioa.addActionListener(new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tint gauak = (int) ((dataIrtetze.getTime() - dataSartze.getTime()) / 86400000);\r\n\r\n\t\t\t\tif (cboxPentsioa.getSelectedItem().equals(\"Pentsiorik ez\")) {\r\n\t\t\t\t\tprezioTot2 = prezioTot2 - pentsioPrez;\r\n\t\t\t\t\tpentsioPrez = 0;\r\n\t\t\t\t} else if (cboxPentsioa.getSelectedItem().equals(\"Erdia\")) {\r\n\t\t\t\t\tprezioTot2 = prezioTot2 - pentsioPrez;\r\n\t\t\t\t\tpentsioPrez = 5 * gauak;\r\n\t\t\t\t\tprezioTot2 = prezioTot2 + pentsioPrez;\r\n\t\t\t\t} else if (cboxPentsioa.getSelectedItem().equals(\"Osoa\")) {\r\n\t\t\t\t\tprezioTot2 = prezioTot2 - pentsioPrez;\r\n\t\t\t\t\tpentsioPrez = 10 * gauak;\r\n\t\t\t\t\tprezioTot2 = prezioTot2 + pentsioPrez;\r\n\t\t\t\t}\r\n\t\t\t\ttxtPrezioa.setText(prezioTot2 + \" €\");\r\n\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tchckbxGosaria.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\r\n\t\tchckbxGosaria.setBounds(245, 201, 97, 23);\r\n\t\tchckbxGosaria.addActionListener(new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tint gauak = (int) ((dataIrtetze.getTime() - dataSartze.getTime()) / 86400000);\r\n\t\t\t\tdouble gosariPrezioa = 3 * gauak;\r\n\t\t\t\tif (chckbxGosaria.isSelected()) {\r\n\t\t\t\t\tprezioTot2 = prezioTot2 + gosariPrezioa;\r\n\t\t\t\t\tgosaria = true;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tgosaria = false;\r\n\t\t\t\t\tprezioTot2 = prezioTot2 - gosariPrezioa;\r\n\t\t\t\t}\r\n\t\t\t\ttxtPrezioa.setText(prezioTot2 + \" €\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tgetContentPane().add(chckbxGosaria);\r\n\r\n\t\tlblZerbitzuak.setFont(new Font(\"Verdana\", Font.BOLD, 16));\r\n\t\tlblZerbitzuak.setBounds(51, 244, 230, 25);\r\n\t\tgetContentPane().add(lblZerbitzuak);\r\n\r\n\t\t// gehigarriak\r\n\t\tzerbitzuArray = MetodoakKontsultak.zerbitzuakOstatuanMet(hartutakoOstatua);\r\n\r\n\t\tmodelo.addColumn(\"Izena:\");\r\n\t\tmodelo.addColumn(\"Prezio gehigarria:\");\r\n\t\tmodelo.addColumn(\"Hartuta:\");\r\n\r\n\t\t// tabla datuak\r\n\t\ttable = new JTable(modelo);\r\n\t\ttable.setShowVerticalLines(false);\r\n\t\ttable.setBorder(new LineBorder(new Color(0, 0, 0)));\r\n\t\ttable.setFont(new Font(\"Verdana\", Font.PLAIN, 14));\r\n\r\n\t\ttable.getColumnModel().getColumn(0).setPreferredWidth(150);\r\n\t\ttable.getColumnModel().getColumn(1).setPreferredWidth(150);\r\n\t\ttable.getColumnModel().getColumn(1).setPreferredWidth(150);\r\n\r\n\t\ttable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\r\n\t\ttable.getTableHeader().setResizingAllowed(false);\r\n\t\ttable.setRowHeight(32);\r\n\t\ttable.setBackground(Color.LIGHT_GRAY);\r\n\t\ttable.setBounds(24, 152, 544, 42);\r\n\t\ttable.getTableHeader().setFont(new Font(\"Verdana\", Font.BOLD, 15));\r\n\t\ttable.getTableHeader().setReorderingAllowed(false);\r\n\t\tgetContentPane().add(table);\r\n\r\n\t\ttable.addMouseListener(new java.awt.event.MouseAdapter() {\r\n\t\t\tpublic void mousePressed(MouseEvent me) {\r\n\t\t\t\tif (me.getClickCount() == 1) {\r\n\t\t\t\t\ti = 1;\r\n\t\t\t\t\tif (table.getValueAt(table.getSelectedRow(), 2).equals(\"Ez\"))\r\n\t\t\t\t\t\ti = 1;\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\ti = 2;\r\n\t\t\t\t\tif (i == 1) {\r\n\t\t\t\t\t\ttable.setValueAt(\"Bai\", table.getSelectedRow(), 2);\r\n\t\t\t\t\t\tprezioTot2 = prezioTot2 + zerbitzuArray.get(table.getSelectedRow()).getPrezioa();\r\n\t\t\t\t\t\tzerbitzuArray.get(table.getSelectedRow()).setHartuta(\"Bai\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (i == 2) {\r\n\t\t\t\t\t\ttable.setValueAt(\"Ez\", table.getSelectedRow(), 2);\r\n\t\t\t\t\t\tprezioTot2 = prezioTot2 - zerbitzuArray.get(table.getSelectedRow()).getPrezioa();\r\n\t\t\t\t\t\tzerbitzuArray.get(table.getSelectedRow()).setHartuta(\"Ez\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\ttxtPrezioa.setText(prezioTot2 + \" €\");\r\n\t\t\t\t} else {\r\n\t\t\t\t\t\ti = 1;\r\n\t\t\t\t\t\tif (table.getValueAt(table.getSelectedRow(), 2).equals(\"Ez\"))\r\n\t\t\t\t\t\t\ti = 1;\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\ti = 2;\r\n\t\t\t\t\t\tif (i == 1) {\r\n\t\t\t\t\t\t\ttable.setValueAt(\"Bai\", table.getSelectedRow(), 2);\r\n\t\t\t\t\t\t\tprezioTot2 = prezioTot2 + zerbitzuArray.get(table.getSelectedRow()).getPrezioa();\r\n\t\t\t\t\t\t\tzerbitzuArray.get(table.getSelectedRow()).setHartuta(\"Bai\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (i == 2) {\r\n\t\t\t\t\t\t\ttable.setValueAt(\"Ez\", table.getSelectedRow(), 2);\r\n\t\t\t\t\t\t\tprezioTot2 = prezioTot2 - zerbitzuArray.get(table.getSelectedRow()).getPrezioa();\r\n\t\t\t\t\t\t\tzerbitzuArray.get(table.getSelectedRow()).setHartuta(\"Ez\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\ttxtPrezioa.setText(prezioTot2 + \" €\");\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tscrollPane = new JScrollPane(table);\r\n\t\tscrollPane.setViewportBorder(null);\r\n\t\tscrollPane.setBounds(20, 282, 562, 188);\r\n\r\n\t\tgetContentPane().add(scrollPane);\r\n\r\n\t\tfor (HartutakoOstatuarenZerbitzuak zerb : zerbitzuArray) {\r\n\t\t\tarray[0] = zerb.getIzena();\r\n\t\t\tarray[1] = zerb.getPrezioa() + \" €\";\r\n\t\t\tarray[2] = \"Ez\";\r\n\t\t\tmodelo.addRow(array);\r\n\t\t}\r\n\t\ttable.setModel(modelo);\r\n\r\n\t\tlblPrezioa.setFont(new Font(\"Tahoma\", Font.PLAIN, 16));\r\n\t\tlblPrezioa.setBounds(210, 72, 63, 14);\r\n\t\tgetContentPane().add(lblPrezioa);\r\n\r\n\t\ttxtPrezioa = new JTextField();\r\n\t\ttxtPrezioa.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\r\n\t\ttxtPrezioa.setText(prezioTot2 + \" €\");\r\n\t\ttxtPrezioa.setEditable(false);\r\n\t\ttxtPrezioa.setBounds(274, 70, 136, 20);\r\n\t\ttxtPrezioa.setColumns(10);\r\n\t\tgetContentPane().add(txtPrezioa);\r\n\r\n\t}", "public void cargarDocumentos(ArrayList<CategoriaBE> listaCategoria,UsuarioBE objUsuario){\n setVisible(true);\n this.pgbCargaDocumentos.setMaximum(100);\n int paso= 100/this.nomArch.size();\n String resultado;\n int valorActual = 0;\n for (int i = 0; i < nomArch.size(); ++i){\n DocumentoBE doc = null;\n try {\n int idDoc = Utilitario.generaCodigo(\"Documento\");\n doc = new DocumentoBE(idDoc, \"activo\" , nomArch.get(i).getName() , objUsuario, null);\n doc.setContenido(DocumentoBL.obtenerContenido(nomArch.get(i)));\n try {\n DocumentoBL.registrar(doc);\n /* Si es exitosos */\n resultado = \"El archivo \" + nomArch.get(i).getName() + \" fue registrado con exito\";\n } catch (Exception ex) {\n resultado = \"Error al registrar \" + nomArch.get(i).getName() + \" el archivo no fue registrado\";\n Logger.getLogger(JDRegistrarDocumento.class.getName()).log(Level.SEVERE, null, ex);\n }\n this.taDatosProgreso.setText(this.taDatosProgreso.getText() + \"\\n\" + resultado);\n valorActual += paso;\n this.pgbCargaDocumentos.setValue(valorActual);\n Rectangle rect = this.pgbCargaDocumentos.getBounds();\n\t\trect.x = 0;\n\t\trect.y = 0;\n\t\tthis.pgbCargaDocumentos.paintImmediately( rect );\n rect = this.pnlDatosProgreso.getBounds();\n rect.x = 0;\n rect.y = 0;\n this.pnlDatosProgreso.paintImmediately(rect);\n /*try {\n Thread.sleep(1000);\n } catch (InterruptedException ex) {\n Logger.getLogger(JDCargaDocumentos.class.getName()).log(Level.SEVERE, null, ex);\n }*/\n } catch (FileNotFoundException ex) {\n Logger.getLogger(JDRegistrarDocumento.class.getName()).log(Level.SEVERE, null, ex);\n } catch (IOException ex) {\n Logger.getLogger(JDRegistrarDocumento.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n this.btnAceptar.setEnabled(true);\n }", "private void mostrarPregunta() {\n inicializarColorBoton();\n\n preguntaActual=trivia.get(idPregunta);\n txtPregunta.setText(preguntaActual.getPregunta());\n\n\n if (preguntaActual.getImgPregunta()!=null)\n {\n\n Log.e(TAG,preguntaActual.getImgPregunta() );\n Glide.with(getApplicationContext())\n .load(preguntaActual.getImgPregunta())\n .diskCacheStrategy(DiskCacheStrategy.ALL)\n .into(imgPregunta);\n imgPregunta.setVisibility(View.VISIBLE);\n }\n else\n {\n imgPregunta.setVisibility(View.GONE);\n }\n\n switch(preguntaActual.getOpciones().size())\n {\n case 2:\n btn1.setText(preguntaActual.getOpciones().get(0));\n btn2.setText(preguntaActual.getOpciones().get(1));\n btn3.setVisibility(View.GONE);\n btn4.setVisibility(View.GONE);\n break;\n case 4:\n btn1.setText(preguntaActual.getOpciones().get(0));\n btn2.setText(preguntaActual.getOpciones().get(1));\n btn3.setText(preguntaActual.getOpciones().get(2));\n btn4.setText(preguntaActual.getOpciones().get(3));\n btn3.setVisibility(View.VISIBLE);\n btn4.setVisibility(View.VISIBLE);\n break;\n }\n idPregunta++;\n }", "@Override\n\tpublic void paint(Graphics g) {\n\t\tsuper.paint(g);\n\t\t\n\t\tsetBackground(Color.white); // Imposto il colore di sfondo\n\t\tsetForeground(Color.black); // Imposto il colore dell'etichetta\n\t}", "protected void regenerarVista() {\r\n if (this.partida != null) {\r\n\r\n Configuracion config = this.partida.getConfiguracion(); \r\n \r\n /* Tablero y Piezas en el Tablero */\r\n PanelTablero panel = this.fabricaDePanelesTablero.crearTablero(config);\r\n\r\n this.vista.setPanelTablero(panel);\r\n \r\n /* Piezas que no están en el Tablero */\r\n List<BaseEspacial> bases = this.partida.getBases();\r\n\r\n for (BaseEspacial base : bases) {\r\n\r\n this.vista.addInforme(base, INFORMES_BASE);\r\n \r\n /* Naves que están en la Base */\r\n for (Nave nave : base.getNaves()) {\r\n \r\n this.fabricaDePanelesTablero.crearPieza(nave, panel, config);\r\n \r\n this.vista.addInforme(nave, INFORMES_NAVE);\r\n }\r\n }\r\n \r\n // TODO refactorizar\r\n for (Pieza pieza : this.partida.getTablero()) {\r\n\r\n if (pieza instanceof Contenedor) {\r\n \r\n this.vista.addInforme(pieza, INFORMES_CONTENEDOR);\r\n }\r\n }\r\n \r\n } else {\r\n \r\n this.vista.setPanelTablero(this.presentacion);\r\n }\r\n \r\n this.vista.revalidate();\r\n }", "public void popular(){\n DAO dao = new DAO();\n modelo.setNumRows(0);\n\n for(Manuais m: dao.selecTudoManuaisVenda()){\n modelo.addRow(new Object[]{m.getId(),m.getNome(),m.getClasse(),m.getEditora(),m.getPreco()+\".00 MZN\"});\n \n }\n }", "@Override\n\tpublic List<EntidadeDominio> VisualizarInativos(EntidadeDominio entidade) {\n\t\tPreparedStatement pst = null;\n\t\tStringBuilder sql = new StringBuilder();\n\t\tsql.append(\"SELECT * FROM livros WHERE Status=?\");\n\t\ttry {\n\t\t\topenConnection();\t\n\t\n\t\tpst = connection.prepareStatement(sql.toString());\n\t\tpst.setString(1, \"INATIVADO\");\n\t\tResultSet rs = pst.executeQuery();\n\t\tList<EntidadeDominio> livros = new ArrayList<EntidadeDominio>();\n\t\t//SEGUNDA PARTE PUXAR CATEGORIAS\n\t\t\t\twhile (rs.next()) {\n\t\t\t\t\tStringBuilder sql2 = new StringBuilder();\n\t\t\t\t\t sql2.append(\"SELECT * FROM livCat JOIN Categoria ON livCat.id_categoria = Categoria.id_categoria WHERE Idlivro=?\");\n\t\t\t\t\t pst = null;\n\t\t\t\t\t pst = connection.prepareStatement(sql2.toString());\n\t\t\t\t\t pst.setInt(1, rs.getInt(\"id_livro\"));\n\t\t\t\t\tResultSet rs2 = pst.executeQuery();\n\t\t\t\t\tList<Categoria> cat = new ArrayList<Categoria>();\n\t\t\t\t\tCategoria c = new Categoria();\n\t\t\t\t\twhile(rs2.next()) {\n\t\t\t\t\t\tc.setNome(rs2.getString(\"CategoriaNome\"));\n\t\t\t\t\t\tc.setId(rs2.getInt(\"idCategoria\"));\n\t\t\t\t\t\tcat.add(c);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t//TERCEIRA PARTE PUXAR AUTOR\n\t\t\t\t\tStringBuilder sql3 = new StringBuilder();\n\t\t\t\t\t sql3.append(\"SELECT * FROM livro JOIN Autor ON livro.IdAutor = Autor.Id WHERE Idlivro=?\");\n\t\t\t\t\t pst = null;\n\t\t\t\t\t pst = connection.prepareStatement(sql3.toString());\n\t\t\t\t\t pst.setInt(1, rs.getInt(\"id_livro\"));\n\t\t\t\t\tResultSet rs3 = pst.executeQuery();\n\t\t\t\t\t\n\t\t\t\t//QUARTA PARTE PUXANDO A EDITORA\n\t\t\t\t\tStringBuilder sql4 = new StringBuilder();\n\t\t\t\t\t sql4.append(\"SELECT * FROM livro JOIN Editora ON livro.IdEditora = Editora.Id WHERE Idlivro=?\");\n\t\t\t\t\t pst = null;\n\t\t\t\t\t pst = connection.prepareStatement(sql4.toString());\n\t\t\t\t\t pst.setInt(1, rs.getInt(\"id_livro\"));\n\t\t\t\t\t ResultSet rs4 = pst.executeQuery();\n\t\t\t\t//QUINTA PARTE PUXANDO A PRECIFICACAO\n\t\t\t\t\t StringBuilder sql5 = new StringBuilder();\n\t\t\t\t\t sql5.append(\"SELECT * FROM livro JOIN Precificacao ON livro.IdPrecificacao = Precificacao.Id WHERE Idlivro=?\");\n\t\t\t\t\t pst = null;\n\t\t\t\t\t pst = connection.prepareStatement(sql5.toString());\n\t\t\t\t\t pst.setInt(1, rs.getInt(\"id_livro\"));\n\t\t\t\t\t ResultSet rs5 = pst.executeQuery();\t\n\t\t\t\t//SEXTA PARTE MONTANDO O RETORNO\n\t\t\t\t\t\tLivro liv = new Livro();\n\t\t\t\t\t\tEditora edit = new Editora();\n\t\t\t\t\t\tAutor autor = new Autor();\n\t\t\t\t\t\tPrecificacao preci = new Precificacao();\n\t\t\t\t\t\tedit.setId(rs4.getInt(\"IdEditora\"));\n\t\t\t\t\t\tedit.setNome(rs3.getString(\"AutorNome\"));\n\t\t\t\t\t\tliv.setId(rs3.getInt(\"IdAutor\"));\n\t\t\t\t\t\tliv.setEditora(edit);\n\t\t\t\t\t\tliv.setAutor(autor);\n\t\t\t\t\t\tliv.setTitulo(rs.getString(\"Titulo\"));\n\t\t\t\t\t\tliv.setSinopse(rs.getString(\"Sinopse\"));\n\t\t\t\t\t\tliv.dimensoes.setAltura(rs.getDouble(\"Altura\"));\n\t\t\t\t\t\tliv.dimensoes.setLargura(rs.getDouble(\"Largura\"));\n\t\t\t\t\t\tliv.dimensoes.setPeso(rs.getDouble(\"Peso\"));\n\t\t\t\t\t\tliv.dimensoes.setProfundidade(rs.getDouble(\"Profundidade\"));\n\t\t\t\t\t\tliv.setISBN(rs.getString(\"ISBN\"));\n\t\t\t\t\t\tliv.setIdcategoria(cat);\n\t\t\t\t\t\tliv.setNumeroPaginas(rs.getInt(\"NumeroDePaginas\"));\n\t\t\t\t\t\tpreci.setClassificacao(rs5.getString(\"PrecificacaoNome\"));\n\t\t\t\t\t\tpreci.setTipo(rs5.getInt(\"IdPrecificacao\"));\n\t\t\t\t\t\tliv.setPrecificacao(preci);\n\t\t\t\t\t\tliv.setEdicao(rs.getInt(\"Edicao\"));\n\t\t\t\t\t\tliv.setStatus(rs.getString(\"Status\"));\n\t\t\t\t\t\tint VerificarDuplicatas = 0;\n\t\t\t\t\t\tfor(EntidadeDominio teste : livros) // Verificar se o livro que será armazenado no resultado ja está na array\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(teste.getId() == liv.getId())\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tVerificarDuplicatas = 1;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(VerificarDuplicatas == 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\tlivros.add(liv);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t//java.sql.Date dtCadastroEmLong = rs.getDate(\"dt_cadastro\");\n\t\t\t//Date dtCadastro = new Date(dtCadastroEmLong.getTime());\t\t\t\t\n\t\t\t//p.setDtCadastro(dtCadastro);\n\t\t\t//produtos.add(p);\n\t\t}\n\t\treturn livros;\n\t} catch (SQLException e) {\n\t\te.printStackTrace();\n\t}\n\treturn null;\n\t}", "public GraficaVentas() {\n initComponents();\n categoriaMasVendidapanel.setVisible(false);\n marcaMasVendidapanel.setVisible(false);\n }", "public void getAllEdificios(){\n System.out.println(getCantEdificios());\n for (Edificio edificio : edificios) {\n System.out.print(edificio.getColor()+\" \");\n }\n System.out.println();\n }", "private void mostrarEstadoObjetosUsados() {\n Beneficiario beneficiario = null;\n FichaSocial fichaSocial = null;\n SolicitudBeneficio solicitudBeneficio = null;\n AspectoHabitacional aspectoHabitacional = null;\n AspectoEconomico aspectoEconomico = null;\n\n // CAMBIAR: Obtener datos del Request y asignarlos a los textField\n if (this.getRequestBean1().getObjetoABM() != null) {\n fichaSocial = (FichaSocial) this.getRequestBean1().getObjetoABM();\n aspectoHabitacional = (AspectoHabitacional) fichaSocial.getAspectoHabitacional();\n aspectoEconomico = (AspectoEconomico) fichaSocial.getAspectoEconomico();\n this.getElementoPila().getObjetos().set(0, fichaSocial);\n this.getElementoPila().getObjetos().set(1, aspectoHabitacional);\n this.getElementoPila().getObjetos().set(2, aspectoEconomico);\n }\n\n int ind = 0;\n fichaSocial = (FichaSocial) this.obtenerObjetoDelElementoPila(ind++, FichaSocial.class);\n aspectoHabitacional = (AspectoHabitacional) this.obtenerObjetoDelElementoPila(ind++, AspectoHabitacional.class);\n aspectoEconomico = (AspectoEconomico) this.obtenerObjetoDelElementoPila(ind++, AspectoEconomico.class);\n\n\n this.getTfCodigo().setText(fichaSocial.getNumero());\n this.getTfFecha().setText(Conversor.getStringDeFechaCorta(fichaSocial.getFecha()));\n ////\n //Beneficiarios:\n if (fichaSocial.getTitular() != null) {\n this.getTfTitular().setText(fichaSocial.toString());\n }\n\n this.setListaDelCommunication(new ArrayList(fichaSocial.getGrupoFamiliar()));\n this.getObjectListDataProvider().setList(new ArrayList(fichaSocial.getGrupoFamiliar()));\n\n //Aspecto habitacional:\n if (aspectoHabitacional.getNumeroPersonas() != null) {\n this.getTfNroPersonas().setText(aspectoHabitacional.getNumeroPersonas().toString());\n }\n this.getTfVivienda().setText(aspectoHabitacional.getVivienda());\n this.getTfTenencia().setText(aspectoHabitacional.getTenencia());\n this.getTfNroCamas().setText(aspectoHabitacional.getNumeroCamas());\n this.getTfNroAmbientes().setText(aspectoHabitacional.getNumeroAmbientes());\n this.getCbBanioCompleto().setValue(new Boolean(aspectoHabitacional.isBanioCompleto()));\n this.getCbBanioInterno().setValue(new Boolean(aspectoHabitacional.isBanioInterno()));\n this.getCbAgua().setValue(new Boolean(aspectoHabitacional.isAgua()));\n this.getCbLuz().setValue(new Boolean(aspectoHabitacional.isLuz()));\n this.getCbCloaca().setValue(new Boolean(aspectoHabitacional.isCloaca()));\n this.getCbGasNatural().setValue(new Boolean(aspectoHabitacional.isGasNatural()));\n\n //Aspecto Economico:\n this.getTfNroCasas().setText(aspectoEconomico.getNumeroCasas());\n this.getTfNroTerrenos().setText(aspectoEconomico.getNumeroTerrenos());\n this.getTfNroCampos().setText(aspectoEconomico.getNumeroCampos());\n this.getTfVehiculo().setText(aspectoEconomico.getVehiculo());\n this.getTfIndustria().setText(aspectoEconomico.getIndustria());\n this.getTfActividadLaboral().setText(aspectoEconomico.getActividadLaboral());\n this.getTfComercio().setText(aspectoEconomico.getComercio());\n\n //Solicitud Beneficio\n this.setListaDelCommunication2(new ArrayList(fichaSocial.getListaSolicitudBeneficio()));\n this.getObjectListDataProvider2().setList(new ArrayList(fichaSocial.getListaSolicitudBeneficio()));\n }", "@Override\n\tpublic void recreo() {\n\n\t}", "private void mostrarCoches() {\n int i = 0;\n for (Coche unCoche : coches) {\n System.out.println((i + 1) + \"º \" + coches.get(i));\n ++i;\n }\n }", "private void inizia() throws Exception {\n this.setAllineamento(Layout.ALLINEA_CENTRO);\n this.creaBordo(\"Coperti serviti\");\n\n campoPranzo=CampoFactory.intero(\"a pranzo\");\n campoPranzo.setLarghezza(60);\n campoPranzo.setModificabile(false);\n campoCena=CampoFactory.intero(\"a cena\");\n campoCena.setLarghezza(60);\n campoCena.setModificabile(false);\n campoTotale=CampoFactory.intero(\"Totale\");\n campoTotale.setLarghezza(60); \n campoTotale.setModificabile(false);\n\n this.add(campoPranzo);\n this.add(campoCena);\n this.add(campoTotale);\n }", "private void redessine(Graphics g) {\n\t \n\t\n\t\tif(this.figureCree.size() != 0 ) {\n\t\t\t\n\t\t\tfor(Figures figure : this.figureCree) {\n\t\t\t\t//on parcour et redessine chaque figure stockee dans la list\n\t\t\t\tif (figure.getCouleurf() == 1){\n\t\t\t\t\tg.setColor(Color.red);\n\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\tif ( figure.getCouleurf() == 2){\n\t\t\t\t\tg.setColor(Color.green);\n\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\tif (figure.getCouleurf() == 3){\n\t\t\t\t\tg.setColor(Color.blue);\n\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\tif (figure.getCouleurf() == 4){\n\t\t\t\t\tg.setColor(Color.white);\n\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\tSystem.out.println(figure.getCouleurf());\n\t\t\t\tSystem.out.println(couleur+\"La couleur\");\n\t\t\t\tfigure.dessiner(g);\n\t\t\t\t\n\t\t\t}\n\t\t\t \n\t\t}\n\n\t}", "public void run() {\n\t\t\t\tVerticalPanel panelCompteRendu = new VerticalPanel();\r\n\t\t\t\thtmlCompteRendu = new HTML();\r\n\t\t\t\tpanelCompteRendu.add(htmlCompteRendu);\r\n\t\t\t\tRootPanel.get(\"compteRendu\").add(panelCompteRendu);\r\n\t\t\t\t\r\n\t\t\t\tVerticalPanel panelLegende = new VerticalPanel();\r\n\t\t\t\thtmlLegende = new HTML();\r\n\t\t\t\tpanelLegende.add(htmlLegende);\r\n\t\t\t\tRootPanel.get(\"legende\").add(htmlLegende);\r\n\t\t\t\t\r\n\t\t\t\t// temps d'intˇgration restant\r\n\t\t\t\tLabel tempsDIntegrationRestant = new Label();\r\n\t\t\t\tRootPanel.get(\"tempsDIntegrationRestant\").add(tempsDIntegrationRestant);\r\n\t\t\t\t\r\n\t\t\t\t// ajout de la carte\r\n\t\t\t\twMap = new MapFaWidget2(htmlCompteRendu);\r\n\t\t\t\tRootPanel.get(\"carte\").add(wMap);\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t// ajout du bouton reset\r\n\t\t\t\tButton boutonReset = new Button(\"Nettoyer la carte\");\r\n\t\t\t\tboutonReset.addClickHandler(actionBoutonReset());\r\n\t\t\t\tRootPanel.get(\"boutonReset\").add(boutonReset);\r\n\r\n\t\t\t\t// ajout du formulaire d'intˇgration\r\n\t\t\t\tnew FileUploadView(wMap,htmlLegende, htmlCompteRendu,tempsDIntegrationRestant);\r\n\r\n\t\t\t}", "public VistaGraficaQytetet() {\n ArrayList <String> nombres = obtenerNombreJugadores();\n modelo = Qytetet.getInstance();\n controlador = ControladorQytetet.getInstance(nombres);\n initComponents();\n creaMenuOperacion();\n creaMenuCasilla();\n update();\n }", "public void affiche() {\n System.out.println(\"le tapis porte \"+this.tapis.size()+\" caisse(s)\");\n for (Iterator it = this.tapis.iterator(); it.hasNext(); ) {\n System.out.println(it.next().toString());\n } \n }", "private void mostrarLibros() {\n dlmLibros.clear();\n for (Libro libro : modelo.getLibros()) {\n dlmLibros.addElement(libro);\n }\n seleccionarLibrosOriginales();\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}", "private void limpaTela() {\n txfNomeGrupo.setText(\"\");\n ftfValorViagem.setText(\"0\");\n ftfDataSaida.setText(\"\");\n ftfHoraSaida.setText(\"\");\n ftfDataRetorno.setText(\"\");\n ftfHoraRetorno.setText(\"\");\n\n txfNumPessoas.setText(\"\");\n txfIntegrante.setText(\"\");\n\n txfNomeGrupo.setBackground(null);\n ftfValorViagem.setBackground(Color.white);\n ftfDataSaida.setBackground(Color.white);\n ftfHoraSaida.setBackground(Color.white);\n ftfDataRetorno.setBackground(Color.white);\n ftfHoraRetorno.setBackground(Color.white);\n txfNumPessoas.setBackground(null);\n txfIntegrante.setBackground(Color.white);\n\n }", "public Image getEtat() {\n final BufferedImage image = new BufferedImage(GUIModel.SCREEN_SIZE.width / 4, GUIModel.SCREEN_SIZE.height / 6, BufferedImage.TYPE_INT_ARGB);\n final Graphics2D g = image.createGraphics();\n g.setColor(Color.black);\n //g.drawRect(0, 0, image.getWidth(), image.getHeight());\n g.drawString(\"Age : \" + tamagoStats.getAge(), 0, 10);\n g.drawString(\"Faim : \" + tamagoStats.getFaim() + \"/\" + TamagoStats.FAIM_MAX, 0, 30);\n g.drawString(\"Fatigue : \" + tamagoStats.getFatigue() + \"/\" + TamagoStats.FATIGUE_MAX, 0, 50);\n g.drawString(\"Humeur : \" + tamagoStats.getHumeur() + \"/\" + TamagoStats.HUMEUR_MAX, 100, 10);\n g.drawString(\"Poids : \" + tamagoStats.getPoids() + \"/\" + TamagoStats.HUMEUR_MAX, 100, 30);\n g.drawString(\"Saleté : \" + tamagoStats.getSale() + \"/\" + TamagoStats.SALE_MAX, 100, 50);\n g.drawString(\"*Retour*\", 50, 70);\n g.dispose();\n return image;\n }", "public ABMListadoFilterView() {\n super();\n \n this.crearObjetos();\n this.renderObjetos();\n \n //((FWContentPanePrincipal) ApplicationInstance.getActive().getDefaultWindow().getContent()).abrirVentana(this);\n\n }", "public String visualizzaCampo(){\n\t\tString info= new String(\"Nome: \"+ nome +\"\\n\" +\"Descrizione: \" + descrizione+ \"\\n\"+ \"Obbligatoria: \" + obbligatorio +\"\\n\");\n\t\treturn info;\n\t}", "private void listar() throws Exception{\n int resId=1;\n List<PlatoDia> lista = this.servicioRestaurante.listarMenuDia(resId);\n this.modelListEspecial.clear();\n lista.forEach(lse -> {\n this.modelListEspecial.addElement(\"ID: \" + lse.getId() \n + \" NOMBRE: \" + lse.getNombre()\n + \" DESCRIPCION: \" + lse.getDescripcion()\n + \" PRECIO: \" + lse.getPrecio()\n + \" ENTRADA: \"+lse.getEntrada() \n + \" PRINCIPIO: \"+lse.getPrincipio()\n + \" CARNE: \"+lse.getCarne()\n + \" BEBIDA: \"+lse.getBebida()\n + \" DIA: \"+lse.getDiaSemana());\n });\n }", "public ERecor() {\n initComponents();\n setSize(649, 540);\n setLocation(400,100);\n \n comprueba.setText(\"si\");\n \n check.setVisible(true);\n check.setContentAreaFilled(false);\n check.setBorderPainted (false);\n \n update.setVisible(true);\n update.setContentAreaFilled(false);\n update.setBorderPainted (false);\n \n jButton1.setVisible(true);\n jButton1.setContentAreaFilled(false);\n jButton1.setBorderPainted (false);\n \n back.setContentAreaFilled(false);\n back.setBorderPainted (false);\n \n comprueba.setVisible(false);\n fecha.setVisible(false);\n \n options.setVisible(true);\n options.setContentAreaFilled(false);\n options.setBorderPainted (false);\n \n aver.setVisible(false);\n \n options2.setVisible(false);\n options2.setContentAreaFilled(false);\n options2.setBorderPainted (false);\n \n \n String dato;\n dato=(aviso.getText());\n aver.setText(\"\"+dato);\n String descr=\"\", ver=\"\", fech=\"\";\n ResultSet rs;\n Statement st;\n String sql=(\"SELECT * from tareas WHERE CodTarea=\"+dato);\n try {\n st= cn.createStatement();\n rs =st.executeQuery(sql);\n while(rs.next()){\n descr=rs.getString(2);\n fech=rs.getString(3);\n ver=rs.getString(4);\n } \n } catch (SQLException ex) {\n Logger.getLogger(ANota.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n tarea1.setText(\"\"+descr);\n \n if (ver.equals(\"SI\")){\n check.setSelected(true);\n }\n \n atras.setVisible(true);\n atras.setContentAreaFilled(false);\n atras.setBorderPainted (false);\n \n menub.setVisible(true);\n menub.setContentAreaFilled(false);\n menub.setBorderPainted (false);\n \n salir.setVisible(true);\n salir.setContentAreaFilled(false);\n salir.setBorderPainted (false);\n \n transparenciaButton();\n\n }", "private void initialize() {\r\n\t\t\tControleurInterfacePhotographe controleur = new ControleurInterfacePhotographe(this);\r\n\t\t\t\r\n\t\t\tframe = new JFrame();\r\n\t\t\tframe.setBounds(100, 100, 450, 300);\r\n\t\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\t\tframe.getContentPane().setLayout(null);\r\n\t\t\t/*frame.pack();*/\r\n\t\t\t\r\n\t\t\tJPanel pEntete = new JPanel();\r\n\t\t\tpEntete.setBackground(Color.CYAN);\r\n\t\t\tpEntete.setBounds(0, 0, 2000, 39);\r\n\t\t\tframe.getContentPane().add(pEntete);\r\n\t\t\tpEntete.setLayout(new FlowLayout(FlowLayout.LEFT, 5, 5));\r\n\t\t\t\r\n\t\t\tJButton bImporterPhotos = new JButton(\"Importer des photos\");\r\n\t\t\tbImporterPhotos.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 10));\r\n\t\t\tpEntete.add(bImporterPhotos);\r\n\t\t\tbImporterPhotos.addActionListener(controleur);\r\n\t\t\t\r\n\t\t\tJButton bVues = new JButton(\"Vues\");\r\n\t\t\tbVues.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 10));\r\n\t\t\tpEntete.add(bVues);\r\n\t\t\tbVues.addActionListener(controleur);\r\n\t\t\t\r\n\t\t\ttextField = new JTextField();\r\n\t\t\ttextField.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 10));\r\n\t\t\tpEntete.add(textField);\r\n\t\t\ttextField.setColumns(10);\r\n\t\t\t\r\n\t\t\tJButton bAide = new JButton(\"Aide\");\r\n\t\t\tbAide.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 10));\r\n\t\t\tpEntete.add(bAide);\r\n\t\t\tbAide.addActionListener(controleur);\r\n\t\t\t\r\n\t\t\tJTree tree = new JTree();\r\n\t\t\ttree.setBounds(0, 39, 125, 239);\r\n\t\t\tframe.getContentPane().add(tree);\r\n\t\t\t\r\n\t\t\tJPanel pMiniatures = new JPanel();\r\n\t\t\tpMiniatures.setBounds(137, 45, 313, 233);\r\n\t\t\tframe.getContentPane().add(pMiniatures);\r\n\t\t\tpMiniatures.setLayout(null);\r\n\t\t\t\r\n\t\t\tJScrollBar scrollBar = new JScrollBar();\r\n\t\t\tscrollBar.setBounds(344, 6, 15, 221);\r\n\t\t\tpMiniatures.add(scrollBar);\r\n\t\t}", "@Override\npublic String toString() {// PARA MOSTRAR LOS DATOS DE ESTA CLASE\n// TODO Auto-generated method stub\nreturn MuestraCualquiera();\n}", "public void creaAziendaAgricola(){\n\t\tCantina nipozzano = creaCantina(\"Nipozzano\");\t\n\t\tBotte[] bottiNipozzano = new Botte[5+(int)(Math.random()*10)];\t\n\t\tfor(int i=0; i<bottiNipozzano.length; i++){\n\t\t\tbottiNipozzano[i] = creaBotte(nipozzano, i, (int)(Math.random()*10+1), tipologiaBotte[(int)(Math.random()*tipologiaBotte.length)]);\n\t\t}\t\t\n\t\tVigna mormoreto = creaVigna(\"Mormoreto\", 330, 25, EsposizioneVigna.sud, \"Terreni ricchi di sabbia, ben drenati. Discreta presenza di calcio. pH neutro o leggermente alcalino\");\n\t\tFilare[] filariMormoreto = new Filare[5+(int)(Math.random()*10)];\n\t\tfor(int i=0; i<filariMormoreto.length;i++){\n\t\t\tfilariMormoreto[i] = creaFilare(mormoreto, i, tipologiaFilare[(int)(Math.random()*tipologiaFilare.length)]);\n\t\t}\t\n\t\tVigna montesodi = creaVigna(\"Montesodi\", 400, 20, EsposizioneVigna.sud_ovest, \"Arido e sassoso, di alberese, argilloso e calcareo, ben drenato, poco ricco di sostanza organica\");\n\t\tFilare[] filariMontesodi = new Filare[5+(int)(Math.random()*10)];\n\t\tfor(int i=0; i<filariMontesodi.length;i++){\n\t\t\tfilariMontesodi[i] = creaFilare(montesodi, i, tipologiaFilare[(int)(Math.random()*tipologiaFilare.length)]);\n\t\t}\n\t\t/*\n\t\t * CANTINA: POMINO - VIGNETO BENEFIZIO\n\t\t */\n\t\t\n\t\tCantina pomino = creaCantina(\"Pomino\");\n\t\tBotte[] bottiPomino = new Botte[5+(int)(Math.random()*10)];\t\n\t\tfor(int i=0; i<bottiPomino.length; i++){\n\t\t\tbottiPomino[i] = creaBotte(pomino, i, (int)(Math.random()*10+1), tipologiaBotte[(int)(Math.random()*tipologiaBotte.length)]);\n\t\t}\n\t\tVigna benefizio = creaVigna(\"Benefizio\", 700, 9, EsposizioneVigna.sud_ovest, \"Terreni ricchi di sabbia, forte presenza di scheletro. Molto drenanti. Ricchi in elementi minerali. PH acido o leggermente acido.\");\n\t\tFilare[] filariBenefizio = new Filare[5+(int)(Math.random()*10)];\n\t\tfor(int i=0; i<filariBenefizio.length;i++){\n\t\t\tfilariBenefizio[i] = creaFilare(benefizio, i, tipologiaFilare[(int)(Math.random()*tipologiaFilare.length)]);\n\t\t}\n\t\t\n\t\taziendaAgricolaDAO.saveLuogo(nipozzano);\n\t\taziendaAgricolaDAO.saveLuogo(mormoreto);\n\t\taziendaAgricolaDAO.saveLuogo(montesodi);\n\t\t\n\t\taziendaAgricolaDAO.saveLuogo(pomino);\n\t\taziendaAgricolaDAO.saveLuogo(benefizio);\n\t\t\n\t\taziendaAgricolaDAO.saveResponsabile(responsabile(\"Giulio d'Afflitto\"));\n\t\taziendaAgricolaDAO.saveResponsabile(responsabile(\"Francesco Ermini\"));\n\n\t\t\n\t}", "public void mostrarCompra() {\n }", "public void buscarGestor(){\r\n\t\t\r\n\t}", "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 ArrayList<Richiesta> riempi2(){\n ArrayList<Richiesta> array = new ArrayList<>();\n Richiesta elemento = new Richiesta();\n elemento.setIdRichiesta(1);\n elemento.setStato(\"C\");\n elemento.setTipo(\"Prescrizione\");\n elemento.setData_richiesta(\"2016/07/02 alle 08:30 \");\n elemento.setNome_farmaco(\"Brufen\");\n elemento.setQuantita_farmaco(2);\n elemento.setCf_paziente(\"NLSFLP94T45L378G\");\n array.add(elemento);\n\n elemento.setIdRichiesta(2);\n elemento.setStato(\"R\");\n elemento.setTipo(\"Visita specialistica\");\n elemento.setNote_richiesta(\"Specialistica dermatologica presso dottoressa A.TASIN \");\n elemento.setData_richiesta(\"2016/05/06 alle 15:30 \");\n elemento.setCf_paziente(\"MRORSS94T05E378A\");\n array.add(elemento);\n\n elemento.setIdRichiesta(3);\n elemento.setStato(\"R\");\n elemento.setTipo(\"Visita di controllo\");\n elemento.setData_richiesta(\"2016/07/02 alle 08:30 \");\n elemento.setNome_farmaco(\"dermatologica\");\n elemento.setCf_paziente(\"MRORSS94T05E378A\");\n array.add(elemento);\n\n return array;\n }", "@Override\n public ModeloCuestionario visualizarModelo(Integer id) {\n ModeloCuestionario visualiza = modeloCuestionarioRepository.findOne(id);\n List<AreasCuestionario> listaAreas = areaCuestionarioService\n .findDistinctByIdCuestionarioAndFechaBajaIsNullOrderByOrdenAsc(id);\n for (AreasCuestionario area : listaAreas) {\n List<PreguntasCuestionario> listaPreguntas = preguntasRepository\n .findByAreaAndFechaBajaIsNullOrderByOrdenAsc(area);\n area.setPreguntas(listaPreguntas);\n }\n visualiza.setAreas(listaAreas);\n return visualiza;\n }", "@Override//sobrescribir metodo\n public String getDescripcion(){\n return hamburguesa.getDescripcion()+\" + lechuga\";//retorna descripcion del oobj hamburguesa y le agrega +lechuga\n }", "public void showPosicoes() {\n this.print(\"\\n\");\n for (int i = 0; i < listaJogadores.size(); i++) {\n // System.out.print(posicoes[i] + \"\\t\");\n }\n }", "@FXML\r\n\tpublic void initSelezionati() {\r\n\t\ttotale.setText(\"0.0\");\r\n\t\tprodottiSelezionati = ac.getSelezionati(); //Dovrei prendere la lista dei selezionati \r\n\t\t\t\t\t\t\t\t\t\t//ma se non ho aggiunto nulla Ŕ vuota\r\n\t\tif(tabellaSelezionati!= null) {\r\n\t\t\tcodiceSelezionatiCol.setCellValueFactory(new PropertyValueFactory<ProdottoSelezionato, Integer>(\"codice\"));\r\n\t prodottoSelezionatiCol.setCellValueFactory(new PropertyValueFactory<ProdottoSelezionato, String>(\"nome\"));\r\n\t quantitaSelezionatiCol.setCellValueFactory(new PropertyValueFactory<ProdottoSelezionato, Integer>(\"quantita\"));\r\n\t prezzoSelezionatiCol.setCellValueFactory(new PropertyValueFactory<ProdottoSelezionato, Float>(\"prezzo\"));\r\n\t\t}\r\n\t}", "public void visualizarMensaje(Object pila);", "private void visualizarm(){\r\n switch(this.opc){\r\n case 1:\r\n System.out.printf(\"0\\t1\\t2\\t3\\t4\\t\\t\\t\\t\"+min+\":\"+seg+\"\\n\");\r\n System.out.printf(\"-----------------------------------------------------\\n\");\r\n for(int i=0;i<2;i++){\r\n for(int j=0;j<5;j++){\r\n System.out.printf(\"%s\\t\",mfacil[i][j]);\r\n }\r\n System.out.printf(\"|\"+i+\"\\n\");\r\n }\r\n break;\r\n case 2:\r\n System.out.printf(\"0\\t1\\t2\\t3\\t4\\t5\\n\");\r\n System.out.printf(\"-----------------------------------------------------\\n\");\r\n for(int i=0;i<3;i++){\r\n for(int j=0;j<6;j++){\r\n System.out.printf(\"%s\\t\",mmedio[i][j]);\r\n }\r\n System.out.printf(\"|\"+i+\"\\n\");\r\n }\r\n break;\r\n case 3:\r\n System.out.printf(\"0\\t1\\t2\\t3\\t4\\t5\\t6\\n\");\r\n System.out.printf(\"------------------------------------------------------------------------\\n\");\r\n for(int i=0;i<4;i++){\r\n for(int j=0;j<7;j++){\r\n System.out.printf(\"%s\\t\",mdificil[i][j]);\r\n }\r\n System.out.printf(\"|\"+i+\"\\n\");\r\n }\r\n break;\r\n }\r\n }", "private void dibujar() {\n\n\t\tdiv.setWidth(\"99%\");\n\t\tdiv.setHeight(\"99%\");\n\t\treporte.setWidth(\"99%\");\n\t\treporte.setHeight(\"99%\");\n\t\treporte.setType(type);\n\t\treporte.setSrc(url);\n\t\treporte.setParameters(parametros);\n\t\treporte.setDatasource(dataSource);\n\n\t\tdiv.appendChild(reporte);\n\n\t\tthis.appendChild(div);\n\n\t}", "public Exo2_Editeurpolylignes() {\n valeur_maximum = 5;\n initComponents();\n Tools.windowsInit(this);\n Tools.setIcone(\"./src/Icones/Icone_Lines.bmp\", this);\n this.setTitle(\"Editeur de poly-Lignes\");\n etat = Etat.Init;\n //rien\n initNombrePoints();\n\n }", "public visualizar_camas() {\n initComponents();\n }", "public void zmiana_rozmiaru_okna()\n {\n b.dostosowanie_rozmiaru(getWidth(),getHeight());\n w.dostosowanie_rozmiaru(getWidth(),getHeight());\n\n for (Pilka np : p) {\n np.dostosowanie_rozmiaru(getWidth(),getHeight());\n }\n for (Naboj np : n) {\n np.dostosowanie_rozmiaru(getWidth(),getHeight());\n }\n for (Bonus np : bon) {\n np.dostosowanie_rozmiaru(getWidth(),getHeight());\n }\n\n }" ]
[ "0.67456496", "0.67176634", "0.6703976", "0.6400435", "0.63903403", "0.63697493", "0.63241494", "0.6310434", "0.62698454", "0.62366146", "0.613327", "0.6112114", "0.6097082", "0.6095061", "0.608117", "0.6069498", "0.6054777", "0.6051018", "0.6027221", "0.6019989", "0.59923565", "0.5933748", "0.5926568", "0.5924195", "0.59199494", "0.59174347", "0.5882019", "0.5880946", "0.58680326", "0.58513886", "0.5845525", "0.58394724", "0.58299875", "0.5821256", "0.5819225", "0.58105767", "0.581021", "0.5809632", "0.5800074", "0.5799468", "0.57973135", "0.57948774", "0.5780916", "0.5771549", "0.5766532", "0.5762749", "0.5761542", "0.5761482", "0.5751444", "0.5741177", "0.57406235", "0.5740395", "0.57355106", "0.5734574", "0.5732108", "0.57300174", "0.5729615", "0.57236606", "0.57193786", "0.57159334", "0.57055223", "0.5700756", "0.5700522", "0.56988776", "0.5697079", "0.56929463", "0.5690716", "0.56891876", "0.56774217", "0.5675656", "0.5674449", "0.5673265", "0.56714094", "0.5669975", "0.5667012", "0.5665366", "0.5661512", "0.5650349", "0.5645561", "0.5632356", "0.56319106", "0.56226313", "0.5620096", "0.5619237", "0.5613239", "0.5608505", "0.56009126", "0.56008", "0.55960584", "0.55926615", "0.5592406", "0.55922365", "0.55897695", "0.55894756", "0.55851185", "0.5585019", "0.55826396", "0.5580638", "0.5578662", "0.55784154", "0.557558" ]
0.0
-1
Created by jowie on 19.12.2017.
public interface ContentReadyListener { void contentReady(String content); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public final void mo51373a() {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n protected void initialize() {\n\n \n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n void init() {\n }", "@Override\n public int describeContents() { return 0; }", "@Override\n public void init() {\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "private void poetries() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n public void init() {}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "public void mo38117a() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\r\n\tpublic void init() {}", "@Override\n public void initialize() { \n }", "@Override\n protected void init() {\n }", "public void mo4359a() {\n }", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "private Rekenhulp()\n\t{\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "private void init() {\n\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "private void m50366E() {\n }", "@Override\n\tpublic void init() {\n\t}", "Petunia() {\r\n\t\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tpublic void init()\n\t{\n\n\t}", "protected boolean func_70814_o() { return true; }", "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 void initialize() {\n \n }", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public int getSize() {\n return 1;\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\n public int retroceder() {\n return 0;\n }" ]
[ "0.6110121", "0.59859324", "0.58550256", "0.58430004", "0.577231", "0.577231", "0.5700886", "0.56993353", "0.56941956", "0.5686388", "0.5681817", "0.56581616", "0.56500745", "0.56454974", "0.56347406", "0.56184524", "0.56084603", "0.55920196", "0.5585289", "0.5585289", "0.5585289", "0.5585289", "0.5585289", "0.5585289", "0.5583634", "0.557388", "0.5573867", "0.5573065", "0.5569573", "0.55361044", "0.55351055", "0.5534805", "0.5530724", "0.5528565", "0.5528565", "0.552608", "0.5520901", "0.5520901", "0.5520901", "0.5520901", "0.5520901", "0.54933155", "0.5489458", "0.5486894", "0.5486894", "0.54860646", "0.5484885", "0.5476757", "0.5456448", "0.5453693", "0.5453693", "0.54521716", "0.5448115", "0.5446074", "0.5441734", "0.5434195", "0.54302573", "0.5427596", "0.5425842", "0.54208446", "0.5418112", "0.5418112", "0.5418112", "0.54141355", "0.54101914", "0.5408271", "0.54030573", "0.53787017", "0.53787017", "0.53787017", "0.5378477", "0.5378477", "0.5378477", "0.5366572", "0.5366572", "0.5366572", "0.5361358", "0.53497815", "0.53429496", "0.53409237", "0.5335005", "0.5332279", "0.5326376", "0.5321692", "0.531829", "0.531829", "0.531829", "0.531829", "0.531829", "0.531829", "0.531829", "0.5316167", "0.5311724", "0.5311724", "0.530875", "0.53072107", "0.5306174", "0.5296165", "0.52919924", "0.52876115", "0.528557" ]
0.0
-1
TODO Autogenerated method stub
@Override public List<Goods> list(GoodsVO gv) { return gd.list(gv); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public List<Type> selectType() { return gd.selectType(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public List<Brand> selectBrand() { return gd.selectBrand(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void add(Goods goods) { gd.addGoods(goods); gd.addGb(goods.getId(),goods.getBid()); gd.addGt(goods.getId(),goods.getTid()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table schedule
public ScheduleExample() { oredCriteria = new ArrayList<Criteria>(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void generateSchedule(){\n\t\t\n\t}", "@Dao\npublic interface schedule_Dao {\n\n @Query(\"SELECT * FROM Schedule where student_id = :studentId\")\n List<Schedule> getSchedulesStudent(String studentId);\n\n\n\n @Query(\"SELECT COUNT(pkey) FROM Schedule where student_id = :student_id\")\n int getScheduleCount(String student_id);\n\n\n\n @Query(\"SELECT * FROM Schedule where student_id = :studentId and active = :active or active = :Active\")\n List<Schedule> getActiveSchedules(String active,String Active, String studentId);\n\n\n @Query(\"SELECT * FROM Schedule where `endtime_null` >= :date and `starttime_null` <= :date and student_id = :studentId and active = :active or active = :Active \")\n List<Schedule> getSelEvents(String active,String Active, String studentId, String date);\n\n\n @Query(\"SELECT * FROM Schedule where `endtime` >= :date and `starttime` <= :date and student_id = :studentId and active = :active or active = :Active \")\n List<Schedule> getSelEventTime(String active,String Active, String studentId, String date);\n\n\n @Insert\n void insertAll(Schedule... schedules);\n\n @Insert(onConflict = OnConflictStrategy.IGNORE)\n void insertOnConflict(Schedule... schedules);\n\n @Query(\"DELETE FROM Schedule\")\n public abstract int DeleteToken();\n\n @Query(\"DELETE FROM Schedule where pkey = :p_key and student_id = :studentId\")\n public abstract int DeleteSchedule(String p_key,String studentId );\n\n\n @Query(\"DELETE FROM Schedule where student_id= :studentId\")\n public abstract int DeleteScheduleAllUser(String studentId);\n\n\n}", "Schedule selectByPrimaryKey(Integer id);", "public interface JobScheduleMapper {\n @Select(\"select * from job_schedule where id = #{id}\")\n public JobSchedule findById(@Param(\"id\") long id);\n\n @Select(\"select status from job_schedule where id = #{id}\")\n public int getStatus(@Param(\"id\")long id);\n\n @Insert(\"insert into job_schedule (created_datetime, schedule_datetime, job_id, job_group_name, run_as, status) \" +\n \"values(#{created_datetime}, #{schedule_datetime}, #{job_id}, #{job_group_name}, #{run_as}, #{status})\")\n @Options(useGeneratedKeys = true, keyProperty = \"id\", keyColumn = \"id\")\n public void insert(JobSchedule jobSchedule);\n\n @Update(\"update job_schedule set status = #{status} where id = #{id}\")\n public void updateStatus(@Param(\"id\") long id, @Param(\"status\")int status);\n\n @Update(\"update job_schedule set status = \" + JobSchedule.JOB_SCHEDULE_STATUS_PENDING + \", retried = retried + 1 where id = #{id}\")\n public void retry(@Param(\"id\") long id);\n\n @Update(\"update job_schedule set next_job_schedule_id = #{nextId} where id = #{thisId}\")\n public void updateNextScheduleId(@Param(\"thisId\")long thisId, @Param(\"nextId\")long nextId);\n}", "Schedule createSchedule();", "java.lang.String getSchedule();", "public Schedule() {\n\t\t// TODO Auto-generated constructor stub\n\t}", "public void generateSchedule(){\r\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"yyyy-MM-dd HH:mm:ss\"); // Date formatter used when getting SQL records\r\n Database db = new Database();\r\n Connection connection = null;\r\n String sql = \"\";\r\n String report = \"\";\r\n \r\n // Retrieve the inputted consultant's id\r\n User user = (User) combo_user.getValue();\r\n int userID = user.getId();\r\n try{\r\n connection = db.jdbc_connection.connect();\r\n Statement statement = connection.createStatement(); // Set up statement\r\n \r\n sql = \"SELECT appointment.appointmentID, customer.customerName, appointment.title, appointment.description, appointment.location, appointment.contact, \" +\r\n \"appointment.type, appointment.url, appointment.start, appointment.end FROM appointment \" +\r\n \"INNER JOIN customer ON appointment.customerID=customer.customerID \" +\r\n \"WHERE userID = \" + userID + \" GROUP BY appointment.start\"; \r\n ResultSet results = statement.executeQuery(sql); \r\n \r\n while(results.next()) { \r\n String customer = results.getString(\"customerName\");\r\n String title = results.getString(\"title\");\r\n String description = results.getString(\"description\");\r\n String location = results.getString(\"location\");\r\n String contact = results.getString(\"contact\");\r\n String type = results.getString(\"type\");\r\n String url = results.getString(\"url\");\r\n String start = results.getString(\"start\");\r\n String end = results.getString(\"end\");\r\n \r\n \r\n // Convert the start and end DATETIMES to the user's current timezone \r\n java.time.LocalDateTime start_converted = convertToCurrentZone(java.time.LocalDateTime.parse(start.replace(\".0\", \"\"), formatter));\r\n String month = start_converted.getMonth().toString();\r\n int day = start_converted.getDayOfMonth();\r\n int hour = start_converted.getHour();\r\n String minute = String.valueOf(start_converted.getMinute());\r\n \r\n if(minute.length() == 1) minute += \"0\"; // Add following zeroes\r\n \r\n report += month + \" \" + day + \" at \" + hour + \":\" + minute + \" - appointment with \" + customer + \"\\n\";\r\n } \r\n }catch(Exception e) {\r\n System.out.println(e.getMessage());\r\n }finally {\r\n try {\r\n connection.close();\r\n } catch (Exception e2) { // Closing databse error handling\r\n System.err.println(e2.getMessage());\r\n }\r\n } \r\n \r\n text_schedule.setText(report);\r\n }", "public int getSchedule_id() {\r\n return schedule_id;\r\n }", "io.opencannabis.schema.commerce.CommercialOrder.OrderScheduling getScheduling();", "List<WorkingSchedule> getAll();", "@Override\n\t\tpublic List<ProgramScheduledBean> getAllScheduleProgram()\n\t\t\t\tthrows UniversityException {\n\t\t\treturn dao.getAllScheduleProgram();\n\t\t}", "public interface ScheduleDao {\n int crewTally();\n ArrayList<avail> getAllAvailibility();\n ArrayList<ShiftDetails> getShiftDetails();\n int updateShiftSwapStatus();\n}", "@Override\n\tpublic List<ScheduleTask> getScheduleTaskList() {\n\t\treturn (List<ScheduleTask>) find(\"from ScheduleTask\");\n\t}", "public List<UserRace> selectAllSchedule() {\n\t\tString sql = \"select \" + COLUMNS + \" FROM UserRace WHERE mode = '\"\n\t\t\t\t+ UserRace.MODE_SCHEDULE + \"'\";\n\t\treturn getJdbcTemplate().query(sql, new UserRaceRowMapper());\n\t}", "@Override\r\n\tpublic List<Courseschedule> getAllCourseschedules() {\n\t\tsession = sessionFactory.openSession();\r\n\t\tTransaction tran = session.beginTransaction();\r\n\t\tString hql = \"from Courseschedule where state=:state\";\r\n\t\tQuery query = session.createQuery(hql).setInteger(\"state\", 0);\r\n\t\tList<Courseschedule> lists = query.list();\r\n\t\ttran.commit();\r\n\t\tsession.close();\r\n\t\tlogger.debug(\"use the method named :getAllCourseschedules()\");\r\n\t\tif (lists.size() > 0) {\r\n\t\t\treturn lists;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "List<Schedule> selectByExample(ScheduleCriteria example);", "public static List<Schedule> fetchGeneratedSchedules() {\r\n if (!isComplete()) {\r\n return null;\r\n }\r\n\r\n return generatedSchedules;\r\n }", "@Override\n\tpublic void UpdateTableSchedule(Schedule current) {\n\t\tif (current == null)\n\t\t\treturn;\n\t\tCurrFitness = current.fitness;\n\t\tmyLabelSchedule.setText(\"Current Schedule Fitness: \" + CurrFitness);\n\t\tfor (int station = 1; station <= current.stations.size(); station++) {\n\t\t\tfor (int i = 0; i < dtm.getRowCount(); i++) {\n\t\t\t\tdtm.setValueAt(\"\", i, station);\n\t\t\t}\n\t\t\t// @Debug System.out.println(\"TableLength: \"+tableLength);\n\t\t\tStationSlot currentStation = current.stations.get(station - 1);\n\t\t\tif (currentStation.registeredCars.size() == 0) {\n\t\t\t\tcontinue;\n\t\t\t} else {\n\t\t\t\tLinkedList<CarSlot> cars = currentStation.registeredCars;\n\t\t\t\tfor (int i = 0; i < cars.size(); i++) {\n\t\t\t\t\tCarSlot car = cars.get(i);\n\t\t\t\t\tfloat start = car.startTime;\n\t\t\t\t\tfloat duration = car.duration;\n\t\t\t\t\tint rowNum = (int) (start * (60 / interval));\n\t\t\t\t\t// System.out.println(\"ColumNum: \"+rowNum);\n\t\t\t\t\twhile (duration > 0) {\n\t\t\t\t\t\tdtm.setValueAt(\"Car \" + car.name + \" [\" + car.priority + \"]\" + \" - \" + car.type, rowNum, station);\n\t\t\t\t\t\trowNum++;\n\t\t\t\t\t\tduration = (float) (duration - interval / 60f);\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n\tpublic List<ScheduledFlights> retrieveAllScheduledFlights() {\t\r\n\t\tTypedQuery<ScheduledFlights> query = entityManager.createQuery(\"select s from ScheduledFlights s, Flight f,Schedule sc where s.flight = f and s.schedule=sc\",ScheduledFlights.class);\r\n\t\tList<ScheduledFlights> flights = query.getResultList();\r\n\t\treturn flights;\r\n\t}", "public boolean generateSchedule(){\r\n return true;\r\n }", "public void existingSchedules(){\n \n scheduleModel = (DefaultTableModel) displayTable.getModel();\n \n currentSchedules = AccessDataFromXML.retrieveSchedules();\n for (Schedule schedule : currentSchedules){\n \n \n Object[] o = new Object[1];\n o[0] = schedule.getName();\n scheduleModel.addRow(o);\n }\n \n \n\n }", "public Schedule getSchedule() {\n\n return schedule;\n }", "private List<Schedules> getSchedulesList(){\r\n//\t\tList<Schedules> list = new ArrayList<Schedules>();\r\n//\t\tSchedules s1 = new Schedules(1, \"Baidu\", \"BUPT\", \"2013-09-11\", \"12:30\");\r\n//\t\tSchedules s2 = new Schedules(2, \"Sina\", \"BUPT\", \"2013-09-11\", \"13:50\");\r\n//\r\n//\t\tlist.add(s1);\r\n//\t\tlist.add(s2);\r\n\t\tif (scheduleList == null) {\r\n\t\t\tscheduleList = mAppContext.scheduleGetAll();\r\n\t\t}\r\n\t\treturn scheduleList;\r\n//\t\treturn list;\r\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\tpublic List<TimeTableBean> getTimeTable() {\n\t\treturn sessionFactory.openSession().createQuery(\"from TimeTableBean\").list();\r\n\t}", "@Override\n\tpublic List<ScheduleTask> getScheduleTaskList() {\n\t\treturn scheduleTaskDAO.getScheduleTaskList();\n\t}", "abstract public void computeSchedule();", "SchedulingPlay selectByPrimaryKey(Long id);", "public List<WorkoutSchedule> getSchedules() {\n if (schedules == null) {\n if (daoSession == null) {\n throw new DaoException(\"Entity is detached from DAO context\");\n }\n WorkoutScheduleDao targetDao = daoSession.getWorkoutScheduleDao();\n List<WorkoutSchedule> schedulesNew = targetDao._queryWorkout_Schedules(id);\n synchronized (this) {\n if(schedules == null) {\n schedules = schedulesNew;\n }\n }\n }\n return schedules;\n }", "private void refreshScheduleTable() {\n\t\tint gameIdx = 0;\n\t\tList<GameDetails> games = getGames();\n\t\tif (games != null) {\n\t\t\tfor (GameDetails game : games) {\n\t\t\t\tfor (int i = 0; i < 2; i++) {\n\t\t\t\t\tboolean isHome = (i == 0);\n\n\t\t\t\t\tTeamDetails team = (isHome ? game.getHomeTeam() : game.getAwayTeam()); \n\n\t\t\t\t\tboolean isSelected = false;\n\t\t\t\t\tboolean canSelect = true;\n\t\t\t\t\tif (getUiHandlers() != null) {\n\t\t\t\t\t\tisSelected = getUiHandlers().isTeamSelected(team);\n\t\t\t\t\t\tcanSelect = getUiHandlers().canSelectTeam(team);\n\t\t\t\t\t}\n\n\t\t\t\t\tString text = (isHome ? \"@ \" + team.getDisplayName() : team.getDisplayName());\n\n\t\t\t\t\tint row = rowFromGameIdx(gameIdx, isHome);\n\t\t\t\t\tint col = colFromGameIdx(gameIdx, isHome);\n\n\t\t\t\t\tsetScheduleCell(row, col, text, isSelected, canSelect);\t\n\t\t\t\t}\n\n\t\t\t\tgameIdx++;\n\t\t\t}\n\t\t}\n\n\t\t// Clear out any remaining cells (in case of bye weeks).\n\t\tfor (; gameIdx < NFLConstants.MAX_GAMES_PER_WEEK; gameIdx++) {\n\t\t\tfor (int i = 0; i < 2; i++) {\n\t\t\t\tboolean isHome = (i == 0);\n\t\t\t\t\n\t\t\t\tint row = rowFromGameIdx(gameIdx, isHome);\n\t\t\t\tint col = colFromGameIdx(gameIdx, isHome);\n\n\t\t\t\tsetScheduleCell(row, col, \"\", false, true);\n\t\t\t}\n\t\t}\n\t}", "public int getScheduleMethod() {\n return scheduleMethod;\n }", "private static Entity addScheduleDateDataEntities(final Schema schema) {\n Entity scheduleDateData = schema.addEntity(\"ScheduleDateData\");\n scheduleDateData.addIdProperty().primaryKey().autoincrement();\n scheduleDateData.addIntProperty(\"schedule_id\").notNull();\n scheduleDateData.addStringProperty(\"schedule_name\");\n scheduleDateData.addStringProperty(\"class_id\");\n scheduleDateData.addStringProperty(\"class_name\");\n scheduleDateData.addStringProperty(\"class_desc\");\n scheduleDateData.addStringProperty(\"schedule_type_id\");\n scheduleDateData.addStringProperty(\"schedule_type\");\n scheduleDateData.addStringProperty(\"schedule_start_date\");\n scheduleDateData.addStringProperty(\"schedule_start_time\");\n scheduleDateData.addStringProperty(\"schedule_end_time\");\n scheduleDateData.addLongProperty(\"schedule_start_time_long\");\n scheduleDateData.addLongProperty(\"schedule_end_time_long\");\n scheduleDateData.addIntProperty(\"schedule_monday\");\n scheduleDateData.addIntProperty(\"schedule_tuesday\");\n scheduleDateData.addIntProperty(\"schedule_wednesday\");\n scheduleDateData.addIntProperty(\"schedule_thursday\");\n scheduleDateData.addIntProperty(\"schedule_friday\");\n scheduleDateData.addIntProperty(\"schedule_saturday\");\n scheduleDateData.addIntProperty(\"schedule_sunday\");\n scheduleDateData.addStringProperty(\"schedule_frequency\");\n scheduleDateData.addIntProperty(\"is_cancelled\");\n scheduleDateData.addIntProperty(\"is_reservable\");\n scheduleDateData.addStringProperty(\"instructor_id\");\n scheduleDateData.addStringProperty(\"instructor_name\");\n scheduleDateData.addStringProperty(\"location_id\");\n scheduleDateData.addStringProperty(\"location_name\");\n\n return scheduleDateData;\n }", "public static String listScheduleIdSymbol(int tambahanBolehABs) {\n DBResultSet dbrs = null;\n String result = \"\";\n try {\n Date dtStart = new Date();\n Date dtEnd = new Date();\n String dtManual = \"\";\n boolean crossDay = false;\n //dtStart.setHours(dtStart.getHours()-tambahanBolehABs);\n dtStart = new Date(dtStart.getYear(), dtStart.getMonth(), (dtStart.getDate()), (dtStart.getHours() - tambahanBolehABs), dtStart.getMinutes(), dtStart.getSeconds());\n dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate()), (dtEnd.getHours() + tambahanBolehABs), dtEnd.getMinutes(), dtEnd.getSeconds());\n int jamMelebihiOneDay = 23;\n if (dtStart.getHours() == 0 || dtStart.getHours() == 23) {\n dtManual = \"23:\" + \"59:\" + \"59\";\n crossDay = true;\n jamMelebihiOneDay = jamMelebihiOneDay + tambahanBolehABs;\n }\n if (dtEnd.getHours() == 0) {\n dtManual = \"23:\" + \"59:\" + \"59\";\n crossDay = true;\n jamMelebihiOneDay = jamMelebihiOneDay + tambahanBolehABs;\n }\n\n// String dtManual=\"\";\n// if(dt.getHours()==0 || dt.getHours()+tambahanBolehABs>=23){\n// int idtManual = 24+tambahanBolehABs;\n// dtManual = idtManual+\":59:00\" ;\n// }else{\n// dt.setHours(dt.getHours()+tambahanBolehABs);\n// }\n\n String sql = \"SELECT * FROM \" + PstScheduleSymbol.TBL_HR_SCHEDULE_SYMBOL\n + \" WHERE \\\"00:00:00\\\" <=\" + PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT]\n + \" AND \" + PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN] + \"<= \\\"\"\n + \"23:59:00\"\n //+ (dtStart.getHours() == 0 || dtStart.getHours() == 23 || dtEnd.getHours() == 0 ? dtManual : Formater.formatDate(dtEnd, \"HH:mm:00\"))\n + \"\\\"\";\n //+ \" WHERE \" + \"(\"+PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN] +\" BETWEEN \\\"00:00:00\\\" AND \\\"\"+ (crossDay?dtManual:Formater.formatDate(dtStart, \"HH:mm:00\")) +\"\\\") OR (\"+PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT] +\" BETWEEN \\\"00:00:00\\\" AND \\\"\"+Formater.formatDate(dtEnd, \"HH:mm:00\")+\"\\\")\";\n\n dbrs = DBHandler.execQueryResult(sql);\n ResultSet rs = dbrs.getResultSet();\n while (rs.next()) {\n dtEnd = new Date();\n dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate()), (dtEnd.getHours() + tambahanBolehABs), dtEnd.getMinutes(), dtEnd.getSeconds());\n \n Date schTimeIn = rs.getTime(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN]);\n\n Date schTimeOut = rs.getTime(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT]);\n Date dtTmpSchTimeIn = new Date();\n Date dtTmpSchTimeOut = new Date();\n\n\n if (schTimeIn != null && schTimeOut != null) {\n schTimeOut = new Date(dtTmpSchTimeOut.getYear(), dtTmpSchTimeOut.getMonth(), dtTmpSchTimeOut.getDate(), schTimeOut.getHours(), schTimeOut.getMinutes());\n schTimeIn = new Date(dtTmpSchTimeIn.getYear(), dtTmpSchTimeIn.getMonth(), dtTmpSchTimeIn.getDate(), schTimeIn.getHours(), schTimeIn.getMinutes());\n\n Date dtCobaTimeOut = new Date(schTimeOut.getYear(), schTimeOut.getMonth(), (schTimeOut.getDate()), (schTimeOut.getHours() + tambahanBolehABs), schTimeOut.getMinutes(), schTimeOut.getSeconds());\n boolean melebihiHari=false;\n if (schTimeIn.getHours() == 0 || schTimeOut.getHours() == 0) {\n \n } else {\n if (dtCobaTimeOut.getDate() > schTimeIn.getDate()) {\n //dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate() + 1), (dtEnd.getHours()), dtEnd.getMinutes(), dtEnd.getSeconds());\n melebihiHari=true;\n }\n\n if ( (melebihiHari && dtEnd.getHours()<dtCobaTimeOut.getHours()) || schTimeIn.getTime() <= dtEnd.getTime() || (schTimeIn.getHours() > schTimeOut.getHours() && dtEnd.getTime() < schTimeOut.getTime())) {\n result = result + rs.getString(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_SCHEDULE_ID]) + \",\";\n }\n }\n\n\n\n\n\n }\n\n }\n if (result != null && result.length() > 0) {\n result = result.substring(0, result.length() - 1);\n }\n rs.close();\n return result;\n\n } catch (Exception e) {\n System.out.println(e);\n } finally {\n DBResultSet.close(dbrs);\n }\n return result;\n }", "public interface ScheduleDao {\r\n\tpublic Schedule createSchedule(Calendar scheduleDate) throws DAOException;\r\n\tpublic Schedule findScheduleById(long scheduleId) throws DAOException;\r\n\tpublic List<Schedule> findSchedulesByDate(Calendar scheduleDate) throws DAOException;\r\n\tpublic List<Schedule> findAllSchedules() throws DAOException;\r\n\tpublic void updateSchedule(long scheduleId, Calendar newScheduleDate) throws DAOException;\r\n\tpublic void deleteScheduleById(long scheduleId) throws DAOException;\r\n\tpublic void deleteAllSchedules() throws DAOException;\r\n}", "public String getSchedule() {\n return schedule;\n }", "public Schedule getSchedule() {\r\n\t\treturn schedule;\r\n\t}", "public ScheduleType getScheduleType();", "public interface ScheduleService {\n BasicSchedule getBasicScheduleByHostelIdAndRoomType(long hostelId, RoomType type);\n\n /**\n * 获得最近一年的酒店基本计划\n *\n * @param hostelId\n * @return\n */\n List<BasicSchedule> getBasisSchedulesByHostelId(long hostelId);\n\n void modifyBasisSchedule(BasicSchedule basicSchedule);\n\n /**\n * 获得最近一年的酒店特殊计划\n *\n * @param hostelId\n * @return\n */\n List<SpecialSchedule> getSpecialScheduleByHostelId(long hostelId);\n\n void modifySpecialSchedule(SpecialSchedule specialSchedule);\n\n void addSpecialSchedule(SpecialSchedule specialSchedule);\n\n void deleteSpecialSchedule(SpecialSchedule specialSchedule);\n\n SpecialSchedule getSpecialSchedule(long hostelId, RoomType roomType, Date date);\n}", "private void loadScheduleList() {\n\n if (listTbagendamentos != null && !listTbagendamentos.isEmpty()) {\n scheduleAgendamento.clear();\n\n for (Tbagendamento agendamento : listTbagendamentos) {\n DefaultScheduleEvent defaultScheduleEvent = new DefaultScheduleEvent();\n defaultScheduleEvent.setTitle(agendamento.getIdcliente().getNmcliente());\n\n Calendar dtDataInicial = new GregorianCalendar();\n dtDataInicial.setTime(agendamento.getTmdataagendamento());\n\n defaultScheduleEvent.setStartDate(dtDataInicial.getTime());\n\n Calendar dtDataFinal = new GregorianCalendar();\n dtDataFinal.setTime(agendamento.getTmdataagendamento());\n dtDataFinal.set(Calendar.MINUTE, dtDataFinal.get(Calendar.MINUTE) + 30);\n\n defaultScheduleEvent.setEndDate(dtDataFinal.getTime());\n defaultScheduleEvent.setData(agendamento.getIdagendamento());\n scheduleAgendamento.addEvent(defaultScheduleEvent);\n }\n }\n }", "public Schedule() {\r\n }", "public void setSchedule(Schedule schedule) {\r\n\t\tthis.schedule = schedule;\r\n\t}", "List<WorkingSchedule> getByPlaceId(Long placeId);", "public ProgramScheduled getProgramScheduleById(int scheduleId);", "public ArrayList<TrainScheduleEntity> viewTrainSchedule(String dayType);", "java.lang.String getSnapshotCreationSchedule();", "io.opencannabis.schema.commerce.CommercialOrder.SchedulingType getScheduling();", "@Override\r\n\tpublic void doInitialSchedules() {\n\t}", "void setSchedule(java.lang.String schedule);", "ScheduleStartType getScheduleStart();", "public abstract void schedule();", "public void setSchedule(Schedule newSchedule) {\n\n schedule = newSchedule;\n }", "@Mapper\npublic interface VirtualRepayFlowMapper {\n @DataSource(\"bigdata2_jdb\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE update_time >= #{from_time} and update_time < #{end_time} and id>#{id} limit 1000\")\n List<VirtualRepayFlow> find(@Param(\"from_time\") String from_time,\n @Param(\"end_time\") String end_time,\n @Param(\"id\") long id);\n\n\n @DataSource(\"dmp\")\n @Insert(\"INSERT INTO virtual_repay_flow (id,uuid,virtual_productid,to_user,amount,interest,repay_status,repay_time,create_time,update_time) values\" +\n \"(#{id},#{uuid},#{virtual_productid},#{to_user},#{amount},#{interest},#{repay_status},#{repay_time},#{create_time},#{update_time})\")\n void insert(VirtualRepayFlow virtualRepayFlow);\n\n @DataSource(\"dmp\")\n @Delete(\"DELETE FROM repay_flow where update_time<#{update_time}\")\n void delete(@Param(\"update_time\") String update_time);\n\n @DataSource(\"dmp\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE id=#{id}\")\n VirtualRepayFlow getById(@Param(\"id\") long id);\n\n\n @DataSource(\"dmp\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE uuid=#{uuid}\")\n VirtualRepayFlow getByUuid(@Param(\"uuid\") String uuid);\n}", "public abstract void maintenanceSchedule() ;", "@Override\n public List<SurveillantSchedule> getSurveillantSchedule() {\n return surveillantRepository.getSurveillantSchedule();\n }", "long getScheduleID() {return mScheduleID; }", "com.google.cloud.gkebackup.v1.BackupPlan.Schedule getBackupSchedule();", "public String getScheduleRow() {\n\t\treturn uSRow;\n\t}", "public void setSchedule_id(int schedule_id) {\r\n this.schedule_id = schedule_id;\r\n }", "public void printSchedule(){\n String\n format =\n \"%-20s%-10s%-15s%\" +\n \"-20s%-25s%-10s%\" +\n \"-15s%-15s%-15s%n\";\n\n System.out.printf(format,\n \"Водитель\", \"Номер А/М\",\"Машина\", \"Дата и время\",\n \"Задание\", \"Кол-во\",\n \"Расстояние\", \"Цена\", \"Примечание\");\n System.out.println();\n\n\n\n List<TimeTable> l = driverScheduleReaderDAO.getTimeTable();\n TimeTable tPrev =l.get(0);\n for (TimeTable t: l){\n\n if (!t.getDriverName().equals(tPrev.getDriverName())) {\n\n System.out.println(\"***\");\n tPrev = t;\n\n } else if (t!=l.get(0))t.setDriverName(\" \");\n\n\n\n\n System.out.printf(format,\n t.getDriverName(), t.getCarId(), t.getCarBrand(),\n t.getBusyTime(), t.getOrder(), t.getNumOfEl(),\n t.getDistance(), t.getPrice(), t.getNote()\n );\n\n }\n\n //int\n\n\n\n\n //вывести на экран\n //отельным классом посчитать шанс поломки и предупредить\n }", "public void schedule(String id, String[] schedule) {\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic List<ISchedule> getSchedules() throws IOException {\n\t\tfinal String sql = \"SELECT * from record\";\n\t\tList<? extends ISchedule> result = this.queryDataList(Schedule.class,ISchedule.Props.class, sql);\n\t\treturn (List<ISchedule>) result;\t\t\n\t}", "public List<AllTimeSeasonBean> getAllTimeRecord(){\n String q = \"select new com.main.pcblroyals.bean.AllTimeSeasonBean( \" +\n \"sum(case when g.teamScore > g.opponentScore then 1 else 0 end), \" +\n \"sum(case when g.teamScore = g.opponentScore then 1 else 0 end), \" +\n \"sum(case when g.teamScore < g.opponentScore then 1 else 0 end) \" +\n \") \" +\n \"from seasons s \" +\n \"join games g on s.id = g.season.id \";\n Query query = entityManager.createQuery(q);\n return (List<AllTimeSeasonBean>) query.getResultList();\n }", "@Override\n public String getEndPoint() {\n return \"/v1/json/schedule\";\n }", "@GetMapping\n public List<ScheduleDTO> getAllSchedules() {\n List<Schedule> scheduleList = scheduleService.getAllSchedules();\n\n List<ScheduleDTO> scheduleDTOList = scheduleList.stream()\n .map(ScheduleController::convertScheduleToScheduleDTO)\n .collect(Collectors.toList());\n return scheduleDTOList;\n }", "public interface ScheduleListDao extends GenericDao<ScheduleList, Long> {\n\t\n\tpublic List<ScheduleList> findShceduleList(String scheduleId); \n\t\n\t /**\n * 自服务项列表\n * @return\n */\n public Page findScheduleList(String pageSize);\n\t\n}", "public void storeRegularDayTripStationScheduleWithRS();", "@MapperScan\npublic interface DSSettingMapper {\n\n @Insert(\"INSERT INTO ds_setting (dsId, dsAppointment2,dsAppointment3,outCoachIds,status,modifyTime)\" +\n \" VALUES(#{dsId},#{dsAppointment2},#{dsAppointment3},#{outCoachIds},#{status},NOW())\")\n int insertDssetting(DSSetting dsSetting);\n\n @Update(\"UPDATE ds_setting SET dsAppointment2 = #{dsAppointment2},\" +\n \" dsAppointment3 = #{dsAppointment3}, outCoachIds = #{outCoachIds}, \" +\n \"status = #{status}, modifyTime = NOW() \" +\n \"WHERE dsId = #{dsId}\")\n int updateDssetting(DSSetting dsSetting);\n\n @Select(\"SELECT * FROM ds_setting WHERE dsId = #{dsId}\")\n DSSetting findOneDSSetting(@Param(\"dsId\") Long dsId);\n}", "public String getScheduleExpression() {\n return this.scheduleExpression;\n }", "@Override\n\tpublic List<SchedulerJobEntity> getAllScheduledJobs() throws SchedulerException {\n\t\treturn schedulerRepository.findAll();\n\t}", "@Override\n\t\tpublic oep_ResponseInfo getTestscheduledetails(String id) {\n\t\t\t\n\t\t\t\n\t\t\tString query = \" SELECT a.`ques_master_id`,`is_test_started`,a.`id`,`sub_id`,a.`batch`,DATE_FORMAT(`testdate`,'%m/%d/%Y')newtestdate,a.`start_time`, a.`end_time`,a.`status`,b.`test_name`,`test_id`,\"\n\t\t\t\t\t+ \"HOUR(a.`start_time`)starthour,MINUTE(a.`start_time`)startminute, HOUR(a.`end_time`)endhour,MINUTE(a.`end_time`)endminute,\"\n\t\t\t\t\t+ \" DATE_FORMAT(`testdate`,'%d/%m/%Y')testdate, SUBSTRING_INDEX(a.`start_time`,' ',-1)startformatt,SUBSTRING_INDEX(a.`end_time`,' ',-1)endformatt,\"\n\t\t\t\t\t+ \"GROUP_CONCAT(f.`username`,' ',CASE WHEN `is_participant_start` = 2 THEN ' completed \\n' WHEN `is_participant_start` = 1 THEN 'Started \\n' ELSE 'Not started \\n'END)username,\"\n\t\t\t\t\t+ \"`is_participant_start`,h.`username`facname FROM `test_schedule` a JOIN `question_master` b ON a.`ques_master_id` = b.`id` \"\n\t\t\t\t\t+ \"JOIN `course_scheduling`c ON c.`cs_id`= a.`batch` JOIN `participants_registration_course_details`e ON e.`course_id`= c.`cs_id` \"\n\t\t\t\t\t+ \" JOIN `participants`f ON f.`participant_id`=e.`participant_id` \"\n\t\t\t\t\t+ \"LEFT JOIN `test_participants`g ON g.`part_id`= f.`participant_id` AND g.`ts_id`=a.`id`\"\n\t\t\t\t\t+ \" JOIN `faculty_master`h ON h.`faculty_id` = c.`faculty_name` WHERE a.`id`= \"+id+\" \";\n\t\t\t\n\t\t\t\n\t\t\tlog.info(query);\n\t\t\t\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tList<Object> List = jdbcTemplate.query(query, new RowMapper() {\n\t\t\t\tint count = 0;\n\t\t\t\t@Override\n\t\t\t\tpublic Object mapRow(ResultSet rs, int arg1) throws SQLException {\n\t\t\t\t\t\n\t\t\t\t\tMap<String, Object> map = new HashMap<String, Object>();\n\t\t\t\t\tmap.put(\"testid\", rs.getString(\"test_id\"));\n\t\t\t\t\tmap.put(\"startformat\", rs.getString(\"startformatt\"));\n\t\t\t\t\tmap.put(\"endformat\", rs.getString(\"endformatt\"));\t\n\t\t\t\t\tmap.put(\"facname\", rs.getString(\"facname\"));\n\t\t\t\t\tmap.put(\"quesid\", rs.getString(\"ques_master_id\"));\n\t\t\t\t\tmap.put(\"id\", rs.getString(\"id\"));\n\t\t\t\t\tmap.put(\"tsid\", rs.getString(\"id\"));\n\t\t\t\t\tmap.put(\"batch\", rs.getString(\"batch\"));\n\t\t\t\t\tmap.put(\"testdate\", rs.getString(\"testdate\"));\n\t\t\t\t\tmap.put(\"newtestdate\", rs.getString(\"newtestdate\"));\n\t\t\t\t\tmap.put(\"subid\", rs.getString(\"sub_id\"));\n\t\t\t\t\tmap.put(\"starthour\", rs.getString(\"starthour\"));\n\t\t\t\t\tmap.put(\"endhour\", rs.getString(\"endhour\"));\n\t\t\t\t\tmap.put(\"startminute\", rs.getString(\"startminute\"));\n\t\t\t\t\tmap.put(\"endminute\", rs.getString(\"endminute\"));\n\t\t\t\t\tmap.put(\"starttime\", rs.getString(\"start_time\"));\n\t\t\t\t\tmap.put(\"testname\", rs.getString(\"test_name\"));\n\t\t\t\t\tmap.put(\"username\", rs.getString(\"username\"));\n\t\t\t\t\tmap.put(\"starttest\", rs.getString(\"is_test_started\"));\n\t\t\t\t\tmap.put(\"participantstart\", rs.getString(\"is_participant_start\"));\n\t\t\t\t\tmap.put(\"endtime\", rs.getString(\"end_time\"));\n/*\t\t\t\t\t\n\t\t\t\t\tString submenuQuery = \"SELECT `part_id`,`imh_staus`,`username`,CONCAT(`username`,' ',CASE WHEN `imh_staus` = 0 \"\n\t\t\t\t\t\t\t+ \" THEN 'Certificate Not sent ' WHEN `imh_staus` = 1 THEN 'Certificate sent' \"\n\t\t\t\t\t\t\t+ \" ELSE 'Invalid 'END)status FROM `email_history`a \"\n\t\t\t\t\t\t\t+ \" JOIN `participants`b ON a.`part_id`=b.`participant_id` WHERE `ts_id` = \"+ rs.getString(\"id\");\t*/\n\t\t\t\t\t\n\t\t\t\t\tString submenuQuery = \" SELECT a.`ques_master_id`,`username`,`imh_staus`,`is_test_started`,a.`id`,a.`batch`,DATE_FORMAT(`testdate`,'%e/%c/%Y')testdate,a.`start_time`, a.`end_time`,a.`status`,b.`test_name`,`test_id`,\"\n\t\t\t\t\t\t\t+ \"CONCAT(`username`,' ',CASE WHEN `is_participant_start` = 2 THEN ' completed \\n' WHEN `is_participant_start` = 1 THEN 'Started \\n' ELSE 'Not started \\n'END)teststatus,\"\n\t\t\t\t\t\t\t+ \"`is_participant_start` FROM `test_schedule` a JOIN `question_master` b ON a.`ques_master_id` = b.`id` \"\n\t\t\t\t\t\t\t+ \"JOIN `course_scheduling`c ON c.`cs_id`= a.`batch` JOIN `participants_registration_course_details`e ON e.`course_id`= c.`cs_id` \"\n\t\t\t\t\t\t\t+ \" JOIN `participants`f ON f.`participant_id`=e.`participant_id` \"\n\t\t\t\t\t\t\t+ \"LEFT JOIN `test_participants`g ON g.`part_id`= f.`participant_id` AND g.`ts_id`=a.`id`\"\n\t\t\t\t\t\t\t+ \"JOIN `email_history`h ON h.`ts_id`= a.`id` WHERE a.`id`= \"+ rs.getString(\"id\");\n\t\t\t\t\t\n\t\t\t\t\t List<Object> submenuList = new ArrayList<Object>();\n\t\t\t\t\t submenuList = getPartStatusList(submenuQuery);\n\t\t\t\t\t map.put(\"submenuList\", submenuList);\n\t\t\t\t\t\n\t\t\t\t\tif(rs.getString(\"status\")!= null && rs.getString(\"status\").equals(\"1\")){\n\t\t\t\t\t\tmap.put(\"status\", \"Active\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tmap.put(\"status\", \"Inactive\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(rs.getString(\"is_test_started\")!= null && rs.getString(\"is_test_started\").equals(\"1\")){\n\t\t\t\t\t\tmap.put(\"teststarted\", \"Test Started\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tmap.put(\"teststarted\", \"Not started\");\n\t\t\t\t\t}\n\t\t\t\t\tmap.put(\"index\", count);\n\t\t\t\t\tcount++;\n\t\t\t\t\treturn map;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t});\n\t\t\t\n\t\t\n\t\t\t \n\t\t\t \n\t\t\tresponse.setResponseType(\"S\");\n\t\t\tresponse.setResponseObj(List);\n\t\t\tresponseInfo.setInventoryResponse(response);\n\t\t\treturn responseInfo;\n\t\t}", "public void createTempSpecialDayTrainSchedule(Timestamp date);", "public void generatePlan(Integer id,Date fromDate, Date toDate) throws Exception;", "@Override\r\n\tpublic List<Courseschedule> getCourseschedulesByClassroomId(int classroomId) {\n\t\tsession = sessionFactory.openSession();\r\n\t\tTransaction tran = session.beginTransaction();\r\n\t\tString hql = \"from Courseschedule where classroomId=:classroomId and state=:state\";\t\t\r\n\t\tList<Courseschedule> lists = session.createQuery(hql).setInteger(\"classroomId\", classroomId).setInteger(\"state\", 0).list();\r\n\t\ttran.commit();\r\n\t\tsession.close();\r\n\t\tlogger.debug(\"use the method named :getCourseschedulesByClassroomId(int classroomId)\");\r\n\t\tif (lists.size() > 0) {\r\n\t\t\treturn lists;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public void setSchedule(String timeframe) {\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic List<ScheduledFlights> retrieveScheduledFlights(String source, String destination) {\r\n\t\tQuery query = entityManager.createQuery(\"select s.scheduleId,s.source,s.destination,s.arrivaltime,s.departuretime,f.flightNumber,f.carrierName,f.seatCapacity from Schedule s JOIN ScheduledFlights sf ON s.scheduleId=sf.scheduleId JOIN Flight f on sf.flightId=f.flightNumber where schedule.source= :source AND schedule.destination=:destination\");\r\n\t\treturn query.getResultList();\r\n\t}", "@Override\r\n\tpublic boolean updateDate(ScheduleAdminModel scheduleAdminModel) throws ClassNotFoundException, SQLException {\n\t\r\n\t\tConnection connection=ConnectionManager.openConnection();\r\nPreparedStatement statement=\r\n connection.prepareStatement(\"update courses set start_date=?,end_date=? where course_name=?\");\r\nstatement.setString(1,scheduleAdminModel.getStartDate());\r\nstatement.setString(2,scheduleAdminModel.getEndDate());\r\nstatement.setString(3,scheduleAdminModel.getCourse_name());\r\n \r\n int rows=statement.executeUpdate();\r\n\tConnectionManager.closeConnection();\r\n\tif(rows>0)\r\n\t\treturn true;\r\n\t else \r\n\t return false;\r\n\t}", "void deschedule(ScheduledJob job);", "@Query(\"select :stopName from Timetable order by id\")\n List<Integer> selectStop(String stopName);", "public Date getScheduletime() {\r\n return scheduletime;\r\n }", "public List<Timetable> getAllTimetable() throws Exception;", "public abstract ArrayList<ScheduleTime> getScheduleForDay(int day, int month, int year);", "public void setSchedule(SpaceSchedule s) {\n\t\t\n\t}", "MMSchedule() {\n mScheduleID = MMUtilities.ID_DOES_NOT_EXIST;\n mOfMedicationID = 0;\n mForPersonID = 0;\n mTimeDue = 0;\n mStrategy = MMMedication.sSET_SCHEDULE_FOR_MEDICATION;\n }", "@Override\n public void fetchScheduled(RuleKey ruleKey) {\n }", "List<Schedule> selectByExampleWithRowbounds(ScheduleCriteria example, RowBounds rowBounds);", "Schedule getSchedule(String departure, String arrival, int depYear, int depMonth);", "public void setList(ScheduleInterface<Schedule> scheduleList){\n this.scheduleList = scheduleList;\n }", "int insert(Schedule record);", "private void reloadPlanTable() {\n\t\t\r\n\t}", "public Schedule getSchedule(String route, int direction){\r\n // A schedule to hold all the data returned from the query\r\n Schedule weekdayZero = new Schedule();\r\n // Fetch the route id given the route\r\n Cursor getData = getReadableDatabase().rawQuery(\"select _id from routes where route_long_name = '\" + route + \"'\", null);\r\n // Make sure to begin at the first element of the returned data\r\n getData.moveToFirst();\r\n // Store the Route Id\r\n int route_id = getData.getInt(0);\r\n // Calendar id: (90400,90448) - Monday To Friday\r\n final String query = \"select Routes.Route_long_Name, \" +\r\n \"Calendar._Id, Stops.Stop_Name, Stop_Times.Stop_Sequence, Stop_Times.Arrival_Time, routes.route_short_name \" +\r\n \"from Trips join Calendar on Trips.Service_Id=Calendar._Id \" +\r\n \"join Routes on Trips.Route_Id=Routes._Id \" +\r\n \"join Stop_Times on Trips._Id=Stop_Times.Trip_Id \" +\r\n \"join Stops on Stop_Times.Stop_Id=Stops._Id \" +\r\n \"where Calendar._Id in \" + getDayOfTheWeek() + \" \" +\r\n \"AND Trips.Route_Id = \" + route_id + \" \" +\r\n \"AND Trips.Direction_Id = \" + direction + \" \" +\r\n \"AND Stop_Times.Arrival_Time != '' \" +\r\n \"order by arrival_time asc\";\r\n getData.moveToFirst();\r\n getData = getReadableDatabase().rawQuery(query, null);\r\n while (getData.moveToNext()){\r\n weekdayZero.insertData(getData.getString(0), getData.getInt(1), getData.getString(2), getData.getInt(3)\r\n , getData.getString(4), getData.getString(5));\r\n }\r\n return weekdayZero;\r\n }", "public Date getScheduleTime() {\n return this.scheduleTime;\n }", "@Override\n\tpublic void setDateAndSchedule(String date, String schedule) {\n\n\t}", "public MonthlyValuesTable(Database database) \n {\n //Constructor calls DbTable's constructor\n super(database);\n setTableName(\"monthlyvalues\");\n }", "public Date getScheduleDate(){\r\n\t\treturn this.scheduleDate;\r\n\t}", "com.google.cloud.compute.v1.Scheduling getScheduling();", "TimerSchedule createTimerSchedule();", "public ApiSchedule[] getSchedules() {\n return this.schedules;\n }", "@Override\n\tpublic void setDateAndSchedule(String date, String schedule) {\n\t\t\n\t}", "public interface ITimetableDAO {\n\n /**\n * Get all the timetable element of <code>Timetable</code> object <br>\n *\n * @return all the list of <code>Timetable</code> object\n * @throws Exception\n */\n public List<Timetable> getAllTimetable() throws Exception;\n\n /**\n * Get all the list element has search of <code>Timetable</code> object<br>\n *\n * @param from is the date of <code>Timetable</code> object\n * @param to is the date of <code>Timetable</code> object\n * @return all the list has search of <code>Timetable</code> object\n * @throws Exception\n */\n public List<Timetable> getListSearch(String from, String to) throws Exception;\n\n /**\n * Add the all the element of Timetable to database\n *\n * @param date the date of Timetable object, it is an\n * <code>java.sql.Date</code>\n * @param slot the slot of Timetable object, it is an int\n * @param classes the classes of Timetable object, it is a string\n * @param teacher the teacher of Timetable object, it is a string\n * @param room the room of Timetable object, it is an int\n * @throws Exception\n */\n public void addTimetable(String date, String slot, String room, String teacher, String classes) throws Exception;\n\n /**\n * Function to check Timetable exist before add\n *\n * @param date the date of Timetable object, it is an\n * <code>java.sql.Date</code>\n * @param classes the slot of Timetable object, it is an int\n * @param room the room of Timetable object, it is a string\n * @return object of Timetable or null when check exist timetable\n * @throws Exception\n */\n public Timetable checkExistRoomTimeTable(String date, String classes, String room) throws Exception;\n\n /**\n * Paginate by number of timetable in <code>Timetable</code> object <br>\n *\n * @param pageIndex the index of page, it is an <code>int</code>\n * @param pageSize the size of page, it is an <code>int</code>\n * @return list of timetable, it is a <code>java.util.List</code> object.\n * @throws java.lang.Exception\n */\n public List<Timetable> pagging(int pageIndex, int pageSize) throws Exception;\n\n /**\n * Get number of result <code>Gallery</code> object by id\n *\n * @return number result of Gallery object, it is an int\n * @throws java.lang.Exception\n */\n public int numberOfResult() throws Exception;\n\n /**\n * Function to check Timetable exist before add\n *\n * @param date the date of Timetable object, it is an\n * <code>java.sql.Date</code>\n * @param classes the slot of Timetable object, it is an int\n * @param teacher the teacher of Timetable object, it is a string\n * @return object of Timetable or null when check exist timetable\n * @throws Exception\n */\n public Timetable checkExistTeacherTimeTable(String date, String classes, String teacher) throws Exception;\n\n}", "public void setScheduleTime(Date scheduleTime) {\n this.scheduleTime = scheduleTime;\n }", "@Scheduled(cron = \"0 30 06 * * *\",zone=\"America/New_York\")\n public void populateDatabase(){\n localDateTime = LocalDateTime.now();\n log.info(\"Executed now: \"+ localDateTime.toString());\n\n // Checks if table in database is empty\n // If not empty, clears the table and populates it with new data\n if(checkEmpty()==0)\n log.info(\"Empty Table\");\n else {\n deleteTableRecords();\n log.info(\"Table not Empty\");\n }\n\n URL url = null;\n\n // Get recent date, append it to URL and establish a connection\n String pattern = \"MM-dd-yyyy\";\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(pattern);\n Date date = Date.from(Instant.now().minus(Duration.ofDays(1)));\n\n\n String dateStr = simpleDateFormat.format(date);\n\n try {\n url = new URL(\"https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_daily_reports/\"+dateStr+\".csv\");\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n HttpURLConnection httpURLConnection = null;\n try {\n httpURLConnection = (HttpURLConnection) url.openConnection();\n } catch (IOException e) {\n e.printStackTrace();\n }\n int responseCode = 0;\n try {\n responseCode = httpURLConnection.getResponseCode();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n // On successful connection, read records line by line, store records in a table\n if(responseCode==200)\n {\n log.info(\"-- Successful Connection\");\n CSVReader reader = null;\n try {\n\n BufferedReader input = new BufferedReader(new InputStreamReader(httpURLConnection.getInputStream()),8192);\n reader = new CSVReader(input);\n String[] line;\n int skipFirstLine = 0;\n while ((line = reader.readNext()) != null)\n {\n if(skipFirstLine==0)\n {\n skipFirstLine++;\n continue;\n }\n\n DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern(\"yyyy-MM-dd HH:mm:ss\");\n\n Corona corona = new Corona();\n corona.setLastUpdate(LocalDateTime.parse(line[4],dateTimeFormatter));\n if(line[7].equals(\"\"))\n line[7]=\"0\";\n if(line[9].equals(\"\"))\n line[9]=\"0\";\n if(line[10].equals(\"\"))\n line[10]=\"0\";\n if(line[8].equals(\"\"))\n line[8]=\"0\";\n if(line[5].equals(\"\"))\n line[5]=\"0\";\n if(line[6].equals(\"\"))\n line[6]=\"0\";\n\n try {\n\n corona.setConfirmed(Long.valueOf(line[7]));\n corona.setRecovered(Long.valueOf(line[9]));\n corona.setActive(Long.valueOf(line[10]));\n corona.setDeaths(Long.valueOf(line[8]));\n corona.setLatitude(Double.valueOf(line[5]));\n corona.setLongitude(Double.valueOf(line[6]));\n } catch (NumberFormatException n)\n {\n n.printStackTrace();\n }\n corona.setCountry(line[3]);\n corona.setProvince(line[2]);\n corona.setCombinedKey(line[11]);\n\n\n\n coronaRepository.save(corona);\n log.info(corona.toString());\n\n\n }\n } catch (IOException | CsvValidationException e){\n e.printStackTrace();\n } finally {\n if(reader!=null)\n {\n try\n {\n reader.close();\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }\n }\n }\n }" ]
[ "0.6583093", "0.62134594", "0.614241", "0.6096163", "0.5869904", "0.5847323", "0.57736564", "0.5749311", "0.5730464", "0.5692395", "0.5691314", "0.5688622", "0.56733465", "0.5612722", "0.56103665", "0.5601378", "0.5594937", "0.5592374", "0.55869794", "0.5565921", "0.5544678", "0.5536762", "0.54946375", "0.5486974", "0.5463075", "0.54603523", "0.5455832", "0.54501116", "0.5445156", "0.5444004", "0.54084784", "0.53984827", "0.53917515", "0.53882813", "0.5388208", "0.5379494", "0.5379087", "0.53540117", "0.53484684", "0.53395474", "0.5337806", "0.53348553", "0.5326429", "0.531917", "0.5268467", "0.52664775", "0.52625597", "0.5256478", "0.5245691", "0.52455944", "0.5244061", "0.52287424", "0.52114916", "0.52114564", "0.5211055", "0.5206053", "0.5198744", "0.51842344", "0.51793087", "0.51495117", "0.5128515", "0.5107465", "0.510662", "0.51056135", "0.50985986", "0.5097996", "0.5095179", "0.5078455", "0.5071949", "0.5062537", "0.5048053", "0.5045186", "0.50360614", "0.5034012", "0.5032612", "0.5029762", "0.5028272", "0.5023831", "0.50128245", "0.50107193", "0.50062126", "0.49853772", "0.49811625", "0.4979578", "0.49694157", "0.4958413", "0.49560702", "0.49543408", "0.49509862", "0.49456567", "0.49427602", "0.49422622", "0.49398386", "0.4935916", "0.4927577", "0.49200827", "0.49151728", "0.49094823", "0.49054155", "0.49049369", "0.49020037" ]
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table schedule
public void setOrderByClause(String orderByClause) { this.orderByClause = orderByClause; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void generateSchedule(){\n\t\t\n\t}", "@Dao\npublic interface schedule_Dao {\n\n @Query(\"SELECT * FROM Schedule where student_id = :studentId\")\n List<Schedule> getSchedulesStudent(String studentId);\n\n\n\n @Query(\"SELECT COUNT(pkey) FROM Schedule where student_id = :student_id\")\n int getScheduleCount(String student_id);\n\n\n\n @Query(\"SELECT * FROM Schedule where student_id = :studentId and active = :active or active = :Active\")\n List<Schedule> getActiveSchedules(String active,String Active, String studentId);\n\n\n @Query(\"SELECT * FROM Schedule where `endtime_null` >= :date and `starttime_null` <= :date and student_id = :studentId and active = :active or active = :Active \")\n List<Schedule> getSelEvents(String active,String Active, String studentId, String date);\n\n\n @Query(\"SELECT * FROM Schedule where `endtime` >= :date and `starttime` <= :date and student_id = :studentId and active = :active or active = :Active \")\n List<Schedule> getSelEventTime(String active,String Active, String studentId, String date);\n\n\n @Insert\n void insertAll(Schedule... schedules);\n\n @Insert(onConflict = OnConflictStrategy.IGNORE)\n void insertOnConflict(Schedule... schedules);\n\n @Query(\"DELETE FROM Schedule\")\n public abstract int DeleteToken();\n\n @Query(\"DELETE FROM Schedule where pkey = :p_key and student_id = :studentId\")\n public abstract int DeleteSchedule(String p_key,String studentId );\n\n\n @Query(\"DELETE FROM Schedule where student_id= :studentId\")\n public abstract int DeleteScheduleAllUser(String studentId);\n\n\n}", "Schedule selectByPrimaryKey(Integer id);", "public interface JobScheduleMapper {\n @Select(\"select * from job_schedule where id = #{id}\")\n public JobSchedule findById(@Param(\"id\") long id);\n\n @Select(\"select status from job_schedule where id = #{id}\")\n public int getStatus(@Param(\"id\")long id);\n\n @Insert(\"insert into job_schedule (created_datetime, schedule_datetime, job_id, job_group_name, run_as, status) \" +\n \"values(#{created_datetime}, #{schedule_datetime}, #{job_id}, #{job_group_name}, #{run_as}, #{status})\")\n @Options(useGeneratedKeys = true, keyProperty = \"id\", keyColumn = \"id\")\n public void insert(JobSchedule jobSchedule);\n\n @Update(\"update job_schedule set status = #{status} where id = #{id}\")\n public void updateStatus(@Param(\"id\") long id, @Param(\"status\")int status);\n\n @Update(\"update job_schedule set status = \" + JobSchedule.JOB_SCHEDULE_STATUS_PENDING + \", retried = retried + 1 where id = #{id}\")\n public void retry(@Param(\"id\") long id);\n\n @Update(\"update job_schedule set next_job_schedule_id = #{nextId} where id = #{thisId}\")\n public void updateNextScheduleId(@Param(\"thisId\")long thisId, @Param(\"nextId\")long nextId);\n}", "Schedule createSchedule();", "java.lang.String getSchedule();", "public Schedule() {\n\t\t// TODO Auto-generated constructor stub\n\t}", "public void generateSchedule(){\r\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"yyyy-MM-dd HH:mm:ss\"); // Date formatter used when getting SQL records\r\n Database db = new Database();\r\n Connection connection = null;\r\n String sql = \"\";\r\n String report = \"\";\r\n \r\n // Retrieve the inputted consultant's id\r\n User user = (User) combo_user.getValue();\r\n int userID = user.getId();\r\n try{\r\n connection = db.jdbc_connection.connect();\r\n Statement statement = connection.createStatement(); // Set up statement\r\n \r\n sql = \"SELECT appointment.appointmentID, customer.customerName, appointment.title, appointment.description, appointment.location, appointment.contact, \" +\r\n \"appointment.type, appointment.url, appointment.start, appointment.end FROM appointment \" +\r\n \"INNER JOIN customer ON appointment.customerID=customer.customerID \" +\r\n \"WHERE userID = \" + userID + \" GROUP BY appointment.start\"; \r\n ResultSet results = statement.executeQuery(sql); \r\n \r\n while(results.next()) { \r\n String customer = results.getString(\"customerName\");\r\n String title = results.getString(\"title\");\r\n String description = results.getString(\"description\");\r\n String location = results.getString(\"location\");\r\n String contact = results.getString(\"contact\");\r\n String type = results.getString(\"type\");\r\n String url = results.getString(\"url\");\r\n String start = results.getString(\"start\");\r\n String end = results.getString(\"end\");\r\n \r\n \r\n // Convert the start and end DATETIMES to the user's current timezone \r\n java.time.LocalDateTime start_converted = convertToCurrentZone(java.time.LocalDateTime.parse(start.replace(\".0\", \"\"), formatter));\r\n String month = start_converted.getMonth().toString();\r\n int day = start_converted.getDayOfMonth();\r\n int hour = start_converted.getHour();\r\n String minute = String.valueOf(start_converted.getMinute());\r\n \r\n if(minute.length() == 1) minute += \"0\"; // Add following zeroes\r\n \r\n report += month + \" \" + day + \" at \" + hour + \":\" + minute + \" - appointment with \" + customer + \"\\n\";\r\n } \r\n }catch(Exception e) {\r\n System.out.println(e.getMessage());\r\n }finally {\r\n try {\r\n connection.close();\r\n } catch (Exception e2) { // Closing databse error handling\r\n System.err.println(e2.getMessage());\r\n }\r\n } \r\n \r\n text_schedule.setText(report);\r\n }", "public int getSchedule_id() {\r\n return schedule_id;\r\n }", "io.opencannabis.schema.commerce.CommercialOrder.OrderScheduling getScheduling();", "List<WorkingSchedule> getAll();", "@Override\n\t\tpublic List<ProgramScheduledBean> getAllScheduleProgram()\n\t\t\t\tthrows UniversityException {\n\t\t\treturn dao.getAllScheduleProgram();\n\t\t}", "public interface ScheduleDao {\n int crewTally();\n ArrayList<avail> getAllAvailibility();\n ArrayList<ShiftDetails> getShiftDetails();\n int updateShiftSwapStatus();\n}", "@Override\n\tpublic List<ScheduleTask> getScheduleTaskList() {\n\t\treturn (List<ScheduleTask>) find(\"from ScheduleTask\");\n\t}", "public List<UserRace> selectAllSchedule() {\n\t\tString sql = \"select \" + COLUMNS + \" FROM UserRace WHERE mode = '\"\n\t\t\t\t+ UserRace.MODE_SCHEDULE + \"'\";\n\t\treturn getJdbcTemplate().query(sql, new UserRaceRowMapper());\n\t}", "@Override\r\n\tpublic List<Courseschedule> getAllCourseschedules() {\n\t\tsession = sessionFactory.openSession();\r\n\t\tTransaction tran = session.beginTransaction();\r\n\t\tString hql = \"from Courseschedule where state=:state\";\r\n\t\tQuery query = session.createQuery(hql).setInteger(\"state\", 0);\r\n\t\tList<Courseschedule> lists = query.list();\r\n\t\ttran.commit();\r\n\t\tsession.close();\r\n\t\tlogger.debug(\"use the method named :getAllCourseschedules()\");\r\n\t\tif (lists.size() > 0) {\r\n\t\t\treturn lists;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "List<Schedule> selectByExample(ScheduleCriteria example);", "public static List<Schedule> fetchGeneratedSchedules() {\r\n if (!isComplete()) {\r\n return null;\r\n }\r\n\r\n return generatedSchedules;\r\n }", "@Override\n\tpublic void UpdateTableSchedule(Schedule current) {\n\t\tif (current == null)\n\t\t\treturn;\n\t\tCurrFitness = current.fitness;\n\t\tmyLabelSchedule.setText(\"Current Schedule Fitness: \" + CurrFitness);\n\t\tfor (int station = 1; station <= current.stations.size(); station++) {\n\t\t\tfor (int i = 0; i < dtm.getRowCount(); i++) {\n\t\t\t\tdtm.setValueAt(\"\", i, station);\n\t\t\t}\n\t\t\t// @Debug System.out.println(\"TableLength: \"+tableLength);\n\t\t\tStationSlot currentStation = current.stations.get(station - 1);\n\t\t\tif (currentStation.registeredCars.size() == 0) {\n\t\t\t\tcontinue;\n\t\t\t} else {\n\t\t\t\tLinkedList<CarSlot> cars = currentStation.registeredCars;\n\t\t\t\tfor (int i = 0; i < cars.size(); i++) {\n\t\t\t\t\tCarSlot car = cars.get(i);\n\t\t\t\t\tfloat start = car.startTime;\n\t\t\t\t\tfloat duration = car.duration;\n\t\t\t\t\tint rowNum = (int) (start * (60 / interval));\n\t\t\t\t\t// System.out.println(\"ColumNum: \"+rowNum);\n\t\t\t\t\twhile (duration > 0) {\n\t\t\t\t\t\tdtm.setValueAt(\"Car \" + car.name + \" [\" + car.priority + \"]\" + \" - \" + car.type, rowNum, station);\n\t\t\t\t\t\trowNum++;\n\t\t\t\t\t\tduration = (float) (duration - interval / 60f);\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n\tpublic List<ScheduledFlights> retrieveAllScheduledFlights() {\t\r\n\t\tTypedQuery<ScheduledFlights> query = entityManager.createQuery(\"select s from ScheduledFlights s, Flight f,Schedule sc where s.flight = f and s.schedule=sc\",ScheduledFlights.class);\r\n\t\tList<ScheduledFlights> flights = query.getResultList();\r\n\t\treturn flights;\r\n\t}", "public boolean generateSchedule(){\r\n return true;\r\n }", "public void existingSchedules(){\n \n scheduleModel = (DefaultTableModel) displayTable.getModel();\n \n currentSchedules = AccessDataFromXML.retrieveSchedules();\n for (Schedule schedule : currentSchedules){\n \n \n Object[] o = new Object[1];\n o[0] = schedule.getName();\n scheduleModel.addRow(o);\n }\n \n \n\n }", "public Schedule getSchedule() {\n\n return schedule;\n }", "private List<Schedules> getSchedulesList(){\r\n//\t\tList<Schedules> list = new ArrayList<Schedules>();\r\n//\t\tSchedules s1 = new Schedules(1, \"Baidu\", \"BUPT\", \"2013-09-11\", \"12:30\");\r\n//\t\tSchedules s2 = new Schedules(2, \"Sina\", \"BUPT\", \"2013-09-11\", \"13:50\");\r\n//\r\n//\t\tlist.add(s1);\r\n//\t\tlist.add(s2);\r\n\t\tif (scheduleList == null) {\r\n\t\t\tscheduleList = mAppContext.scheduleGetAll();\r\n\t\t}\r\n\t\treturn scheduleList;\r\n//\t\treturn list;\r\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\tpublic List<TimeTableBean> getTimeTable() {\n\t\treturn sessionFactory.openSession().createQuery(\"from TimeTableBean\").list();\r\n\t}", "@Override\n\tpublic List<ScheduleTask> getScheduleTaskList() {\n\t\treturn scheduleTaskDAO.getScheduleTaskList();\n\t}", "abstract public void computeSchedule();", "SchedulingPlay selectByPrimaryKey(Long id);", "public List<WorkoutSchedule> getSchedules() {\n if (schedules == null) {\n if (daoSession == null) {\n throw new DaoException(\"Entity is detached from DAO context\");\n }\n WorkoutScheduleDao targetDao = daoSession.getWorkoutScheduleDao();\n List<WorkoutSchedule> schedulesNew = targetDao._queryWorkout_Schedules(id);\n synchronized (this) {\n if(schedules == null) {\n schedules = schedulesNew;\n }\n }\n }\n return schedules;\n }", "private void refreshScheduleTable() {\n\t\tint gameIdx = 0;\n\t\tList<GameDetails> games = getGames();\n\t\tif (games != null) {\n\t\t\tfor (GameDetails game : games) {\n\t\t\t\tfor (int i = 0; i < 2; i++) {\n\t\t\t\t\tboolean isHome = (i == 0);\n\n\t\t\t\t\tTeamDetails team = (isHome ? game.getHomeTeam() : game.getAwayTeam()); \n\n\t\t\t\t\tboolean isSelected = false;\n\t\t\t\t\tboolean canSelect = true;\n\t\t\t\t\tif (getUiHandlers() != null) {\n\t\t\t\t\t\tisSelected = getUiHandlers().isTeamSelected(team);\n\t\t\t\t\t\tcanSelect = getUiHandlers().canSelectTeam(team);\n\t\t\t\t\t}\n\n\t\t\t\t\tString text = (isHome ? \"@ \" + team.getDisplayName() : team.getDisplayName());\n\n\t\t\t\t\tint row = rowFromGameIdx(gameIdx, isHome);\n\t\t\t\t\tint col = colFromGameIdx(gameIdx, isHome);\n\n\t\t\t\t\tsetScheduleCell(row, col, text, isSelected, canSelect);\t\n\t\t\t\t}\n\n\t\t\t\tgameIdx++;\n\t\t\t}\n\t\t}\n\n\t\t// Clear out any remaining cells (in case of bye weeks).\n\t\tfor (; gameIdx < NFLConstants.MAX_GAMES_PER_WEEK; gameIdx++) {\n\t\t\tfor (int i = 0; i < 2; i++) {\n\t\t\t\tboolean isHome = (i == 0);\n\t\t\t\t\n\t\t\t\tint row = rowFromGameIdx(gameIdx, isHome);\n\t\t\t\tint col = colFromGameIdx(gameIdx, isHome);\n\n\t\t\t\tsetScheduleCell(row, col, \"\", false, true);\n\t\t\t}\n\t\t}\n\t}", "public int getScheduleMethod() {\n return scheduleMethod;\n }", "private static Entity addScheduleDateDataEntities(final Schema schema) {\n Entity scheduleDateData = schema.addEntity(\"ScheduleDateData\");\n scheduleDateData.addIdProperty().primaryKey().autoincrement();\n scheduleDateData.addIntProperty(\"schedule_id\").notNull();\n scheduleDateData.addStringProperty(\"schedule_name\");\n scheduleDateData.addStringProperty(\"class_id\");\n scheduleDateData.addStringProperty(\"class_name\");\n scheduleDateData.addStringProperty(\"class_desc\");\n scheduleDateData.addStringProperty(\"schedule_type_id\");\n scheduleDateData.addStringProperty(\"schedule_type\");\n scheduleDateData.addStringProperty(\"schedule_start_date\");\n scheduleDateData.addStringProperty(\"schedule_start_time\");\n scheduleDateData.addStringProperty(\"schedule_end_time\");\n scheduleDateData.addLongProperty(\"schedule_start_time_long\");\n scheduleDateData.addLongProperty(\"schedule_end_time_long\");\n scheduleDateData.addIntProperty(\"schedule_monday\");\n scheduleDateData.addIntProperty(\"schedule_tuesday\");\n scheduleDateData.addIntProperty(\"schedule_wednesday\");\n scheduleDateData.addIntProperty(\"schedule_thursday\");\n scheduleDateData.addIntProperty(\"schedule_friday\");\n scheduleDateData.addIntProperty(\"schedule_saturday\");\n scheduleDateData.addIntProperty(\"schedule_sunday\");\n scheduleDateData.addStringProperty(\"schedule_frequency\");\n scheduleDateData.addIntProperty(\"is_cancelled\");\n scheduleDateData.addIntProperty(\"is_reservable\");\n scheduleDateData.addStringProperty(\"instructor_id\");\n scheduleDateData.addStringProperty(\"instructor_name\");\n scheduleDateData.addStringProperty(\"location_id\");\n scheduleDateData.addStringProperty(\"location_name\");\n\n return scheduleDateData;\n }", "public static String listScheduleIdSymbol(int tambahanBolehABs) {\n DBResultSet dbrs = null;\n String result = \"\";\n try {\n Date dtStart = new Date();\n Date dtEnd = new Date();\n String dtManual = \"\";\n boolean crossDay = false;\n //dtStart.setHours(dtStart.getHours()-tambahanBolehABs);\n dtStart = new Date(dtStart.getYear(), dtStart.getMonth(), (dtStart.getDate()), (dtStart.getHours() - tambahanBolehABs), dtStart.getMinutes(), dtStart.getSeconds());\n dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate()), (dtEnd.getHours() + tambahanBolehABs), dtEnd.getMinutes(), dtEnd.getSeconds());\n int jamMelebihiOneDay = 23;\n if (dtStart.getHours() == 0 || dtStart.getHours() == 23) {\n dtManual = \"23:\" + \"59:\" + \"59\";\n crossDay = true;\n jamMelebihiOneDay = jamMelebihiOneDay + tambahanBolehABs;\n }\n if (dtEnd.getHours() == 0) {\n dtManual = \"23:\" + \"59:\" + \"59\";\n crossDay = true;\n jamMelebihiOneDay = jamMelebihiOneDay + tambahanBolehABs;\n }\n\n// String dtManual=\"\";\n// if(dt.getHours()==0 || dt.getHours()+tambahanBolehABs>=23){\n// int idtManual = 24+tambahanBolehABs;\n// dtManual = idtManual+\":59:00\" ;\n// }else{\n// dt.setHours(dt.getHours()+tambahanBolehABs);\n// }\n\n String sql = \"SELECT * FROM \" + PstScheduleSymbol.TBL_HR_SCHEDULE_SYMBOL\n + \" WHERE \\\"00:00:00\\\" <=\" + PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT]\n + \" AND \" + PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN] + \"<= \\\"\"\n + \"23:59:00\"\n //+ (dtStart.getHours() == 0 || dtStart.getHours() == 23 || dtEnd.getHours() == 0 ? dtManual : Formater.formatDate(dtEnd, \"HH:mm:00\"))\n + \"\\\"\";\n //+ \" WHERE \" + \"(\"+PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN] +\" BETWEEN \\\"00:00:00\\\" AND \\\"\"+ (crossDay?dtManual:Formater.formatDate(dtStart, \"HH:mm:00\")) +\"\\\") OR (\"+PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT] +\" BETWEEN \\\"00:00:00\\\" AND \\\"\"+Formater.formatDate(dtEnd, \"HH:mm:00\")+\"\\\")\";\n\n dbrs = DBHandler.execQueryResult(sql);\n ResultSet rs = dbrs.getResultSet();\n while (rs.next()) {\n dtEnd = new Date();\n dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate()), (dtEnd.getHours() + tambahanBolehABs), dtEnd.getMinutes(), dtEnd.getSeconds());\n \n Date schTimeIn = rs.getTime(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN]);\n\n Date schTimeOut = rs.getTime(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT]);\n Date dtTmpSchTimeIn = new Date();\n Date dtTmpSchTimeOut = new Date();\n\n\n if (schTimeIn != null && schTimeOut != null) {\n schTimeOut = new Date(dtTmpSchTimeOut.getYear(), dtTmpSchTimeOut.getMonth(), dtTmpSchTimeOut.getDate(), schTimeOut.getHours(), schTimeOut.getMinutes());\n schTimeIn = new Date(dtTmpSchTimeIn.getYear(), dtTmpSchTimeIn.getMonth(), dtTmpSchTimeIn.getDate(), schTimeIn.getHours(), schTimeIn.getMinutes());\n\n Date dtCobaTimeOut = new Date(schTimeOut.getYear(), schTimeOut.getMonth(), (schTimeOut.getDate()), (schTimeOut.getHours() + tambahanBolehABs), schTimeOut.getMinutes(), schTimeOut.getSeconds());\n boolean melebihiHari=false;\n if (schTimeIn.getHours() == 0 || schTimeOut.getHours() == 0) {\n \n } else {\n if (dtCobaTimeOut.getDate() > schTimeIn.getDate()) {\n //dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate() + 1), (dtEnd.getHours()), dtEnd.getMinutes(), dtEnd.getSeconds());\n melebihiHari=true;\n }\n\n if ( (melebihiHari && dtEnd.getHours()<dtCobaTimeOut.getHours()) || schTimeIn.getTime() <= dtEnd.getTime() || (schTimeIn.getHours() > schTimeOut.getHours() && dtEnd.getTime() < schTimeOut.getTime())) {\n result = result + rs.getString(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_SCHEDULE_ID]) + \",\";\n }\n }\n\n\n\n\n\n }\n\n }\n if (result != null && result.length() > 0) {\n result = result.substring(0, result.length() - 1);\n }\n rs.close();\n return result;\n\n } catch (Exception e) {\n System.out.println(e);\n } finally {\n DBResultSet.close(dbrs);\n }\n return result;\n }", "public interface ScheduleDao {\r\n\tpublic Schedule createSchedule(Calendar scheduleDate) throws DAOException;\r\n\tpublic Schedule findScheduleById(long scheduleId) throws DAOException;\r\n\tpublic List<Schedule> findSchedulesByDate(Calendar scheduleDate) throws DAOException;\r\n\tpublic List<Schedule> findAllSchedules() throws DAOException;\r\n\tpublic void updateSchedule(long scheduleId, Calendar newScheduleDate) throws DAOException;\r\n\tpublic void deleteScheduleById(long scheduleId) throws DAOException;\r\n\tpublic void deleteAllSchedules() throws DAOException;\r\n}", "public String getSchedule() {\n return schedule;\n }", "public Schedule getSchedule() {\r\n\t\treturn schedule;\r\n\t}", "public ScheduleType getScheduleType();", "public interface ScheduleService {\n BasicSchedule getBasicScheduleByHostelIdAndRoomType(long hostelId, RoomType type);\n\n /**\n * 获得最近一年的酒店基本计划\n *\n * @param hostelId\n * @return\n */\n List<BasicSchedule> getBasisSchedulesByHostelId(long hostelId);\n\n void modifyBasisSchedule(BasicSchedule basicSchedule);\n\n /**\n * 获得最近一年的酒店特殊计划\n *\n * @param hostelId\n * @return\n */\n List<SpecialSchedule> getSpecialScheduleByHostelId(long hostelId);\n\n void modifySpecialSchedule(SpecialSchedule specialSchedule);\n\n void addSpecialSchedule(SpecialSchedule specialSchedule);\n\n void deleteSpecialSchedule(SpecialSchedule specialSchedule);\n\n SpecialSchedule getSpecialSchedule(long hostelId, RoomType roomType, Date date);\n}", "private void loadScheduleList() {\n\n if (listTbagendamentos != null && !listTbagendamentos.isEmpty()) {\n scheduleAgendamento.clear();\n\n for (Tbagendamento agendamento : listTbagendamentos) {\n DefaultScheduleEvent defaultScheduleEvent = new DefaultScheduleEvent();\n defaultScheduleEvent.setTitle(agendamento.getIdcliente().getNmcliente());\n\n Calendar dtDataInicial = new GregorianCalendar();\n dtDataInicial.setTime(agendamento.getTmdataagendamento());\n\n defaultScheduleEvent.setStartDate(dtDataInicial.getTime());\n\n Calendar dtDataFinal = new GregorianCalendar();\n dtDataFinal.setTime(agendamento.getTmdataagendamento());\n dtDataFinal.set(Calendar.MINUTE, dtDataFinal.get(Calendar.MINUTE) + 30);\n\n defaultScheduleEvent.setEndDate(dtDataFinal.getTime());\n defaultScheduleEvent.setData(agendamento.getIdagendamento());\n scheduleAgendamento.addEvent(defaultScheduleEvent);\n }\n }\n }", "public Schedule() {\r\n }", "public void setSchedule(Schedule schedule) {\r\n\t\tthis.schedule = schedule;\r\n\t}", "List<WorkingSchedule> getByPlaceId(Long placeId);", "public ProgramScheduled getProgramScheduleById(int scheduleId);", "public ArrayList<TrainScheduleEntity> viewTrainSchedule(String dayType);", "java.lang.String getSnapshotCreationSchedule();", "io.opencannabis.schema.commerce.CommercialOrder.SchedulingType getScheduling();", "@Override\r\n\tpublic void doInitialSchedules() {\n\t}", "void setSchedule(java.lang.String schedule);", "ScheduleStartType getScheduleStart();", "public abstract void schedule();", "public void setSchedule(Schedule newSchedule) {\n\n schedule = newSchedule;\n }", "@Mapper\npublic interface VirtualRepayFlowMapper {\n @DataSource(\"bigdata2_jdb\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE update_time >= #{from_time} and update_time < #{end_time} and id>#{id} limit 1000\")\n List<VirtualRepayFlow> find(@Param(\"from_time\") String from_time,\n @Param(\"end_time\") String end_time,\n @Param(\"id\") long id);\n\n\n @DataSource(\"dmp\")\n @Insert(\"INSERT INTO virtual_repay_flow (id,uuid,virtual_productid,to_user,amount,interest,repay_status,repay_time,create_time,update_time) values\" +\n \"(#{id},#{uuid},#{virtual_productid},#{to_user},#{amount},#{interest},#{repay_status},#{repay_time},#{create_time},#{update_time})\")\n void insert(VirtualRepayFlow virtualRepayFlow);\n\n @DataSource(\"dmp\")\n @Delete(\"DELETE FROM repay_flow where update_time<#{update_time}\")\n void delete(@Param(\"update_time\") String update_time);\n\n @DataSource(\"dmp\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE id=#{id}\")\n VirtualRepayFlow getById(@Param(\"id\") long id);\n\n\n @DataSource(\"dmp\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE uuid=#{uuid}\")\n VirtualRepayFlow getByUuid(@Param(\"uuid\") String uuid);\n}", "public abstract void maintenanceSchedule() ;", "@Override\n public List<SurveillantSchedule> getSurveillantSchedule() {\n return surveillantRepository.getSurveillantSchedule();\n }", "long getScheduleID() {return mScheduleID; }", "com.google.cloud.gkebackup.v1.BackupPlan.Schedule getBackupSchedule();", "public String getScheduleRow() {\n\t\treturn uSRow;\n\t}", "public void setSchedule_id(int schedule_id) {\r\n this.schedule_id = schedule_id;\r\n }", "public void printSchedule(){\n String\n format =\n \"%-20s%-10s%-15s%\" +\n \"-20s%-25s%-10s%\" +\n \"-15s%-15s%-15s%n\";\n\n System.out.printf(format,\n \"Водитель\", \"Номер А/М\",\"Машина\", \"Дата и время\",\n \"Задание\", \"Кол-во\",\n \"Расстояние\", \"Цена\", \"Примечание\");\n System.out.println();\n\n\n\n List<TimeTable> l = driverScheduleReaderDAO.getTimeTable();\n TimeTable tPrev =l.get(0);\n for (TimeTable t: l){\n\n if (!t.getDriverName().equals(tPrev.getDriverName())) {\n\n System.out.println(\"***\");\n tPrev = t;\n\n } else if (t!=l.get(0))t.setDriverName(\" \");\n\n\n\n\n System.out.printf(format,\n t.getDriverName(), t.getCarId(), t.getCarBrand(),\n t.getBusyTime(), t.getOrder(), t.getNumOfEl(),\n t.getDistance(), t.getPrice(), t.getNote()\n );\n\n }\n\n //int\n\n\n\n\n //вывести на экран\n //отельным классом посчитать шанс поломки и предупредить\n }", "public void schedule(String id, String[] schedule) {\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic List<ISchedule> getSchedules() throws IOException {\n\t\tfinal String sql = \"SELECT * from record\";\n\t\tList<? extends ISchedule> result = this.queryDataList(Schedule.class,ISchedule.Props.class, sql);\n\t\treturn (List<ISchedule>) result;\t\t\n\t}", "public List<AllTimeSeasonBean> getAllTimeRecord(){\n String q = \"select new com.main.pcblroyals.bean.AllTimeSeasonBean( \" +\n \"sum(case when g.teamScore > g.opponentScore then 1 else 0 end), \" +\n \"sum(case when g.teamScore = g.opponentScore then 1 else 0 end), \" +\n \"sum(case when g.teamScore < g.opponentScore then 1 else 0 end) \" +\n \") \" +\n \"from seasons s \" +\n \"join games g on s.id = g.season.id \";\n Query query = entityManager.createQuery(q);\n return (List<AllTimeSeasonBean>) query.getResultList();\n }", "@Override\n public String getEndPoint() {\n return \"/v1/json/schedule\";\n }", "@GetMapping\n public List<ScheduleDTO> getAllSchedules() {\n List<Schedule> scheduleList = scheduleService.getAllSchedules();\n\n List<ScheduleDTO> scheduleDTOList = scheduleList.stream()\n .map(ScheduleController::convertScheduleToScheduleDTO)\n .collect(Collectors.toList());\n return scheduleDTOList;\n }", "public interface ScheduleListDao extends GenericDao<ScheduleList, Long> {\n\t\n\tpublic List<ScheduleList> findShceduleList(String scheduleId); \n\t\n\t /**\n * 自服务项列表\n * @return\n */\n public Page findScheduleList(String pageSize);\n\t\n}", "public void storeRegularDayTripStationScheduleWithRS();", "@MapperScan\npublic interface DSSettingMapper {\n\n @Insert(\"INSERT INTO ds_setting (dsId, dsAppointment2,dsAppointment3,outCoachIds,status,modifyTime)\" +\n \" VALUES(#{dsId},#{dsAppointment2},#{dsAppointment3},#{outCoachIds},#{status},NOW())\")\n int insertDssetting(DSSetting dsSetting);\n\n @Update(\"UPDATE ds_setting SET dsAppointment2 = #{dsAppointment2},\" +\n \" dsAppointment3 = #{dsAppointment3}, outCoachIds = #{outCoachIds}, \" +\n \"status = #{status}, modifyTime = NOW() \" +\n \"WHERE dsId = #{dsId}\")\n int updateDssetting(DSSetting dsSetting);\n\n @Select(\"SELECT * FROM ds_setting WHERE dsId = #{dsId}\")\n DSSetting findOneDSSetting(@Param(\"dsId\") Long dsId);\n}", "public String getScheduleExpression() {\n return this.scheduleExpression;\n }", "@Override\n\tpublic List<SchedulerJobEntity> getAllScheduledJobs() throws SchedulerException {\n\t\treturn schedulerRepository.findAll();\n\t}", "@Override\n\t\tpublic oep_ResponseInfo getTestscheduledetails(String id) {\n\t\t\t\n\t\t\t\n\t\t\tString query = \" SELECT a.`ques_master_id`,`is_test_started`,a.`id`,`sub_id`,a.`batch`,DATE_FORMAT(`testdate`,'%m/%d/%Y')newtestdate,a.`start_time`, a.`end_time`,a.`status`,b.`test_name`,`test_id`,\"\n\t\t\t\t\t+ \"HOUR(a.`start_time`)starthour,MINUTE(a.`start_time`)startminute, HOUR(a.`end_time`)endhour,MINUTE(a.`end_time`)endminute,\"\n\t\t\t\t\t+ \" DATE_FORMAT(`testdate`,'%d/%m/%Y')testdate, SUBSTRING_INDEX(a.`start_time`,' ',-1)startformatt,SUBSTRING_INDEX(a.`end_time`,' ',-1)endformatt,\"\n\t\t\t\t\t+ \"GROUP_CONCAT(f.`username`,' ',CASE WHEN `is_participant_start` = 2 THEN ' completed \\n' WHEN `is_participant_start` = 1 THEN 'Started \\n' ELSE 'Not started \\n'END)username,\"\n\t\t\t\t\t+ \"`is_participant_start`,h.`username`facname FROM `test_schedule` a JOIN `question_master` b ON a.`ques_master_id` = b.`id` \"\n\t\t\t\t\t+ \"JOIN `course_scheduling`c ON c.`cs_id`= a.`batch` JOIN `participants_registration_course_details`e ON e.`course_id`= c.`cs_id` \"\n\t\t\t\t\t+ \" JOIN `participants`f ON f.`participant_id`=e.`participant_id` \"\n\t\t\t\t\t+ \"LEFT JOIN `test_participants`g ON g.`part_id`= f.`participant_id` AND g.`ts_id`=a.`id`\"\n\t\t\t\t\t+ \" JOIN `faculty_master`h ON h.`faculty_id` = c.`faculty_name` WHERE a.`id`= \"+id+\" \";\n\t\t\t\n\t\t\t\n\t\t\tlog.info(query);\n\t\t\t\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tList<Object> List = jdbcTemplate.query(query, new RowMapper() {\n\t\t\t\tint count = 0;\n\t\t\t\t@Override\n\t\t\t\tpublic Object mapRow(ResultSet rs, int arg1) throws SQLException {\n\t\t\t\t\t\n\t\t\t\t\tMap<String, Object> map = new HashMap<String, Object>();\n\t\t\t\t\tmap.put(\"testid\", rs.getString(\"test_id\"));\n\t\t\t\t\tmap.put(\"startformat\", rs.getString(\"startformatt\"));\n\t\t\t\t\tmap.put(\"endformat\", rs.getString(\"endformatt\"));\t\n\t\t\t\t\tmap.put(\"facname\", rs.getString(\"facname\"));\n\t\t\t\t\tmap.put(\"quesid\", rs.getString(\"ques_master_id\"));\n\t\t\t\t\tmap.put(\"id\", rs.getString(\"id\"));\n\t\t\t\t\tmap.put(\"tsid\", rs.getString(\"id\"));\n\t\t\t\t\tmap.put(\"batch\", rs.getString(\"batch\"));\n\t\t\t\t\tmap.put(\"testdate\", rs.getString(\"testdate\"));\n\t\t\t\t\tmap.put(\"newtestdate\", rs.getString(\"newtestdate\"));\n\t\t\t\t\tmap.put(\"subid\", rs.getString(\"sub_id\"));\n\t\t\t\t\tmap.put(\"starthour\", rs.getString(\"starthour\"));\n\t\t\t\t\tmap.put(\"endhour\", rs.getString(\"endhour\"));\n\t\t\t\t\tmap.put(\"startminute\", rs.getString(\"startminute\"));\n\t\t\t\t\tmap.put(\"endminute\", rs.getString(\"endminute\"));\n\t\t\t\t\tmap.put(\"starttime\", rs.getString(\"start_time\"));\n\t\t\t\t\tmap.put(\"testname\", rs.getString(\"test_name\"));\n\t\t\t\t\tmap.put(\"username\", rs.getString(\"username\"));\n\t\t\t\t\tmap.put(\"starttest\", rs.getString(\"is_test_started\"));\n\t\t\t\t\tmap.put(\"participantstart\", rs.getString(\"is_participant_start\"));\n\t\t\t\t\tmap.put(\"endtime\", rs.getString(\"end_time\"));\n/*\t\t\t\t\t\n\t\t\t\t\tString submenuQuery = \"SELECT `part_id`,`imh_staus`,`username`,CONCAT(`username`,' ',CASE WHEN `imh_staus` = 0 \"\n\t\t\t\t\t\t\t+ \" THEN 'Certificate Not sent ' WHEN `imh_staus` = 1 THEN 'Certificate sent' \"\n\t\t\t\t\t\t\t+ \" ELSE 'Invalid 'END)status FROM `email_history`a \"\n\t\t\t\t\t\t\t+ \" JOIN `participants`b ON a.`part_id`=b.`participant_id` WHERE `ts_id` = \"+ rs.getString(\"id\");\t*/\n\t\t\t\t\t\n\t\t\t\t\tString submenuQuery = \" SELECT a.`ques_master_id`,`username`,`imh_staus`,`is_test_started`,a.`id`,a.`batch`,DATE_FORMAT(`testdate`,'%e/%c/%Y')testdate,a.`start_time`, a.`end_time`,a.`status`,b.`test_name`,`test_id`,\"\n\t\t\t\t\t\t\t+ \"CONCAT(`username`,' ',CASE WHEN `is_participant_start` = 2 THEN ' completed \\n' WHEN `is_participant_start` = 1 THEN 'Started \\n' ELSE 'Not started \\n'END)teststatus,\"\n\t\t\t\t\t\t\t+ \"`is_participant_start` FROM `test_schedule` a JOIN `question_master` b ON a.`ques_master_id` = b.`id` \"\n\t\t\t\t\t\t\t+ \"JOIN `course_scheduling`c ON c.`cs_id`= a.`batch` JOIN `participants_registration_course_details`e ON e.`course_id`= c.`cs_id` \"\n\t\t\t\t\t\t\t+ \" JOIN `participants`f ON f.`participant_id`=e.`participant_id` \"\n\t\t\t\t\t\t\t+ \"LEFT JOIN `test_participants`g ON g.`part_id`= f.`participant_id` AND g.`ts_id`=a.`id`\"\n\t\t\t\t\t\t\t+ \"JOIN `email_history`h ON h.`ts_id`= a.`id` WHERE a.`id`= \"+ rs.getString(\"id\");\n\t\t\t\t\t\n\t\t\t\t\t List<Object> submenuList = new ArrayList<Object>();\n\t\t\t\t\t submenuList = getPartStatusList(submenuQuery);\n\t\t\t\t\t map.put(\"submenuList\", submenuList);\n\t\t\t\t\t\n\t\t\t\t\tif(rs.getString(\"status\")!= null && rs.getString(\"status\").equals(\"1\")){\n\t\t\t\t\t\tmap.put(\"status\", \"Active\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tmap.put(\"status\", \"Inactive\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(rs.getString(\"is_test_started\")!= null && rs.getString(\"is_test_started\").equals(\"1\")){\n\t\t\t\t\t\tmap.put(\"teststarted\", \"Test Started\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tmap.put(\"teststarted\", \"Not started\");\n\t\t\t\t\t}\n\t\t\t\t\tmap.put(\"index\", count);\n\t\t\t\t\tcount++;\n\t\t\t\t\treturn map;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t});\n\t\t\t\n\t\t\n\t\t\t \n\t\t\t \n\t\t\tresponse.setResponseType(\"S\");\n\t\t\tresponse.setResponseObj(List);\n\t\t\tresponseInfo.setInventoryResponse(response);\n\t\t\treturn responseInfo;\n\t\t}", "public void createTempSpecialDayTrainSchedule(Timestamp date);", "public void generatePlan(Integer id,Date fromDate, Date toDate) throws Exception;", "@Override\r\n\tpublic List<Courseschedule> getCourseschedulesByClassroomId(int classroomId) {\n\t\tsession = sessionFactory.openSession();\r\n\t\tTransaction tran = session.beginTransaction();\r\n\t\tString hql = \"from Courseschedule where classroomId=:classroomId and state=:state\";\t\t\r\n\t\tList<Courseschedule> lists = session.createQuery(hql).setInteger(\"classroomId\", classroomId).setInteger(\"state\", 0).list();\r\n\t\ttran.commit();\r\n\t\tsession.close();\r\n\t\tlogger.debug(\"use the method named :getCourseschedulesByClassroomId(int classroomId)\");\r\n\t\tif (lists.size() > 0) {\r\n\t\t\treturn lists;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public void setSchedule(String timeframe) {\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic List<ScheduledFlights> retrieveScheduledFlights(String source, String destination) {\r\n\t\tQuery query = entityManager.createQuery(\"select s.scheduleId,s.source,s.destination,s.arrivaltime,s.departuretime,f.flightNumber,f.carrierName,f.seatCapacity from Schedule s JOIN ScheduledFlights sf ON s.scheduleId=sf.scheduleId JOIN Flight f on sf.flightId=f.flightNumber where schedule.source= :source AND schedule.destination=:destination\");\r\n\t\treturn query.getResultList();\r\n\t}", "@Override\r\n\tpublic boolean updateDate(ScheduleAdminModel scheduleAdminModel) throws ClassNotFoundException, SQLException {\n\t\r\n\t\tConnection connection=ConnectionManager.openConnection();\r\nPreparedStatement statement=\r\n connection.prepareStatement(\"update courses set start_date=?,end_date=? where course_name=?\");\r\nstatement.setString(1,scheduleAdminModel.getStartDate());\r\nstatement.setString(2,scheduleAdminModel.getEndDate());\r\nstatement.setString(3,scheduleAdminModel.getCourse_name());\r\n \r\n int rows=statement.executeUpdate();\r\n\tConnectionManager.closeConnection();\r\n\tif(rows>0)\r\n\t\treturn true;\r\n\t else \r\n\t return false;\r\n\t}", "void deschedule(ScheduledJob job);", "@Query(\"select :stopName from Timetable order by id\")\n List<Integer> selectStop(String stopName);", "public Date getScheduletime() {\r\n return scheduletime;\r\n }", "public List<Timetable> getAllTimetable() throws Exception;", "public abstract ArrayList<ScheduleTime> getScheduleForDay(int day, int month, int year);", "public void setSchedule(SpaceSchedule s) {\n\t\t\n\t}", "MMSchedule() {\n mScheduleID = MMUtilities.ID_DOES_NOT_EXIST;\n mOfMedicationID = 0;\n mForPersonID = 0;\n mTimeDue = 0;\n mStrategy = MMMedication.sSET_SCHEDULE_FOR_MEDICATION;\n }", "@Override\n public void fetchScheduled(RuleKey ruleKey) {\n }", "List<Schedule> selectByExampleWithRowbounds(ScheduleCriteria example, RowBounds rowBounds);", "Schedule getSchedule(String departure, String arrival, int depYear, int depMonth);", "public void setList(ScheduleInterface<Schedule> scheduleList){\n this.scheduleList = scheduleList;\n }", "int insert(Schedule record);", "private void reloadPlanTable() {\n\t\t\r\n\t}", "public Schedule getSchedule(String route, int direction){\r\n // A schedule to hold all the data returned from the query\r\n Schedule weekdayZero = new Schedule();\r\n // Fetch the route id given the route\r\n Cursor getData = getReadableDatabase().rawQuery(\"select _id from routes where route_long_name = '\" + route + \"'\", null);\r\n // Make sure to begin at the first element of the returned data\r\n getData.moveToFirst();\r\n // Store the Route Id\r\n int route_id = getData.getInt(0);\r\n // Calendar id: (90400,90448) - Monday To Friday\r\n final String query = \"select Routes.Route_long_Name, \" +\r\n \"Calendar._Id, Stops.Stop_Name, Stop_Times.Stop_Sequence, Stop_Times.Arrival_Time, routes.route_short_name \" +\r\n \"from Trips join Calendar on Trips.Service_Id=Calendar._Id \" +\r\n \"join Routes on Trips.Route_Id=Routes._Id \" +\r\n \"join Stop_Times on Trips._Id=Stop_Times.Trip_Id \" +\r\n \"join Stops on Stop_Times.Stop_Id=Stops._Id \" +\r\n \"where Calendar._Id in \" + getDayOfTheWeek() + \" \" +\r\n \"AND Trips.Route_Id = \" + route_id + \" \" +\r\n \"AND Trips.Direction_Id = \" + direction + \" \" +\r\n \"AND Stop_Times.Arrival_Time != '' \" +\r\n \"order by arrival_time asc\";\r\n getData.moveToFirst();\r\n getData = getReadableDatabase().rawQuery(query, null);\r\n while (getData.moveToNext()){\r\n weekdayZero.insertData(getData.getString(0), getData.getInt(1), getData.getString(2), getData.getInt(3)\r\n , getData.getString(4), getData.getString(5));\r\n }\r\n return weekdayZero;\r\n }", "public Date getScheduleTime() {\n return this.scheduleTime;\n }", "@Override\n\tpublic void setDateAndSchedule(String date, String schedule) {\n\n\t}", "public MonthlyValuesTable(Database database) \n {\n //Constructor calls DbTable's constructor\n super(database);\n setTableName(\"monthlyvalues\");\n }", "public Date getScheduleDate(){\r\n\t\treturn this.scheduleDate;\r\n\t}", "com.google.cloud.compute.v1.Scheduling getScheduling();", "TimerSchedule createTimerSchedule();", "public ApiSchedule[] getSchedules() {\n return this.schedules;\n }", "@Override\n\tpublic void setDateAndSchedule(String date, String schedule) {\n\t\t\n\t}", "public interface ITimetableDAO {\n\n /**\n * Get all the timetable element of <code>Timetable</code> object <br>\n *\n * @return all the list of <code>Timetable</code> object\n * @throws Exception\n */\n public List<Timetable> getAllTimetable() throws Exception;\n\n /**\n * Get all the list element has search of <code>Timetable</code> object<br>\n *\n * @param from is the date of <code>Timetable</code> object\n * @param to is the date of <code>Timetable</code> object\n * @return all the list has search of <code>Timetable</code> object\n * @throws Exception\n */\n public List<Timetable> getListSearch(String from, String to) throws Exception;\n\n /**\n * Add the all the element of Timetable to database\n *\n * @param date the date of Timetable object, it is an\n * <code>java.sql.Date</code>\n * @param slot the slot of Timetable object, it is an int\n * @param classes the classes of Timetable object, it is a string\n * @param teacher the teacher of Timetable object, it is a string\n * @param room the room of Timetable object, it is an int\n * @throws Exception\n */\n public void addTimetable(String date, String slot, String room, String teacher, String classes) throws Exception;\n\n /**\n * Function to check Timetable exist before add\n *\n * @param date the date of Timetable object, it is an\n * <code>java.sql.Date</code>\n * @param classes the slot of Timetable object, it is an int\n * @param room the room of Timetable object, it is a string\n * @return object of Timetable or null when check exist timetable\n * @throws Exception\n */\n public Timetable checkExistRoomTimeTable(String date, String classes, String room) throws Exception;\n\n /**\n * Paginate by number of timetable in <code>Timetable</code> object <br>\n *\n * @param pageIndex the index of page, it is an <code>int</code>\n * @param pageSize the size of page, it is an <code>int</code>\n * @return list of timetable, it is a <code>java.util.List</code> object.\n * @throws java.lang.Exception\n */\n public List<Timetable> pagging(int pageIndex, int pageSize) throws Exception;\n\n /**\n * Get number of result <code>Gallery</code> object by id\n *\n * @return number result of Gallery object, it is an int\n * @throws java.lang.Exception\n */\n public int numberOfResult() throws Exception;\n\n /**\n * Function to check Timetable exist before add\n *\n * @param date the date of Timetable object, it is an\n * <code>java.sql.Date</code>\n * @param classes the slot of Timetable object, it is an int\n * @param teacher the teacher of Timetable object, it is a string\n * @return object of Timetable or null when check exist timetable\n * @throws Exception\n */\n public Timetable checkExistTeacherTimeTable(String date, String classes, String teacher) throws Exception;\n\n}", "public void setScheduleTime(Date scheduleTime) {\n this.scheduleTime = scheduleTime;\n }", "@Scheduled(cron = \"0 30 06 * * *\",zone=\"America/New_York\")\n public void populateDatabase(){\n localDateTime = LocalDateTime.now();\n log.info(\"Executed now: \"+ localDateTime.toString());\n\n // Checks if table in database is empty\n // If not empty, clears the table and populates it with new data\n if(checkEmpty()==0)\n log.info(\"Empty Table\");\n else {\n deleteTableRecords();\n log.info(\"Table not Empty\");\n }\n\n URL url = null;\n\n // Get recent date, append it to URL and establish a connection\n String pattern = \"MM-dd-yyyy\";\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(pattern);\n Date date = Date.from(Instant.now().minus(Duration.ofDays(1)));\n\n\n String dateStr = simpleDateFormat.format(date);\n\n try {\n url = new URL(\"https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_daily_reports/\"+dateStr+\".csv\");\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n HttpURLConnection httpURLConnection = null;\n try {\n httpURLConnection = (HttpURLConnection) url.openConnection();\n } catch (IOException e) {\n e.printStackTrace();\n }\n int responseCode = 0;\n try {\n responseCode = httpURLConnection.getResponseCode();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n // On successful connection, read records line by line, store records in a table\n if(responseCode==200)\n {\n log.info(\"-- Successful Connection\");\n CSVReader reader = null;\n try {\n\n BufferedReader input = new BufferedReader(new InputStreamReader(httpURLConnection.getInputStream()),8192);\n reader = new CSVReader(input);\n String[] line;\n int skipFirstLine = 0;\n while ((line = reader.readNext()) != null)\n {\n if(skipFirstLine==0)\n {\n skipFirstLine++;\n continue;\n }\n\n DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern(\"yyyy-MM-dd HH:mm:ss\");\n\n Corona corona = new Corona();\n corona.setLastUpdate(LocalDateTime.parse(line[4],dateTimeFormatter));\n if(line[7].equals(\"\"))\n line[7]=\"0\";\n if(line[9].equals(\"\"))\n line[9]=\"0\";\n if(line[10].equals(\"\"))\n line[10]=\"0\";\n if(line[8].equals(\"\"))\n line[8]=\"0\";\n if(line[5].equals(\"\"))\n line[5]=\"0\";\n if(line[6].equals(\"\"))\n line[6]=\"0\";\n\n try {\n\n corona.setConfirmed(Long.valueOf(line[7]));\n corona.setRecovered(Long.valueOf(line[9]));\n corona.setActive(Long.valueOf(line[10]));\n corona.setDeaths(Long.valueOf(line[8]));\n corona.setLatitude(Double.valueOf(line[5]));\n corona.setLongitude(Double.valueOf(line[6]));\n } catch (NumberFormatException n)\n {\n n.printStackTrace();\n }\n corona.setCountry(line[3]);\n corona.setProvince(line[2]);\n corona.setCombinedKey(line[11]);\n\n\n\n coronaRepository.save(corona);\n log.info(corona.toString());\n\n\n }\n } catch (IOException | CsvValidationException e){\n e.printStackTrace();\n } finally {\n if(reader!=null)\n {\n try\n {\n reader.close();\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }\n }\n }\n }" ]
[ "0.6583093", "0.62134594", "0.614241", "0.6096163", "0.5869904", "0.5847323", "0.57736564", "0.5749311", "0.5730464", "0.5692395", "0.5691314", "0.5688622", "0.56733465", "0.5612722", "0.56103665", "0.5601378", "0.5594937", "0.5592374", "0.55869794", "0.5565921", "0.5544678", "0.5536762", "0.54946375", "0.5486974", "0.5463075", "0.54603523", "0.5455832", "0.54501116", "0.5445156", "0.5444004", "0.54084784", "0.53984827", "0.53917515", "0.53882813", "0.5388208", "0.5379494", "0.5379087", "0.53540117", "0.53484684", "0.53395474", "0.5337806", "0.53348553", "0.5326429", "0.531917", "0.5268467", "0.52664775", "0.52625597", "0.5256478", "0.5245691", "0.52455944", "0.5244061", "0.52287424", "0.52114916", "0.52114564", "0.5211055", "0.5206053", "0.5198744", "0.51842344", "0.51793087", "0.51495117", "0.5128515", "0.5107465", "0.510662", "0.51056135", "0.50985986", "0.5097996", "0.5095179", "0.5078455", "0.5071949", "0.5062537", "0.5048053", "0.5045186", "0.50360614", "0.5034012", "0.5032612", "0.5029762", "0.5028272", "0.5023831", "0.50128245", "0.50107193", "0.50062126", "0.49853772", "0.49811625", "0.4979578", "0.49694157", "0.4958413", "0.49560702", "0.49543408", "0.49509862", "0.49456567", "0.49427602", "0.49422622", "0.49398386", "0.4935916", "0.4927577", "0.49200827", "0.49151728", "0.49094823", "0.49054155", "0.49049369", "0.49020037" ]
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table schedule
public String getOrderByClause() { return orderByClause; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void generateSchedule(){\n\t\t\n\t}", "@Dao\npublic interface schedule_Dao {\n\n @Query(\"SELECT * FROM Schedule where student_id = :studentId\")\n List<Schedule> getSchedulesStudent(String studentId);\n\n\n\n @Query(\"SELECT COUNT(pkey) FROM Schedule where student_id = :student_id\")\n int getScheduleCount(String student_id);\n\n\n\n @Query(\"SELECT * FROM Schedule where student_id = :studentId and active = :active or active = :Active\")\n List<Schedule> getActiveSchedules(String active,String Active, String studentId);\n\n\n @Query(\"SELECT * FROM Schedule where `endtime_null` >= :date and `starttime_null` <= :date and student_id = :studentId and active = :active or active = :Active \")\n List<Schedule> getSelEvents(String active,String Active, String studentId, String date);\n\n\n @Query(\"SELECT * FROM Schedule where `endtime` >= :date and `starttime` <= :date and student_id = :studentId and active = :active or active = :Active \")\n List<Schedule> getSelEventTime(String active,String Active, String studentId, String date);\n\n\n @Insert\n void insertAll(Schedule... schedules);\n\n @Insert(onConflict = OnConflictStrategy.IGNORE)\n void insertOnConflict(Schedule... schedules);\n\n @Query(\"DELETE FROM Schedule\")\n public abstract int DeleteToken();\n\n @Query(\"DELETE FROM Schedule where pkey = :p_key and student_id = :studentId\")\n public abstract int DeleteSchedule(String p_key,String studentId );\n\n\n @Query(\"DELETE FROM Schedule where student_id= :studentId\")\n public abstract int DeleteScheduleAllUser(String studentId);\n\n\n}", "Schedule selectByPrimaryKey(Integer id);", "public interface JobScheduleMapper {\n @Select(\"select * from job_schedule where id = #{id}\")\n public JobSchedule findById(@Param(\"id\") long id);\n\n @Select(\"select status from job_schedule where id = #{id}\")\n public int getStatus(@Param(\"id\")long id);\n\n @Insert(\"insert into job_schedule (created_datetime, schedule_datetime, job_id, job_group_name, run_as, status) \" +\n \"values(#{created_datetime}, #{schedule_datetime}, #{job_id}, #{job_group_name}, #{run_as}, #{status})\")\n @Options(useGeneratedKeys = true, keyProperty = \"id\", keyColumn = \"id\")\n public void insert(JobSchedule jobSchedule);\n\n @Update(\"update job_schedule set status = #{status} where id = #{id}\")\n public void updateStatus(@Param(\"id\") long id, @Param(\"status\")int status);\n\n @Update(\"update job_schedule set status = \" + JobSchedule.JOB_SCHEDULE_STATUS_PENDING + \", retried = retried + 1 where id = #{id}\")\n public void retry(@Param(\"id\") long id);\n\n @Update(\"update job_schedule set next_job_schedule_id = #{nextId} where id = #{thisId}\")\n public void updateNextScheduleId(@Param(\"thisId\")long thisId, @Param(\"nextId\")long nextId);\n}", "Schedule createSchedule();", "java.lang.String getSchedule();", "public Schedule() {\n\t\t// TODO Auto-generated constructor stub\n\t}", "public void generateSchedule(){\r\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"yyyy-MM-dd HH:mm:ss\"); // Date formatter used when getting SQL records\r\n Database db = new Database();\r\n Connection connection = null;\r\n String sql = \"\";\r\n String report = \"\";\r\n \r\n // Retrieve the inputted consultant's id\r\n User user = (User) combo_user.getValue();\r\n int userID = user.getId();\r\n try{\r\n connection = db.jdbc_connection.connect();\r\n Statement statement = connection.createStatement(); // Set up statement\r\n \r\n sql = \"SELECT appointment.appointmentID, customer.customerName, appointment.title, appointment.description, appointment.location, appointment.contact, \" +\r\n \"appointment.type, appointment.url, appointment.start, appointment.end FROM appointment \" +\r\n \"INNER JOIN customer ON appointment.customerID=customer.customerID \" +\r\n \"WHERE userID = \" + userID + \" GROUP BY appointment.start\"; \r\n ResultSet results = statement.executeQuery(sql); \r\n \r\n while(results.next()) { \r\n String customer = results.getString(\"customerName\");\r\n String title = results.getString(\"title\");\r\n String description = results.getString(\"description\");\r\n String location = results.getString(\"location\");\r\n String contact = results.getString(\"contact\");\r\n String type = results.getString(\"type\");\r\n String url = results.getString(\"url\");\r\n String start = results.getString(\"start\");\r\n String end = results.getString(\"end\");\r\n \r\n \r\n // Convert the start and end DATETIMES to the user's current timezone \r\n java.time.LocalDateTime start_converted = convertToCurrentZone(java.time.LocalDateTime.parse(start.replace(\".0\", \"\"), formatter));\r\n String month = start_converted.getMonth().toString();\r\n int day = start_converted.getDayOfMonth();\r\n int hour = start_converted.getHour();\r\n String minute = String.valueOf(start_converted.getMinute());\r\n \r\n if(minute.length() == 1) minute += \"0\"; // Add following zeroes\r\n \r\n report += month + \" \" + day + \" at \" + hour + \":\" + minute + \" - appointment with \" + customer + \"\\n\";\r\n } \r\n }catch(Exception e) {\r\n System.out.println(e.getMessage());\r\n }finally {\r\n try {\r\n connection.close();\r\n } catch (Exception e2) { // Closing databse error handling\r\n System.err.println(e2.getMessage());\r\n }\r\n } \r\n \r\n text_schedule.setText(report);\r\n }", "public int getSchedule_id() {\r\n return schedule_id;\r\n }", "io.opencannabis.schema.commerce.CommercialOrder.OrderScheduling getScheduling();", "List<WorkingSchedule> getAll();", "@Override\n\t\tpublic List<ProgramScheduledBean> getAllScheduleProgram()\n\t\t\t\tthrows UniversityException {\n\t\t\treturn dao.getAllScheduleProgram();\n\t\t}", "public interface ScheduleDao {\n int crewTally();\n ArrayList<avail> getAllAvailibility();\n ArrayList<ShiftDetails> getShiftDetails();\n int updateShiftSwapStatus();\n}", "@Override\n\tpublic List<ScheduleTask> getScheduleTaskList() {\n\t\treturn (List<ScheduleTask>) find(\"from ScheduleTask\");\n\t}", "public List<UserRace> selectAllSchedule() {\n\t\tString sql = \"select \" + COLUMNS + \" FROM UserRace WHERE mode = '\"\n\t\t\t\t+ UserRace.MODE_SCHEDULE + \"'\";\n\t\treturn getJdbcTemplate().query(sql, new UserRaceRowMapper());\n\t}", "@Override\r\n\tpublic List<Courseschedule> getAllCourseschedules() {\n\t\tsession = sessionFactory.openSession();\r\n\t\tTransaction tran = session.beginTransaction();\r\n\t\tString hql = \"from Courseschedule where state=:state\";\r\n\t\tQuery query = session.createQuery(hql).setInteger(\"state\", 0);\r\n\t\tList<Courseschedule> lists = query.list();\r\n\t\ttran.commit();\r\n\t\tsession.close();\r\n\t\tlogger.debug(\"use the method named :getAllCourseschedules()\");\r\n\t\tif (lists.size() > 0) {\r\n\t\t\treturn lists;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "List<Schedule> selectByExample(ScheduleCriteria example);", "public static List<Schedule> fetchGeneratedSchedules() {\r\n if (!isComplete()) {\r\n return null;\r\n }\r\n\r\n return generatedSchedules;\r\n }", "@Override\n\tpublic void UpdateTableSchedule(Schedule current) {\n\t\tif (current == null)\n\t\t\treturn;\n\t\tCurrFitness = current.fitness;\n\t\tmyLabelSchedule.setText(\"Current Schedule Fitness: \" + CurrFitness);\n\t\tfor (int station = 1; station <= current.stations.size(); station++) {\n\t\t\tfor (int i = 0; i < dtm.getRowCount(); i++) {\n\t\t\t\tdtm.setValueAt(\"\", i, station);\n\t\t\t}\n\t\t\t// @Debug System.out.println(\"TableLength: \"+tableLength);\n\t\t\tStationSlot currentStation = current.stations.get(station - 1);\n\t\t\tif (currentStation.registeredCars.size() == 0) {\n\t\t\t\tcontinue;\n\t\t\t} else {\n\t\t\t\tLinkedList<CarSlot> cars = currentStation.registeredCars;\n\t\t\t\tfor (int i = 0; i < cars.size(); i++) {\n\t\t\t\t\tCarSlot car = cars.get(i);\n\t\t\t\t\tfloat start = car.startTime;\n\t\t\t\t\tfloat duration = car.duration;\n\t\t\t\t\tint rowNum = (int) (start * (60 / interval));\n\t\t\t\t\t// System.out.println(\"ColumNum: \"+rowNum);\n\t\t\t\t\twhile (duration > 0) {\n\t\t\t\t\t\tdtm.setValueAt(\"Car \" + car.name + \" [\" + car.priority + \"]\" + \" - \" + car.type, rowNum, station);\n\t\t\t\t\t\trowNum++;\n\t\t\t\t\t\tduration = (float) (duration - interval / 60f);\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n\tpublic List<ScheduledFlights> retrieveAllScheduledFlights() {\t\r\n\t\tTypedQuery<ScheduledFlights> query = entityManager.createQuery(\"select s from ScheduledFlights s, Flight f,Schedule sc where s.flight = f and s.schedule=sc\",ScheduledFlights.class);\r\n\t\tList<ScheduledFlights> flights = query.getResultList();\r\n\t\treturn flights;\r\n\t}", "public boolean generateSchedule(){\r\n return true;\r\n }", "public void existingSchedules(){\n \n scheduleModel = (DefaultTableModel) displayTable.getModel();\n \n currentSchedules = AccessDataFromXML.retrieveSchedules();\n for (Schedule schedule : currentSchedules){\n \n \n Object[] o = new Object[1];\n o[0] = schedule.getName();\n scheduleModel.addRow(o);\n }\n \n \n\n }", "public Schedule getSchedule() {\n\n return schedule;\n }", "private List<Schedules> getSchedulesList(){\r\n//\t\tList<Schedules> list = new ArrayList<Schedules>();\r\n//\t\tSchedules s1 = new Schedules(1, \"Baidu\", \"BUPT\", \"2013-09-11\", \"12:30\");\r\n//\t\tSchedules s2 = new Schedules(2, \"Sina\", \"BUPT\", \"2013-09-11\", \"13:50\");\r\n//\r\n//\t\tlist.add(s1);\r\n//\t\tlist.add(s2);\r\n\t\tif (scheduleList == null) {\r\n\t\t\tscheduleList = mAppContext.scheduleGetAll();\r\n\t\t}\r\n\t\treturn scheduleList;\r\n//\t\treturn list;\r\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\tpublic List<TimeTableBean> getTimeTable() {\n\t\treturn sessionFactory.openSession().createQuery(\"from TimeTableBean\").list();\r\n\t}", "@Override\n\tpublic List<ScheduleTask> getScheduleTaskList() {\n\t\treturn scheduleTaskDAO.getScheduleTaskList();\n\t}", "abstract public void computeSchedule();", "SchedulingPlay selectByPrimaryKey(Long id);", "public List<WorkoutSchedule> getSchedules() {\n if (schedules == null) {\n if (daoSession == null) {\n throw new DaoException(\"Entity is detached from DAO context\");\n }\n WorkoutScheduleDao targetDao = daoSession.getWorkoutScheduleDao();\n List<WorkoutSchedule> schedulesNew = targetDao._queryWorkout_Schedules(id);\n synchronized (this) {\n if(schedules == null) {\n schedules = schedulesNew;\n }\n }\n }\n return schedules;\n }", "private void refreshScheduleTable() {\n\t\tint gameIdx = 0;\n\t\tList<GameDetails> games = getGames();\n\t\tif (games != null) {\n\t\t\tfor (GameDetails game : games) {\n\t\t\t\tfor (int i = 0; i < 2; i++) {\n\t\t\t\t\tboolean isHome = (i == 0);\n\n\t\t\t\t\tTeamDetails team = (isHome ? game.getHomeTeam() : game.getAwayTeam()); \n\n\t\t\t\t\tboolean isSelected = false;\n\t\t\t\t\tboolean canSelect = true;\n\t\t\t\t\tif (getUiHandlers() != null) {\n\t\t\t\t\t\tisSelected = getUiHandlers().isTeamSelected(team);\n\t\t\t\t\t\tcanSelect = getUiHandlers().canSelectTeam(team);\n\t\t\t\t\t}\n\n\t\t\t\t\tString text = (isHome ? \"@ \" + team.getDisplayName() : team.getDisplayName());\n\n\t\t\t\t\tint row = rowFromGameIdx(gameIdx, isHome);\n\t\t\t\t\tint col = colFromGameIdx(gameIdx, isHome);\n\n\t\t\t\t\tsetScheduleCell(row, col, text, isSelected, canSelect);\t\n\t\t\t\t}\n\n\t\t\t\tgameIdx++;\n\t\t\t}\n\t\t}\n\n\t\t// Clear out any remaining cells (in case of bye weeks).\n\t\tfor (; gameIdx < NFLConstants.MAX_GAMES_PER_WEEK; gameIdx++) {\n\t\t\tfor (int i = 0; i < 2; i++) {\n\t\t\t\tboolean isHome = (i == 0);\n\t\t\t\t\n\t\t\t\tint row = rowFromGameIdx(gameIdx, isHome);\n\t\t\t\tint col = colFromGameIdx(gameIdx, isHome);\n\n\t\t\t\tsetScheduleCell(row, col, \"\", false, true);\n\t\t\t}\n\t\t}\n\t}", "public int getScheduleMethod() {\n return scheduleMethod;\n }", "private static Entity addScheduleDateDataEntities(final Schema schema) {\n Entity scheduleDateData = schema.addEntity(\"ScheduleDateData\");\n scheduleDateData.addIdProperty().primaryKey().autoincrement();\n scheduleDateData.addIntProperty(\"schedule_id\").notNull();\n scheduleDateData.addStringProperty(\"schedule_name\");\n scheduleDateData.addStringProperty(\"class_id\");\n scheduleDateData.addStringProperty(\"class_name\");\n scheduleDateData.addStringProperty(\"class_desc\");\n scheduleDateData.addStringProperty(\"schedule_type_id\");\n scheduleDateData.addStringProperty(\"schedule_type\");\n scheduleDateData.addStringProperty(\"schedule_start_date\");\n scheduleDateData.addStringProperty(\"schedule_start_time\");\n scheduleDateData.addStringProperty(\"schedule_end_time\");\n scheduleDateData.addLongProperty(\"schedule_start_time_long\");\n scheduleDateData.addLongProperty(\"schedule_end_time_long\");\n scheduleDateData.addIntProperty(\"schedule_monday\");\n scheduleDateData.addIntProperty(\"schedule_tuesday\");\n scheduleDateData.addIntProperty(\"schedule_wednesday\");\n scheduleDateData.addIntProperty(\"schedule_thursday\");\n scheduleDateData.addIntProperty(\"schedule_friday\");\n scheduleDateData.addIntProperty(\"schedule_saturday\");\n scheduleDateData.addIntProperty(\"schedule_sunday\");\n scheduleDateData.addStringProperty(\"schedule_frequency\");\n scheduleDateData.addIntProperty(\"is_cancelled\");\n scheduleDateData.addIntProperty(\"is_reservable\");\n scheduleDateData.addStringProperty(\"instructor_id\");\n scheduleDateData.addStringProperty(\"instructor_name\");\n scheduleDateData.addStringProperty(\"location_id\");\n scheduleDateData.addStringProperty(\"location_name\");\n\n return scheduleDateData;\n }", "public static String listScheduleIdSymbol(int tambahanBolehABs) {\n DBResultSet dbrs = null;\n String result = \"\";\n try {\n Date dtStart = new Date();\n Date dtEnd = new Date();\n String dtManual = \"\";\n boolean crossDay = false;\n //dtStart.setHours(dtStart.getHours()-tambahanBolehABs);\n dtStart = new Date(dtStart.getYear(), dtStart.getMonth(), (dtStart.getDate()), (dtStart.getHours() - tambahanBolehABs), dtStart.getMinutes(), dtStart.getSeconds());\n dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate()), (dtEnd.getHours() + tambahanBolehABs), dtEnd.getMinutes(), dtEnd.getSeconds());\n int jamMelebihiOneDay = 23;\n if (dtStart.getHours() == 0 || dtStart.getHours() == 23) {\n dtManual = \"23:\" + \"59:\" + \"59\";\n crossDay = true;\n jamMelebihiOneDay = jamMelebihiOneDay + tambahanBolehABs;\n }\n if (dtEnd.getHours() == 0) {\n dtManual = \"23:\" + \"59:\" + \"59\";\n crossDay = true;\n jamMelebihiOneDay = jamMelebihiOneDay + tambahanBolehABs;\n }\n\n// String dtManual=\"\";\n// if(dt.getHours()==0 || dt.getHours()+tambahanBolehABs>=23){\n// int idtManual = 24+tambahanBolehABs;\n// dtManual = idtManual+\":59:00\" ;\n// }else{\n// dt.setHours(dt.getHours()+tambahanBolehABs);\n// }\n\n String sql = \"SELECT * FROM \" + PstScheduleSymbol.TBL_HR_SCHEDULE_SYMBOL\n + \" WHERE \\\"00:00:00\\\" <=\" + PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT]\n + \" AND \" + PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN] + \"<= \\\"\"\n + \"23:59:00\"\n //+ (dtStart.getHours() == 0 || dtStart.getHours() == 23 || dtEnd.getHours() == 0 ? dtManual : Formater.formatDate(dtEnd, \"HH:mm:00\"))\n + \"\\\"\";\n //+ \" WHERE \" + \"(\"+PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN] +\" BETWEEN \\\"00:00:00\\\" AND \\\"\"+ (crossDay?dtManual:Formater.formatDate(dtStart, \"HH:mm:00\")) +\"\\\") OR (\"+PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT] +\" BETWEEN \\\"00:00:00\\\" AND \\\"\"+Formater.formatDate(dtEnd, \"HH:mm:00\")+\"\\\")\";\n\n dbrs = DBHandler.execQueryResult(sql);\n ResultSet rs = dbrs.getResultSet();\n while (rs.next()) {\n dtEnd = new Date();\n dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate()), (dtEnd.getHours() + tambahanBolehABs), dtEnd.getMinutes(), dtEnd.getSeconds());\n \n Date schTimeIn = rs.getTime(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN]);\n\n Date schTimeOut = rs.getTime(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT]);\n Date dtTmpSchTimeIn = new Date();\n Date dtTmpSchTimeOut = new Date();\n\n\n if (schTimeIn != null && schTimeOut != null) {\n schTimeOut = new Date(dtTmpSchTimeOut.getYear(), dtTmpSchTimeOut.getMonth(), dtTmpSchTimeOut.getDate(), schTimeOut.getHours(), schTimeOut.getMinutes());\n schTimeIn = new Date(dtTmpSchTimeIn.getYear(), dtTmpSchTimeIn.getMonth(), dtTmpSchTimeIn.getDate(), schTimeIn.getHours(), schTimeIn.getMinutes());\n\n Date dtCobaTimeOut = new Date(schTimeOut.getYear(), schTimeOut.getMonth(), (schTimeOut.getDate()), (schTimeOut.getHours() + tambahanBolehABs), schTimeOut.getMinutes(), schTimeOut.getSeconds());\n boolean melebihiHari=false;\n if (schTimeIn.getHours() == 0 || schTimeOut.getHours() == 0) {\n \n } else {\n if (dtCobaTimeOut.getDate() > schTimeIn.getDate()) {\n //dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate() + 1), (dtEnd.getHours()), dtEnd.getMinutes(), dtEnd.getSeconds());\n melebihiHari=true;\n }\n\n if ( (melebihiHari && dtEnd.getHours()<dtCobaTimeOut.getHours()) || schTimeIn.getTime() <= dtEnd.getTime() || (schTimeIn.getHours() > schTimeOut.getHours() && dtEnd.getTime() < schTimeOut.getTime())) {\n result = result + rs.getString(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_SCHEDULE_ID]) + \",\";\n }\n }\n\n\n\n\n\n }\n\n }\n if (result != null && result.length() > 0) {\n result = result.substring(0, result.length() - 1);\n }\n rs.close();\n return result;\n\n } catch (Exception e) {\n System.out.println(e);\n } finally {\n DBResultSet.close(dbrs);\n }\n return result;\n }", "public interface ScheduleDao {\r\n\tpublic Schedule createSchedule(Calendar scheduleDate) throws DAOException;\r\n\tpublic Schedule findScheduleById(long scheduleId) throws DAOException;\r\n\tpublic List<Schedule> findSchedulesByDate(Calendar scheduleDate) throws DAOException;\r\n\tpublic List<Schedule> findAllSchedules() throws DAOException;\r\n\tpublic void updateSchedule(long scheduleId, Calendar newScheduleDate) throws DAOException;\r\n\tpublic void deleteScheduleById(long scheduleId) throws DAOException;\r\n\tpublic void deleteAllSchedules() throws DAOException;\r\n}", "public String getSchedule() {\n return schedule;\n }", "public Schedule getSchedule() {\r\n\t\treturn schedule;\r\n\t}", "public ScheduleType getScheduleType();", "public interface ScheduleService {\n BasicSchedule getBasicScheduleByHostelIdAndRoomType(long hostelId, RoomType type);\n\n /**\n * 获得最近一年的酒店基本计划\n *\n * @param hostelId\n * @return\n */\n List<BasicSchedule> getBasisSchedulesByHostelId(long hostelId);\n\n void modifyBasisSchedule(BasicSchedule basicSchedule);\n\n /**\n * 获得最近一年的酒店特殊计划\n *\n * @param hostelId\n * @return\n */\n List<SpecialSchedule> getSpecialScheduleByHostelId(long hostelId);\n\n void modifySpecialSchedule(SpecialSchedule specialSchedule);\n\n void addSpecialSchedule(SpecialSchedule specialSchedule);\n\n void deleteSpecialSchedule(SpecialSchedule specialSchedule);\n\n SpecialSchedule getSpecialSchedule(long hostelId, RoomType roomType, Date date);\n}", "private void loadScheduleList() {\n\n if (listTbagendamentos != null && !listTbagendamentos.isEmpty()) {\n scheduleAgendamento.clear();\n\n for (Tbagendamento agendamento : listTbagendamentos) {\n DefaultScheduleEvent defaultScheduleEvent = new DefaultScheduleEvent();\n defaultScheduleEvent.setTitle(agendamento.getIdcliente().getNmcliente());\n\n Calendar dtDataInicial = new GregorianCalendar();\n dtDataInicial.setTime(agendamento.getTmdataagendamento());\n\n defaultScheduleEvent.setStartDate(dtDataInicial.getTime());\n\n Calendar dtDataFinal = new GregorianCalendar();\n dtDataFinal.setTime(agendamento.getTmdataagendamento());\n dtDataFinal.set(Calendar.MINUTE, dtDataFinal.get(Calendar.MINUTE) + 30);\n\n defaultScheduleEvent.setEndDate(dtDataFinal.getTime());\n defaultScheduleEvent.setData(agendamento.getIdagendamento());\n scheduleAgendamento.addEvent(defaultScheduleEvent);\n }\n }\n }", "public Schedule() {\r\n }", "public void setSchedule(Schedule schedule) {\r\n\t\tthis.schedule = schedule;\r\n\t}", "List<WorkingSchedule> getByPlaceId(Long placeId);", "public ProgramScheduled getProgramScheduleById(int scheduleId);", "public ArrayList<TrainScheduleEntity> viewTrainSchedule(String dayType);", "java.lang.String getSnapshotCreationSchedule();", "io.opencannabis.schema.commerce.CommercialOrder.SchedulingType getScheduling();", "@Override\r\n\tpublic void doInitialSchedules() {\n\t}", "void setSchedule(java.lang.String schedule);", "ScheduleStartType getScheduleStart();", "public abstract void schedule();", "public void setSchedule(Schedule newSchedule) {\n\n schedule = newSchedule;\n }", "@Mapper\npublic interface VirtualRepayFlowMapper {\n @DataSource(\"bigdata2_jdb\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE update_time >= #{from_time} and update_time < #{end_time} and id>#{id} limit 1000\")\n List<VirtualRepayFlow> find(@Param(\"from_time\") String from_time,\n @Param(\"end_time\") String end_time,\n @Param(\"id\") long id);\n\n\n @DataSource(\"dmp\")\n @Insert(\"INSERT INTO virtual_repay_flow (id,uuid,virtual_productid,to_user,amount,interest,repay_status,repay_time,create_time,update_time) values\" +\n \"(#{id},#{uuid},#{virtual_productid},#{to_user},#{amount},#{interest},#{repay_status},#{repay_time},#{create_time},#{update_time})\")\n void insert(VirtualRepayFlow virtualRepayFlow);\n\n @DataSource(\"dmp\")\n @Delete(\"DELETE FROM repay_flow where update_time<#{update_time}\")\n void delete(@Param(\"update_time\") String update_time);\n\n @DataSource(\"dmp\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE id=#{id}\")\n VirtualRepayFlow getById(@Param(\"id\") long id);\n\n\n @DataSource(\"dmp\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE uuid=#{uuid}\")\n VirtualRepayFlow getByUuid(@Param(\"uuid\") String uuid);\n}", "public abstract void maintenanceSchedule() ;", "@Override\n public List<SurveillantSchedule> getSurveillantSchedule() {\n return surveillantRepository.getSurveillantSchedule();\n }", "long getScheduleID() {return mScheduleID; }", "com.google.cloud.gkebackup.v1.BackupPlan.Schedule getBackupSchedule();", "public String getScheduleRow() {\n\t\treturn uSRow;\n\t}", "public void setSchedule_id(int schedule_id) {\r\n this.schedule_id = schedule_id;\r\n }", "public void printSchedule(){\n String\n format =\n \"%-20s%-10s%-15s%\" +\n \"-20s%-25s%-10s%\" +\n \"-15s%-15s%-15s%n\";\n\n System.out.printf(format,\n \"Водитель\", \"Номер А/М\",\"Машина\", \"Дата и время\",\n \"Задание\", \"Кол-во\",\n \"Расстояние\", \"Цена\", \"Примечание\");\n System.out.println();\n\n\n\n List<TimeTable> l = driverScheduleReaderDAO.getTimeTable();\n TimeTable tPrev =l.get(0);\n for (TimeTable t: l){\n\n if (!t.getDriverName().equals(tPrev.getDriverName())) {\n\n System.out.println(\"***\");\n tPrev = t;\n\n } else if (t!=l.get(0))t.setDriverName(\" \");\n\n\n\n\n System.out.printf(format,\n t.getDriverName(), t.getCarId(), t.getCarBrand(),\n t.getBusyTime(), t.getOrder(), t.getNumOfEl(),\n t.getDistance(), t.getPrice(), t.getNote()\n );\n\n }\n\n //int\n\n\n\n\n //вывести на экран\n //отельным классом посчитать шанс поломки и предупредить\n }", "public void schedule(String id, String[] schedule) {\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic List<ISchedule> getSchedules() throws IOException {\n\t\tfinal String sql = \"SELECT * from record\";\n\t\tList<? extends ISchedule> result = this.queryDataList(Schedule.class,ISchedule.Props.class, sql);\n\t\treturn (List<ISchedule>) result;\t\t\n\t}", "public List<AllTimeSeasonBean> getAllTimeRecord(){\n String q = \"select new com.main.pcblroyals.bean.AllTimeSeasonBean( \" +\n \"sum(case when g.teamScore > g.opponentScore then 1 else 0 end), \" +\n \"sum(case when g.teamScore = g.opponentScore then 1 else 0 end), \" +\n \"sum(case when g.teamScore < g.opponentScore then 1 else 0 end) \" +\n \") \" +\n \"from seasons s \" +\n \"join games g on s.id = g.season.id \";\n Query query = entityManager.createQuery(q);\n return (List<AllTimeSeasonBean>) query.getResultList();\n }", "@Override\n public String getEndPoint() {\n return \"/v1/json/schedule\";\n }", "@GetMapping\n public List<ScheduleDTO> getAllSchedules() {\n List<Schedule> scheduleList = scheduleService.getAllSchedules();\n\n List<ScheduleDTO> scheduleDTOList = scheduleList.stream()\n .map(ScheduleController::convertScheduleToScheduleDTO)\n .collect(Collectors.toList());\n return scheduleDTOList;\n }", "public interface ScheduleListDao extends GenericDao<ScheduleList, Long> {\n\t\n\tpublic List<ScheduleList> findShceduleList(String scheduleId); \n\t\n\t /**\n * 自服务项列表\n * @return\n */\n public Page findScheduleList(String pageSize);\n\t\n}", "public void storeRegularDayTripStationScheduleWithRS();", "@MapperScan\npublic interface DSSettingMapper {\n\n @Insert(\"INSERT INTO ds_setting (dsId, dsAppointment2,dsAppointment3,outCoachIds,status,modifyTime)\" +\n \" VALUES(#{dsId},#{dsAppointment2},#{dsAppointment3},#{outCoachIds},#{status},NOW())\")\n int insertDssetting(DSSetting dsSetting);\n\n @Update(\"UPDATE ds_setting SET dsAppointment2 = #{dsAppointment2},\" +\n \" dsAppointment3 = #{dsAppointment3}, outCoachIds = #{outCoachIds}, \" +\n \"status = #{status}, modifyTime = NOW() \" +\n \"WHERE dsId = #{dsId}\")\n int updateDssetting(DSSetting dsSetting);\n\n @Select(\"SELECT * FROM ds_setting WHERE dsId = #{dsId}\")\n DSSetting findOneDSSetting(@Param(\"dsId\") Long dsId);\n}", "public String getScheduleExpression() {\n return this.scheduleExpression;\n }", "@Override\n\tpublic List<SchedulerJobEntity> getAllScheduledJobs() throws SchedulerException {\n\t\treturn schedulerRepository.findAll();\n\t}", "@Override\n\t\tpublic oep_ResponseInfo getTestscheduledetails(String id) {\n\t\t\t\n\t\t\t\n\t\t\tString query = \" SELECT a.`ques_master_id`,`is_test_started`,a.`id`,`sub_id`,a.`batch`,DATE_FORMAT(`testdate`,'%m/%d/%Y')newtestdate,a.`start_time`, a.`end_time`,a.`status`,b.`test_name`,`test_id`,\"\n\t\t\t\t\t+ \"HOUR(a.`start_time`)starthour,MINUTE(a.`start_time`)startminute, HOUR(a.`end_time`)endhour,MINUTE(a.`end_time`)endminute,\"\n\t\t\t\t\t+ \" DATE_FORMAT(`testdate`,'%d/%m/%Y')testdate, SUBSTRING_INDEX(a.`start_time`,' ',-1)startformatt,SUBSTRING_INDEX(a.`end_time`,' ',-1)endformatt,\"\n\t\t\t\t\t+ \"GROUP_CONCAT(f.`username`,' ',CASE WHEN `is_participant_start` = 2 THEN ' completed \\n' WHEN `is_participant_start` = 1 THEN 'Started \\n' ELSE 'Not started \\n'END)username,\"\n\t\t\t\t\t+ \"`is_participant_start`,h.`username`facname FROM `test_schedule` a JOIN `question_master` b ON a.`ques_master_id` = b.`id` \"\n\t\t\t\t\t+ \"JOIN `course_scheduling`c ON c.`cs_id`= a.`batch` JOIN `participants_registration_course_details`e ON e.`course_id`= c.`cs_id` \"\n\t\t\t\t\t+ \" JOIN `participants`f ON f.`participant_id`=e.`participant_id` \"\n\t\t\t\t\t+ \"LEFT JOIN `test_participants`g ON g.`part_id`= f.`participant_id` AND g.`ts_id`=a.`id`\"\n\t\t\t\t\t+ \" JOIN `faculty_master`h ON h.`faculty_id` = c.`faculty_name` WHERE a.`id`= \"+id+\" \";\n\t\t\t\n\t\t\t\n\t\t\tlog.info(query);\n\t\t\t\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tList<Object> List = jdbcTemplate.query(query, new RowMapper() {\n\t\t\t\tint count = 0;\n\t\t\t\t@Override\n\t\t\t\tpublic Object mapRow(ResultSet rs, int arg1) throws SQLException {\n\t\t\t\t\t\n\t\t\t\t\tMap<String, Object> map = new HashMap<String, Object>();\n\t\t\t\t\tmap.put(\"testid\", rs.getString(\"test_id\"));\n\t\t\t\t\tmap.put(\"startformat\", rs.getString(\"startformatt\"));\n\t\t\t\t\tmap.put(\"endformat\", rs.getString(\"endformatt\"));\t\n\t\t\t\t\tmap.put(\"facname\", rs.getString(\"facname\"));\n\t\t\t\t\tmap.put(\"quesid\", rs.getString(\"ques_master_id\"));\n\t\t\t\t\tmap.put(\"id\", rs.getString(\"id\"));\n\t\t\t\t\tmap.put(\"tsid\", rs.getString(\"id\"));\n\t\t\t\t\tmap.put(\"batch\", rs.getString(\"batch\"));\n\t\t\t\t\tmap.put(\"testdate\", rs.getString(\"testdate\"));\n\t\t\t\t\tmap.put(\"newtestdate\", rs.getString(\"newtestdate\"));\n\t\t\t\t\tmap.put(\"subid\", rs.getString(\"sub_id\"));\n\t\t\t\t\tmap.put(\"starthour\", rs.getString(\"starthour\"));\n\t\t\t\t\tmap.put(\"endhour\", rs.getString(\"endhour\"));\n\t\t\t\t\tmap.put(\"startminute\", rs.getString(\"startminute\"));\n\t\t\t\t\tmap.put(\"endminute\", rs.getString(\"endminute\"));\n\t\t\t\t\tmap.put(\"starttime\", rs.getString(\"start_time\"));\n\t\t\t\t\tmap.put(\"testname\", rs.getString(\"test_name\"));\n\t\t\t\t\tmap.put(\"username\", rs.getString(\"username\"));\n\t\t\t\t\tmap.put(\"starttest\", rs.getString(\"is_test_started\"));\n\t\t\t\t\tmap.put(\"participantstart\", rs.getString(\"is_participant_start\"));\n\t\t\t\t\tmap.put(\"endtime\", rs.getString(\"end_time\"));\n/*\t\t\t\t\t\n\t\t\t\t\tString submenuQuery = \"SELECT `part_id`,`imh_staus`,`username`,CONCAT(`username`,' ',CASE WHEN `imh_staus` = 0 \"\n\t\t\t\t\t\t\t+ \" THEN 'Certificate Not sent ' WHEN `imh_staus` = 1 THEN 'Certificate sent' \"\n\t\t\t\t\t\t\t+ \" ELSE 'Invalid 'END)status FROM `email_history`a \"\n\t\t\t\t\t\t\t+ \" JOIN `participants`b ON a.`part_id`=b.`participant_id` WHERE `ts_id` = \"+ rs.getString(\"id\");\t*/\n\t\t\t\t\t\n\t\t\t\t\tString submenuQuery = \" SELECT a.`ques_master_id`,`username`,`imh_staus`,`is_test_started`,a.`id`,a.`batch`,DATE_FORMAT(`testdate`,'%e/%c/%Y')testdate,a.`start_time`, a.`end_time`,a.`status`,b.`test_name`,`test_id`,\"\n\t\t\t\t\t\t\t+ \"CONCAT(`username`,' ',CASE WHEN `is_participant_start` = 2 THEN ' completed \\n' WHEN `is_participant_start` = 1 THEN 'Started \\n' ELSE 'Not started \\n'END)teststatus,\"\n\t\t\t\t\t\t\t+ \"`is_participant_start` FROM `test_schedule` a JOIN `question_master` b ON a.`ques_master_id` = b.`id` \"\n\t\t\t\t\t\t\t+ \"JOIN `course_scheduling`c ON c.`cs_id`= a.`batch` JOIN `participants_registration_course_details`e ON e.`course_id`= c.`cs_id` \"\n\t\t\t\t\t\t\t+ \" JOIN `participants`f ON f.`participant_id`=e.`participant_id` \"\n\t\t\t\t\t\t\t+ \"LEFT JOIN `test_participants`g ON g.`part_id`= f.`participant_id` AND g.`ts_id`=a.`id`\"\n\t\t\t\t\t\t\t+ \"JOIN `email_history`h ON h.`ts_id`= a.`id` WHERE a.`id`= \"+ rs.getString(\"id\");\n\t\t\t\t\t\n\t\t\t\t\t List<Object> submenuList = new ArrayList<Object>();\n\t\t\t\t\t submenuList = getPartStatusList(submenuQuery);\n\t\t\t\t\t map.put(\"submenuList\", submenuList);\n\t\t\t\t\t\n\t\t\t\t\tif(rs.getString(\"status\")!= null && rs.getString(\"status\").equals(\"1\")){\n\t\t\t\t\t\tmap.put(\"status\", \"Active\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tmap.put(\"status\", \"Inactive\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(rs.getString(\"is_test_started\")!= null && rs.getString(\"is_test_started\").equals(\"1\")){\n\t\t\t\t\t\tmap.put(\"teststarted\", \"Test Started\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tmap.put(\"teststarted\", \"Not started\");\n\t\t\t\t\t}\n\t\t\t\t\tmap.put(\"index\", count);\n\t\t\t\t\tcount++;\n\t\t\t\t\treturn map;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t});\n\t\t\t\n\t\t\n\t\t\t \n\t\t\t \n\t\t\tresponse.setResponseType(\"S\");\n\t\t\tresponse.setResponseObj(List);\n\t\t\tresponseInfo.setInventoryResponse(response);\n\t\t\treturn responseInfo;\n\t\t}", "public void createTempSpecialDayTrainSchedule(Timestamp date);", "public void generatePlan(Integer id,Date fromDate, Date toDate) throws Exception;", "@Override\r\n\tpublic List<Courseschedule> getCourseschedulesByClassroomId(int classroomId) {\n\t\tsession = sessionFactory.openSession();\r\n\t\tTransaction tran = session.beginTransaction();\r\n\t\tString hql = \"from Courseschedule where classroomId=:classroomId and state=:state\";\t\t\r\n\t\tList<Courseschedule> lists = session.createQuery(hql).setInteger(\"classroomId\", classroomId).setInteger(\"state\", 0).list();\r\n\t\ttran.commit();\r\n\t\tsession.close();\r\n\t\tlogger.debug(\"use the method named :getCourseschedulesByClassroomId(int classroomId)\");\r\n\t\tif (lists.size() > 0) {\r\n\t\t\treturn lists;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public void setSchedule(String timeframe) {\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic List<ScheduledFlights> retrieveScheduledFlights(String source, String destination) {\r\n\t\tQuery query = entityManager.createQuery(\"select s.scheduleId,s.source,s.destination,s.arrivaltime,s.departuretime,f.flightNumber,f.carrierName,f.seatCapacity from Schedule s JOIN ScheduledFlights sf ON s.scheduleId=sf.scheduleId JOIN Flight f on sf.flightId=f.flightNumber where schedule.source= :source AND schedule.destination=:destination\");\r\n\t\treturn query.getResultList();\r\n\t}", "@Override\r\n\tpublic boolean updateDate(ScheduleAdminModel scheduleAdminModel) throws ClassNotFoundException, SQLException {\n\t\r\n\t\tConnection connection=ConnectionManager.openConnection();\r\nPreparedStatement statement=\r\n connection.prepareStatement(\"update courses set start_date=?,end_date=? where course_name=?\");\r\nstatement.setString(1,scheduleAdminModel.getStartDate());\r\nstatement.setString(2,scheduleAdminModel.getEndDate());\r\nstatement.setString(3,scheduleAdminModel.getCourse_name());\r\n \r\n int rows=statement.executeUpdate();\r\n\tConnectionManager.closeConnection();\r\n\tif(rows>0)\r\n\t\treturn true;\r\n\t else \r\n\t return false;\r\n\t}", "void deschedule(ScheduledJob job);", "@Query(\"select :stopName from Timetable order by id\")\n List<Integer> selectStop(String stopName);", "public Date getScheduletime() {\r\n return scheduletime;\r\n }", "public List<Timetable> getAllTimetable() throws Exception;", "public abstract ArrayList<ScheduleTime> getScheduleForDay(int day, int month, int year);", "public void setSchedule(SpaceSchedule s) {\n\t\t\n\t}", "MMSchedule() {\n mScheduleID = MMUtilities.ID_DOES_NOT_EXIST;\n mOfMedicationID = 0;\n mForPersonID = 0;\n mTimeDue = 0;\n mStrategy = MMMedication.sSET_SCHEDULE_FOR_MEDICATION;\n }", "@Override\n public void fetchScheduled(RuleKey ruleKey) {\n }", "List<Schedule> selectByExampleWithRowbounds(ScheduleCriteria example, RowBounds rowBounds);", "Schedule getSchedule(String departure, String arrival, int depYear, int depMonth);", "public void setList(ScheduleInterface<Schedule> scheduleList){\n this.scheduleList = scheduleList;\n }", "int insert(Schedule record);", "private void reloadPlanTable() {\n\t\t\r\n\t}", "public Schedule getSchedule(String route, int direction){\r\n // A schedule to hold all the data returned from the query\r\n Schedule weekdayZero = new Schedule();\r\n // Fetch the route id given the route\r\n Cursor getData = getReadableDatabase().rawQuery(\"select _id from routes where route_long_name = '\" + route + \"'\", null);\r\n // Make sure to begin at the first element of the returned data\r\n getData.moveToFirst();\r\n // Store the Route Id\r\n int route_id = getData.getInt(0);\r\n // Calendar id: (90400,90448) - Monday To Friday\r\n final String query = \"select Routes.Route_long_Name, \" +\r\n \"Calendar._Id, Stops.Stop_Name, Stop_Times.Stop_Sequence, Stop_Times.Arrival_Time, routes.route_short_name \" +\r\n \"from Trips join Calendar on Trips.Service_Id=Calendar._Id \" +\r\n \"join Routes on Trips.Route_Id=Routes._Id \" +\r\n \"join Stop_Times on Trips._Id=Stop_Times.Trip_Id \" +\r\n \"join Stops on Stop_Times.Stop_Id=Stops._Id \" +\r\n \"where Calendar._Id in \" + getDayOfTheWeek() + \" \" +\r\n \"AND Trips.Route_Id = \" + route_id + \" \" +\r\n \"AND Trips.Direction_Id = \" + direction + \" \" +\r\n \"AND Stop_Times.Arrival_Time != '' \" +\r\n \"order by arrival_time asc\";\r\n getData.moveToFirst();\r\n getData = getReadableDatabase().rawQuery(query, null);\r\n while (getData.moveToNext()){\r\n weekdayZero.insertData(getData.getString(0), getData.getInt(1), getData.getString(2), getData.getInt(3)\r\n , getData.getString(4), getData.getString(5));\r\n }\r\n return weekdayZero;\r\n }", "public Date getScheduleTime() {\n return this.scheduleTime;\n }", "@Override\n\tpublic void setDateAndSchedule(String date, String schedule) {\n\n\t}", "public MonthlyValuesTable(Database database) \n {\n //Constructor calls DbTable's constructor\n super(database);\n setTableName(\"monthlyvalues\");\n }", "public Date getScheduleDate(){\r\n\t\treturn this.scheduleDate;\r\n\t}", "com.google.cloud.compute.v1.Scheduling getScheduling();", "TimerSchedule createTimerSchedule();", "public ApiSchedule[] getSchedules() {\n return this.schedules;\n }", "@Override\n\tpublic void setDateAndSchedule(String date, String schedule) {\n\t\t\n\t}", "public interface ITimetableDAO {\n\n /**\n * Get all the timetable element of <code>Timetable</code> object <br>\n *\n * @return all the list of <code>Timetable</code> object\n * @throws Exception\n */\n public List<Timetable> getAllTimetable() throws Exception;\n\n /**\n * Get all the list element has search of <code>Timetable</code> object<br>\n *\n * @param from is the date of <code>Timetable</code> object\n * @param to is the date of <code>Timetable</code> object\n * @return all the list has search of <code>Timetable</code> object\n * @throws Exception\n */\n public List<Timetable> getListSearch(String from, String to) throws Exception;\n\n /**\n * Add the all the element of Timetable to database\n *\n * @param date the date of Timetable object, it is an\n * <code>java.sql.Date</code>\n * @param slot the slot of Timetable object, it is an int\n * @param classes the classes of Timetable object, it is a string\n * @param teacher the teacher of Timetable object, it is a string\n * @param room the room of Timetable object, it is an int\n * @throws Exception\n */\n public void addTimetable(String date, String slot, String room, String teacher, String classes) throws Exception;\n\n /**\n * Function to check Timetable exist before add\n *\n * @param date the date of Timetable object, it is an\n * <code>java.sql.Date</code>\n * @param classes the slot of Timetable object, it is an int\n * @param room the room of Timetable object, it is a string\n * @return object of Timetable or null when check exist timetable\n * @throws Exception\n */\n public Timetable checkExistRoomTimeTable(String date, String classes, String room) throws Exception;\n\n /**\n * Paginate by number of timetable in <code>Timetable</code> object <br>\n *\n * @param pageIndex the index of page, it is an <code>int</code>\n * @param pageSize the size of page, it is an <code>int</code>\n * @return list of timetable, it is a <code>java.util.List</code> object.\n * @throws java.lang.Exception\n */\n public List<Timetable> pagging(int pageIndex, int pageSize) throws Exception;\n\n /**\n * Get number of result <code>Gallery</code> object by id\n *\n * @return number result of Gallery object, it is an int\n * @throws java.lang.Exception\n */\n public int numberOfResult() throws Exception;\n\n /**\n * Function to check Timetable exist before add\n *\n * @param date the date of Timetable object, it is an\n * <code>java.sql.Date</code>\n * @param classes the slot of Timetable object, it is an int\n * @param teacher the teacher of Timetable object, it is a string\n * @return object of Timetable or null when check exist timetable\n * @throws Exception\n */\n public Timetable checkExistTeacherTimeTable(String date, String classes, String teacher) throws Exception;\n\n}", "public void setScheduleTime(Date scheduleTime) {\n this.scheduleTime = scheduleTime;\n }", "@Scheduled(cron = \"0 30 06 * * *\",zone=\"America/New_York\")\n public void populateDatabase(){\n localDateTime = LocalDateTime.now();\n log.info(\"Executed now: \"+ localDateTime.toString());\n\n // Checks if table in database is empty\n // If not empty, clears the table and populates it with new data\n if(checkEmpty()==0)\n log.info(\"Empty Table\");\n else {\n deleteTableRecords();\n log.info(\"Table not Empty\");\n }\n\n URL url = null;\n\n // Get recent date, append it to URL and establish a connection\n String pattern = \"MM-dd-yyyy\";\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(pattern);\n Date date = Date.from(Instant.now().minus(Duration.ofDays(1)));\n\n\n String dateStr = simpleDateFormat.format(date);\n\n try {\n url = new URL(\"https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_daily_reports/\"+dateStr+\".csv\");\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n HttpURLConnection httpURLConnection = null;\n try {\n httpURLConnection = (HttpURLConnection) url.openConnection();\n } catch (IOException e) {\n e.printStackTrace();\n }\n int responseCode = 0;\n try {\n responseCode = httpURLConnection.getResponseCode();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n // On successful connection, read records line by line, store records in a table\n if(responseCode==200)\n {\n log.info(\"-- Successful Connection\");\n CSVReader reader = null;\n try {\n\n BufferedReader input = new BufferedReader(new InputStreamReader(httpURLConnection.getInputStream()),8192);\n reader = new CSVReader(input);\n String[] line;\n int skipFirstLine = 0;\n while ((line = reader.readNext()) != null)\n {\n if(skipFirstLine==0)\n {\n skipFirstLine++;\n continue;\n }\n\n DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern(\"yyyy-MM-dd HH:mm:ss\");\n\n Corona corona = new Corona();\n corona.setLastUpdate(LocalDateTime.parse(line[4],dateTimeFormatter));\n if(line[7].equals(\"\"))\n line[7]=\"0\";\n if(line[9].equals(\"\"))\n line[9]=\"0\";\n if(line[10].equals(\"\"))\n line[10]=\"0\";\n if(line[8].equals(\"\"))\n line[8]=\"0\";\n if(line[5].equals(\"\"))\n line[5]=\"0\";\n if(line[6].equals(\"\"))\n line[6]=\"0\";\n\n try {\n\n corona.setConfirmed(Long.valueOf(line[7]));\n corona.setRecovered(Long.valueOf(line[9]));\n corona.setActive(Long.valueOf(line[10]));\n corona.setDeaths(Long.valueOf(line[8]));\n corona.setLatitude(Double.valueOf(line[5]));\n corona.setLongitude(Double.valueOf(line[6]));\n } catch (NumberFormatException n)\n {\n n.printStackTrace();\n }\n corona.setCountry(line[3]);\n corona.setProvince(line[2]);\n corona.setCombinedKey(line[11]);\n\n\n\n coronaRepository.save(corona);\n log.info(corona.toString());\n\n\n }\n } catch (IOException | CsvValidationException e){\n e.printStackTrace();\n } finally {\n if(reader!=null)\n {\n try\n {\n reader.close();\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }\n }\n }\n }" ]
[ "0.6583093", "0.62134594", "0.614241", "0.6096163", "0.5869904", "0.5847323", "0.57736564", "0.5749311", "0.5730464", "0.5692395", "0.5691314", "0.5688622", "0.56733465", "0.5612722", "0.56103665", "0.5601378", "0.5594937", "0.5592374", "0.55869794", "0.5565921", "0.5544678", "0.5536762", "0.54946375", "0.5486974", "0.5463075", "0.54603523", "0.5455832", "0.54501116", "0.5445156", "0.5444004", "0.54084784", "0.53984827", "0.53917515", "0.53882813", "0.5388208", "0.5379494", "0.5379087", "0.53540117", "0.53484684", "0.53395474", "0.5337806", "0.53348553", "0.5326429", "0.531917", "0.5268467", "0.52664775", "0.52625597", "0.5256478", "0.5245691", "0.52455944", "0.5244061", "0.52287424", "0.52114916", "0.52114564", "0.5211055", "0.5206053", "0.5198744", "0.51842344", "0.51793087", "0.51495117", "0.5128515", "0.5107465", "0.510662", "0.51056135", "0.50985986", "0.5097996", "0.5095179", "0.5078455", "0.5071949", "0.5062537", "0.5048053", "0.5045186", "0.50360614", "0.5034012", "0.5032612", "0.5029762", "0.5028272", "0.5023831", "0.50128245", "0.50107193", "0.50062126", "0.49853772", "0.49811625", "0.4979578", "0.49694157", "0.4958413", "0.49560702", "0.49543408", "0.49509862", "0.49456567", "0.49427602", "0.49422622", "0.49398386", "0.4935916", "0.4927577", "0.49200827", "0.49151728", "0.49094823", "0.49054155", "0.49049369", "0.49020037" ]
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table schedule
public void setDistinct(boolean distinct) { this.distinct = distinct; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void generateSchedule(){\n\t\t\n\t}", "@Dao\npublic interface schedule_Dao {\n\n @Query(\"SELECT * FROM Schedule where student_id = :studentId\")\n List<Schedule> getSchedulesStudent(String studentId);\n\n\n\n @Query(\"SELECT COUNT(pkey) FROM Schedule where student_id = :student_id\")\n int getScheduleCount(String student_id);\n\n\n\n @Query(\"SELECT * FROM Schedule where student_id = :studentId and active = :active or active = :Active\")\n List<Schedule> getActiveSchedules(String active,String Active, String studentId);\n\n\n @Query(\"SELECT * FROM Schedule where `endtime_null` >= :date and `starttime_null` <= :date and student_id = :studentId and active = :active or active = :Active \")\n List<Schedule> getSelEvents(String active,String Active, String studentId, String date);\n\n\n @Query(\"SELECT * FROM Schedule where `endtime` >= :date and `starttime` <= :date and student_id = :studentId and active = :active or active = :Active \")\n List<Schedule> getSelEventTime(String active,String Active, String studentId, String date);\n\n\n @Insert\n void insertAll(Schedule... schedules);\n\n @Insert(onConflict = OnConflictStrategy.IGNORE)\n void insertOnConflict(Schedule... schedules);\n\n @Query(\"DELETE FROM Schedule\")\n public abstract int DeleteToken();\n\n @Query(\"DELETE FROM Schedule where pkey = :p_key and student_id = :studentId\")\n public abstract int DeleteSchedule(String p_key,String studentId );\n\n\n @Query(\"DELETE FROM Schedule where student_id= :studentId\")\n public abstract int DeleteScheduleAllUser(String studentId);\n\n\n}", "Schedule selectByPrimaryKey(Integer id);", "public interface JobScheduleMapper {\n @Select(\"select * from job_schedule where id = #{id}\")\n public JobSchedule findById(@Param(\"id\") long id);\n\n @Select(\"select status from job_schedule where id = #{id}\")\n public int getStatus(@Param(\"id\")long id);\n\n @Insert(\"insert into job_schedule (created_datetime, schedule_datetime, job_id, job_group_name, run_as, status) \" +\n \"values(#{created_datetime}, #{schedule_datetime}, #{job_id}, #{job_group_name}, #{run_as}, #{status})\")\n @Options(useGeneratedKeys = true, keyProperty = \"id\", keyColumn = \"id\")\n public void insert(JobSchedule jobSchedule);\n\n @Update(\"update job_schedule set status = #{status} where id = #{id}\")\n public void updateStatus(@Param(\"id\") long id, @Param(\"status\")int status);\n\n @Update(\"update job_schedule set status = \" + JobSchedule.JOB_SCHEDULE_STATUS_PENDING + \", retried = retried + 1 where id = #{id}\")\n public void retry(@Param(\"id\") long id);\n\n @Update(\"update job_schedule set next_job_schedule_id = #{nextId} where id = #{thisId}\")\n public void updateNextScheduleId(@Param(\"thisId\")long thisId, @Param(\"nextId\")long nextId);\n}", "Schedule createSchedule();", "java.lang.String getSchedule();", "public Schedule() {\n\t\t// TODO Auto-generated constructor stub\n\t}", "public void generateSchedule(){\r\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"yyyy-MM-dd HH:mm:ss\"); // Date formatter used when getting SQL records\r\n Database db = new Database();\r\n Connection connection = null;\r\n String sql = \"\";\r\n String report = \"\";\r\n \r\n // Retrieve the inputted consultant's id\r\n User user = (User) combo_user.getValue();\r\n int userID = user.getId();\r\n try{\r\n connection = db.jdbc_connection.connect();\r\n Statement statement = connection.createStatement(); // Set up statement\r\n \r\n sql = \"SELECT appointment.appointmentID, customer.customerName, appointment.title, appointment.description, appointment.location, appointment.contact, \" +\r\n \"appointment.type, appointment.url, appointment.start, appointment.end FROM appointment \" +\r\n \"INNER JOIN customer ON appointment.customerID=customer.customerID \" +\r\n \"WHERE userID = \" + userID + \" GROUP BY appointment.start\"; \r\n ResultSet results = statement.executeQuery(sql); \r\n \r\n while(results.next()) { \r\n String customer = results.getString(\"customerName\");\r\n String title = results.getString(\"title\");\r\n String description = results.getString(\"description\");\r\n String location = results.getString(\"location\");\r\n String contact = results.getString(\"contact\");\r\n String type = results.getString(\"type\");\r\n String url = results.getString(\"url\");\r\n String start = results.getString(\"start\");\r\n String end = results.getString(\"end\");\r\n \r\n \r\n // Convert the start and end DATETIMES to the user's current timezone \r\n java.time.LocalDateTime start_converted = convertToCurrentZone(java.time.LocalDateTime.parse(start.replace(\".0\", \"\"), formatter));\r\n String month = start_converted.getMonth().toString();\r\n int day = start_converted.getDayOfMonth();\r\n int hour = start_converted.getHour();\r\n String minute = String.valueOf(start_converted.getMinute());\r\n \r\n if(minute.length() == 1) minute += \"0\"; // Add following zeroes\r\n \r\n report += month + \" \" + day + \" at \" + hour + \":\" + minute + \" - appointment with \" + customer + \"\\n\";\r\n } \r\n }catch(Exception e) {\r\n System.out.println(e.getMessage());\r\n }finally {\r\n try {\r\n connection.close();\r\n } catch (Exception e2) { // Closing databse error handling\r\n System.err.println(e2.getMessage());\r\n }\r\n } \r\n \r\n text_schedule.setText(report);\r\n }", "public int getSchedule_id() {\r\n return schedule_id;\r\n }", "io.opencannabis.schema.commerce.CommercialOrder.OrderScheduling getScheduling();", "List<WorkingSchedule> getAll();", "@Override\n\t\tpublic List<ProgramScheduledBean> getAllScheduleProgram()\n\t\t\t\tthrows UniversityException {\n\t\t\treturn dao.getAllScheduleProgram();\n\t\t}", "public interface ScheduleDao {\n int crewTally();\n ArrayList<avail> getAllAvailibility();\n ArrayList<ShiftDetails> getShiftDetails();\n int updateShiftSwapStatus();\n}", "@Override\n\tpublic List<ScheduleTask> getScheduleTaskList() {\n\t\treturn (List<ScheduleTask>) find(\"from ScheduleTask\");\n\t}", "public List<UserRace> selectAllSchedule() {\n\t\tString sql = \"select \" + COLUMNS + \" FROM UserRace WHERE mode = '\"\n\t\t\t\t+ UserRace.MODE_SCHEDULE + \"'\";\n\t\treturn getJdbcTemplate().query(sql, new UserRaceRowMapper());\n\t}", "@Override\r\n\tpublic List<Courseschedule> getAllCourseschedules() {\n\t\tsession = sessionFactory.openSession();\r\n\t\tTransaction tran = session.beginTransaction();\r\n\t\tString hql = \"from Courseschedule where state=:state\";\r\n\t\tQuery query = session.createQuery(hql).setInteger(\"state\", 0);\r\n\t\tList<Courseschedule> lists = query.list();\r\n\t\ttran.commit();\r\n\t\tsession.close();\r\n\t\tlogger.debug(\"use the method named :getAllCourseschedules()\");\r\n\t\tif (lists.size() > 0) {\r\n\t\t\treturn lists;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "List<Schedule> selectByExample(ScheduleCriteria example);", "public static List<Schedule> fetchGeneratedSchedules() {\r\n if (!isComplete()) {\r\n return null;\r\n }\r\n\r\n return generatedSchedules;\r\n }", "@Override\n\tpublic void UpdateTableSchedule(Schedule current) {\n\t\tif (current == null)\n\t\t\treturn;\n\t\tCurrFitness = current.fitness;\n\t\tmyLabelSchedule.setText(\"Current Schedule Fitness: \" + CurrFitness);\n\t\tfor (int station = 1; station <= current.stations.size(); station++) {\n\t\t\tfor (int i = 0; i < dtm.getRowCount(); i++) {\n\t\t\t\tdtm.setValueAt(\"\", i, station);\n\t\t\t}\n\t\t\t// @Debug System.out.println(\"TableLength: \"+tableLength);\n\t\t\tStationSlot currentStation = current.stations.get(station - 1);\n\t\t\tif (currentStation.registeredCars.size() == 0) {\n\t\t\t\tcontinue;\n\t\t\t} else {\n\t\t\t\tLinkedList<CarSlot> cars = currentStation.registeredCars;\n\t\t\t\tfor (int i = 0; i < cars.size(); i++) {\n\t\t\t\t\tCarSlot car = cars.get(i);\n\t\t\t\t\tfloat start = car.startTime;\n\t\t\t\t\tfloat duration = car.duration;\n\t\t\t\t\tint rowNum = (int) (start * (60 / interval));\n\t\t\t\t\t// System.out.println(\"ColumNum: \"+rowNum);\n\t\t\t\t\twhile (duration > 0) {\n\t\t\t\t\t\tdtm.setValueAt(\"Car \" + car.name + \" [\" + car.priority + \"]\" + \" - \" + car.type, rowNum, station);\n\t\t\t\t\t\trowNum++;\n\t\t\t\t\t\tduration = (float) (duration - interval / 60f);\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n\tpublic List<ScheduledFlights> retrieveAllScheduledFlights() {\t\r\n\t\tTypedQuery<ScheduledFlights> query = entityManager.createQuery(\"select s from ScheduledFlights s, Flight f,Schedule sc where s.flight = f and s.schedule=sc\",ScheduledFlights.class);\r\n\t\tList<ScheduledFlights> flights = query.getResultList();\r\n\t\treturn flights;\r\n\t}", "public boolean generateSchedule(){\r\n return true;\r\n }", "public void existingSchedules(){\n \n scheduleModel = (DefaultTableModel) displayTable.getModel();\n \n currentSchedules = AccessDataFromXML.retrieveSchedules();\n for (Schedule schedule : currentSchedules){\n \n \n Object[] o = new Object[1];\n o[0] = schedule.getName();\n scheduleModel.addRow(o);\n }\n \n \n\n }", "public Schedule getSchedule() {\n\n return schedule;\n }", "private List<Schedules> getSchedulesList(){\r\n//\t\tList<Schedules> list = new ArrayList<Schedules>();\r\n//\t\tSchedules s1 = new Schedules(1, \"Baidu\", \"BUPT\", \"2013-09-11\", \"12:30\");\r\n//\t\tSchedules s2 = new Schedules(2, \"Sina\", \"BUPT\", \"2013-09-11\", \"13:50\");\r\n//\r\n//\t\tlist.add(s1);\r\n//\t\tlist.add(s2);\r\n\t\tif (scheduleList == null) {\r\n\t\t\tscheduleList = mAppContext.scheduleGetAll();\r\n\t\t}\r\n\t\treturn scheduleList;\r\n//\t\treturn list;\r\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\tpublic List<TimeTableBean> getTimeTable() {\n\t\treturn sessionFactory.openSession().createQuery(\"from TimeTableBean\").list();\r\n\t}", "@Override\n\tpublic List<ScheduleTask> getScheduleTaskList() {\n\t\treturn scheduleTaskDAO.getScheduleTaskList();\n\t}", "abstract public void computeSchedule();", "SchedulingPlay selectByPrimaryKey(Long id);", "public List<WorkoutSchedule> getSchedules() {\n if (schedules == null) {\n if (daoSession == null) {\n throw new DaoException(\"Entity is detached from DAO context\");\n }\n WorkoutScheduleDao targetDao = daoSession.getWorkoutScheduleDao();\n List<WorkoutSchedule> schedulesNew = targetDao._queryWorkout_Schedules(id);\n synchronized (this) {\n if(schedules == null) {\n schedules = schedulesNew;\n }\n }\n }\n return schedules;\n }", "private void refreshScheduleTable() {\n\t\tint gameIdx = 0;\n\t\tList<GameDetails> games = getGames();\n\t\tif (games != null) {\n\t\t\tfor (GameDetails game : games) {\n\t\t\t\tfor (int i = 0; i < 2; i++) {\n\t\t\t\t\tboolean isHome = (i == 0);\n\n\t\t\t\t\tTeamDetails team = (isHome ? game.getHomeTeam() : game.getAwayTeam()); \n\n\t\t\t\t\tboolean isSelected = false;\n\t\t\t\t\tboolean canSelect = true;\n\t\t\t\t\tif (getUiHandlers() != null) {\n\t\t\t\t\t\tisSelected = getUiHandlers().isTeamSelected(team);\n\t\t\t\t\t\tcanSelect = getUiHandlers().canSelectTeam(team);\n\t\t\t\t\t}\n\n\t\t\t\t\tString text = (isHome ? \"@ \" + team.getDisplayName() : team.getDisplayName());\n\n\t\t\t\t\tint row = rowFromGameIdx(gameIdx, isHome);\n\t\t\t\t\tint col = colFromGameIdx(gameIdx, isHome);\n\n\t\t\t\t\tsetScheduleCell(row, col, text, isSelected, canSelect);\t\n\t\t\t\t}\n\n\t\t\t\tgameIdx++;\n\t\t\t}\n\t\t}\n\n\t\t// Clear out any remaining cells (in case of bye weeks).\n\t\tfor (; gameIdx < NFLConstants.MAX_GAMES_PER_WEEK; gameIdx++) {\n\t\t\tfor (int i = 0; i < 2; i++) {\n\t\t\t\tboolean isHome = (i == 0);\n\t\t\t\t\n\t\t\t\tint row = rowFromGameIdx(gameIdx, isHome);\n\t\t\t\tint col = colFromGameIdx(gameIdx, isHome);\n\n\t\t\t\tsetScheduleCell(row, col, \"\", false, true);\n\t\t\t}\n\t\t}\n\t}", "public int getScheduleMethod() {\n return scheduleMethod;\n }", "private static Entity addScheduleDateDataEntities(final Schema schema) {\n Entity scheduleDateData = schema.addEntity(\"ScheduleDateData\");\n scheduleDateData.addIdProperty().primaryKey().autoincrement();\n scheduleDateData.addIntProperty(\"schedule_id\").notNull();\n scheduleDateData.addStringProperty(\"schedule_name\");\n scheduleDateData.addStringProperty(\"class_id\");\n scheduleDateData.addStringProperty(\"class_name\");\n scheduleDateData.addStringProperty(\"class_desc\");\n scheduleDateData.addStringProperty(\"schedule_type_id\");\n scheduleDateData.addStringProperty(\"schedule_type\");\n scheduleDateData.addStringProperty(\"schedule_start_date\");\n scheduleDateData.addStringProperty(\"schedule_start_time\");\n scheduleDateData.addStringProperty(\"schedule_end_time\");\n scheduleDateData.addLongProperty(\"schedule_start_time_long\");\n scheduleDateData.addLongProperty(\"schedule_end_time_long\");\n scheduleDateData.addIntProperty(\"schedule_monday\");\n scheduleDateData.addIntProperty(\"schedule_tuesday\");\n scheduleDateData.addIntProperty(\"schedule_wednesday\");\n scheduleDateData.addIntProperty(\"schedule_thursday\");\n scheduleDateData.addIntProperty(\"schedule_friday\");\n scheduleDateData.addIntProperty(\"schedule_saturday\");\n scheduleDateData.addIntProperty(\"schedule_sunday\");\n scheduleDateData.addStringProperty(\"schedule_frequency\");\n scheduleDateData.addIntProperty(\"is_cancelled\");\n scheduleDateData.addIntProperty(\"is_reservable\");\n scheduleDateData.addStringProperty(\"instructor_id\");\n scheduleDateData.addStringProperty(\"instructor_name\");\n scheduleDateData.addStringProperty(\"location_id\");\n scheduleDateData.addStringProperty(\"location_name\");\n\n return scheduleDateData;\n }", "public static String listScheduleIdSymbol(int tambahanBolehABs) {\n DBResultSet dbrs = null;\n String result = \"\";\n try {\n Date dtStart = new Date();\n Date dtEnd = new Date();\n String dtManual = \"\";\n boolean crossDay = false;\n //dtStart.setHours(dtStart.getHours()-tambahanBolehABs);\n dtStart = new Date(dtStart.getYear(), dtStart.getMonth(), (dtStart.getDate()), (dtStart.getHours() - tambahanBolehABs), dtStart.getMinutes(), dtStart.getSeconds());\n dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate()), (dtEnd.getHours() + tambahanBolehABs), dtEnd.getMinutes(), dtEnd.getSeconds());\n int jamMelebihiOneDay = 23;\n if (dtStart.getHours() == 0 || dtStart.getHours() == 23) {\n dtManual = \"23:\" + \"59:\" + \"59\";\n crossDay = true;\n jamMelebihiOneDay = jamMelebihiOneDay + tambahanBolehABs;\n }\n if (dtEnd.getHours() == 0) {\n dtManual = \"23:\" + \"59:\" + \"59\";\n crossDay = true;\n jamMelebihiOneDay = jamMelebihiOneDay + tambahanBolehABs;\n }\n\n// String dtManual=\"\";\n// if(dt.getHours()==0 || dt.getHours()+tambahanBolehABs>=23){\n// int idtManual = 24+tambahanBolehABs;\n// dtManual = idtManual+\":59:00\" ;\n// }else{\n// dt.setHours(dt.getHours()+tambahanBolehABs);\n// }\n\n String sql = \"SELECT * FROM \" + PstScheduleSymbol.TBL_HR_SCHEDULE_SYMBOL\n + \" WHERE \\\"00:00:00\\\" <=\" + PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT]\n + \" AND \" + PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN] + \"<= \\\"\"\n + \"23:59:00\"\n //+ (dtStart.getHours() == 0 || dtStart.getHours() == 23 || dtEnd.getHours() == 0 ? dtManual : Formater.formatDate(dtEnd, \"HH:mm:00\"))\n + \"\\\"\";\n //+ \" WHERE \" + \"(\"+PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN] +\" BETWEEN \\\"00:00:00\\\" AND \\\"\"+ (crossDay?dtManual:Formater.formatDate(dtStart, \"HH:mm:00\")) +\"\\\") OR (\"+PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT] +\" BETWEEN \\\"00:00:00\\\" AND \\\"\"+Formater.formatDate(dtEnd, \"HH:mm:00\")+\"\\\")\";\n\n dbrs = DBHandler.execQueryResult(sql);\n ResultSet rs = dbrs.getResultSet();\n while (rs.next()) {\n dtEnd = new Date();\n dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate()), (dtEnd.getHours() + tambahanBolehABs), dtEnd.getMinutes(), dtEnd.getSeconds());\n \n Date schTimeIn = rs.getTime(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN]);\n\n Date schTimeOut = rs.getTime(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT]);\n Date dtTmpSchTimeIn = new Date();\n Date dtTmpSchTimeOut = new Date();\n\n\n if (schTimeIn != null && schTimeOut != null) {\n schTimeOut = new Date(dtTmpSchTimeOut.getYear(), dtTmpSchTimeOut.getMonth(), dtTmpSchTimeOut.getDate(), schTimeOut.getHours(), schTimeOut.getMinutes());\n schTimeIn = new Date(dtTmpSchTimeIn.getYear(), dtTmpSchTimeIn.getMonth(), dtTmpSchTimeIn.getDate(), schTimeIn.getHours(), schTimeIn.getMinutes());\n\n Date dtCobaTimeOut = new Date(schTimeOut.getYear(), schTimeOut.getMonth(), (schTimeOut.getDate()), (schTimeOut.getHours() + tambahanBolehABs), schTimeOut.getMinutes(), schTimeOut.getSeconds());\n boolean melebihiHari=false;\n if (schTimeIn.getHours() == 0 || schTimeOut.getHours() == 0) {\n \n } else {\n if (dtCobaTimeOut.getDate() > schTimeIn.getDate()) {\n //dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate() + 1), (dtEnd.getHours()), dtEnd.getMinutes(), dtEnd.getSeconds());\n melebihiHari=true;\n }\n\n if ( (melebihiHari && dtEnd.getHours()<dtCobaTimeOut.getHours()) || schTimeIn.getTime() <= dtEnd.getTime() || (schTimeIn.getHours() > schTimeOut.getHours() && dtEnd.getTime() < schTimeOut.getTime())) {\n result = result + rs.getString(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_SCHEDULE_ID]) + \",\";\n }\n }\n\n\n\n\n\n }\n\n }\n if (result != null && result.length() > 0) {\n result = result.substring(0, result.length() - 1);\n }\n rs.close();\n return result;\n\n } catch (Exception e) {\n System.out.println(e);\n } finally {\n DBResultSet.close(dbrs);\n }\n return result;\n }", "public interface ScheduleDao {\r\n\tpublic Schedule createSchedule(Calendar scheduleDate) throws DAOException;\r\n\tpublic Schedule findScheduleById(long scheduleId) throws DAOException;\r\n\tpublic List<Schedule> findSchedulesByDate(Calendar scheduleDate) throws DAOException;\r\n\tpublic List<Schedule> findAllSchedules() throws DAOException;\r\n\tpublic void updateSchedule(long scheduleId, Calendar newScheduleDate) throws DAOException;\r\n\tpublic void deleteScheduleById(long scheduleId) throws DAOException;\r\n\tpublic void deleteAllSchedules() throws DAOException;\r\n}", "public String getSchedule() {\n return schedule;\n }", "public Schedule getSchedule() {\r\n\t\treturn schedule;\r\n\t}", "public ScheduleType getScheduleType();", "public interface ScheduleService {\n BasicSchedule getBasicScheduleByHostelIdAndRoomType(long hostelId, RoomType type);\n\n /**\n * 获得最近一年的酒店基本计划\n *\n * @param hostelId\n * @return\n */\n List<BasicSchedule> getBasisSchedulesByHostelId(long hostelId);\n\n void modifyBasisSchedule(BasicSchedule basicSchedule);\n\n /**\n * 获得最近一年的酒店特殊计划\n *\n * @param hostelId\n * @return\n */\n List<SpecialSchedule> getSpecialScheduleByHostelId(long hostelId);\n\n void modifySpecialSchedule(SpecialSchedule specialSchedule);\n\n void addSpecialSchedule(SpecialSchedule specialSchedule);\n\n void deleteSpecialSchedule(SpecialSchedule specialSchedule);\n\n SpecialSchedule getSpecialSchedule(long hostelId, RoomType roomType, Date date);\n}", "private void loadScheduleList() {\n\n if (listTbagendamentos != null && !listTbagendamentos.isEmpty()) {\n scheduleAgendamento.clear();\n\n for (Tbagendamento agendamento : listTbagendamentos) {\n DefaultScheduleEvent defaultScheduleEvent = new DefaultScheduleEvent();\n defaultScheduleEvent.setTitle(agendamento.getIdcliente().getNmcliente());\n\n Calendar dtDataInicial = new GregorianCalendar();\n dtDataInicial.setTime(agendamento.getTmdataagendamento());\n\n defaultScheduleEvent.setStartDate(dtDataInicial.getTime());\n\n Calendar dtDataFinal = new GregorianCalendar();\n dtDataFinal.setTime(agendamento.getTmdataagendamento());\n dtDataFinal.set(Calendar.MINUTE, dtDataFinal.get(Calendar.MINUTE) + 30);\n\n defaultScheduleEvent.setEndDate(dtDataFinal.getTime());\n defaultScheduleEvent.setData(agendamento.getIdagendamento());\n scheduleAgendamento.addEvent(defaultScheduleEvent);\n }\n }\n }", "public Schedule() {\r\n }", "public void setSchedule(Schedule schedule) {\r\n\t\tthis.schedule = schedule;\r\n\t}", "List<WorkingSchedule> getByPlaceId(Long placeId);", "public ProgramScheduled getProgramScheduleById(int scheduleId);", "public ArrayList<TrainScheduleEntity> viewTrainSchedule(String dayType);", "java.lang.String getSnapshotCreationSchedule();", "io.opencannabis.schema.commerce.CommercialOrder.SchedulingType getScheduling();", "@Override\r\n\tpublic void doInitialSchedules() {\n\t}", "void setSchedule(java.lang.String schedule);", "ScheduleStartType getScheduleStart();", "public abstract void schedule();", "public void setSchedule(Schedule newSchedule) {\n\n schedule = newSchedule;\n }", "@Mapper\npublic interface VirtualRepayFlowMapper {\n @DataSource(\"bigdata2_jdb\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE update_time >= #{from_time} and update_time < #{end_time} and id>#{id} limit 1000\")\n List<VirtualRepayFlow> find(@Param(\"from_time\") String from_time,\n @Param(\"end_time\") String end_time,\n @Param(\"id\") long id);\n\n\n @DataSource(\"dmp\")\n @Insert(\"INSERT INTO virtual_repay_flow (id,uuid,virtual_productid,to_user,amount,interest,repay_status,repay_time,create_time,update_time) values\" +\n \"(#{id},#{uuid},#{virtual_productid},#{to_user},#{amount},#{interest},#{repay_status},#{repay_time},#{create_time},#{update_time})\")\n void insert(VirtualRepayFlow virtualRepayFlow);\n\n @DataSource(\"dmp\")\n @Delete(\"DELETE FROM repay_flow where update_time<#{update_time}\")\n void delete(@Param(\"update_time\") String update_time);\n\n @DataSource(\"dmp\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE id=#{id}\")\n VirtualRepayFlow getById(@Param(\"id\") long id);\n\n\n @DataSource(\"dmp\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE uuid=#{uuid}\")\n VirtualRepayFlow getByUuid(@Param(\"uuid\") String uuid);\n}", "public abstract void maintenanceSchedule() ;", "@Override\n public List<SurveillantSchedule> getSurveillantSchedule() {\n return surveillantRepository.getSurveillantSchedule();\n }", "long getScheduleID() {return mScheduleID; }", "com.google.cloud.gkebackup.v1.BackupPlan.Schedule getBackupSchedule();", "public String getScheduleRow() {\n\t\treturn uSRow;\n\t}", "public void setSchedule_id(int schedule_id) {\r\n this.schedule_id = schedule_id;\r\n }", "public void printSchedule(){\n String\n format =\n \"%-20s%-10s%-15s%\" +\n \"-20s%-25s%-10s%\" +\n \"-15s%-15s%-15s%n\";\n\n System.out.printf(format,\n \"Водитель\", \"Номер А/М\",\"Машина\", \"Дата и время\",\n \"Задание\", \"Кол-во\",\n \"Расстояние\", \"Цена\", \"Примечание\");\n System.out.println();\n\n\n\n List<TimeTable> l = driverScheduleReaderDAO.getTimeTable();\n TimeTable tPrev =l.get(0);\n for (TimeTable t: l){\n\n if (!t.getDriverName().equals(tPrev.getDriverName())) {\n\n System.out.println(\"***\");\n tPrev = t;\n\n } else if (t!=l.get(0))t.setDriverName(\" \");\n\n\n\n\n System.out.printf(format,\n t.getDriverName(), t.getCarId(), t.getCarBrand(),\n t.getBusyTime(), t.getOrder(), t.getNumOfEl(),\n t.getDistance(), t.getPrice(), t.getNote()\n );\n\n }\n\n //int\n\n\n\n\n //вывести на экран\n //отельным классом посчитать шанс поломки и предупредить\n }", "public void schedule(String id, String[] schedule) {\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic List<ISchedule> getSchedules() throws IOException {\n\t\tfinal String sql = \"SELECT * from record\";\n\t\tList<? extends ISchedule> result = this.queryDataList(Schedule.class,ISchedule.Props.class, sql);\n\t\treturn (List<ISchedule>) result;\t\t\n\t}", "public List<AllTimeSeasonBean> getAllTimeRecord(){\n String q = \"select new com.main.pcblroyals.bean.AllTimeSeasonBean( \" +\n \"sum(case when g.teamScore > g.opponentScore then 1 else 0 end), \" +\n \"sum(case when g.teamScore = g.opponentScore then 1 else 0 end), \" +\n \"sum(case when g.teamScore < g.opponentScore then 1 else 0 end) \" +\n \") \" +\n \"from seasons s \" +\n \"join games g on s.id = g.season.id \";\n Query query = entityManager.createQuery(q);\n return (List<AllTimeSeasonBean>) query.getResultList();\n }", "@Override\n public String getEndPoint() {\n return \"/v1/json/schedule\";\n }", "@GetMapping\n public List<ScheduleDTO> getAllSchedules() {\n List<Schedule> scheduleList = scheduleService.getAllSchedules();\n\n List<ScheduleDTO> scheduleDTOList = scheduleList.stream()\n .map(ScheduleController::convertScheduleToScheduleDTO)\n .collect(Collectors.toList());\n return scheduleDTOList;\n }", "public interface ScheduleListDao extends GenericDao<ScheduleList, Long> {\n\t\n\tpublic List<ScheduleList> findShceduleList(String scheduleId); \n\t\n\t /**\n * 自服务项列表\n * @return\n */\n public Page findScheduleList(String pageSize);\n\t\n}", "public void storeRegularDayTripStationScheduleWithRS();", "@MapperScan\npublic interface DSSettingMapper {\n\n @Insert(\"INSERT INTO ds_setting (dsId, dsAppointment2,dsAppointment3,outCoachIds,status,modifyTime)\" +\n \" VALUES(#{dsId},#{dsAppointment2},#{dsAppointment3},#{outCoachIds},#{status},NOW())\")\n int insertDssetting(DSSetting dsSetting);\n\n @Update(\"UPDATE ds_setting SET dsAppointment2 = #{dsAppointment2},\" +\n \" dsAppointment3 = #{dsAppointment3}, outCoachIds = #{outCoachIds}, \" +\n \"status = #{status}, modifyTime = NOW() \" +\n \"WHERE dsId = #{dsId}\")\n int updateDssetting(DSSetting dsSetting);\n\n @Select(\"SELECT * FROM ds_setting WHERE dsId = #{dsId}\")\n DSSetting findOneDSSetting(@Param(\"dsId\") Long dsId);\n}", "public String getScheduleExpression() {\n return this.scheduleExpression;\n }", "@Override\n\tpublic List<SchedulerJobEntity> getAllScheduledJobs() throws SchedulerException {\n\t\treturn schedulerRepository.findAll();\n\t}", "@Override\n\t\tpublic oep_ResponseInfo getTestscheduledetails(String id) {\n\t\t\t\n\t\t\t\n\t\t\tString query = \" SELECT a.`ques_master_id`,`is_test_started`,a.`id`,`sub_id`,a.`batch`,DATE_FORMAT(`testdate`,'%m/%d/%Y')newtestdate,a.`start_time`, a.`end_time`,a.`status`,b.`test_name`,`test_id`,\"\n\t\t\t\t\t+ \"HOUR(a.`start_time`)starthour,MINUTE(a.`start_time`)startminute, HOUR(a.`end_time`)endhour,MINUTE(a.`end_time`)endminute,\"\n\t\t\t\t\t+ \" DATE_FORMAT(`testdate`,'%d/%m/%Y')testdate, SUBSTRING_INDEX(a.`start_time`,' ',-1)startformatt,SUBSTRING_INDEX(a.`end_time`,' ',-1)endformatt,\"\n\t\t\t\t\t+ \"GROUP_CONCAT(f.`username`,' ',CASE WHEN `is_participant_start` = 2 THEN ' completed \\n' WHEN `is_participant_start` = 1 THEN 'Started \\n' ELSE 'Not started \\n'END)username,\"\n\t\t\t\t\t+ \"`is_participant_start`,h.`username`facname FROM `test_schedule` a JOIN `question_master` b ON a.`ques_master_id` = b.`id` \"\n\t\t\t\t\t+ \"JOIN `course_scheduling`c ON c.`cs_id`= a.`batch` JOIN `participants_registration_course_details`e ON e.`course_id`= c.`cs_id` \"\n\t\t\t\t\t+ \" JOIN `participants`f ON f.`participant_id`=e.`participant_id` \"\n\t\t\t\t\t+ \"LEFT JOIN `test_participants`g ON g.`part_id`= f.`participant_id` AND g.`ts_id`=a.`id`\"\n\t\t\t\t\t+ \" JOIN `faculty_master`h ON h.`faculty_id` = c.`faculty_name` WHERE a.`id`= \"+id+\" \";\n\t\t\t\n\t\t\t\n\t\t\tlog.info(query);\n\t\t\t\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tList<Object> List = jdbcTemplate.query(query, new RowMapper() {\n\t\t\t\tint count = 0;\n\t\t\t\t@Override\n\t\t\t\tpublic Object mapRow(ResultSet rs, int arg1) throws SQLException {\n\t\t\t\t\t\n\t\t\t\t\tMap<String, Object> map = new HashMap<String, Object>();\n\t\t\t\t\tmap.put(\"testid\", rs.getString(\"test_id\"));\n\t\t\t\t\tmap.put(\"startformat\", rs.getString(\"startformatt\"));\n\t\t\t\t\tmap.put(\"endformat\", rs.getString(\"endformatt\"));\t\n\t\t\t\t\tmap.put(\"facname\", rs.getString(\"facname\"));\n\t\t\t\t\tmap.put(\"quesid\", rs.getString(\"ques_master_id\"));\n\t\t\t\t\tmap.put(\"id\", rs.getString(\"id\"));\n\t\t\t\t\tmap.put(\"tsid\", rs.getString(\"id\"));\n\t\t\t\t\tmap.put(\"batch\", rs.getString(\"batch\"));\n\t\t\t\t\tmap.put(\"testdate\", rs.getString(\"testdate\"));\n\t\t\t\t\tmap.put(\"newtestdate\", rs.getString(\"newtestdate\"));\n\t\t\t\t\tmap.put(\"subid\", rs.getString(\"sub_id\"));\n\t\t\t\t\tmap.put(\"starthour\", rs.getString(\"starthour\"));\n\t\t\t\t\tmap.put(\"endhour\", rs.getString(\"endhour\"));\n\t\t\t\t\tmap.put(\"startminute\", rs.getString(\"startminute\"));\n\t\t\t\t\tmap.put(\"endminute\", rs.getString(\"endminute\"));\n\t\t\t\t\tmap.put(\"starttime\", rs.getString(\"start_time\"));\n\t\t\t\t\tmap.put(\"testname\", rs.getString(\"test_name\"));\n\t\t\t\t\tmap.put(\"username\", rs.getString(\"username\"));\n\t\t\t\t\tmap.put(\"starttest\", rs.getString(\"is_test_started\"));\n\t\t\t\t\tmap.put(\"participantstart\", rs.getString(\"is_participant_start\"));\n\t\t\t\t\tmap.put(\"endtime\", rs.getString(\"end_time\"));\n/*\t\t\t\t\t\n\t\t\t\t\tString submenuQuery = \"SELECT `part_id`,`imh_staus`,`username`,CONCAT(`username`,' ',CASE WHEN `imh_staus` = 0 \"\n\t\t\t\t\t\t\t+ \" THEN 'Certificate Not sent ' WHEN `imh_staus` = 1 THEN 'Certificate sent' \"\n\t\t\t\t\t\t\t+ \" ELSE 'Invalid 'END)status FROM `email_history`a \"\n\t\t\t\t\t\t\t+ \" JOIN `participants`b ON a.`part_id`=b.`participant_id` WHERE `ts_id` = \"+ rs.getString(\"id\");\t*/\n\t\t\t\t\t\n\t\t\t\t\tString submenuQuery = \" SELECT a.`ques_master_id`,`username`,`imh_staus`,`is_test_started`,a.`id`,a.`batch`,DATE_FORMAT(`testdate`,'%e/%c/%Y')testdate,a.`start_time`, a.`end_time`,a.`status`,b.`test_name`,`test_id`,\"\n\t\t\t\t\t\t\t+ \"CONCAT(`username`,' ',CASE WHEN `is_participant_start` = 2 THEN ' completed \\n' WHEN `is_participant_start` = 1 THEN 'Started \\n' ELSE 'Not started \\n'END)teststatus,\"\n\t\t\t\t\t\t\t+ \"`is_participant_start` FROM `test_schedule` a JOIN `question_master` b ON a.`ques_master_id` = b.`id` \"\n\t\t\t\t\t\t\t+ \"JOIN `course_scheduling`c ON c.`cs_id`= a.`batch` JOIN `participants_registration_course_details`e ON e.`course_id`= c.`cs_id` \"\n\t\t\t\t\t\t\t+ \" JOIN `participants`f ON f.`participant_id`=e.`participant_id` \"\n\t\t\t\t\t\t\t+ \"LEFT JOIN `test_participants`g ON g.`part_id`= f.`participant_id` AND g.`ts_id`=a.`id`\"\n\t\t\t\t\t\t\t+ \"JOIN `email_history`h ON h.`ts_id`= a.`id` WHERE a.`id`= \"+ rs.getString(\"id\");\n\t\t\t\t\t\n\t\t\t\t\t List<Object> submenuList = new ArrayList<Object>();\n\t\t\t\t\t submenuList = getPartStatusList(submenuQuery);\n\t\t\t\t\t map.put(\"submenuList\", submenuList);\n\t\t\t\t\t\n\t\t\t\t\tif(rs.getString(\"status\")!= null && rs.getString(\"status\").equals(\"1\")){\n\t\t\t\t\t\tmap.put(\"status\", \"Active\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tmap.put(\"status\", \"Inactive\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(rs.getString(\"is_test_started\")!= null && rs.getString(\"is_test_started\").equals(\"1\")){\n\t\t\t\t\t\tmap.put(\"teststarted\", \"Test Started\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tmap.put(\"teststarted\", \"Not started\");\n\t\t\t\t\t}\n\t\t\t\t\tmap.put(\"index\", count);\n\t\t\t\t\tcount++;\n\t\t\t\t\treturn map;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t});\n\t\t\t\n\t\t\n\t\t\t \n\t\t\t \n\t\t\tresponse.setResponseType(\"S\");\n\t\t\tresponse.setResponseObj(List);\n\t\t\tresponseInfo.setInventoryResponse(response);\n\t\t\treturn responseInfo;\n\t\t}", "public void createTempSpecialDayTrainSchedule(Timestamp date);", "public void generatePlan(Integer id,Date fromDate, Date toDate) throws Exception;", "@Override\r\n\tpublic List<Courseschedule> getCourseschedulesByClassroomId(int classroomId) {\n\t\tsession = sessionFactory.openSession();\r\n\t\tTransaction tran = session.beginTransaction();\r\n\t\tString hql = \"from Courseschedule where classroomId=:classroomId and state=:state\";\t\t\r\n\t\tList<Courseschedule> lists = session.createQuery(hql).setInteger(\"classroomId\", classroomId).setInteger(\"state\", 0).list();\r\n\t\ttran.commit();\r\n\t\tsession.close();\r\n\t\tlogger.debug(\"use the method named :getCourseschedulesByClassroomId(int classroomId)\");\r\n\t\tif (lists.size() > 0) {\r\n\t\t\treturn lists;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public void setSchedule(String timeframe) {\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic List<ScheduledFlights> retrieveScheduledFlights(String source, String destination) {\r\n\t\tQuery query = entityManager.createQuery(\"select s.scheduleId,s.source,s.destination,s.arrivaltime,s.departuretime,f.flightNumber,f.carrierName,f.seatCapacity from Schedule s JOIN ScheduledFlights sf ON s.scheduleId=sf.scheduleId JOIN Flight f on sf.flightId=f.flightNumber where schedule.source= :source AND schedule.destination=:destination\");\r\n\t\treturn query.getResultList();\r\n\t}", "@Override\r\n\tpublic boolean updateDate(ScheduleAdminModel scheduleAdminModel) throws ClassNotFoundException, SQLException {\n\t\r\n\t\tConnection connection=ConnectionManager.openConnection();\r\nPreparedStatement statement=\r\n connection.prepareStatement(\"update courses set start_date=?,end_date=? where course_name=?\");\r\nstatement.setString(1,scheduleAdminModel.getStartDate());\r\nstatement.setString(2,scheduleAdminModel.getEndDate());\r\nstatement.setString(3,scheduleAdminModel.getCourse_name());\r\n \r\n int rows=statement.executeUpdate();\r\n\tConnectionManager.closeConnection();\r\n\tif(rows>0)\r\n\t\treturn true;\r\n\t else \r\n\t return false;\r\n\t}", "void deschedule(ScheduledJob job);", "@Query(\"select :stopName from Timetable order by id\")\n List<Integer> selectStop(String stopName);", "public Date getScheduletime() {\r\n return scheduletime;\r\n }", "public List<Timetable> getAllTimetable() throws Exception;", "public abstract ArrayList<ScheduleTime> getScheduleForDay(int day, int month, int year);", "public void setSchedule(SpaceSchedule s) {\n\t\t\n\t}", "MMSchedule() {\n mScheduleID = MMUtilities.ID_DOES_NOT_EXIST;\n mOfMedicationID = 0;\n mForPersonID = 0;\n mTimeDue = 0;\n mStrategy = MMMedication.sSET_SCHEDULE_FOR_MEDICATION;\n }", "@Override\n public void fetchScheduled(RuleKey ruleKey) {\n }", "List<Schedule> selectByExampleWithRowbounds(ScheduleCriteria example, RowBounds rowBounds);", "Schedule getSchedule(String departure, String arrival, int depYear, int depMonth);", "public void setList(ScheduleInterface<Schedule> scheduleList){\n this.scheduleList = scheduleList;\n }", "int insert(Schedule record);", "private void reloadPlanTable() {\n\t\t\r\n\t}", "public Schedule getSchedule(String route, int direction){\r\n // A schedule to hold all the data returned from the query\r\n Schedule weekdayZero = new Schedule();\r\n // Fetch the route id given the route\r\n Cursor getData = getReadableDatabase().rawQuery(\"select _id from routes where route_long_name = '\" + route + \"'\", null);\r\n // Make sure to begin at the first element of the returned data\r\n getData.moveToFirst();\r\n // Store the Route Id\r\n int route_id = getData.getInt(0);\r\n // Calendar id: (90400,90448) - Monday To Friday\r\n final String query = \"select Routes.Route_long_Name, \" +\r\n \"Calendar._Id, Stops.Stop_Name, Stop_Times.Stop_Sequence, Stop_Times.Arrival_Time, routes.route_short_name \" +\r\n \"from Trips join Calendar on Trips.Service_Id=Calendar._Id \" +\r\n \"join Routes on Trips.Route_Id=Routes._Id \" +\r\n \"join Stop_Times on Trips._Id=Stop_Times.Trip_Id \" +\r\n \"join Stops on Stop_Times.Stop_Id=Stops._Id \" +\r\n \"where Calendar._Id in \" + getDayOfTheWeek() + \" \" +\r\n \"AND Trips.Route_Id = \" + route_id + \" \" +\r\n \"AND Trips.Direction_Id = \" + direction + \" \" +\r\n \"AND Stop_Times.Arrival_Time != '' \" +\r\n \"order by arrival_time asc\";\r\n getData.moveToFirst();\r\n getData = getReadableDatabase().rawQuery(query, null);\r\n while (getData.moveToNext()){\r\n weekdayZero.insertData(getData.getString(0), getData.getInt(1), getData.getString(2), getData.getInt(3)\r\n , getData.getString(4), getData.getString(5));\r\n }\r\n return weekdayZero;\r\n }", "public Date getScheduleTime() {\n return this.scheduleTime;\n }", "@Override\n\tpublic void setDateAndSchedule(String date, String schedule) {\n\n\t}", "public MonthlyValuesTable(Database database) \n {\n //Constructor calls DbTable's constructor\n super(database);\n setTableName(\"monthlyvalues\");\n }", "public Date getScheduleDate(){\r\n\t\treturn this.scheduleDate;\r\n\t}", "com.google.cloud.compute.v1.Scheduling getScheduling();", "TimerSchedule createTimerSchedule();", "public ApiSchedule[] getSchedules() {\n return this.schedules;\n }", "@Override\n\tpublic void setDateAndSchedule(String date, String schedule) {\n\t\t\n\t}", "public interface ITimetableDAO {\n\n /**\n * Get all the timetable element of <code>Timetable</code> object <br>\n *\n * @return all the list of <code>Timetable</code> object\n * @throws Exception\n */\n public List<Timetable> getAllTimetable() throws Exception;\n\n /**\n * Get all the list element has search of <code>Timetable</code> object<br>\n *\n * @param from is the date of <code>Timetable</code> object\n * @param to is the date of <code>Timetable</code> object\n * @return all the list has search of <code>Timetable</code> object\n * @throws Exception\n */\n public List<Timetable> getListSearch(String from, String to) throws Exception;\n\n /**\n * Add the all the element of Timetable to database\n *\n * @param date the date of Timetable object, it is an\n * <code>java.sql.Date</code>\n * @param slot the slot of Timetable object, it is an int\n * @param classes the classes of Timetable object, it is a string\n * @param teacher the teacher of Timetable object, it is a string\n * @param room the room of Timetable object, it is an int\n * @throws Exception\n */\n public void addTimetable(String date, String slot, String room, String teacher, String classes) throws Exception;\n\n /**\n * Function to check Timetable exist before add\n *\n * @param date the date of Timetable object, it is an\n * <code>java.sql.Date</code>\n * @param classes the slot of Timetable object, it is an int\n * @param room the room of Timetable object, it is a string\n * @return object of Timetable or null when check exist timetable\n * @throws Exception\n */\n public Timetable checkExistRoomTimeTable(String date, String classes, String room) throws Exception;\n\n /**\n * Paginate by number of timetable in <code>Timetable</code> object <br>\n *\n * @param pageIndex the index of page, it is an <code>int</code>\n * @param pageSize the size of page, it is an <code>int</code>\n * @return list of timetable, it is a <code>java.util.List</code> object.\n * @throws java.lang.Exception\n */\n public List<Timetable> pagging(int pageIndex, int pageSize) throws Exception;\n\n /**\n * Get number of result <code>Gallery</code> object by id\n *\n * @return number result of Gallery object, it is an int\n * @throws java.lang.Exception\n */\n public int numberOfResult() throws Exception;\n\n /**\n * Function to check Timetable exist before add\n *\n * @param date the date of Timetable object, it is an\n * <code>java.sql.Date</code>\n * @param classes the slot of Timetable object, it is an int\n * @param teacher the teacher of Timetable object, it is a string\n * @return object of Timetable or null when check exist timetable\n * @throws Exception\n */\n public Timetable checkExistTeacherTimeTable(String date, String classes, String teacher) throws Exception;\n\n}", "public void setScheduleTime(Date scheduleTime) {\n this.scheduleTime = scheduleTime;\n }", "@Scheduled(cron = \"0 30 06 * * *\",zone=\"America/New_York\")\n public void populateDatabase(){\n localDateTime = LocalDateTime.now();\n log.info(\"Executed now: \"+ localDateTime.toString());\n\n // Checks if table in database is empty\n // If not empty, clears the table and populates it with new data\n if(checkEmpty()==0)\n log.info(\"Empty Table\");\n else {\n deleteTableRecords();\n log.info(\"Table not Empty\");\n }\n\n URL url = null;\n\n // Get recent date, append it to URL and establish a connection\n String pattern = \"MM-dd-yyyy\";\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(pattern);\n Date date = Date.from(Instant.now().minus(Duration.ofDays(1)));\n\n\n String dateStr = simpleDateFormat.format(date);\n\n try {\n url = new URL(\"https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_daily_reports/\"+dateStr+\".csv\");\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n HttpURLConnection httpURLConnection = null;\n try {\n httpURLConnection = (HttpURLConnection) url.openConnection();\n } catch (IOException e) {\n e.printStackTrace();\n }\n int responseCode = 0;\n try {\n responseCode = httpURLConnection.getResponseCode();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n // On successful connection, read records line by line, store records in a table\n if(responseCode==200)\n {\n log.info(\"-- Successful Connection\");\n CSVReader reader = null;\n try {\n\n BufferedReader input = new BufferedReader(new InputStreamReader(httpURLConnection.getInputStream()),8192);\n reader = new CSVReader(input);\n String[] line;\n int skipFirstLine = 0;\n while ((line = reader.readNext()) != null)\n {\n if(skipFirstLine==0)\n {\n skipFirstLine++;\n continue;\n }\n\n DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern(\"yyyy-MM-dd HH:mm:ss\");\n\n Corona corona = new Corona();\n corona.setLastUpdate(LocalDateTime.parse(line[4],dateTimeFormatter));\n if(line[7].equals(\"\"))\n line[7]=\"0\";\n if(line[9].equals(\"\"))\n line[9]=\"0\";\n if(line[10].equals(\"\"))\n line[10]=\"0\";\n if(line[8].equals(\"\"))\n line[8]=\"0\";\n if(line[5].equals(\"\"))\n line[5]=\"0\";\n if(line[6].equals(\"\"))\n line[6]=\"0\";\n\n try {\n\n corona.setConfirmed(Long.valueOf(line[7]));\n corona.setRecovered(Long.valueOf(line[9]));\n corona.setActive(Long.valueOf(line[10]));\n corona.setDeaths(Long.valueOf(line[8]));\n corona.setLatitude(Double.valueOf(line[5]));\n corona.setLongitude(Double.valueOf(line[6]));\n } catch (NumberFormatException n)\n {\n n.printStackTrace();\n }\n corona.setCountry(line[3]);\n corona.setProvince(line[2]);\n corona.setCombinedKey(line[11]);\n\n\n\n coronaRepository.save(corona);\n log.info(corona.toString());\n\n\n }\n } catch (IOException | CsvValidationException e){\n e.printStackTrace();\n } finally {\n if(reader!=null)\n {\n try\n {\n reader.close();\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }\n }\n }\n }" ]
[ "0.6583093", "0.62134594", "0.614241", "0.6096163", "0.5869904", "0.5847323", "0.57736564", "0.5749311", "0.5730464", "0.5692395", "0.5691314", "0.5688622", "0.56733465", "0.5612722", "0.56103665", "0.5601378", "0.5594937", "0.5592374", "0.55869794", "0.5565921", "0.5544678", "0.5536762", "0.54946375", "0.5486974", "0.5463075", "0.54603523", "0.5455832", "0.54501116", "0.5445156", "0.5444004", "0.54084784", "0.53984827", "0.53917515", "0.53882813", "0.5388208", "0.5379494", "0.5379087", "0.53540117", "0.53484684", "0.53395474", "0.5337806", "0.53348553", "0.5326429", "0.531917", "0.5268467", "0.52664775", "0.52625597", "0.5256478", "0.5245691", "0.52455944", "0.5244061", "0.52287424", "0.52114916", "0.52114564", "0.5211055", "0.5206053", "0.5198744", "0.51842344", "0.51793087", "0.51495117", "0.5128515", "0.5107465", "0.510662", "0.51056135", "0.50985986", "0.5097996", "0.5095179", "0.5078455", "0.5071949", "0.5062537", "0.5048053", "0.5045186", "0.50360614", "0.5034012", "0.5032612", "0.5029762", "0.5028272", "0.5023831", "0.50128245", "0.50107193", "0.50062126", "0.49853772", "0.49811625", "0.4979578", "0.49694157", "0.4958413", "0.49560702", "0.49543408", "0.49509862", "0.49456567", "0.49427602", "0.49422622", "0.49398386", "0.4935916", "0.4927577", "0.49200827", "0.49151728", "0.49094823", "0.49054155", "0.49049369", "0.49020037" ]
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table schedule
public boolean isDistinct() { return distinct; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void generateSchedule(){\n\t\t\n\t}", "@Dao\npublic interface schedule_Dao {\n\n @Query(\"SELECT * FROM Schedule where student_id = :studentId\")\n List<Schedule> getSchedulesStudent(String studentId);\n\n\n\n @Query(\"SELECT COUNT(pkey) FROM Schedule where student_id = :student_id\")\n int getScheduleCount(String student_id);\n\n\n\n @Query(\"SELECT * FROM Schedule where student_id = :studentId and active = :active or active = :Active\")\n List<Schedule> getActiveSchedules(String active,String Active, String studentId);\n\n\n @Query(\"SELECT * FROM Schedule where `endtime_null` >= :date and `starttime_null` <= :date and student_id = :studentId and active = :active or active = :Active \")\n List<Schedule> getSelEvents(String active,String Active, String studentId, String date);\n\n\n @Query(\"SELECT * FROM Schedule where `endtime` >= :date and `starttime` <= :date and student_id = :studentId and active = :active or active = :Active \")\n List<Schedule> getSelEventTime(String active,String Active, String studentId, String date);\n\n\n @Insert\n void insertAll(Schedule... schedules);\n\n @Insert(onConflict = OnConflictStrategy.IGNORE)\n void insertOnConflict(Schedule... schedules);\n\n @Query(\"DELETE FROM Schedule\")\n public abstract int DeleteToken();\n\n @Query(\"DELETE FROM Schedule where pkey = :p_key and student_id = :studentId\")\n public abstract int DeleteSchedule(String p_key,String studentId );\n\n\n @Query(\"DELETE FROM Schedule where student_id= :studentId\")\n public abstract int DeleteScheduleAllUser(String studentId);\n\n\n}", "Schedule selectByPrimaryKey(Integer id);", "public interface JobScheduleMapper {\n @Select(\"select * from job_schedule where id = #{id}\")\n public JobSchedule findById(@Param(\"id\") long id);\n\n @Select(\"select status from job_schedule where id = #{id}\")\n public int getStatus(@Param(\"id\")long id);\n\n @Insert(\"insert into job_schedule (created_datetime, schedule_datetime, job_id, job_group_name, run_as, status) \" +\n \"values(#{created_datetime}, #{schedule_datetime}, #{job_id}, #{job_group_name}, #{run_as}, #{status})\")\n @Options(useGeneratedKeys = true, keyProperty = \"id\", keyColumn = \"id\")\n public void insert(JobSchedule jobSchedule);\n\n @Update(\"update job_schedule set status = #{status} where id = #{id}\")\n public void updateStatus(@Param(\"id\") long id, @Param(\"status\")int status);\n\n @Update(\"update job_schedule set status = \" + JobSchedule.JOB_SCHEDULE_STATUS_PENDING + \", retried = retried + 1 where id = #{id}\")\n public void retry(@Param(\"id\") long id);\n\n @Update(\"update job_schedule set next_job_schedule_id = #{nextId} where id = #{thisId}\")\n public void updateNextScheduleId(@Param(\"thisId\")long thisId, @Param(\"nextId\")long nextId);\n}", "Schedule createSchedule();", "java.lang.String getSchedule();", "public Schedule() {\n\t\t// TODO Auto-generated constructor stub\n\t}", "public void generateSchedule(){\r\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"yyyy-MM-dd HH:mm:ss\"); // Date formatter used when getting SQL records\r\n Database db = new Database();\r\n Connection connection = null;\r\n String sql = \"\";\r\n String report = \"\";\r\n \r\n // Retrieve the inputted consultant's id\r\n User user = (User) combo_user.getValue();\r\n int userID = user.getId();\r\n try{\r\n connection = db.jdbc_connection.connect();\r\n Statement statement = connection.createStatement(); // Set up statement\r\n \r\n sql = \"SELECT appointment.appointmentID, customer.customerName, appointment.title, appointment.description, appointment.location, appointment.contact, \" +\r\n \"appointment.type, appointment.url, appointment.start, appointment.end FROM appointment \" +\r\n \"INNER JOIN customer ON appointment.customerID=customer.customerID \" +\r\n \"WHERE userID = \" + userID + \" GROUP BY appointment.start\"; \r\n ResultSet results = statement.executeQuery(sql); \r\n \r\n while(results.next()) { \r\n String customer = results.getString(\"customerName\");\r\n String title = results.getString(\"title\");\r\n String description = results.getString(\"description\");\r\n String location = results.getString(\"location\");\r\n String contact = results.getString(\"contact\");\r\n String type = results.getString(\"type\");\r\n String url = results.getString(\"url\");\r\n String start = results.getString(\"start\");\r\n String end = results.getString(\"end\");\r\n \r\n \r\n // Convert the start and end DATETIMES to the user's current timezone \r\n java.time.LocalDateTime start_converted = convertToCurrentZone(java.time.LocalDateTime.parse(start.replace(\".0\", \"\"), formatter));\r\n String month = start_converted.getMonth().toString();\r\n int day = start_converted.getDayOfMonth();\r\n int hour = start_converted.getHour();\r\n String minute = String.valueOf(start_converted.getMinute());\r\n \r\n if(minute.length() == 1) minute += \"0\"; // Add following zeroes\r\n \r\n report += month + \" \" + day + \" at \" + hour + \":\" + minute + \" - appointment with \" + customer + \"\\n\";\r\n } \r\n }catch(Exception e) {\r\n System.out.println(e.getMessage());\r\n }finally {\r\n try {\r\n connection.close();\r\n } catch (Exception e2) { // Closing databse error handling\r\n System.err.println(e2.getMessage());\r\n }\r\n } \r\n \r\n text_schedule.setText(report);\r\n }", "public int getSchedule_id() {\r\n return schedule_id;\r\n }", "io.opencannabis.schema.commerce.CommercialOrder.OrderScheduling getScheduling();", "List<WorkingSchedule> getAll();", "@Override\n\t\tpublic List<ProgramScheduledBean> getAllScheduleProgram()\n\t\t\t\tthrows UniversityException {\n\t\t\treturn dao.getAllScheduleProgram();\n\t\t}", "public interface ScheduleDao {\n int crewTally();\n ArrayList<avail> getAllAvailibility();\n ArrayList<ShiftDetails> getShiftDetails();\n int updateShiftSwapStatus();\n}", "@Override\n\tpublic List<ScheduleTask> getScheduleTaskList() {\n\t\treturn (List<ScheduleTask>) find(\"from ScheduleTask\");\n\t}", "public List<UserRace> selectAllSchedule() {\n\t\tString sql = \"select \" + COLUMNS + \" FROM UserRace WHERE mode = '\"\n\t\t\t\t+ UserRace.MODE_SCHEDULE + \"'\";\n\t\treturn getJdbcTemplate().query(sql, new UserRaceRowMapper());\n\t}", "@Override\r\n\tpublic List<Courseschedule> getAllCourseschedules() {\n\t\tsession = sessionFactory.openSession();\r\n\t\tTransaction tran = session.beginTransaction();\r\n\t\tString hql = \"from Courseschedule where state=:state\";\r\n\t\tQuery query = session.createQuery(hql).setInteger(\"state\", 0);\r\n\t\tList<Courseschedule> lists = query.list();\r\n\t\ttran.commit();\r\n\t\tsession.close();\r\n\t\tlogger.debug(\"use the method named :getAllCourseschedules()\");\r\n\t\tif (lists.size() > 0) {\r\n\t\t\treturn lists;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "List<Schedule> selectByExample(ScheduleCriteria example);", "public static List<Schedule> fetchGeneratedSchedules() {\r\n if (!isComplete()) {\r\n return null;\r\n }\r\n\r\n return generatedSchedules;\r\n }", "@Override\n\tpublic void UpdateTableSchedule(Schedule current) {\n\t\tif (current == null)\n\t\t\treturn;\n\t\tCurrFitness = current.fitness;\n\t\tmyLabelSchedule.setText(\"Current Schedule Fitness: \" + CurrFitness);\n\t\tfor (int station = 1; station <= current.stations.size(); station++) {\n\t\t\tfor (int i = 0; i < dtm.getRowCount(); i++) {\n\t\t\t\tdtm.setValueAt(\"\", i, station);\n\t\t\t}\n\t\t\t// @Debug System.out.println(\"TableLength: \"+tableLength);\n\t\t\tStationSlot currentStation = current.stations.get(station - 1);\n\t\t\tif (currentStation.registeredCars.size() == 0) {\n\t\t\t\tcontinue;\n\t\t\t} else {\n\t\t\t\tLinkedList<CarSlot> cars = currentStation.registeredCars;\n\t\t\t\tfor (int i = 0; i < cars.size(); i++) {\n\t\t\t\t\tCarSlot car = cars.get(i);\n\t\t\t\t\tfloat start = car.startTime;\n\t\t\t\t\tfloat duration = car.duration;\n\t\t\t\t\tint rowNum = (int) (start * (60 / interval));\n\t\t\t\t\t// System.out.println(\"ColumNum: \"+rowNum);\n\t\t\t\t\twhile (duration > 0) {\n\t\t\t\t\t\tdtm.setValueAt(\"Car \" + car.name + \" [\" + car.priority + \"]\" + \" - \" + car.type, rowNum, station);\n\t\t\t\t\t\trowNum++;\n\t\t\t\t\t\tduration = (float) (duration - interval / 60f);\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n\tpublic List<ScheduledFlights> retrieveAllScheduledFlights() {\t\r\n\t\tTypedQuery<ScheduledFlights> query = entityManager.createQuery(\"select s from ScheduledFlights s, Flight f,Schedule sc where s.flight = f and s.schedule=sc\",ScheduledFlights.class);\r\n\t\tList<ScheduledFlights> flights = query.getResultList();\r\n\t\treturn flights;\r\n\t}", "public boolean generateSchedule(){\r\n return true;\r\n }", "public void existingSchedules(){\n \n scheduleModel = (DefaultTableModel) displayTable.getModel();\n \n currentSchedules = AccessDataFromXML.retrieveSchedules();\n for (Schedule schedule : currentSchedules){\n \n \n Object[] o = new Object[1];\n o[0] = schedule.getName();\n scheduleModel.addRow(o);\n }\n \n \n\n }", "public Schedule getSchedule() {\n\n return schedule;\n }", "private List<Schedules> getSchedulesList(){\r\n//\t\tList<Schedules> list = new ArrayList<Schedules>();\r\n//\t\tSchedules s1 = new Schedules(1, \"Baidu\", \"BUPT\", \"2013-09-11\", \"12:30\");\r\n//\t\tSchedules s2 = new Schedules(2, \"Sina\", \"BUPT\", \"2013-09-11\", \"13:50\");\r\n//\r\n//\t\tlist.add(s1);\r\n//\t\tlist.add(s2);\r\n\t\tif (scheduleList == null) {\r\n\t\t\tscheduleList = mAppContext.scheduleGetAll();\r\n\t\t}\r\n\t\treturn scheduleList;\r\n//\t\treturn list;\r\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\tpublic List<TimeTableBean> getTimeTable() {\n\t\treturn sessionFactory.openSession().createQuery(\"from TimeTableBean\").list();\r\n\t}", "@Override\n\tpublic List<ScheduleTask> getScheduleTaskList() {\n\t\treturn scheduleTaskDAO.getScheduleTaskList();\n\t}", "abstract public void computeSchedule();", "SchedulingPlay selectByPrimaryKey(Long id);", "public List<WorkoutSchedule> getSchedules() {\n if (schedules == null) {\n if (daoSession == null) {\n throw new DaoException(\"Entity is detached from DAO context\");\n }\n WorkoutScheduleDao targetDao = daoSession.getWorkoutScheduleDao();\n List<WorkoutSchedule> schedulesNew = targetDao._queryWorkout_Schedules(id);\n synchronized (this) {\n if(schedules == null) {\n schedules = schedulesNew;\n }\n }\n }\n return schedules;\n }", "private void refreshScheduleTable() {\n\t\tint gameIdx = 0;\n\t\tList<GameDetails> games = getGames();\n\t\tif (games != null) {\n\t\t\tfor (GameDetails game : games) {\n\t\t\t\tfor (int i = 0; i < 2; i++) {\n\t\t\t\t\tboolean isHome = (i == 0);\n\n\t\t\t\t\tTeamDetails team = (isHome ? game.getHomeTeam() : game.getAwayTeam()); \n\n\t\t\t\t\tboolean isSelected = false;\n\t\t\t\t\tboolean canSelect = true;\n\t\t\t\t\tif (getUiHandlers() != null) {\n\t\t\t\t\t\tisSelected = getUiHandlers().isTeamSelected(team);\n\t\t\t\t\t\tcanSelect = getUiHandlers().canSelectTeam(team);\n\t\t\t\t\t}\n\n\t\t\t\t\tString text = (isHome ? \"@ \" + team.getDisplayName() : team.getDisplayName());\n\n\t\t\t\t\tint row = rowFromGameIdx(gameIdx, isHome);\n\t\t\t\t\tint col = colFromGameIdx(gameIdx, isHome);\n\n\t\t\t\t\tsetScheduleCell(row, col, text, isSelected, canSelect);\t\n\t\t\t\t}\n\n\t\t\t\tgameIdx++;\n\t\t\t}\n\t\t}\n\n\t\t// Clear out any remaining cells (in case of bye weeks).\n\t\tfor (; gameIdx < NFLConstants.MAX_GAMES_PER_WEEK; gameIdx++) {\n\t\t\tfor (int i = 0; i < 2; i++) {\n\t\t\t\tboolean isHome = (i == 0);\n\t\t\t\t\n\t\t\t\tint row = rowFromGameIdx(gameIdx, isHome);\n\t\t\t\tint col = colFromGameIdx(gameIdx, isHome);\n\n\t\t\t\tsetScheduleCell(row, col, \"\", false, true);\n\t\t\t}\n\t\t}\n\t}", "public int getScheduleMethod() {\n return scheduleMethod;\n }", "private static Entity addScheduleDateDataEntities(final Schema schema) {\n Entity scheduleDateData = schema.addEntity(\"ScheduleDateData\");\n scheduleDateData.addIdProperty().primaryKey().autoincrement();\n scheduleDateData.addIntProperty(\"schedule_id\").notNull();\n scheduleDateData.addStringProperty(\"schedule_name\");\n scheduleDateData.addStringProperty(\"class_id\");\n scheduleDateData.addStringProperty(\"class_name\");\n scheduleDateData.addStringProperty(\"class_desc\");\n scheduleDateData.addStringProperty(\"schedule_type_id\");\n scheduleDateData.addStringProperty(\"schedule_type\");\n scheduleDateData.addStringProperty(\"schedule_start_date\");\n scheduleDateData.addStringProperty(\"schedule_start_time\");\n scheduleDateData.addStringProperty(\"schedule_end_time\");\n scheduleDateData.addLongProperty(\"schedule_start_time_long\");\n scheduleDateData.addLongProperty(\"schedule_end_time_long\");\n scheduleDateData.addIntProperty(\"schedule_monday\");\n scheduleDateData.addIntProperty(\"schedule_tuesday\");\n scheduleDateData.addIntProperty(\"schedule_wednesday\");\n scheduleDateData.addIntProperty(\"schedule_thursday\");\n scheduleDateData.addIntProperty(\"schedule_friday\");\n scheduleDateData.addIntProperty(\"schedule_saturday\");\n scheduleDateData.addIntProperty(\"schedule_sunday\");\n scheduleDateData.addStringProperty(\"schedule_frequency\");\n scheduleDateData.addIntProperty(\"is_cancelled\");\n scheduleDateData.addIntProperty(\"is_reservable\");\n scheduleDateData.addStringProperty(\"instructor_id\");\n scheduleDateData.addStringProperty(\"instructor_name\");\n scheduleDateData.addStringProperty(\"location_id\");\n scheduleDateData.addStringProperty(\"location_name\");\n\n return scheduleDateData;\n }", "public static String listScheduleIdSymbol(int tambahanBolehABs) {\n DBResultSet dbrs = null;\n String result = \"\";\n try {\n Date dtStart = new Date();\n Date dtEnd = new Date();\n String dtManual = \"\";\n boolean crossDay = false;\n //dtStart.setHours(dtStart.getHours()-tambahanBolehABs);\n dtStart = new Date(dtStart.getYear(), dtStart.getMonth(), (dtStart.getDate()), (dtStart.getHours() - tambahanBolehABs), dtStart.getMinutes(), dtStart.getSeconds());\n dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate()), (dtEnd.getHours() + tambahanBolehABs), dtEnd.getMinutes(), dtEnd.getSeconds());\n int jamMelebihiOneDay = 23;\n if (dtStart.getHours() == 0 || dtStart.getHours() == 23) {\n dtManual = \"23:\" + \"59:\" + \"59\";\n crossDay = true;\n jamMelebihiOneDay = jamMelebihiOneDay + tambahanBolehABs;\n }\n if (dtEnd.getHours() == 0) {\n dtManual = \"23:\" + \"59:\" + \"59\";\n crossDay = true;\n jamMelebihiOneDay = jamMelebihiOneDay + tambahanBolehABs;\n }\n\n// String dtManual=\"\";\n// if(dt.getHours()==0 || dt.getHours()+tambahanBolehABs>=23){\n// int idtManual = 24+tambahanBolehABs;\n// dtManual = idtManual+\":59:00\" ;\n// }else{\n// dt.setHours(dt.getHours()+tambahanBolehABs);\n// }\n\n String sql = \"SELECT * FROM \" + PstScheduleSymbol.TBL_HR_SCHEDULE_SYMBOL\n + \" WHERE \\\"00:00:00\\\" <=\" + PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT]\n + \" AND \" + PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN] + \"<= \\\"\"\n + \"23:59:00\"\n //+ (dtStart.getHours() == 0 || dtStart.getHours() == 23 || dtEnd.getHours() == 0 ? dtManual : Formater.formatDate(dtEnd, \"HH:mm:00\"))\n + \"\\\"\";\n //+ \" WHERE \" + \"(\"+PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN] +\" BETWEEN \\\"00:00:00\\\" AND \\\"\"+ (crossDay?dtManual:Formater.formatDate(dtStart, \"HH:mm:00\")) +\"\\\") OR (\"+PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT] +\" BETWEEN \\\"00:00:00\\\" AND \\\"\"+Formater.formatDate(dtEnd, \"HH:mm:00\")+\"\\\")\";\n\n dbrs = DBHandler.execQueryResult(sql);\n ResultSet rs = dbrs.getResultSet();\n while (rs.next()) {\n dtEnd = new Date();\n dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate()), (dtEnd.getHours() + tambahanBolehABs), dtEnd.getMinutes(), dtEnd.getSeconds());\n \n Date schTimeIn = rs.getTime(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN]);\n\n Date schTimeOut = rs.getTime(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT]);\n Date dtTmpSchTimeIn = new Date();\n Date dtTmpSchTimeOut = new Date();\n\n\n if (schTimeIn != null && schTimeOut != null) {\n schTimeOut = new Date(dtTmpSchTimeOut.getYear(), dtTmpSchTimeOut.getMonth(), dtTmpSchTimeOut.getDate(), schTimeOut.getHours(), schTimeOut.getMinutes());\n schTimeIn = new Date(dtTmpSchTimeIn.getYear(), dtTmpSchTimeIn.getMonth(), dtTmpSchTimeIn.getDate(), schTimeIn.getHours(), schTimeIn.getMinutes());\n\n Date dtCobaTimeOut = new Date(schTimeOut.getYear(), schTimeOut.getMonth(), (schTimeOut.getDate()), (schTimeOut.getHours() + tambahanBolehABs), schTimeOut.getMinutes(), schTimeOut.getSeconds());\n boolean melebihiHari=false;\n if (schTimeIn.getHours() == 0 || schTimeOut.getHours() == 0) {\n \n } else {\n if (dtCobaTimeOut.getDate() > schTimeIn.getDate()) {\n //dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate() + 1), (dtEnd.getHours()), dtEnd.getMinutes(), dtEnd.getSeconds());\n melebihiHari=true;\n }\n\n if ( (melebihiHari && dtEnd.getHours()<dtCobaTimeOut.getHours()) || schTimeIn.getTime() <= dtEnd.getTime() || (schTimeIn.getHours() > schTimeOut.getHours() && dtEnd.getTime() < schTimeOut.getTime())) {\n result = result + rs.getString(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_SCHEDULE_ID]) + \",\";\n }\n }\n\n\n\n\n\n }\n\n }\n if (result != null && result.length() > 0) {\n result = result.substring(0, result.length() - 1);\n }\n rs.close();\n return result;\n\n } catch (Exception e) {\n System.out.println(e);\n } finally {\n DBResultSet.close(dbrs);\n }\n return result;\n }", "public interface ScheduleDao {\r\n\tpublic Schedule createSchedule(Calendar scheduleDate) throws DAOException;\r\n\tpublic Schedule findScheduleById(long scheduleId) throws DAOException;\r\n\tpublic List<Schedule> findSchedulesByDate(Calendar scheduleDate) throws DAOException;\r\n\tpublic List<Schedule> findAllSchedules() throws DAOException;\r\n\tpublic void updateSchedule(long scheduleId, Calendar newScheduleDate) throws DAOException;\r\n\tpublic void deleteScheduleById(long scheduleId) throws DAOException;\r\n\tpublic void deleteAllSchedules() throws DAOException;\r\n}", "public String getSchedule() {\n return schedule;\n }", "public Schedule getSchedule() {\r\n\t\treturn schedule;\r\n\t}", "public ScheduleType getScheduleType();", "public interface ScheduleService {\n BasicSchedule getBasicScheduleByHostelIdAndRoomType(long hostelId, RoomType type);\n\n /**\n * 获得最近一年的酒店基本计划\n *\n * @param hostelId\n * @return\n */\n List<BasicSchedule> getBasisSchedulesByHostelId(long hostelId);\n\n void modifyBasisSchedule(BasicSchedule basicSchedule);\n\n /**\n * 获得最近一年的酒店特殊计划\n *\n * @param hostelId\n * @return\n */\n List<SpecialSchedule> getSpecialScheduleByHostelId(long hostelId);\n\n void modifySpecialSchedule(SpecialSchedule specialSchedule);\n\n void addSpecialSchedule(SpecialSchedule specialSchedule);\n\n void deleteSpecialSchedule(SpecialSchedule specialSchedule);\n\n SpecialSchedule getSpecialSchedule(long hostelId, RoomType roomType, Date date);\n}", "private void loadScheduleList() {\n\n if (listTbagendamentos != null && !listTbagendamentos.isEmpty()) {\n scheduleAgendamento.clear();\n\n for (Tbagendamento agendamento : listTbagendamentos) {\n DefaultScheduleEvent defaultScheduleEvent = new DefaultScheduleEvent();\n defaultScheduleEvent.setTitle(agendamento.getIdcliente().getNmcliente());\n\n Calendar dtDataInicial = new GregorianCalendar();\n dtDataInicial.setTime(agendamento.getTmdataagendamento());\n\n defaultScheduleEvent.setStartDate(dtDataInicial.getTime());\n\n Calendar dtDataFinal = new GregorianCalendar();\n dtDataFinal.setTime(agendamento.getTmdataagendamento());\n dtDataFinal.set(Calendar.MINUTE, dtDataFinal.get(Calendar.MINUTE) + 30);\n\n defaultScheduleEvent.setEndDate(dtDataFinal.getTime());\n defaultScheduleEvent.setData(agendamento.getIdagendamento());\n scheduleAgendamento.addEvent(defaultScheduleEvent);\n }\n }\n }", "public Schedule() {\r\n }", "public void setSchedule(Schedule schedule) {\r\n\t\tthis.schedule = schedule;\r\n\t}", "List<WorkingSchedule> getByPlaceId(Long placeId);", "public ProgramScheduled getProgramScheduleById(int scheduleId);", "public ArrayList<TrainScheduleEntity> viewTrainSchedule(String dayType);", "java.lang.String getSnapshotCreationSchedule();", "io.opencannabis.schema.commerce.CommercialOrder.SchedulingType getScheduling();", "@Override\r\n\tpublic void doInitialSchedules() {\n\t}", "void setSchedule(java.lang.String schedule);", "ScheduleStartType getScheduleStart();", "public abstract void schedule();", "public void setSchedule(Schedule newSchedule) {\n\n schedule = newSchedule;\n }", "@Mapper\npublic interface VirtualRepayFlowMapper {\n @DataSource(\"bigdata2_jdb\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE update_time >= #{from_time} and update_time < #{end_time} and id>#{id} limit 1000\")\n List<VirtualRepayFlow> find(@Param(\"from_time\") String from_time,\n @Param(\"end_time\") String end_time,\n @Param(\"id\") long id);\n\n\n @DataSource(\"dmp\")\n @Insert(\"INSERT INTO virtual_repay_flow (id,uuid,virtual_productid,to_user,amount,interest,repay_status,repay_time,create_time,update_time) values\" +\n \"(#{id},#{uuid},#{virtual_productid},#{to_user},#{amount},#{interest},#{repay_status},#{repay_time},#{create_time},#{update_time})\")\n void insert(VirtualRepayFlow virtualRepayFlow);\n\n @DataSource(\"dmp\")\n @Delete(\"DELETE FROM repay_flow where update_time<#{update_time}\")\n void delete(@Param(\"update_time\") String update_time);\n\n @DataSource(\"dmp\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE id=#{id}\")\n VirtualRepayFlow getById(@Param(\"id\") long id);\n\n\n @DataSource(\"dmp\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE uuid=#{uuid}\")\n VirtualRepayFlow getByUuid(@Param(\"uuid\") String uuid);\n}", "public abstract void maintenanceSchedule() ;", "@Override\n public List<SurveillantSchedule> getSurveillantSchedule() {\n return surveillantRepository.getSurveillantSchedule();\n }", "long getScheduleID() {return mScheduleID; }", "com.google.cloud.gkebackup.v1.BackupPlan.Schedule getBackupSchedule();", "public String getScheduleRow() {\n\t\treturn uSRow;\n\t}", "public void setSchedule_id(int schedule_id) {\r\n this.schedule_id = schedule_id;\r\n }", "public void printSchedule(){\n String\n format =\n \"%-20s%-10s%-15s%\" +\n \"-20s%-25s%-10s%\" +\n \"-15s%-15s%-15s%n\";\n\n System.out.printf(format,\n \"Водитель\", \"Номер А/М\",\"Машина\", \"Дата и время\",\n \"Задание\", \"Кол-во\",\n \"Расстояние\", \"Цена\", \"Примечание\");\n System.out.println();\n\n\n\n List<TimeTable> l = driverScheduleReaderDAO.getTimeTable();\n TimeTable tPrev =l.get(0);\n for (TimeTable t: l){\n\n if (!t.getDriverName().equals(tPrev.getDriverName())) {\n\n System.out.println(\"***\");\n tPrev = t;\n\n } else if (t!=l.get(0))t.setDriverName(\" \");\n\n\n\n\n System.out.printf(format,\n t.getDriverName(), t.getCarId(), t.getCarBrand(),\n t.getBusyTime(), t.getOrder(), t.getNumOfEl(),\n t.getDistance(), t.getPrice(), t.getNote()\n );\n\n }\n\n //int\n\n\n\n\n //вывести на экран\n //отельным классом посчитать шанс поломки и предупредить\n }", "public void schedule(String id, String[] schedule) {\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic List<ISchedule> getSchedules() throws IOException {\n\t\tfinal String sql = \"SELECT * from record\";\n\t\tList<? extends ISchedule> result = this.queryDataList(Schedule.class,ISchedule.Props.class, sql);\n\t\treturn (List<ISchedule>) result;\t\t\n\t}", "public List<AllTimeSeasonBean> getAllTimeRecord(){\n String q = \"select new com.main.pcblroyals.bean.AllTimeSeasonBean( \" +\n \"sum(case when g.teamScore > g.opponentScore then 1 else 0 end), \" +\n \"sum(case when g.teamScore = g.opponentScore then 1 else 0 end), \" +\n \"sum(case when g.teamScore < g.opponentScore then 1 else 0 end) \" +\n \") \" +\n \"from seasons s \" +\n \"join games g on s.id = g.season.id \";\n Query query = entityManager.createQuery(q);\n return (List<AllTimeSeasonBean>) query.getResultList();\n }", "@Override\n public String getEndPoint() {\n return \"/v1/json/schedule\";\n }", "@GetMapping\n public List<ScheduleDTO> getAllSchedules() {\n List<Schedule> scheduleList = scheduleService.getAllSchedules();\n\n List<ScheduleDTO> scheduleDTOList = scheduleList.stream()\n .map(ScheduleController::convertScheduleToScheduleDTO)\n .collect(Collectors.toList());\n return scheduleDTOList;\n }", "public interface ScheduleListDao extends GenericDao<ScheduleList, Long> {\n\t\n\tpublic List<ScheduleList> findShceduleList(String scheduleId); \n\t\n\t /**\n * 自服务项列表\n * @return\n */\n public Page findScheduleList(String pageSize);\n\t\n}", "public void storeRegularDayTripStationScheduleWithRS();", "@MapperScan\npublic interface DSSettingMapper {\n\n @Insert(\"INSERT INTO ds_setting (dsId, dsAppointment2,dsAppointment3,outCoachIds,status,modifyTime)\" +\n \" VALUES(#{dsId},#{dsAppointment2},#{dsAppointment3},#{outCoachIds},#{status},NOW())\")\n int insertDssetting(DSSetting dsSetting);\n\n @Update(\"UPDATE ds_setting SET dsAppointment2 = #{dsAppointment2},\" +\n \" dsAppointment3 = #{dsAppointment3}, outCoachIds = #{outCoachIds}, \" +\n \"status = #{status}, modifyTime = NOW() \" +\n \"WHERE dsId = #{dsId}\")\n int updateDssetting(DSSetting dsSetting);\n\n @Select(\"SELECT * FROM ds_setting WHERE dsId = #{dsId}\")\n DSSetting findOneDSSetting(@Param(\"dsId\") Long dsId);\n}", "public String getScheduleExpression() {\n return this.scheduleExpression;\n }", "@Override\n\tpublic List<SchedulerJobEntity> getAllScheduledJobs() throws SchedulerException {\n\t\treturn schedulerRepository.findAll();\n\t}", "@Override\n\t\tpublic oep_ResponseInfo getTestscheduledetails(String id) {\n\t\t\t\n\t\t\t\n\t\t\tString query = \" SELECT a.`ques_master_id`,`is_test_started`,a.`id`,`sub_id`,a.`batch`,DATE_FORMAT(`testdate`,'%m/%d/%Y')newtestdate,a.`start_time`, a.`end_time`,a.`status`,b.`test_name`,`test_id`,\"\n\t\t\t\t\t+ \"HOUR(a.`start_time`)starthour,MINUTE(a.`start_time`)startminute, HOUR(a.`end_time`)endhour,MINUTE(a.`end_time`)endminute,\"\n\t\t\t\t\t+ \" DATE_FORMAT(`testdate`,'%d/%m/%Y')testdate, SUBSTRING_INDEX(a.`start_time`,' ',-1)startformatt,SUBSTRING_INDEX(a.`end_time`,' ',-1)endformatt,\"\n\t\t\t\t\t+ \"GROUP_CONCAT(f.`username`,' ',CASE WHEN `is_participant_start` = 2 THEN ' completed \\n' WHEN `is_participant_start` = 1 THEN 'Started \\n' ELSE 'Not started \\n'END)username,\"\n\t\t\t\t\t+ \"`is_participant_start`,h.`username`facname FROM `test_schedule` a JOIN `question_master` b ON a.`ques_master_id` = b.`id` \"\n\t\t\t\t\t+ \"JOIN `course_scheduling`c ON c.`cs_id`= a.`batch` JOIN `participants_registration_course_details`e ON e.`course_id`= c.`cs_id` \"\n\t\t\t\t\t+ \" JOIN `participants`f ON f.`participant_id`=e.`participant_id` \"\n\t\t\t\t\t+ \"LEFT JOIN `test_participants`g ON g.`part_id`= f.`participant_id` AND g.`ts_id`=a.`id`\"\n\t\t\t\t\t+ \" JOIN `faculty_master`h ON h.`faculty_id` = c.`faculty_name` WHERE a.`id`= \"+id+\" \";\n\t\t\t\n\t\t\t\n\t\t\tlog.info(query);\n\t\t\t\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tList<Object> List = jdbcTemplate.query(query, new RowMapper() {\n\t\t\t\tint count = 0;\n\t\t\t\t@Override\n\t\t\t\tpublic Object mapRow(ResultSet rs, int arg1) throws SQLException {\n\t\t\t\t\t\n\t\t\t\t\tMap<String, Object> map = new HashMap<String, Object>();\n\t\t\t\t\tmap.put(\"testid\", rs.getString(\"test_id\"));\n\t\t\t\t\tmap.put(\"startformat\", rs.getString(\"startformatt\"));\n\t\t\t\t\tmap.put(\"endformat\", rs.getString(\"endformatt\"));\t\n\t\t\t\t\tmap.put(\"facname\", rs.getString(\"facname\"));\n\t\t\t\t\tmap.put(\"quesid\", rs.getString(\"ques_master_id\"));\n\t\t\t\t\tmap.put(\"id\", rs.getString(\"id\"));\n\t\t\t\t\tmap.put(\"tsid\", rs.getString(\"id\"));\n\t\t\t\t\tmap.put(\"batch\", rs.getString(\"batch\"));\n\t\t\t\t\tmap.put(\"testdate\", rs.getString(\"testdate\"));\n\t\t\t\t\tmap.put(\"newtestdate\", rs.getString(\"newtestdate\"));\n\t\t\t\t\tmap.put(\"subid\", rs.getString(\"sub_id\"));\n\t\t\t\t\tmap.put(\"starthour\", rs.getString(\"starthour\"));\n\t\t\t\t\tmap.put(\"endhour\", rs.getString(\"endhour\"));\n\t\t\t\t\tmap.put(\"startminute\", rs.getString(\"startminute\"));\n\t\t\t\t\tmap.put(\"endminute\", rs.getString(\"endminute\"));\n\t\t\t\t\tmap.put(\"starttime\", rs.getString(\"start_time\"));\n\t\t\t\t\tmap.put(\"testname\", rs.getString(\"test_name\"));\n\t\t\t\t\tmap.put(\"username\", rs.getString(\"username\"));\n\t\t\t\t\tmap.put(\"starttest\", rs.getString(\"is_test_started\"));\n\t\t\t\t\tmap.put(\"participantstart\", rs.getString(\"is_participant_start\"));\n\t\t\t\t\tmap.put(\"endtime\", rs.getString(\"end_time\"));\n/*\t\t\t\t\t\n\t\t\t\t\tString submenuQuery = \"SELECT `part_id`,`imh_staus`,`username`,CONCAT(`username`,' ',CASE WHEN `imh_staus` = 0 \"\n\t\t\t\t\t\t\t+ \" THEN 'Certificate Not sent ' WHEN `imh_staus` = 1 THEN 'Certificate sent' \"\n\t\t\t\t\t\t\t+ \" ELSE 'Invalid 'END)status FROM `email_history`a \"\n\t\t\t\t\t\t\t+ \" JOIN `participants`b ON a.`part_id`=b.`participant_id` WHERE `ts_id` = \"+ rs.getString(\"id\");\t*/\n\t\t\t\t\t\n\t\t\t\t\tString submenuQuery = \" SELECT a.`ques_master_id`,`username`,`imh_staus`,`is_test_started`,a.`id`,a.`batch`,DATE_FORMAT(`testdate`,'%e/%c/%Y')testdate,a.`start_time`, a.`end_time`,a.`status`,b.`test_name`,`test_id`,\"\n\t\t\t\t\t\t\t+ \"CONCAT(`username`,' ',CASE WHEN `is_participant_start` = 2 THEN ' completed \\n' WHEN `is_participant_start` = 1 THEN 'Started \\n' ELSE 'Not started \\n'END)teststatus,\"\n\t\t\t\t\t\t\t+ \"`is_participant_start` FROM `test_schedule` a JOIN `question_master` b ON a.`ques_master_id` = b.`id` \"\n\t\t\t\t\t\t\t+ \"JOIN `course_scheduling`c ON c.`cs_id`= a.`batch` JOIN `participants_registration_course_details`e ON e.`course_id`= c.`cs_id` \"\n\t\t\t\t\t\t\t+ \" JOIN `participants`f ON f.`participant_id`=e.`participant_id` \"\n\t\t\t\t\t\t\t+ \"LEFT JOIN `test_participants`g ON g.`part_id`= f.`participant_id` AND g.`ts_id`=a.`id`\"\n\t\t\t\t\t\t\t+ \"JOIN `email_history`h ON h.`ts_id`= a.`id` WHERE a.`id`= \"+ rs.getString(\"id\");\n\t\t\t\t\t\n\t\t\t\t\t List<Object> submenuList = new ArrayList<Object>();\n\t\t\t\t\t submenuList = getPartStatusList(submenuQuery);\n\t\t\t\t\t map.put(\"submenuList\", submenuList);\n\t\t\t\t\t\n\t\t\t\t\tif(rs.getString(\"status\")!= null && rs.getString(\"status\").equals(\"1\")){\n\t\t\t\t\t\tmap.put(\"status\", \"Active\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tmap.put(\"status\", \"Inactive\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(rs.getString(\"is_test_started\")!= null && rs.getString(\"is_test_started\").equals(\"1\")){\n\t\t\t\t\t\tmap.put(\"teststarted\", \"Test Started\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tmap.put(\"teststarted\", \"Not started\");\n\t\t\t\t\t}\n\t\t\t\t\tmap.put(\"index\", count);\n\t\t\t\t\tcount++;\n\t\t\t\t\treturn map;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t});\n\t\t\t\n\t\t\n\t\t\t \n\t\t\t \n\t\t\tresponse.setResponseType(\"S\");\n\t\t\tresponse.setResponseObj(List);\n\t\t\tresponseInfo.setInventoryResponse(response);\n\t\t\treturn responseInfo;\n\t\t}", "public void createTempSpecialDayTrainSchedule(Timestamp date);", "public void generatePlan(Integer id,Date fromDate, Date toDate) throws Exception;", "@Override\r\n\tpublic List<Courseschedule> getCourseschedulesByClassroomId(int classroomId) {\n\t\tsession = sessionFactory.openSession();\r\n\t\tTransaction tran = session.beginTransaction();\r\n\t\tString hql = \"from Courseschedule where classroomId=:classroomId and state=:state\";\t\t\r\n\t\tList<Courseschedule> lists = session.createQuery(hql).setInteger(\"classroomId\", classroomId).setInteger(\"state\", 0).list();\r\n\t\ttran.commit();\r\n\t\tsession.close();\r\n\t\tlogger.debug(\"use the method named :getCourseschedulesByClassroomId(int classroomId)\");\r\n\t\tif (lists.size() > 0) {\r\n\t\t\treturn lists;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public void setSchedule(String timeframe) {\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic List<ScheduledFlights> retrieveScheduledFlights(String source, String destination) {\r\n\t\tQuery query = entityManager.createQuery(\"select s.scheduleId,s.source,s.destination,s.arrivaltime,s.departuretime,f.flightNumber,f.carrierName,f.seatCapacity from Schedule s JOIN ScheduledFlights sf ON s.scheduleId=sf.scheduleId JOIN Flight f on sf.flightId=f.flightNumber where schedule.source= :source AND schedule.destination=:destination\");\r\n\t\treturn query.getResultList();\r\n\t}", "@Override\r\n\tpublic boolean updateDate(ScheduleAdminModel scheduleAdminModel) throws ClassNotFoundException, SQLException {\n\t\r\n\t\tConnection connection=ConnectionManager.openConnection();\r\nPreparedStatement statement=\r\n connection.prepareStatement(\"update courses set start_date=?,end_date=? where course_name=?\");\r\nstatement.setString(1,scheduleAdminModel.getStartDate());\r\nstatement.setString(2,scheduleAdminModel.getEndDate());\r\nstatement.setString(3,scheduleAdminModel.getCourse_name());\r\n \r\n int rows=statement.executeUpdate();\r\n\tConnectionManager.closeConnection();\r\n\tif(rows>0)\r\n\t\treturn true;\r\n\t else \r\n\t return false;\r\n\t}", "void deschedule(ScheduledJob job);", "@Query(\"select :stopName from Timetable order by id\")\n List<Integer> selectStop(String stopName);", "public Date getScheduletime() {\r\n return scheduletime;\r\n }", "public List<Timetable> getAllTimetable() throws Exception;", "public abstract ArrayList<ScheduleTime> getScheduleForDay(int day, int month, int year);", "public void setSchedule(SpaceSchedule s) {\n\t\t\n\t}", "MMSchedule() {\n mScheduleID = MMUtilities.ID_DOES_NOT_EXIST;\n mOfMedicationID = 0;\n mForPersonID = 0;\n mTimeDue = 0;\n mStrategy = MMMedication.sSET_SCHEDULE_FOR_MEDICATION;\n }", "@Override\n public void fetchScheduled(RuleKey ruleKey) {\n }", "List<Schedule> selectByExampleWithRowbounds(ScheduleCriteria example, RowBounds rowBounds);", "Schedule getSchedule(String departure, String arrival, int depYear, int depMonth);", "public void setList(ScheduleInterface<Schedule> scheduleList){\n this.scheduleList = scheduleList;\n }", "int insert(Schedule record);", "private void reloadPlanTable() {\n\t\t\r\n\t}", "public Schedule getSchedule(String route, int direction){\r\n // A schedule to hold all the data returned from the query\r\n Schedule weekdayZero = new Schedule();\r\n // Fetch the route id given the route\r\n Cursor getData = getReadableDatabase().rawQuery(\"select _id from routes where route_long_name = '\" + route + \"'\", null);\r\n // Make sure to begin at the first element of the returned data\r\n getData.moveToFirst();\r\n // Store the Route Id\r\n int route_id = getData.getInt(0);\r\n // Calendar id: (90400,90448) - Monday To Friday\r\n final String query = \"select Routes.Route_long_Name, \" +\r\n \"Calendar._Id, Stops.Stop_Name, Stop_Times.Stop_Sequence, Stop_Times.Arrival_Time, routes.route_short_name \" +\r\n \"from Trips join Calendar on Trips.Service_Id=Calendar._Id \" +\r\n \"join Routes on Trips.Route_Id=Routes._Id \" +\r\n \"join Stop_Times on Trips._Id=Stop_Times.Trip_Id \" +\r\n \"join Stops on Stop_Times.Stop_Id=Stops._Id \" +\r\n \"where Calendar._Id in \" + getDayOfTheWeek() + \" \" +\r\n \"AND Trips.Route_Id = \" + route_id + \" \" +\r\n \"AND Trips.Direction_Id = \" + direction + \" \" +\r\n \"AND Stop_Times.Arrival_Time != '' \" +\r\n \"order by arrival_time asc\";\r\n getData.moveToFirst();\r\n getData = getReadableDatabase().rawQuery(query, null);\r\n while (getData.moveToNext()){\r\n weekdayZero.insertData(getData.getString(0), getData.getInt(1), getData.getString(2), getData.getInt(3)\r\n , getData.getString(4), getData.getString(5));\r\n }\r\n return weekdayZero;\r\n }", "public Date getScheduleTime() {\n return this.scheduleTime;\n }", "@Override\n\tpublic void setDateAndSchedule(String date, String schedule) {\n\n\t}", "public MonthlyValuesTable(Database database) \n {\n //Constructor calls DbTable's constructor\n super(database);\n setTableName(\"monthlyvalues\");\n }", "public Date getScheduleDate(){\r\n\t\treturn this.scheduleDate;\r\n\t}", "com.google.cloud.compute.v1.Scheduling getScheduling();", "TimerSchedule createTimerSchedule();", "public ApiSchedule[] getSchedules() {\n return this.schedules;\n }", "@Override\n\tpublic void setDateAndSchedule(String date, String schedule) {\n\t\t\n\t}", "public interface ITimetableDAO {\n\n /**\n * Get all the timetable element of <code>Timetable</code> object <br>\n *\n * @return all the list of <code>Timetable</code> object\n * @throws Exception\n */\n public List<Timetable> getAllTimetable() throws Exception;\n\n /**\n * Get all the list element has search of <code>Timetable</code> object<br>\n *\n * @param from is the date of <code>Timetable</code> object\n * @param to is the date of <code>Timetable</code> object\n * @return all the list has search of <code>Timetable</code> object\n * @throws Exception\n */\n public List<Timetable> getListSearch(String from, String to) throws Exception;\n\n /**\n * Add the all the element of Timetable to database\n *\n * @param date the date of Timetable object, it is an\n * <code>java.sql.Date</code>\n * @param slot the slot of Timetable object, it is an int\n * @param classes the classes of Timetable object, it is a string\n * @param teacher the teacher of Timetable object, it is a string\n * @param room the room of Timetable object, it is an int\n * @throws Exception\n */\n public void addTimetable(String date, String slot, String room, String teacher, String classes) throws Exception;\n\n /**\n * Function to check Timetable exist before add\n *\n * @param date the date of Timetable object, it is an\n * <code>java.sql.Date</code>\n * @param classes the slot of Timetable object, it is an int\n * @param room the room of Timetable object, it is a string\n * @return object of Timetable or null when check exist timetable\n * @throws Exception\n */\n public Timetable checkExistRoomTimeTable(String date, String classes, String room) throws Exception;\n\n /**\n * Paginate by number of timetable in <code>Timetable</code> object <br>\n *\n * @param pageIndex the index of page, it is an <code>int</code>\n * @param pageSize the size of page, it is an <code>int</code>\n * @return list of timetable, it is a <code>java.util.List</code> object.\n * @throws java.lang.Exception\n */\n public List<Timetable> pagging(int pageIndex, int pageSize) throws Exception;\n\n /**\n * Get number of result <code>Gallery</code> object by id\n *\n * @return number result of Gallery object, it is an int\n * @throws java.lang.Exception\n */\n public int numberOfResult() throws Exception;\n\n /**\n * Function to check Timetable exist before add\n *\n * @param date the date of Timetable object, it is an\n * <code>java.sql.Date</code>\n * @param classes the slot of Timetable object, it is an int\n * @param teacher the teacher of Timetable object, it is a string\n * @return object of Timetable or null when check exist timetable\n * @throws Exception\n */\n public Timetable checkExistTeacherTimeTable(String date, String classes, String teacher) throws Exception;\n\n}", "public void setScheduleTime(Date scheduleTime) {\n this.scheduleTime = scheduleTime;\n }", "@Scheduled(cron = \"0 30 06 * * *\",zone=\"America/New_York\")\n public void populateDatabase(){\n localDateTime = LocalDateTime.now();\n log.info(\"Executed now: \"+ localDateTime.toString());\n\n // Checks if table in database is empty\n // If not empty, clears the table and populates it with new data\n if(checkEmpty()==0)\n log.info(\"Empty Table\");\n else {\n deleteTableRecords();\n log.info(\"Table not Empty\");\n }\n\n URL url = null;\n\n // Get recent date, append it to URL and establish a connection\n String pattern = \"MM-dd-yyyy\";\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(pattern);\n Date date = Date.from(Instant.now().minus(Duration.ofDays(1)));\n\n\n String dateStr = simpleDateFormat.format(date);\n\n try {\n url = new URL(\"https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_daily_reports/\"+dateStr+\".csv\");\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n HttpURLConnection httpURLConnection = null;\n try {\n httpURLConnection = (HttpURLConnection) url.openConnection();\n } catch (IOException e) {\n e.printStackTrace();\n }\n int responseCode = 0;\n try {\n responseCode = httpURLConnection.getResponseCode();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n // On successful connection, read records line by line, store records in a table\n if(responseCode==200)\n {\n log.info(\"-- Successful Connection\");\n CSVReader reader = null;\n try {\n\n BufferedReader input = new BufferedReader(new InputStreamReader(httpURLConnection.getInputStream()),8192);\n reader = new CSVReader(input);\n String[] line;\n int skipFirstLine = 0;\n while ((line = reader.readNext()) != null)\n {\n if(skipFirstLine==0)\n {\n skipFirstLine++;\n continue;\n }\n\n DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern(\"yyyy-MM-dd HH:mm:ss\");\n\n Corona corona = new Corona();\n corona.setLastUpdate(LocalDateTime.parse(line[4],dateTimeFormatter));\n if(line[7].equals(\"\"))\n line[7]=\"0\";\n if(line[9].equals(\"\"))\n line[9]=\"0\";\n if(line[10].equals(\"\"))\n line[10]=\"0\";\n if(line[8].equals(\"\"))\n line[8]=\"0\";\n if(line[5].equals(\"\"))\n line[5]=\"0\";\n if(line[6].equals(\"\"))\n line[6]=\"0\";\n\n try {\n\n corona.setConfirmed(Long.valueOf(line[7]));\n corona.setRecovered(Long.valueOf(line[9]));\n corona.setActive(Long.valueOf(line[10]));\n corona.setDeaths(Long.valueOf(line[8]));\n corona.setLatitude(Double.valueOf(line[5]));\n corona.setLongitude(Double.valueOf(line[6]));\n } catch (NumberFormatException n)\n {\n n.printStackTrace();\n }\n corona.setCountry(line[3]);\n corona.setProvince(line[2]);\n corona.setCombinedKey(line[11]);\n\n\n\n coronaRepository.save(corona);\n log.info(corona.toString());\n\n\n }\n } catch (IOException | CsvValidationException e){\n e.printStackTrace();\n } finally {\n if(reader!=null)\n {\n try\n {\n reader.close();\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }\n }\n }\n }" ]
[ "0.6583093", "0.62134594", "0.614241", "0.6096163", "0.5869904", "0.5847323", "0.57736564", "0.5749311", "0.5730464", "0.5692395", "0.5691314", "0.5688622", "0.56733465", "0.5612722", "0.56103665", "0.5601378", "0.5594937", "0.5592374", "0.55869794", "0.5565921", "0.5544678", "0.5536762", "0.54946375", "0.5486974", "0.5463075", "0.54603523", "0.5455832", "0.54501116", "0.5445156", "0.5444004", "0.54084784", "0.53984827", "0.53917515", "0.53882813", "0.5388208", "0.5379494", "0.5379087", "0.53540117", "0.53484684", "0.53395474", "0.5337806", "0.53348553", "0.5326429", "0.531917", "0.5268467", "0.52664775", "0.52625597", "0.5256478", "0.5245691", "0.52455944", "0.5244061", "0.52287424", "0.52114916", "0.52114564", "0.5211055", "0.5206053", "0.5198744", "0.51842344", "0.51793087", "0.51495117", "0.5128515", "0.5107465", "0.510662", "0.51056135", "0.50985986", "0.5097996", "0.5095179", "0.5078455", "0.5071949", "0.5062537", "0.5048053", "0.5045186", "0.50360614", "0.5034012", "0.5032612", "0.5029762", "0.5028272", "0.5023831", "0.50128245", "0.50107193", "0.50062126", "0.49853772", "0.49811625", "0.4979578", "0.49694157", "0.4958413", "0.49560702", "0.49543408", "0.49509862", "0.49456567", "0.49427602", "0.49422622", "0.49398386", "0.4935916", "0.4927577", "0.49200827", "0.49151728", "0.49094823", "0.49054155", "0.49049369", "0.49020037" ]
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table schedule
public List<Criteria> getOredCriteria() { return oredCriteria; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void generateSchedule(){\n\t\t\n\t}", "@Dao\npublic interface schedule_Dao {\n\n @Query(\"SELECT * FROM Schedule where student_id = :studentId\")\n List<Schedule> getSchedulesStudent(String studentId);\n\n\n\n @Query(\"SELECT COUNT(pkey) FROM Schedule where student_id = :student_id\")\n int getScheduleCount(String student_id);\n\n\n\n @Query(\"SELECT * FROM Schedule where student_id = :studentId and active = :active or active = :Active\")\n List<Schedule> getActiveSchedules(String active,String Active, String studentId);\n\n\n @Query(\"SELECT * FROM Schedule where `endtime_null` >= :date and `starttime_null` <= :date and student_id = :studentId and active = :active or active = :Active \")\n List<Schedule> getSelEvents(String active,String Active, String studentId, String date);\n\n\n @Query(\"SELECT * FROM Schedule where `endtime` >= :date and `starttime` <= :date and student_id = :studentId and active = :active or active = :Active \")\n List<Schedule> getSelEventTime(String active,String Active, String studentId, String date);\n\n\n @Insert\n void insertAll(Schedule... schedules);\n\n @Insert(onConflict = OnConflictStrategy.IGNORE)\n void insertOnConflict(Schedule... schedules);\n\n @Query(\"DELETE FROM Schedule\")\n public abstract int DeleteToken();\n\n @Query(\"DELETE FROM Schedule where pkey = :p_key and student_id = :studentId\")\n public abstract int DeleteSchedule(String p_key,String studentId );\n\n\n @Query(\"DELETE FROM Schedule where student_id= :studentId\")\n public abstract int DeleteScheduleAllUser(String studentId);\n\n\n}", "Schedule selectByPrimaryKey(Integer id);", "public interface JobScheduleMapper {\n @Select(\"select * from job_schedule where id = #{id}\")\n public JobSchedule findById(@Param(\"id\") long id);\n\n @Select(\"select status from job_schedule where id = #{id}\")\n public int getStatus(@Param(\"id\")long id);\n\n @Insert(\"insert into job_schedule (created_datetime, schedule_datetime, job_id, job_group_name, run_as, status) \" +\n \"values(#{created_datetime}, #{schedule_datetime}, #{job_id}, #{job_group_name}, #{run_as}, #{status})\")\n @Options(useGeneratedKeys = true, keyProperty = \"id\", keyColumn = \"id\")\n public void insert(JobSchedule jobSchedule);\n\n @Update(\"update job_schedule set status = #{status} where id = #{id}\")\n public void updateStatus(@Param(\"id\") long id, @Param(\"status\")int status);\n\n @Update(\"update job_schedule set status = \" + JobSchedule.JOB_SCHEDULE_STATUS_PENDING + \", retried = retried + 1 where id = #{id}\")\n public void retry(@Param(\"id\") long id);\n\n @Update(\"update job_schedule set next_job_schedule_id = #{nextId} where id = #{thisId}\")\n public void updateNextScheduleId(@Param(\"thisId\")long thisId, @Param(\"nextId\")long nextId);\n}", "Schedule createSchedule();", "java.lang.String getSchedule();", "public Schedule() {\n\t\t// TODO Auto-generated constructor stub\n\t}", "public void generateSchedule(){\r\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"yyyy-MM-dd HH:mm:ss\"); // Date formatter used when getting SQL records\r\n Database db = new Database();\r\n Connection connection = null;\r\n String sql = \"\";\r\n String report = \"\";\r\n \r\n // Retrieve the inputted consultant's id\r\n User user = (User) combo_user.getValue();\r\n int userID = user.getId();\r\n try{\r\n connection = db.jdbc_connection.connect();\r\n Statement statement = connection.createStatement(); // Set up statement\r\n \r\n sql = \"SELECT appointment.appointmentID, customer.customerName, appointment.title, appointment.description, appointment.location, appointment.contact, \" +\r\n \"appointment.type, appointment.url, appointment.start, appointment.end FROM appointment \" +\r\n \"INNER JOIN customer ON appointment.customerID=customer.customerID \" +\r\n \"WHERE userID = \" + userID + \" GROUP BY appointment.start\"; \r\n ResultSet results = statement.executeQuery(sql); \r\n \r\n while(results.next()) { \r\n String customer = results.getString(\"customerName\");\r\n String title = results.getString(\"title\");\r\n String description = results.getString(\"description\");\r\n String location = results.getString(\"location\");\r\n String contact = results.getString(\"contact\");\r\n String type = results.getString(\"type\");\r\n String url = results.getString(\"url\");\r\n String start = results.getString(\"start\");\r\n String end = results.getString(\"end\");\r\n \r\n \r\n // Convert the start and end DATETIMES to the user's current timezone \r\n java.time.LocalDateTime start_converted = convertToCurrentZone(java.time.LocalDateTime.parse(start.replace(\".0\", \"\"), formatter));\r\n String month = start_converted.getMonth().toString();\r\n int day = start_converted.getDayOfMonth();\r\n int hour = start_converted.getHour();\r\n String minute = String.valueOf(start_converted.getMinute());\r\n \r\n if(minute.length() == 1) minute += \"0\"; // Add following zeroes\r\n \r\n report += month + \" \" + day + \" at \" + hour + \":\" + minute + \" - appointment with \" + customer + \"\\n\";\r\n } \r\n }catch(Exception e) {\r\n System.out.println(e.getMessage());\r\n }finally {\r\n try {\r\n connection.close();\r\n } catch (Exception e2) { // Closing databse error handling\r\n System.err.println(e2.getMessage());\r\n }\r\n } \r\n \r\n text_schedule.setText(report);\r\n }", "public int getSchedule_id() {\r\n return schedule_id;\r\n }", "io.opencannabis.schema.commerce.CommercialOrder.OrderScheduling getScheduling();", "List<WorkingSchedule> getAll();", "@Override\n\t\tpublic List<ProgramScheduledBean> getAllScheduleProgram()\n\t\t\t\tthrows UniversityException {\n\t\t\treturn dao.getAllScheduleProgram();\n\t\t}", "public interface ScheduleDao {\n int crewTally();\n ArrayList<avail> getAllAvailibility();\n ArrayList<ShiftDetails> getShiftDetails();\n int updateShiftSwapStatus();\n}", "@Override\n\tpublic List<ScheduleTask> getScheduleTaskList() {\n\t\treturn (List<ScheduleTask>) find(\"from ScheduleTask\");\n\t}", "public List<UserRace> selectAllSchedule() {\n\t\tString sql = \"select \" + COLUMNS + \" FROM UserRace WHERE mode = '\"\n\t\t\t\t+ UserRace.MODE_SCHEDULE + \"'\";\n\t\treturn getJdbcTemplate().query(sql, new UserRaceRowMapper());\n\t}", "@Override\r\n\tpublic List<Courseschedule> getAllCourseschedules() {\n\t\tsession = sessionFactory.openSession();\r\n\t\tTransaction tran = session.beginTransaction();\r\n\t\tString hql = \"from Courseschedule where state=:state\";\r\n\t\tQuery query = session.createQuery(hql).setInteger(\"state\", 0);\r\n\t\tList<Courseschedule> lists = query.list();\r\n\t\ttran.commit();\r\n\t\tsession.close();\r\n\t\tlogger.debug(\"use the method named :getAllCourseschedules()\");\r\n\t\tif (lists.size() > 0) {\r\n\t\t\treturn lists;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "List<Schedule> selectByExample(ScheduleCriteria example);", "public static List<Schedule> fetchGeneratedSchedules() {\r\n if (!isComplete()) {\r\n return null;\r\n }\r\n\r\n return generatedSchedules;\r\n }", "@Override\n\tpublic void UpdateTableSchedule(Schedule current) {\n\t\tif (current == null)\n\t\t\treturn;\n\t\tCurrFitness = current.fitness;\n\t\tmyLabelSchedule.setText(\"Current Schedule Fitness: \" + CurrFitness);\n\t\tfor (int station = 1; station <= current.stations.size(); station++) {\n\t\t\tfor (int i = 0; i < dtm.getRowCount(); i++) {\n\t\t\t\tdtm.setValueAt(\"\", i, station);\n\t\t\t}\n\t\t\t// @Debug System.out.println(\"TableLength: \"+tableLength);\n\t\t\tStationSlot currentStation = current.stations.get(station - 1);\n\t\t\tif (currentStation.registeredCars.size() == 0) {\n\t\t\t\tcontinue;\n\t\t\t} else {\n\t\t\t\tLinkedList<CarSlot> cars = currentStation.registeredCars;\n\t\t\t\tfor (int i = 0; i < cars.size(); i++) {\n\t\t\t\t\tCarSlot car = cars.get(i);\n\t\t\t\t\tfloat start = car.startTime;\n\t\t\t\t\tfloat duration = car.duration;\n\t\t\t\t\tint rowNum = (int) (start * (60 / interval));\n\t\t\t\t\t// System.out.println(\"ColumNum: \"+rowNum);\n\t\t\t\t\twhile (duration > 0) {\n\t\t\t\t\t\tdtm.setValueAt(\"Car \" + car.name + \" [\" + car.priority + \"]\" + \" - \" + car.type, rowNum, station);\n\t\t\t\t\t\trowNum++;\n\t\t\t\t\t\tduration = (float) (duration - interval / 60f);\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n\tpublic List<ScheduledFlights> retrieveAllScheduledFlights() {\t\r\n\t\tTypedQuery<ScheduledFlights> query = entityManager.createQuery(\"select s from ScheduledFlights s, Flight f,Schedule sc where s.flight = f and s.schedule=sc\",ScheduledFlights.class);\r\n\t\tList<ScheduledFlights> flights = query.getResultList();\r\n\t\treturn flights;\r\n\t}", "public boolean generateSchedule(){\r\n return true;\r\n }", "public void existingSchedules(){\n \n scheduleModel = (DefaultTableModel) displayTable.getModel();\n \n currentSchedules = AccessDataFromXML.retrieveSchedules();\n for (Schedule schedule : currentSchedules){\n \n \n Object[] o = new Object[1];\n o[0] = schedule.getName();\n scheduleModel.addRow(o);\n }\n \n \n\n }", "public Schedule getSchedule() {\n\n return schedule;\n }", "private List<Schedules> getSchedulesList(){\r\n//\t\tList<Schedules> list = new ArrayList<Schedules>();\r\n//\t\tSchedules s1 = new Schedules(1, \"Baidu\", \"BUPT\", \"2013-09-11\", \"12:30\");\r\n//\t\tSchedules s2 = new Schedules(2, \"Sina\", \"BUPT\", \"2013-09-11\", \"13:50\");\r\n//\r\n//\t\tlist.add(s1);\r\n//\t\tlist.add(s2);\r\n\t\tif (scheduleList == null) {\r\n\t\t\tscheduleList = mAppContext.scheduleGetAll();\r\n\t\t}\r\n\t\treturn scheduleList;\r\n//\t\treturn list;\r\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\tpublic List<TimeTableBean> getTimeTable() {\n\t\treturn sessionFactory.openSession().createQuery(\"from TimeTableBean\").list();\r\n\t}", "@Override\n\tpublic List<ScheduleTask> getScheduleTaskList() {\n\t\treturn scheduleTaskDAO.getScheduleTaskList();\n\t}", "abstract public void computeSchedule();", "SchedulingPlay selectByPrimaryKey(Long id);", "public List<WorkoutSchedule> getSchedules() {\n if (schedules == null) {\n if (daoSession == null) {\n throw new DaoException(\"Entity is detached from DAO context\");\n }\n WorkoutScheduleDao targetDao = daoSession.getWorkoutScheduleDao();\n List<WorkoutSchedule> schedulesNew = targetDao._queryWorkout_Schedules(id);\n synchronized (this) {\n if(schedules == null) {\n schedules = schedulesNew;\n }\n }\n }\n return schedules;\n }", "private void refreshScheduleTable() {\n\t\tint gameIdx = 0;\n\t\tList<GameDetails> games = getGames();\n\t\tif (games != null) {\n\t\t\tfor (GameDetails game : games) {\n\t\t\t\tfor (int i = 0; i < 2; i++) {\n\t\t\t\t\tboolean isHome = (i == 0);\n\n\t\t\t\t\tTeamDetails team = (isHome ? game.getHomeTeam() : game.getAwayTeam()); \n\n\t\t\t\t\tboolean isSelected = false;\n\t\t\t\t\tboolean canSelect = true;\n\t\t\t\t\tif (getUiHandlers() != null) {\n\t\t\t\t\t\tisSelected = getUiHandlers().isTeamSelected(team);\n\t\t\t\t\t\tcanSelect = getUiHandlers().canSelectTeam(team);\n\t\t\t\t\t}\n\n\t\t\t\t\tString text = (isHome ? \"@ \" + team.getDisplayName() : team.getDisplayName());\n\n\t\t\t\t\tint row = rowFromGameIdx(gameIdx, isHome);\n\t\t\t\t\tint col = colFromGameIdx(gameIdx, isHome);\n\n\t\t\t\t\tsetScheduleCell(row, col, text, isSelected, canSelect);\t\n\t\t\t\t}\n\n\t\t\t\tgameIdx++;\n\t\t\t}\n\t\t}\n\n\t\t// Clear out any remaining cells (in case of bye weeks).\n\t\tfor (; gameIdx < NFLConstants.MAX_GAMES_PER_WEEK; gameIdx++) {\n\t\t\tfor (int i = 0; i < 2; i++) {\n\t\t\t\tboolean isHome = (i == 0);\n\t\t\t\t\n\t\t\t\tint row = rowFromGameIdx(gameIdx, isHome);\n\t\t\t\tint col = colFromGameIdx(gameIdx, isHome);\n\n\t\t\t\tsetScheduleCell(row, col, \"\", false, true);\n\t\t\t}\n\t\t}\n\t}", "public int getScheduleMethod() {\n return scheduleMethod;\n }", "private static Entity addScheduleDateDataEntities(final Schema schema) {\n Entity scheduleDateData = schema.addEntity(\"ScheduleDateData\");\n scheduleDateData.addIdProperty().primaryKey().autoincrement();\n scheduleDateData.addIntProperty(\"schedule_id\").notNull();\n scheduleDateData.addStringProperty(\"schedule_name\");\n scheduleDateData.addStringProperty(\"class_id\");\n scheduleDateData.addStringProperty(\"class_name\");\n scheduleDateData.addStringProperty(\"class_desc\");\n scheduleDateData.addStringProperty(\"schedule_type_id\");\n scheduleDateData.addStringProperty(\"schedule_type\");\n scheduleDateData.addStringProperty(\"schedule_start_date\");\n scheduleDateData.addStringProperty(\"schedule_start_time\");\n scheduleDateData.addStringProperty(\"schedule_end_time\");\n scheduleDateData.addLongProperty(\"schedule_start_time_long\");\n scheduleDateData.addLongProperty(\"schedule_end_time_long\");\n scheduleDateData.addIntProperty(\"schedule_monday\");\n scheduleDateData.addIntProperty(\"schedule_tuesday\");\n scheduleDateData.addIntProperty(\"schedule_wednesday\");\n scheduleDateData.addIntProperty(\"schedule_thursday\");\n scheduleDateData.addIntProperty(\"schedule_friday\");\n scheduleDateData.addIntProperty(\"schedule_saturday\");\n scheduleDateData.addIntProperty(\"schedule_sunday\");\n scheduleDateData.addStringProperty(\"schedule_frequency\");\n scheduleDateData.addIntProperty(\"is_cancelled\");\n scheduleDateData.addIntProperty(\"is_reservable\");\n scheduleDateData.addStringProperty(\"instructor_id\");\n scheduleDateData.addStringProperty(\"instructor_name\");\n scheduleDateData.addStringProperty(\"location_id\");\n scheduleDateData.addStringProperty(\"location_name\");\n\n return scheduleDateData;\n }", "public static String listScheduleIdSymbol(int tambahanBolehABs) {\n DBResultSet dbrs = null;\n String result = \"\";\n try {\n Date dtStart = new Date();\n Date dtEnd = new Date();\n String dtManual = \"\";\n boolean crossDay = false;\n //dtStart.setHours(dtStart.getHours()-tambahanBolehABs);\n dtStart = new Date(dtStart.getYear(), dtStart.getMonth(), (dtStart.getDate()), (dtStart.getHours() - tambahanBolehABs), dtStart.getMinutes(), dtStart.getSeconds());\n dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate()), (dtEnd.getHours() + tambahanBolehABs), dtEnd.getMinutes(), dtEnd.getSeconds());\n int jamMelebihiOneDay = 23;\n if (dtStart.getHours() == 0 || dtStart.getHours() == 23) {\n dtManual = \"23:\" + \"59:\" + \"59\";\n crossDay = true;\n jamMelebihiOneDay = jamMelebihiOneDay + tambahanBolehABs;\n }\n if (dtEnd.getHours() == 0) {\n dtManual = \"23:\" + \"59:\" + \"59\";\n crossDay = true;\n jamMelebihiOneDay = jamMelebihiOneDay + tambahanBolehABs;\n }\n\n// String dtManual=\"\";\n// if(dt.getHours()==0 || dt.getHours()+tambahanBolehABs>=23){\n// int idtManual = 24+tambahanBolehABs;\n// dtManual = idtManual+\":59:00\" ;\n// }else{\n// dt.setHours(dt.getHours()+tambahanBolehABs);\n// }\n\n String sql = \"SELECT * FROM \" + PstScheduleSymbol.TBL_HR_SCHEDULE_SYMBOL\n + \" WHERE \\\"00:00:00\\\" <=\" + PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT]\n + \" AND \" + PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN] + \"<= \\\"\"\n + \"23:59:00\"\n //+ (dtStart.getHours() == 0 || dtStart.getHours() == 23 || dtEnd.getHours() == 0 ? dtManual : Formater.formatDate(dtEnd, \"HH:mm:00\"))\n + \"\\\"\";\n //+ \" WHERE \" + \"(\"+PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN] +\" BETWEEN \\\"00:00:00\\\" AND \\\"\"+ (crossDay?dtManual:Formater.formatDate(dtStart, \"HH:mm:00\")) +\"\\\") OR (\"+PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT] +\" BETWEEN \\\"00:00:00\\\" AND \\\"\"+Formater.formatDate(dtEnd, \"HH:mm:00\")+\"\\\")\";\n\n dbrs = DBHandler.execQueryResult(sql);\n ResultSet rs = dbrs.getResultSet();\n while (rs.next()) {\n dtEnd = new Date();\n dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate()), (dtEnd.getHours() + tambahanBolehABs), dtEnd.getMinutes(), dtEnd.getSeconds());\n \n Date schTimeIn = rs.getTime(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN]);\n\n Date schTimeOut = rs.getTime(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT]);\n Date dtTmpSchTimeIn = new Date();\n Date dtTmpSchTimeOut = new Date();\n\n\n if (schTimeIn != null && schTimeOut != null) {\n schTimeOut = new Date(dtTmpSchTimeOut.getYear(), dtTmpSchTimeOut.getMonth(), dtTmpSchTimeOut.getDate(), schTimeOut.getHours(), schTimeOut.getMinutes());\n schTimeIn = new Date(dtTmpSchTimeIn.getYear(), dtTmpSchTimeIn.getMonth(), dtTmpSchTimeIn.getDate(), schTimeIn.getHours(), schTimeIn.getMinutes());\n\n Date dtCobaTimeOut = new Date(schTimeOut.getYear(), schTimeOut.getMonth(), (schTimeOut.getDate()), (schTimeOut.getHours() + tambahanBolehABs), schTimeOut.getMinutes(), schTimeOut.getSeconds());\n boolean melebihiHari=false;\n if (schTimeIn.getHours() == 0 || schTimeOut.getHours() == 0) {\n \n } else {\n if (dtCobaTimeOut.getDate() > schTimeIn.getDate()) {\n //dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate() + 1), (dtEnd.getHours()), dtEnd.getMinutes(), dtEnd.getSeconds());\n melebihiHari=true;\n }\n\n if ( (melebihiHari && dtEnd.getHours()<dtCobaTimeOut.getHours()) || schTimeIn.getTime() <= dtEnd.getTime() || (schTimeIn.getHours() > schTimeOut.getHours() && dtEnd.getTime() < schTimeOut.getTime())) {\n result = result + rs.getString(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_SCHEDULE_ID]) + \",\";\n }\n }\n\n\n\n\n\n }\n\n }\n if (result != null && result.length() > 0) {\n result = result.substring(0, result.length() - 1);\n }\n rs.close();\n return result;\n\n } catch (Exception e) {\n System.out.println(e);\n } finally {\n DBResultSet.close(dbrs);\n }\n return result;\n }", "public interface ScheduleDao {\r\n\tpublic Schedule createSchedule(Calendar scheduleDate) throws DAOException;\r\n\tpublic Schedule findScheduleById(long scheduleId) throws DAOException;\r\n\tpublic List<Schedule> findSchedulesByDate(Calendar scheduleDate) throws DAOException;\r\n\tpublic List<Schedule> findAllSchedules() throws DAOException;\r\n\tpublic void updateSchedule(long scheduleId, Calendar newScheduleDate) throws DAOException;\r\n\tpublic void deleteScheduleById(long scheduleId) throws DAOException;\r\n\tpublic void deleteAllSchedules() throws DAOException;\r\n}", "public String getSchedule() {\n return schedule;\n }", "public Schedule getSchedule() {\r\n\t\treturn schedule;\r\n\t}", "public ScheduleType getScheduleType();", "public interface ScheduleService {\n BasicSchedule getBasicScheduleByHostelIdAndRoomType(long hostelId, RoomType type);\n\n /**\n * 获得最近一年的酒店基本计划\n *\n * @param hostelId\n * @return\n */\n List<BasicSchedule> getBasisSchedulesByHostelId(long hostelId);\n\n void modifyBasisSchedule(BasicSchedule basicSchedule);\n\n /**\n * 获得最近一年的酒店特殊计划\n *\n * @param hostelId\n * @return\n */\n List<SpecialSchedule> getSpecialScheduleByHostelId(long hostelId);\n\n void modifySpecialSchedule(SpecialSchedule specialSchedule);\n\n void addSpecialSchedule(SpecialSchedule specialSchedule);\n\n void deleteSpecialSchedule(SpecialSchedule specialSchedule);\n\n SpecialSchedule getSpecialSchedule(long hostelId, RoomType roomType, Date date);\n}", "private void loadScheduleList() {\n\n if (listTbagendamentos != null && !listTbagendamentos.isEmpty()) {\n scheduleAgendamento.clear();\n\n for (Tbagendamento agendamento : listTbagendamentos) {\n DefaultScheduleEvent defaultScheduleEvent = new DefaultScheduleEvent();\n defaultScheduleEvent.setTitle(agendamento.getIdcliente().getNmcliente());\n\n Calendar dtDataInicial = new GregorianCalendar();\n dtDataInicial.setTime(agendamento.getTmdataagendamento());\n\n defaultScheduleEvent.setStartDate(dtDataInicial.getTime());\n\n Calendar dtDataFinal = new GregorianCalendar();\n dtDataFinal.setTime(agendamento.getTmdataagendamento());\n dtDataFinal.set(Calendar.MINUTE, dtDataFinal.get(Calendar.MINUTE) + 30);\n\n defaultScheduleEvent.setEndDate(dtDataFinal.getTime());\n defaultScheduleEvent.setData(agendamento.getIdagendamento());\n scheduleAgendamento.addEvent(defaultScheduleEvent);\n }\n }\n }", "public Schedule() {\r\n }", "public void setSchedule(Schedule schedule) {\r\n\t\tthis.schedule = schedule;\r\n\t}", "List<WorkingSchedule> getByPlaceId(Long placeId);", "public ProgramScheduled getProgramScheduleById(int scheduleId);", "public ArrayList<TrainScheduleEntity> viewTrainSchedule(String dayType);", "java.lang.String getSnapshotCreationSchedule();", "io.opencannabis.schema.commerce.CommercialOrder.SchedulingType getScheduling();", "@Override\r\n\tpublic void doInitialSchedules() {\n\t}", "void setSchedule(java.lang.String schedule);", "ScheduleStartType getScheduleStart();", "public abstract void schedule();", "public void setSchedule(Schedule newSchedule) {\n\n schedule = newSchedule;\n }", "@Mapper\npublic interface VirtualRepayFlowMapper {\n @DataSource(\"bigdata2_jdb\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE update_time >= #{from_time} and update_time < #{end_time} and id>#{id} limit 1000\")\n List<VirtualRepayFlow> find(@Param(\"from_time\") String from_time,\n @Param(\"end_time\") String end_time,\n @Param(\"id\") long id);\n\n\n @DataSource(\"dmp\")\n @Insert(\"INSERT INTO virtual_repay_flow (id,uuid,virtual_productid,to_user,amount,interest,repay_status,repay_time,create_time,update_time) values\" +\n \"(#{id},#{uuid},#{virtual_productid},#{to_user},#{amount},#{interest},#{repay_status},#{repay_time},#{create_time},#{update_time})\")\n void insert(VirtualRepayFlow virtualRepayFlow);\n\n @DataSource(\"dmp\")\n @Delete(\"DELETE FROM repay_flow where update_time<#{update_time}\")\n void delete(@Param(\"update_time\") String update_time);\n\n @DataSource(\"dmp\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE id=#{id}\")\n VirtualRepayFlow getById(@Param(\"id\") long id);\n\n\n @DataSource(\"dmp\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE uuid=#{uuid}\")\n VirtualRepayFlow getByUuid(@Param(\"uuid\") String uuid);\n}", "public abstract void maintenanceSchedule() ;", "@Override\n public List<SurveillantSchedule> getSurveillantSchedule() {\n return surveillantRepository.getSurveillantSchedule();\n }", "long getScheduleID() {return mScheduleID; }", "com.google.cloud.gkebackup.v1.BackupPlan.Schedule getBackupSchedule();", "public String getScheduleRow() {\n\t\treturn uSRow;\n\t}", "public void setSchedule_id(int schedule_id) {\r\n this.schedule_id = schedule_id;\r\n }", "public void printSchedule(){\n String\n format =\n \"%-20s%-10s%-15s%\" +\n \"-20s%-25s%-10s%\" +\n \"-15s%-15s%-15s%n\";\n\n System.out.printf(format,\n \"Водитель\", \"Номер А/М\",\"Машина\", \"Дата и время\",\n \"Задание\", \"Кол-во\",\n \"Расстояние\", \"Цена\", \"Примечание\");\n System.out.println();\n\n\n\n List<TimeTable> l = driverScheduleReaderDAO.getTimeTable();\n TimeTable tPrev =l.get(0);\n for (TimeTable t: l){\n\n if (!t.getDriverName().equals(tPrev.getDriverName())) {\n\n System.out.println(\"***\");\n tPrev = t;\n\n } else if (t!=l.get(0))t.setDriverName(\" \");\n\n\n\n\n System.out.printf(format,\n t.getDriverName(), t.getCarId(), t.getCarBrand(),\n t.getBusyTime(), t.getOrder(), t.getNumOfEl(),\n t.getDistance(), t.getPrice(), t.getNote()\n );\n\n }\n\n //int\n\n\n\n\n //вывести на экран\n //отельным классом посчитать шанс поломки и предупредить\n }", "public void schedule(String id, String[] schedule) {\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic List<ISchedule> getSchedules() throws IOException {\n\t\tfinal String sql = \"SELECT * from record\";\n\t\tList<? extends ISchedule> result = this.queryDataList(Schedule.class,ISchedule.Props.class, sql);\n\t\treturn (List<ISchedule>) result;\t\t\n\t}", "public List<AllTimeSeasonBean> getAllTimeRecord(){\n String q = \"select new com.main.pcblroyals.bean.AllTimeSeasonBean( \" +\n \"sum(case when g.teamScore > g.opponentScore then 1 else 0 end), \" +\n \"sum(case when g.teamScore = g.opponentScore then 1 else 0 end), \" +\n \"sum(case when g.teamScore < g.opponentScore then 1 else 0 end) \" +\n \") \" +\n \"from seasons s \" +\n \"join games g on s.id = g.season.id \";\n Query query = entityManager.createQuery(q);\n return (List<AllTimeSeasonBean>) query.getResultList();\n }", "@Override\n public String getEndPoint() {\n return \"/v1/json/schedule\";\n }", "@GetMapping\n public List<ScheduleDTO> getAllSchedules() {\n List<Schedule> scheduleList = scheduleService.getAllSchedules();\n\n List<ScheduleDTO> scheduleDTOList = scheduleList.stream()\n .map(ScheduleController::convertScheduleToScheduleDTO)\n .collect(Collectors.toList());\n return scheduleDTOList;\n }", "public interface ScheduleListDao extends GenericDao<ScheduleList, Long> {\n\t\n\tpublic List<ScheduleList> findShceduleList(String scheduleId); \n\t\n\t /**\n * 自服务项列表\n * @return\n */\n public Page findScheduleList(String pageSize);\n\t\n}", "public void storeRegularDayTripStationScheduleWithRS();", "@MapperScan\npublic interface DSSettingMapper {\n\n @Insert(\"INSERT INTO ds_setting (dsId, dsAppointment2,dsAppointment3,outCoachIds,status,modifyTime)\" +\n \" VALUES(#{dsId},#{dsAppointment2},#{dsAppointment3},#{outCoachIds},#{status},NOW())\")\n int insertDssetting(DSSetting dsSetting);\n\n @Update(\"UPDATE ds_setting SET dsAppointment2 = #{dsAppointment2},\" +\n \" dsAppointment3 = #{dsAppointment3}, outCoachIds = #{outCoachIds}, \" +\n \"status = #{status}, modifyTime = NOW() \" +\n \"WHERE dsId = #{dsId}\")\n int updateDssetting(DSSetting dsSetting);\n\n @Select(\"SELECT * FROM ds_setting WHERE dsId = #{dsId}\")\n DSSetting findOneDSSetting(@Param(\"dsId\") Long dsId);\n}", "public String getScheduleExpression() {\n return this.scheduleExpression;\n }", "@Override\n\tpublic List<SchedulerJobEntity> getAllScheduledJobs() throws SchedulerException {\n\t\treturn schedulerRepository.findAll();\n\t}", "@Override\n\t\tpublic oep_ResponseInfo getTestscheduledetails(String id) {\n\t\t\t\n\t\t\t\n\t\t\tString query = \" SELECT a.`ques_master_id`,`is_test_started`,a.`id`,`sub_id`,a.`batch`,DATE_FORMAT(`testdate`,'%m/%d/%Y')newtestdate,a.`start_time`, a.`end_time`,a.`status`,b.`test_name`,`test_id`,\"\n\t\t\t\t\t+ \"HOUR(a.`start_time`)starthour,MINUTE(a.`start_time`)startminute, HOUR(a.`end_time`)endhour,MINUTE(a.`end_time`)endminute,\"\n\t\t\t\t\t+ \" DATE_FORMAT(`testdate`,'%d/%m/%Y')testdate, SUBSTRING_INDEX(a.`start_time`,' ',-1)startformatt,SUBSTRING_INDEX(a.`end_time`,' ',-1)endformatt,\"\n\t\t\t\t\t+ \"GROUP_CONCAT(f.`username`,' ',CASE WHEN `is_participant_start` = 2 THEN ' completed \\n' WHEN `is_participant_start` = 1 THEN 'Started \\n' ELSE 'Not started \\n'END)username,\"\n\t\t\t\t\t+ \"`is_participant_start`,h.`username`facname FROM `test_schedule` a JOIN `question_master` b ON a.`ques_master_id` = b.`id` \"\n\t\t\t\t\t+ \"JOIN `course_scheduling`c ON c.`cs_id`= a.`batch` JOIN `participants_registration_course_details`e ON e.`course_id`= c.`cs_id` \"\n\t\t\t\t\t+ \" JOIN `participants`f ON f.`participant_id`=e.`participant_id` \"\n\t\t\t\t\t+ \"LEFT JOIN `test_participants`g ON g.`part_id`= f.`participant_id` AND g.`ts_id`=a.`id`\"\n\t\t\t\t\t+ \" JOIN `faculty_master`h ON h.`faculty_id` = c.`faculty_name` WHERE a.`id`= \"+id+\" \";\n\t\t\t\n\t\t\t\n\t\t\tlog.info(query);\n\t\t\t\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tList<Object> List = jdbcTemplate.query(query, new RowMapper() {\n\t\t\t\tint count = 0;\n\t\t\t\t@Override\n\t\t\t\tpublic Object mapRow(ResultSet rs, int arg1) throws SQLException {\n\t\t\t\t\t\n\t\t\t\t\tMap<String, Object> map = new HashMap<String, Object>();\n\t\t\t\t\tmap.put(\"testid\", rs.getString(\"test_id\"));\n\t\t\t\t\tmap.put(\"startformat\", rs.getString(\"startformatt\"));\n\t\t\t\t\tmap.put(\"endformat\", rs.getString(\"endformatt\"));\t\n\t\t\t\t\tmap.put(\"facname\", rs.getString(\"facname\"));\n\t\t\t\t\tmap.put(\"quesid\", rs.getString(\"ques_master_id\"));\n\t\t\t\t\tmap.put(\"id\", rs.getString(\"id\"));\n\t\t\t\t\tmap.put(\"tsid\", rs.getString(\"id\"));\n\t\t\t\t\tmap.put(\"batch\", rs.getString(\"batch\"));\n\t\t\t\t\tmap.put(\"testdate\", rs.getString(\"testdate\"));\n\t\t\t\t\tmap.put(\"newtestdate\", rs.getString(\"newtestdate\"));\n\t\t\t\t\tmap.put(\"subid\", rs.getString(\"sub_id\"));\n\t\t\t\t\tmap.put(\"starthour\", rs.getString(\"starthour\"));\n\t\t\t\t\tmap.put(\"endhour\", rs.getString(\"endhour\"));\n\t\t\t\t\tmap.put(\"startminute\", rs.getString(\"startminute\"));\n\t\t\t\t\tmap.put(\"endminute\", rs.getString(\"endminute\"));\n\t\t\t\t\tmap.put(\"starttime\", rs.getString(\"start_time\"));\n\t\t\t\t\tmap.put(\"testname\", rs.getString(\"test_name\"));\n\t\t\t\t\tmap.put(\"username\", rs.getString(\"username\"));\n\t\t\t\t\tmap.put(\"starttest\", rs.getString(\"is_test_started\"));\n\t\t\t\t\tmap.put(\"participantstart\", rs.getString(\"is_participant_start\"));\n\t\t\t\t\tmap.put(\"endtime\", rs.getString(\"end_time\"));\n/*\t\t\t\t\t\n\t\t\t\t\tString submenuQuery = \"SELECT `part_id`,`imh_staus`,`username`,CONCAT(`username`,' ',CASE WHEN `imh_staus` = 0 \"\n\t\t\t\t\t\t\t+ \" THEN 'Certificate Not sent ' WHEN `imh_staus` = 1 THEN 'Certificate sent' \"\n\t\t\t\t\t\t\t+ \" ELSE 'Invalid 'END)status FROM `email_history`a \"\n\t\t\t\t\t\t\t+ \" JOIN `participants`b ON a.`part_id`=b.`participant_id` WHERE `ts_id` = \"+ rs.getString(\"id\");\t*/\n\t\t\t\t\t\n\t\t\t\t\tString submenuQuery = \" SELECT a.`ques_master_id`,`username`,`imh_staus`,`is_test_started`,a.`id`,a.`batch`,DATE_FORMAT(`testdate`,'%e/%c/%Y')testdate,a.`start_time`, a.`end_time`,a.`status`,b.`test_name`,`test_id`,\"\n\t\t\t\t\t\t\t+ \"CONCAT(`username`,' ',CASE WHEN `is_participant_start` = 2 THEN ' completed \\n' WHEN `is_participant_start` = 1 THEN 'Started \\n' ELSE 'Not started \\n'END)teststatus,\"\n\t\t\t\t\t\t\t+ \"`is_participant_start` FROM `test_schedule` a JOIN `question_master` b ON a.`ques_master_id` = b.`id` \"\n\t\t\t\t\t\t\t+ \"JOIN `course_scheduling`c ON c.`cs_id`= a.`batch` JOIN `participants_registration_course_details`e ON e.`course_id`= c.`cs_id` \"\n\t\t\t\t\t\t\t+ \" JOIN `participants`f ON f.`participant_id`=e.`participant_id` \"\n\t\t\t\t\t\t\t+ \"LEFT JOIN `test_participants`g ON g.`part_id`= f.`participant_id` AND g.`ts_id`=a.`id`\"\n\t\t\t\t\t\t\t+ \"JOIN `email_history`h ON h.`ts_id`= a.`id` WHERE a.`id`= \"+ rs.getString(\"id\");\n\t\t\t\t\t\n\t\t\t\t\t List<Object> submenuList = new ArrayList<Object>();\n\t\t\t\t\t submenuList = getPartStatusList(submenuQuery);\n\t\t\t\t\t map.put(\"submenuList\", submenuList);\n\t\t\t\t\t\n\t\t\t\t\tif(rs.getString(\"status\")!= null && rs.getString(\"status\").equals(\"1\")){\n\t\t\t\t\t\tmap.put(\"status\", \"Active\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tmap.put(\"status\", \"Inactive\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(rs.getString(\"is_test_started\")!= null && rs.getString(\"is_test_started\").equals(\"1\")){\n\t\t\t\t\t\tmap.put(\"teststarted\", \"Test Started\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tmap.put(\"teststarted\", \"Not started\");\n\t\t\t\t\t}\n\t\t\t\t\tmap.put(\"index\", count);\n\t\t\t\t\tcount++;\n\t\t\t\t\treturn map;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t});\n\t\t\t\n\t\t\n\t\t\t \n\t\t\t \n\t\t\tresponse.setResponseType(\"S\");\n\t\t\tresponse.setResponseObj(List);\n\t\t\tresponseInfo.setInventoryResponse(response);\n\t\t\treturn responseInfo;\n\t\t}", "public void createTempSpecialDayTrainSchedule(Timestamp date);", "public void generatePlan(Integer id,Date fromDate, Date toDate) throws Exception;", "@Override\r\n\tpublic List<Courseschedule> getCourseschedulesByClassroomId(int classroomId) {\n\t\tsession = sessionFactory.openSession();\r\n\t\tTransaction tran = session.beginTransaction();\r\n\t\tString hql = \"from Courseschedule where classroomId=:classroomId and state=:state\";\t\t\r\n\t\tList<Courseschedule> lists = session.createQuery(hql).setInteger(\"classroomId\", classroomId).setInteger(\"state\", 0).list();\r\n\t\ttran.commit();\r\n\t\tsession.close();\r\n\t\tlogger.debug(\"use the method named :getCourseschedulesByClassroomId(int classroomId)\");\r\n\t\tif (lists.size() > 0) {\r\n\t\t\treturn lists;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public void setSchedule(String timeframe) {\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic List<ScheduledFlights> retrieveScheduledFlights(String source, String destination) {\r\n\t\tQuery query = entityManager.createQuery(\"select s.scheduleId,s.source,s.destination,s.arrivaltime,s.departuretime,f.flightNumber,f.carrierName,f.seatCapacity from Schedule s JOIN ScheduledFlights sf ON s.scheduleId=sf.scheduleId JOIN Flight f on sf.flightId=f.flightNumber where schedule.source= :source AND schedule.destination=:destination\");\r\n\t\treturn query.getResultList();\r\n\t}", "@Override\r\n\tpublic boolean updateDate(ScheduleAdminModel scheduleAdminModel) throws ClassNotFoundException, SQLException {\n\t\r\n\t\tConnection connection=ConnectionManager.openConnection();\r\nPreparedStatement statement=\r\n connection.prepareStatement(\"update courses set start_date=?,end_date=? where course_name=?\");\r\nstatement.setString(1,scheduleAdminModel.getStartDate());\r\nstatement.setString(2,scheduleAdminModel.getEndDate());\r\nstatement.setString(3,scheduleAdminModel.getCourse_name());\r\n \r\n int rows=statement.executeUpdate();\r\n\tConnectionManager.closeConnection();\r\n\tif(rows>0)\r\n\t\treturn true;\r\n\t else \r\n\t return false;\r\n\t}", "void deschedule(ScheduledJob job);", "@Query(\"select :stopName from Timetable order by id\")\n List<Integer> selectStop(String stopName);", "public Date getScheduletime() {\r\n return scheduletime;\r\n }", "public List<Timetable> getAllTimetable() throws Exception;", "public abstract ArrayList<ScheduleTime> getScheduleForDay(int day, int month, int year);", "public void setSchedule(SpaceSchedule s) {\n\t\t\n\t}", "MMSchedule() {\n mScheduleID = MMUtilities.ID_DOES_NOT_EXIST;\n mOfMedicationID = 0;\n mForPersonID = 0;\n mTimeDue = 0;\n mStrategy = MMMedication.sSET_SCHEDULE_FOR_MEDICATION;\n }", "@Override\n public void fetchScheduled(RuleKey ruleKey) {\n }", "List<Schedule> selectByExampleWithRowbounds(ScheduleCriteria example, RowBounds rowBounds);", "Schedule getSchedule(String departure, String arrival, int depYear, int depMonth);", "public void setList(ScheduleInterface<Schedule> scheduleList){\n this.scheduleList = scheduleList;\n }", "int insert(Schedule record);", "private void reloadPlanTable() {\n\t\t\r\n\t}", "public Schedule getSchedule(String route, int direction){\r\n // A schedule to hold all the data returned from the query\r\n Schedule weekdayZero = new Schedule();\r\n // Fetch the route id given the route\r\n Cursor getData = getReadableDatabase().rawQuery(\"select _id from routes where route_long_name = '\" + route + \"'\", null);\r\n // Make sure to begin at the first element of the returned data\r\n getData.moveToFirst();\r\n // Store the Route Id\r\n int route_id = getData.getInt(0);\r\n // Calendar id: (90400,90448) - Monday To Friday\r\n final String query = \"select Routes.Route_long_Name, \" +\r\n \"Calendar._Id, Stops.Stop_Name, Stop_Times.Stop_Sequence, Stop_Times.Arrival_Time, routes.route_short_name \" +\r\n \"from Trips join Calendar on Trips.Service_Id=Calendar._Id \" +\r\n \"join Routes on Trips.Route_Id=Routes._Id \" +\r\n \"join Stop_Times on Trips._Id=Stop_Times.Trip_Id \" +\r\n \"join Stops on Stop_Times.Stop_Id=Stops._Id \" +\r\n \"where Calendar._Id in \" + getDayOfTheWeek() + \" \" +\r\n \"AND Trips.Route_Id = \" + route_id + \" \" +\r\n \"AND Trips.Direction_Id = \" + direction + \" \" +\r\n \"AND Stop_Times.Arrival_Time != '' \" +\r\n \"order by arrival_time asc\";\r\n getData.moveToFirst();\r\n getData = getReadableDatabase().rawQuery(query, null);\r\n while (getData.moveToNext()){\r\n weekdayZero.insertData(getData.getString(0), getData.getInt(1), getData.getString(2), getData.getInt(3)\r\n , getData.getString(4), getData.getString(5));\r\n }\r\n return weekdayZero;\r\n }", "public Date getScheduleTime() {\n return this.scheduleTime;\n }", "@Override\n\tpublic void setDateAndSchedule(String date, String schedule) {\n\n\t}", "public MonthlyValuesTable(Database database) \n {\n //Constructor calls DbTable's constructor\n super(database);\n setTableName(\"monthlyvalues\");\n }", "public Date getScheduleDate(){\r\n\t\treturn this.scheduleDate;\r\n\t}", "com.google.cloud.compute.v1.Scheduling getScheduling();", "TimerSchedule createTimerSchedule();", "public ApiSchedule[] getSchedules() {\n return this.schedules;\n }", "@Override\n\tpublic void setDateAndSchedule(String date, String schedule) {\n\t\t\n\t}", "public interface ITimetableDAO {\n\n /**\n * Get all the timetable element of <code>Timetable</code> object <br>\n *\n * @return all the list of <code>Timetable</code> object\n * @throws Exception\n */\n public List<Timetable> getAllTimetable() throws Exception;\n\n /**\n * Get all the list element has search of <code>Timetable</code> object<br>\n *\n * @param from is the date of <code>Timetable</code> object\n * @param to is the date of <code>Timetable</code> object\n * @return all the list has search of <code>Timetable</code> object\n * @throws Exception\n */\n public List<Timetable> getListSearch(String from, String to) throws Exception;\n\n /**\n * Add the all the element of Timetable to database\n *\n * @param date the date of Timetable object, it is an\n * <code>java.sql.Date</code>\n * @param slot the slot of Timetable object, it is an int\n * @param classes the classes of Timetable object, it is a string\n * @param teacher the teacher of Timetable object, it is a string\n * @param room the room of Timetable object, it is an int\n * @throws Exception\n */\n public void addTimetable(String date, String slot, String room, String teacher, String classes) throws Exception;\n\n /**\n * Function to check Timetable exist before add\n *\n * @param date the date of Timetable object, it is an\n * <code>java.sql.Date</code>\n * @param classes the slot of Timetable object, it is an int\n * @param room the room of Timetable object, it is a string\n * @return object of Timetable or null when check exist timetable\n * @throws Exception\n */\n public Timetable checkExistRoomTimeTable(String date, String classes, String room) throws Exception;\n\n /**\n * Paginate by number of timetable in <code>Timetable</code> object <br>\n *\n * @param pageIndex the index of page, it is an <code>int</code>\n * @param pageSize the size of page, it is an <code>int</code>\n * @return list of timetable, it is a <code>java.util.List</code> object.\n * @throws java.lang.Exception\n */\n public List<Timetable> pagging(int pageIndex, int pageSize) throws Exception;\n\n /**\n * Get number of result <code>Gallery</code> object by id\n *\n * @return number result of Gallery object, it is an int\n * @throws java.lang.Exception\n */\n public int numberOfResult() throws Exception;\n\n /**\n * Function to check Timetable exist before add\n *\n * @param date the date of Timetable object, it is an\n * <code>java.sql.Date</code>\n * @param classes the slot of Timetable object, it is an int\n * @param teacher the teacher of Timetable object, it is a string\n * @return object of Timetable or null when check exist timetable\n * @throws Exception\n */\n public Timetable checkExistTeacherTimeTable(String date, String classes, String teacher) throws Exception;\n\n}", "public void setScheduleTime(Date scheduleTime) {\n this.scheduleTime = scheduleTime;\n }", "@Scheduled(cron = \"0 30 06 * * *\",zone=\"America/New_York\")\n public void populateDatabase(){\n localDateTime = LocalDateTime.now();\n log.info(\"Executed now: \"+ localDateTime.toString());\n\n // Checks if table in database is empty\n // If not empty, clears the table and populates it with new data\n if(checkEmpty()==0)\n log.info(\"Empty Table\");\n else {\n deleteTableRecords();\n log.info(\"Table not Empty\");\n }\n\n URL url = null;\n\n // Get recent date, append it to URL and establish a connection\n String pattern = \"MM-dd-yyyy\";\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(pattern);\n Date date = Date.from(Instant.now().minus(Duration.ofDays(1)));\n\n\n String dateStr = simpleDateFormat.format(date);\n\n try {\n url = new URL(\"https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_daily_reports/\"+dateStr+\".csv\");\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n HttpURLConnection httpURLConnection = null;\n try {\n httpURLConnection = (HttpURLConnection) url.openConnection();\n } catch (IOException e) {\n e.printStackTrace();\n }\n int responseCode = 0;\n try {\n responseCode = httpURLConnection.getResponseCode();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n // On successful connection, read records line by line, store records in a table\n if(responseCode==200)\n {\n log.info(\"-- Successful Connection\");\n CSVReader reader = null;\n try {\n\n BufferedReader input = new BufferedReader(new InputStreamReader(httpURLConnection.getInputStream()),8192);\n reader = new CSVReader(input);\n String[] line;\n int skipFirstLine = 0;\n while ((line = reader.readNext()) != null)\n {\n if(skipFirstLine==0)\n {\n skipFirstLine++;\n continue;\n }\n\n DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern(\"yyyy-MM-dd HH:mm:ss\");\n\n Corona corona = new Corona();\n corona.setLastUpdate(LocalDateTime.parse(line[4],dateTimeFormatter));\n if(line[7].equals(\"\"))\n line[7]=\"0\";\n if(line[9].equals(\"\"))\n line[9]=\"0\";\n if(line[10].equals(\"\"))\n line[10]=\"0\";\n if(line[8].equals(\"\"))\n line[8]=\"0\";\n if(line[5].equals(\"\"))\n line[5]=\"0\";\n if(line[6].equals(\"\"))\n line[6]=\"0\";\n\n try {\n\n corona.setConfirmed(Long.valueOf(line[7]));\n corona.setRecovered(Long.valueOf(line[9]));\n corona.setActive(Long.valueOf(line[10]));\n corona.setDeaths(Long.valueOf(line[8]));\n corona.setLatitude(Double.valueOf(line[5]));\n corona.setLongitude(Double.valueOf(line[6]));\n } catch (NumberFormatException n)\n {\n n.printStackTrace();\n }\n corona.setCountry(line[3]);\n corona.setProvince(line[2]);\n corona.setCombinedKey(line[11]);\n\n\n\n coronaRepository.save(corona);\n log.info(corona.toString());\n\n\n }\n } catch (IOException | CsvValidationException e){\n e.printStackTrace();\n } finally {\n if(reader!=null)\n {\n try\n {\n reader.close();\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }\n }\n }\n }" ]
[ "0.6583093", "0.62134594", "0.614241", "0.6096163", "0.5869904", "0.5847323", "0.57736564", "0.5749311", "0.5730464", "0.5692395", "0.5691314", "0.5688622", "0.56733465", "0.5612722", "0.56103665", "0.5601378", "0.5594937", "0.5592374", "0.55869794", "0.5565921", "0.5544678", "0.5536762", "0.54946375", "0.5486974", "0.5463075", "0.54603523", "0.5455832", "0.54501116", "0.5445156", "0.5444004", "0.54084784", "0.53984827", "0.53917515", "0.53882813", "0.5388208", "0.5379494", "0.5379087", "0.53540117", "0.53484684", "0.53395474", "0.5337806", "0.53348553", "0.5326429", "0.531917", "0.5268467", "0.52664775", "0.52625597", "0.5256478", "0.5245691", "0.52455944", "0.5244061", "0.52287424", "0.52114916", "0.52114564", "0.5211055", "0.5206053", "0.5198744", "0.51842344", "0.51793087", "0.51495117", "0.5128515", "0.5107465", "0.510662", "0.51056135", "0.50985986", "0.5097996", "0.5095179", "0.5078455", "0.5071949", "0.5062537", "0.5048053", "0.5045186", "0.50360614", "0.5034012", "0.5032612", "0.5029762", "0.5028272", "0.5023831", "0.50128245", "0.50107193", "0.50062126", "0.49853772", "0.49811625", "0.4979578", "0.49694157", "0.4958413", "0.49560702", "0.49543408", "0.49509862", "0.49456567", "0.49427602", "0.49422622", "0.49398386", "0.4935916", "0.4927577", "0.49200827", "0.49151728", "0.49094823", "0.49054155", "0.49049369", "0.49020037" ]
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table schedule
public void or(Criteria criteria) { oredCriteria.add(criteria); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void generateSchedule(){\n\t\t\n\t}", "@Dao\npublic interface schedule_Dao {\n\n @Query(\"SELECT * FROM Schedule where student_id = :studentId\")\n List<Schedule> getSchedulesStudent(String studentId);\n\n\n\n @Query(\"SELECT COUNT(pkey) FROM Schedule where student_id = :student_id\")\n int getScheduleCount(String student_id);\n\n\n\n @Query(\"SELECT * FROM Schedule where student_id = :studentId and active = :active or active = :Active\")\n List<Schedule> getActiveSchedules(String active,String Active, String studentId);\n\n\n @Query(\"SELECT * FROM Schedule where `endtime_null` >= :date and `starttime_null` <= :date and student_id = :studentId and active = :active or active = :Active \")\n List<Schedule> getSelEvents(String active,String Active, String studentId, String date);\n\n\n @Query(\"SELECT * FROM Schedule where `endtime` >= :date and `starttime` <= :date and student_id = :studentId and active = :active or active = :Active \")\n List<Schedule> getSelEventTime(String active,String Active, String studentId, String date);\n\n\n @Insert\n void insertAll(Schedule... schedules);\n\n @Insert(onConflict = OnConflictStrategy.IGNORE)\n void insertOnConflict(Schedule... schedules);\n\n @Query(\"DELETE FROM Schedule\")\n public abstract int DeleteToken();\n\n @Query(\"DELETE FROM Schedule where pkey = :p_key and student_id = :studentId\")\n public abstract int DeleteSchedule(String p_key,String studentId );\n\n\n @Query(\"DELETE FROM Schedule where student_id= :studentId\")\n public abstract int DeleteScheduleAllUser(String studentId);\n\n\n}", "Schedule selectByPrimaryKey(Integer id);", "public interface JobScheduleMapper {\n @Select(\"select * from job_schedule where id = #{id}\")\n public JobSchedule findById(@Param(\"id\") long id);\n\n @Select(\"select status from job_schedule where id = #{id}\")\n public int getStatus(@Param(\"id\")long id);\n\n @Insert(\"insert into job_schedule (created_datetime, schedule_datetime, job_id, job_group_name, run_as, status) \" +\n \"values(#{created_datetime}, #{schedule_datetime}, #{job_id}, #{job_group_name}, #{run_as}, #{status})\")\n @Options(useGeneratedKeys = true, keyProperty = \"id\", keyColumn = \"id\")\n public void insert(JobSchedule jobSchedule);\n\n @Update(\"update job_schedule set status = #{status} where id = #{id}\")\n public void updateStatus(@Param(\"id\") long id, @Param(\"status\")int status);\n\n @Update(\"update job_schedule set status = \" + JobSchedule.JOB_SCHEDULE_STATUS_PENDING + \", retried = retried + 1 where id = #{id}\")\n public void retry(@Param(\"id\") long id);\n\n @Update(\"update job_schedule set next_job_schedule_id = #{nextId} where id = #{thisId}\")\n public void updateNextScheduleId(@Param(\"thisId\")long thisId, @Param(\"nextId\")long nextId);\n}", "Schedule createSchedule();", "java.lang.String getSchedule();", "public Schedule() {\n\t\t// TODO Auto-generated constructor stub\n\t}", "public void generateSchedule(){\r\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"yyyy-MM-dd HH:mm:ss\"); // Date formatter used when getting SQL records\r\n Database db = new Database();\r\n Connection connection = null;\r\n String sql = \"\";\r\n String report = \"\";\r\n \r\n // Retrieve the inputted consultant's id\r\n User user = (User) combo_user.getValue();\r\n int userID = user.getId();\r\n try{\r\n connection = db.jdbc_connection.connect();\r\n Statement statement = connection.createStatement(); // Set up statement\r\n \r\n sql = \"SELECT appointment.appointmentID, customer.customerName, appointment.title, appointment.description, appointment.location, appointment.contact, \" +\r\n \"appointment.type, appointment.url, appointment.start, appointment.end FROM appointment \" +\r\n \"INNER JOIN customer ON appointment.customerID=customer.customerID \" +\r\n \"WHERE userID = \" + userID + \" GROUP BY appointment.start\"; \r\n ResultSet results = statement.executeQuery(sql); \r\n \r\n while(results.next()) { \r\n String customer = results.getString(\"customerName\");\r\n String title = results.getString(\"title\");\r\n String description = results.getString(\"description\");\r\n String location = results.getString(\"location\");\r\n String contact = results.getString(\"contact\");\r\n String type = results.getString(\"type\");\r\n String url = results.getString(\"url\");\r\n String start = results.getString(\"start\");\r\n String end = results.getString(\"end\");\r\n \r\n \r\n // Convert the start and end DATETIMES to the user's current timezone \r\n java.time.LocalDateTime start_converted = convertToCurrentZone(java.time.LocalDateTime.parse(start.replace(\".0\", \"\"), formatter));\r\n String month = start_converted.getMonth().toString();\r\n int day = start_converted.getDayOfMonth();\r\n int hour = start_converted.getHour();\r\n String minute = String.valueOf(start_converted.getMinute());\r\n \r\n if(minute.length() == 1) minute += \"0\"; // Add following zeroes\r\n \r\n report += month + \" \" + day + \" at \" + hour + \":\" + minute + \" - appointment with \" + customer + \"\\n\";\r\n } \r\n }catch(Exception e) {\r\n System.out.println(e.getMessage());\r\n }finally {\r\n try {\r\n connection.close();\r\n } catch (Exception e2) { // Closing databse error handling\r\n System.err.println(e2.getMessage());\r\n }\r\n } \r\n \r\n text_schedule.setText(report);\r\n }", "public int getSchedule_id() {\r\n return schedule_id;\r\n }", "io.opencannabis.schema.commerce.CommercialOrder.OrderScheduling getScheduling();", "List<WorkingSchedule> getAll();", "@Override\n\t\tpublic List<ProgramScheduledBean> getAllScheduleProgram()\n\t\t\t\tthrows UniversityException {\n\t\t\treturn dao.getAllScheduleProgram();\n\t\t}", "public interface ScheduleDao {\n int crewTally();\n ArrayList<avail> getAllAvailibility();\n ArrayList<ShiftDetails> getShiftDetails();\n int updateShiftSwapStatus();\n}", "@Override\n\tpublic List<ScheduleTask> getScheduleTaskList() {\n\t\treturn (List<ScheduleTask>) find(\"from ScheduleTask\");\n\t}", "public List<UserRace> selectAllSchedule() {\n\t\tString sql = \"select \" + COLUMNS + \" FROM UserRace WHERE mode = '\"\n\t\t\t\t+ UserRace.MODE_SCHEDULE + \"'\";\n\t\treturn getJdbcTemplate().query(sql, new UserRaceRowMapper());\n\t}", "@Override\r\n\tpublic List<Courseschedule> getAllCourseschedules() {\n\t\tsession = sessionFactory.openSession();\r\n\t\tTransaction tran = session.beginTransaction();\r\n\t\tString hql = \"from Courseschedule where state=:state\";\r\n\t\tQuery query = session.createQuery(hql).setInteger(\"state\", 0);\r\n\t\tList<Courseschedule> lists = query.list();\r\n\t\ttran.commit();\r\n\t\tsession.close();\r\n\t\tlogger.debug(\"use the method named :getAllCourseschedules()\");\r\n\t\tif (lists.size() > 0) {\r\n\t\t\treturn lists;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "List<Schedule> selectByExample(ScheduleCriteria example);", "public static List<Schedule> fetchGeneratedSchedules() {\r\n if (!isComplete()) {\r\n return null;\r\n }\r\n\r\n return generatedSchedules;\r\n }", "@Override\n\tpublic void UpdateTableSchedule(Schedule current) {\n\t\tif (current == null)\n\t\t\treturn;\n\t\tCurrFitness = current.fitness;\n\t\tmyLabelSchedule.setText(\"Current Schedule Fitness: \" + CurrFitness);\n\t\tfor (int station = 1; station <= current.stations.size(); station++) {\n\t\t\tfor (int i = 0; i < dtm.getRowCount(); i++) {\n\t\t\t\tdtm.setValueAt(\"\", i, station);\n\t\t\t}\n\t\t\t// @Debug System.out.println(\"TableLength: \"+tableLength);\n\t\t\tStationSlot currentStation = current.stations.get(station - 1);\n\t\t\tif (currentStation.registeredCars.size() == 0) {\n\t\t\t\tcontinue;\n\t\t\t} else {\n\t\t\t\tLinkedList<CarSlot> cars = currentStation.registeredCars;\n\t\t\t\tfor (int i = 0; i < cars.size(); i++) {\n\t\t\t\t\tCarSlot car = cars.get(i);\n\t\t\t\t\tfloat start = car.startTime;\n\t\t\t\t\tfloat duration = car.duration;\n\t\t\t\t\tint rowNum = (int) (start * (60 / interval));\n\t\t\t\t\t// System.out.println(\"ColumNum: \"+rowNum);\n\t\t\t\t\twhile (duration > 0) {\n\t\t\t\t\t\tdtm.setValueAt(\"Car \" + car.name + \" [\" + car.priority + \"]\" + \" - \" + car.type, rowNum, station);\n\t\t\t\t\t\trowNum++;\n\t\t\t\t\t\tduration = (float) (duration - interval / 60f);\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n\tpublic List<ScheduledFlights> retrieveAllScheduledFlights() {\t\r\n\t\tTypedQuery<ScheduledFlights> query = entityManager.createQuery(\"select s from ScheduledFlights s, Flight f,Schedule sc where s.flight = f and s.schedule=sc\",ScheduledFlights.class);\r\n\t\tList<ScheduledFlights> flights = query.getResultList();\r\n\t\treturn flights;\r\n\t}", "public boolean generateSchedule(){\r\n return true;\r\n }", "public void existingSchedules(){\n \n scheduleModel = (DefaultTableModel) displayTable.getModel();\n \n currentSchedules = AccessDataFromXML.retrieveSchedules();\n for (Schedule schedule : currentSchedules){\n \n \n Object[] o = new Object[1];\n o[0] = schedule.getName();\n scheduleModel.addRow(o);\n }\n \n \n\n }", "public Schedule getSchedule() {\n\n return schedule;\n }", "private List<Schedules> getSchedulesList(){\r\n//\t\tList<Schedules> list = new ArrayList<Schedules>();\r\n//\t\tSchedules s1 = new Schedules(1, \"Baidu\", \"BUPT\", \"2013-09-11\", \"12:30\");\r\n//\t\tSchedules s2 = new Schedules(2, \"Sina\", \"BUPT\", \"2013-09-11\", \"13:50\");\r\n//\r\n//\t\tlist.add(s1);\r\n//\t\tlist.add(s2);\r\n\t\tif (scheduleList == null) {\r\n\t\t\tscheduleList = mAppContext.scheduleGetAll();\r\n\t\t}\r\n\t\treturn scheduleList;\r\n//\t\treturn list;\r\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\tpublic List<TimeTableBean> getTimeTable() {\n\t\treturn sessionFactory.openSession().createQuery(\"from TimeTableBean\").list();\r\n\t}", "@Override\n\tpublic List<ScheduleTask> getScheduleTaskList() {\n\t\treturn scheduleTaskDAO.getScheduleTaskList();\n\t}", "abstract public void computeSchedule();", "SchedulingPlay selectByPrimaryKey(Long id);", "public List<WorkoutSchedule> getSchedules() {\n if (schedules == null) {\n if (daoSession == null) {\n throw new DaoException(\"Entity is detached from DAO context\");\n }\n WorkoutScheduleDao targetDao = daoSession.getWorkoutScheduleDao();\n List<WorkoutSchedule> schedulesNew = targetDao._queryWorkout_Schedules(id);\n synchronized (this) {\n if(schedules == null) {\n schedules = schedulesNew;\n }\n }\n }\n return schedules;\n }", "private void refreshScheduleTable() {\n\t\tint gameIdx = 0;\n\t\tList<GameDetails> games = getGames();\n\t\tif (games != null) {\n\t\t\tfor (GameDetails game : games) {\n\t\t\t\tfor (int i = 0; i < 2; i++) {\n\t\t\t\t\tboolean isHome = (i == 0);\n\n\t\t\t\t\tTeamDetails team = (isHome ? game.getHomeTeam() : game.getAwayTeam()); \n\n\t\t\t\t\tboolean isSelected = false;\n\t\t\t\t\tboolean canSelect = true;\n\t\t\t\t\tif (getUiHandlers() != null) {\n\t\t\t\t\t\tisSelected = getUiHandlers().isTeamSelected(team);\n\t\t\t\t\t\tcanSelect = getUiHandlers().canSelectTeam(team);\n\t\t\t\t\t}\n\n\t\t\t\t\tString text = (isHome ? \"@ \" + team.getDisplayName() : team.getDisplayName());\n\n\t\t\t\t\tint row = rowFromGameIdx(gameIdx, isHome);\n\t\t\t\t\tint col = colFromGameIdx(gameIdx, isHome);\n\n\t\t\t\t\tsetScheduleCell(row, col, text, isSelected, canSelect);\t\n\t\t\t\t}\n\n\t\t\t\tgameIdx++;\n\t\t\t}\n\t\t}\n\n\t\t// Clear out any remaining cells (in case of bye weeks).\n\t\tfor (; gameIdx < NFLConstants.MAX_GAMES_PER_WEEK; gameIdx++) {\n\t\t\tfor (int i = 0; i < 2; i++) {\n\t\t\t\tboolean isHome = (i == 0);\n\t\t\t\t\n\t\t\t\tint row = rowFromGameIdx(gameIdx, isHome);\n\t\t\t\tint col = colFromGameIdx(gameIdx, isHome);\n\n\t\t\t\tsetScheduleCell(row, col, \"\", false, true);\n\t\t\t}\n\t\t}\n\t}", "public int getScheduleMethod() {\n return scheduleMethod;\n }", "private static Entity addScheduleDateDataEntities(final Schema schema) {\n Entity scheduleDateData = schema.addEntity(\"ScheduleDateData\");\n scheduleDateData.addIdProperty().primaryKey().autoincrement();\n scheduleDateData.addIntProperty(\"schedule_id\").notNull();\n scheduleDateData.addStringProperty(\"schedule_name\");\n scheduleDateData.addStringProperty(\"class_id\");\n scheduleDateData.addStringProperty(\"class_name\");\n scheduleDateData.addStringProperty(\"class_desc\");\n scheduleDateData.addStringProperty(\"schedule_type_id\");\n scheduleDateData.addStringProperty(\"schedule_type\");\n scheduleDateData.addStringProperty(\"schedule_start_date\");\n scheduleDateData.addStringProperty(\"schedule_start_time\");\n scheduleDateData.addStringProperty(\"schedule_end_time\");\n scheduleDateData.addLongProperty(\"schedule_start_time_long\");\n scheduleDateData.addLongProperty(\"schedule_end_time_long\");\n scheduleDateData.addIntProperty(\"schedule_monday\");\n scheduleDateData.addIntProperty(\"schedule_tuesday\");\n scheduleDateData.addIntProperty(\"schedule_wednesday\");\n scheduleDateData.addIntProperty(\"schedule_thursday\");\n scheduleDateData.addIntProperty(\"schedule_friday\");\n scheduleDateData.addIntProperty(\"schedule_saturday\");\n scheduleDateData.addIntProperty(\"schedule_sunday\");\n scheduleDateData.addStringProperty(\"schedule_frequency\");\n scheduleDateData.addIntProperty(\"is_cancelled\");\n scheduleDateData.addIntProperty(\"is_reservable\");\n scheduleDateData.addStringProperty(\"instructor_id\");\n scheduleDateData.addStringProperty(\"instructor_name\");\n scheduleDateData.addStringProperty(\"location_id\");\n scheduleDateData.addStringProperty(\"location_name\");\n\n return scheduleDateData;\n }", "public static String listScheduleIdSymbol(int tambahanBolehABs) {\n DBResultSet dbrs = null;\n String result = \"\";\n try {\n Date dtStart = new Date();\n Date dtEnd = new Date();\n String dtManual = \"\";\n boolean crossDay = false;\n //dtStart.setHours(dtStart.getHours()-tambahanBolehABs);\n dtStart = new Date(dtStart.getYear(), dtStart.getMonth(), (dtStart.getDate()), (dtStart.getHours() - tambahanBolehABs), dtStart.getMinutes(), dtStart.getSeconds());\n dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate()), (dtEnd.getHours() + tambahanBolehABs), dtEnd.getMinutes(), dtEnd.getSeconds());\n int jamMelebihiOneDay = 23;\n if (dtStart.getHours() == 0 || dtStart.getHours() == 23) {\n dtManual = \"23:\" + \"59:\" + \"59\";\n crossDay = true;\n jamMelebihiOneDay = jamMelebihiOneDay + tambahanBolehABs;\n }\n if (dtEnd.getHours() == 0) {\n dtManual = \"23:\" + \"59:\" + \"59\";\n crossDay = true;\n jamMelebihiOneDay = jamMelebihiOneDay + tambahanBolehABs;\n }\n\n// String dtManual=\"\";\n// if(dt.getHours()==0 || dt.getHours()+tambahanBolehABs>=23){\n// int idtManual = 24+tambahanBolehABs;\n// dtManual = idtManual+\":59:00\" ;\n// }else{\n// dt.setHours(dt.getHours()+tambahanBolehABs);\n// }\n\n String sql = \"SELECT * FROM \" + PstScheduleSymbol.TBL_HR_SCHEDULE_SYMBOL\n + \" WHERE \\\"00:00:00\\\" <=\" + PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT]\n + \" AND \" + PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN] + \"<= \\\"\"\n + \"23:59:00\"\n //+ (dtStart.getHours() == 0 || dtStart.getHours() == 23 || dtEnd.getHours() == 0 ? dtManual : Formater.formatDate(dtEnd, \"HH:mm:00\"))\n + \"\\\"\";\n //+ \" WHERE \" + \"(\"+PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN] +\" BETWEEN \\\"00:00:00\\\" AND \\\"\"+ (crossDay?dtManual:Formater.formatDate(dtStart, \"HH:mm:00\")) +\"\\\") OR (\"+PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT] +\" BETWEEN \\\"00:00:00\\\" AND \\\"\"+Formater.formatDate(dtEnd, \"HH:mm:00\")+\"\\\")\";\n\n dbrs = DBHandler.execQueryResult(sql);\n ResultSet rs = dbrs.getResultSet();\n while (rs.next()) {\n dtEnd = new Date();\n dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate()), (dtEnd.getHours() + tambahanBolehABs), dtEnd.getMinutes(), dtEnd.getSeconds());\n \n Date schTimeIn = rs.getTime(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN]);\n\n Date schTimeOut = rs.getTime(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT]);\n Date dtTmpSchTimeIn = new Date();\n Date dtTmpSchTimeOut = new Date();\n\n\n if (schTimeIn != null && schTimeOut != null) {\n schTimeOut = new Date(dtTmpSchTimeOut.getYear(), dtTmpSchTimeOut.getMonth(), dtTmpSchTimeOut.getDate(), schTimeOut.getHours(), schTimeOut.getMinutes());\n schTimeIn = new Date(dtTmpSchTimeIn.getYear(), dtTmpSchTimeIn.getMonth(), dtTmpSchTimeIn.getDate(), schTimeIn.getHours(), schTimeIn.getMinutes());\n\n Date dtCobaTimeOut = new Date(schTimeOut.getYear(), schTimeOut.getMonth(), (schTimeOut.getDate()), (schTimeOut.getHours() + tambahanBolehABs), schTimeOut.getMinutes(), schTimeOut.getSeconds());\n boolean melebihiHari=false;\n if (schTimeIn.getHours() == 0 || schTimeOut.getHours() == 0) {\n \n } else {\n if (dtCobaTimeOut.getDate() > schTimeIn.getDate()) {\n //dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate() + 1), (dtEnd.getHours()), dtEnd.getMinutes(), dtEnd.getSeconds());\n melebihiHari=true;\n }\n\n if ( (melebihiHari && dtEnd.getHours()<dtCobaTimeOut.getHours()) || schTimeIn.getTime() <= dtEnd.getTime() || (schTimeIn.getHours() > schTimeOut.getHours() && dtEnd.getTime() < schTimeOut.getTime())) {\n result = result + rs.getString(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_SCHEDULE_ID]) + \",\";\n }\n }\n\n\n\n\n\n }\n\n }\n if (result != null && result.length() > 0) {\n result = result.substring(0, result.length() - 1);\n }\n rs.close();\n return result;\n\n } catch (Exception e) {\n System.out.println(e);\n } finally {\n DBResultSet.close(dbrs);\n }\n return result;\n }", "public interface ScheduleDao {\r\n\tpublic Schedule createSchedule(Calendar scheduleDate) throws DAOException;\r\n\tpublic Schedule findScheduleById(long scheduleId) throws DAOException;\r\n\tpublic List<Schedule> findSchedulesByDate(Calendar scheduleDate) throws DAOException;\r\n\tpublic List<Schedule> findAllSchedules() throws DAOException;\r\n\tpublic void updateSchedule(long scheduleId, Calendar newScheduleDate) throws DAOException;\r\n\tpublic void deleteScheduleById(long scheduleId) throws DAOException;\r\n\tpublic void deleteAllSchedules() throws DAOException;\r\n}", "public String getSchedule() {\n return schedule;\n }", "public Schedule getSchedule() {\r\n\t\treturn schedule;\r\n\t}", "public ScheduleType getScheduleType();", "public interface ScheduleService {\n BasicSchedule getBasicScheduleByHostelIdAndRoomType(long hostelId, RoomType type);\n\n /**\n * 获得最近一年的酒店基本计划\n *\n * @param hostelId\n * @return\n */\n List<BasicSchedule> getBasisSchedulesByHostelId(long hostelId);\n\n void modifyBasisSchedule(BasicSchedule basicSchedule);\n\n /**\n * 获得最近一年的酒店特殊计划\n *\n * @param hostelId\n * @return\n */\n List<SpecialSchedule> getSpecialScheduleByHostelId(long hostelId);\n\n void modifySpecialSchedule(SpecialSchedule specialSchedule);\n\n void addSpecialSchedule(SpecialSchedule specialSchedule);\n\n void deleteSpecialSchedule(SpecialSchedule specialSchedule);\n\n SpecialSchedule getSpecialSchedule(long hostelId, RoomType roomType, Date date);\n}", "private void loadScheduleList() {\n\n if (listTbagendamentos != null && !listTbagendamentos.isEmpty()) {\n scheduleAgendamento.clear();\n\n for (Tbagendamento agendamento : listTbagendamentos) {\n DefaultScheduleEvent defaultScheduleEvent = new DefaultScheduleEvent();\n defaultScheduleEvent.setTitle(agendamento.getIdcliente().getNmcliente());\n\n Calendar dtDataInicial = new GregorianCalendar();\n dtDataInicial.setTime(agendamento.getTmdataagendamento());\n\n defaultScheduleEvent.setStartDate(dtDataInicial.getTime());\n\n Calendar dtDataFinal = new GregorianCalendar();\n dtDataFinal.setTime(agendamento.getTmdataagendamento());\n dtDataFinal.set(Calendar.MINUTE, dtDataFinal.get(Calendar.MINUTE) + 30);\n\n defaultScheduleEvent.setEndDate(dtDataFinal.getTime());\n defaultScheduleEvent.setData(agendamento.getIdagendamento());\n scheduleAgendamento.addEvent(defaultScheduleEvent);\n }\n }\n }", "public Schedule() {\r\n }", "public void setSchedule(Schedule schedule) {\r\n\t\tthis.schedule = schedule;\r\n\t}", "List<WorkingSchedule> getByPlaceId(Long placeId);", "public ProgramScheduled getProgramScheduleById(int scheduleId);", "public ArrayList<TrainScheduleEntity> viewTrainSchedule(String dayType);", "java.lang.String getSnapshotCreationSchedule();", "io.opencannabis.schema.commerce.CommercialOrder.SchedulingType getScheduling();", "@Override\r\n\tpublic void doInitialSchedules() {\n\t}", "void setSchedule(java.lang.String schedule);", "ScheduleStartType getScheduleStart();", "public abstract void schedule();", "public void setSchedule(Schedule newSchedule) {\n\n schedule = newSchedule;\n }", "@Mapper\npublic interface VirtualRepayFlowMapper {\n @DataSource(\"bigdata2_jdb\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE update_time >= #{from_time} and update_time < #{end_time} and id>#{id} limit 1000\")\n List<VirtualRepayFlow> find(@Param(\"from_time\") String from_time,\n @Param(\"end_time\") String end_time,\n @Param(\"id\") long id);\n\n\n @DataSource(\"dmp\")\n @Insert(\"INSERT INTO virtual_repay_flow (id,uuid,virtual_productid,to_user,amount,interest,repay_status,repay_time,create_time,update_time) values\" +\n \"(#{id},#{uuid},#{virtual_productid},#{to_user},#{amount},#{interest},#{repay_status},#{repay_time},#{create_time},#{update_time})\")\n void insert(VirtualRepayFlow virtualRepayFlow);\n\n @DataSource(\"dmp\")\n @Delete(\"DELETE FROM repay_flow where update_time<#{update_time}\")\n void delete(@Param(\"update_time\") String update_time);\n\n @DataSource(\"dmp\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE id=#{id}\")\n VirtualRepayFlow getById(@Param(\"id\") long id);\n\n\n @DataSource(\"dmp\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE uuid=#{uuid}\")\n VirtualRepayFlow getByUuid(@Param(\"uuid\") String uuid);\n}", "public abstract void maintenanceSchedule() ;", "@Override\n public List<SurveillantSchedule> getSurveillantSchedule() {\n return surveillantRepository.getSurveillantSchedule();\n }", "long getScheduleID() {return mScheduleID; }", "com.google.cloud.gkebackup.v1.BackupPlan.Schedule getBackupSchedule();", "public String getScheduleRow() {\n\t\treturn uSRow;\n\t}", "public void setSchedule_id(int schedule_id) {\r\n this.schedule_id = schedule_id;\r\n }", "public void printSchedule(){\n String\n format =\n \"%-20s%-10s%-15s%\" +\n \"-20s%-25s%-10s%\" +\n \"-15s%-15s%-15s%n\";\n\n System.out.printf(format,\n \"Водитель\", \"Номер А/М\",\"Машина\", \"Дата и время\",\n \"Задание\", \"Кол-во\",\n \"Расстояние\", \"Цена\", \"Примечание\");\n System.out.println();\n\n\n\n List<TimeTable> l = driverScheduleReaderDAO.getTimeTable();\n TimeTable tPrev =l.get(0);\n for (TimeTable t: l){\n\n if (!t.getDriverName().equals(tPrev.getDriverName())) {\n\n System.out.println(\"***\");\n tPrev = t;\n\n } else if (t!=l.get(0))t.setDriverName(\" \");\n\n\n\n\n System.out.printf(format,\n t.getDriverName(), t.getCarId(), t.getCarBrand(),\n t.getBusyTime(), t.getOrder(), t.getNumOfEl(),\n t.getDistance(), t.getPrice(), t.getNote()\n );\n\n }\n\n //int\n\n\n\n\n //вывести на экран\n //отельным классом посчитать шанс поломки и предупредить\n }", "public void schedule(String id, String[] schedule) {\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic List<ISchedule> getSchedules() throws IOException {\n\t\tfinal String sql = \"SELECT * from record\";\n\t\tList<? extends ISchedule> result = this.queryDataList(Schedule.class,ISchedule.Props.class, sql);\n\t\treturn (List<ISchedule>) result;\t\t\n\t}", "public List<AllTimeSeasonBean> getAllTimeRecord(){\n String q = \"select new com.main.pcblroyals.bean.AllTimeSeasonBean( \" +\n \"sum(case when g.teamScore > g.opponentScore then 1 else 0 end), \" +\n \"sum(case when g.teamScore = g.opponentScore then 1 else 0 end), \" +\n \"sum(case when g.teamScore < g.opponentScore then 1 else 0 end) \" +\n \") \" +\n \"from seasons s \" +\n \"join games g on s.id = g.season.id \";\n Query query = entityManager.createQuery(q);\n return (List<AllTimeSeasonBean>) query.getResultList();\n }", "@Override\n public String getEndPoint() {\n return \"/v1/json/schedule\";\n }", "@GetMapping\n public List<ScheduleDTO> getAllSchedules() {\n List<Schedule> scheduleList = scheduleService.getAllSchedules();\n\n List<ScheduleDTO> scheduleDTOList = scheduleList.stream()\n .map(ScheduleController::convertScheduleToScheduleDTO)\n .collect(Collectors.toList());\n return scheduleDTOList;\n }", "public interface ScheduleListDao extends GenericDao<ScheduleList, Long> {\n\t\n\tpublic List<ScheduleList> findShceduleList(String scheduleId); \n\t\n\t /**\n * 自服务项列表\n * @return\n */\n public Page findScheduleList(String pageSize);\n\t\n}", "public void storeRegularDayTripStationScheduleWithRS();", "@MapperScan\npublic interface DSSettingMapper {\n\n @Insert(\"INSERT INTO ds_setting (dsId, dsAppointment2,dsAppointment3,outCoachIds,status,modifyTime)\" +\n \" VALUES(#{dsId},#{dsAppointment2},#{dsAppointment3},#{outCoachIds},#{status},NOW())\")\n int insertDssetting(DSSetting dsSetting);\n\n @Update(\"UPDATE ds_setting SET dsAppointment2 = #{dsAppointment2},\" +\n \" dsAppointment3 = #{dsAppointment3}, outCoachIds = #{outCoachIds}, \" +\n \"status = #{status}, modifyTime = NOW() \" +\n \"WHERE dsId = #{dsId}\")\n int updateDssetting(DSSetting dsSetting);\n\n @Select(\"SELECT * FROM ds_setting WHERE dsId = #{dsId}\")\n DSSetting findOneDSSetting(@Param(\"dsId\") Long dsId);\n}", "public String getScheduleExpression() {\n return this.scheduleExpression;\n }", "@Override\n\tpublic List<SchedulerJobEntity> getAllScheduledJobs() throws SchedulerException {\n\t\treturn schedulerRepository.findAll();\n\t}", "@Override\n\t\tpublic oep_ResponseInfo getTestscheduledetails(String id) {\n\t\t\t\n\t\t\t\n\t\t\tString query = \" SELECT a.`ques_master_id`,`is_test_started`,a.`id`,`sub_id`,a.`batch`,DATE_FORMAT(`testdate`,'%m/%d/%Y')newtestdate,a.`start_time`, a.`end_time`,a.`status`,b.`test_name`,`test_id`,\"\n\t\t\t\t\t+ \"HOUR(a.`start_time`)starthour,MINUTE(a.`start_time`)startminute, HOUR(a.`end_time`)endhour,MINUTE(a.`end_time`)endminute,\"\n\t\t\t\t\t+ \" DATE_FORMAT(`testdate`,'%d/%m/%Y')testdate, SUBSTRING_INDEX(a.`start_time`,' ',-1)startformatt,SUBSTRING_INDEX(a.`end_time`,' ',-1)endformatt,\"\n\t\t\t\t\t+ \"GROUP_CONCAT(f.`username`,' ',CASE WHEN `is_participant_start` = 2 THEN ' completed \\n' WHEN `is_participant_start` = 1 THEN 'Started \\n' ELSE 'Not started \\n'END)username,\"\n\t\t\t\t\t+ \"`is_participant_start`,h.`username`facname FROM `test_schedule` a JOIN `question_master` b ON a.`ques_master_id` = b.`id` \"\n\t\t\t\t\t+ \"JOIN `course_scheduling`c ON c.`cs_id`= a.`batch` JOIN `participants_registration_course_details`e ON e.`course_id`= c.`cs_id` \"\n\t\t\t\t\t+ \" JOIN `participants`f ON f.`participant_id`=e.`participant_id` \"\n\t\t\t\t\t+ \"LEFT JOIN `test_participants`g ON g.`part_id`= f.`participant_id` AND g.`ts_id`=a.`id`\"\n\t\t\t\t\t+ \" JOIN `faculty_master`h ON h.`faculty_id` = c.`faculty_name` WHERE a.`id`= \"+id+\" \";\n\t\t\t\n\t\t\t\n\t\t\tlog.info(query);\n\t\t\t\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tList<Object> List = jdbcTemplate.query(query, new RowMapper() {\n\t\t\t\tint count = 0;\n\t\t\t\t@Override\n\t\t\t\tpublic Object mapRow(ResultSet rs, int arg1) throws SQLException {\n\t\t\t\t\t\n\t\t\t\t\tMap<String, Object> map = new HashMap<String, Object>();\n\t\t\t\t\tmap.put(\"testid\", rs.getString(\"test_id\"));\n\t\t\t\t\tmap.put(\"startformat\", rs.getString(\"startformatt\"));\n\t\t\t\t\tmap.put(\"endformat\", rs.getString(\"endformatt\"));\t\n\t\t\t\t\tmap.put(\"facname\", rs.getString(\"facname\"));\n\t\t\t\t\tmap.put(\"quesid\", rs.getString(\"ques_master_id\"));\n\t\t\t\t\tmap.put(\"id\", rs.getString(\"id\"));\n\t\t\t\t\tmap.put(\"tsid\", rs.getString(\"id\"));\n\t\t\t\t\tmap.put(\"batch\", rs.getString(\"batch\"));\n\t\t\t\t\tmap.put(\"testdate\", rs.getString(\"testdate\"));\n\t\t\t\t\tmap.put(\"newtestdate\", rs.getString(\"newtestdate\"));\n\t\t\t\t\tmap.put(\"subid\", rs.getString(\"sub_id\"));\n\t\t\t\t\tmap.put(\"starthour\", rs.getString(\"starthour\"));\n\t\t\t\t\tmap.put(\"endhour\", rs.getString(\"endhour\"));\n\t\t\t\t\tmap.put(\"startminute\", rs.getString(\"startminute\"));\n\t\t\t\t\tmap.put(\"endminute\", rs.getString(\"endminute\"));\n\t\t\t\t\tmap.put(\"starttime\", rs.getString(\"start_time\"));\n\t\t\t\t\tmap.put(\"testname\", rs.getString(\"test_name\"));\n\t\t\t\t\tmap.put(\"username\", rs.getString(\"username\"));\n\t\t\t\t\tmap.put(\"starttest\", rs.getString(\"is_test_started\"));\n\t\t\t\t\tmap.put(\"participantstart\", rs.getString(\"is_participant_start\"));\n\t\t\t\t\tmap.put(\"endtime\", rs.getString(\"end_time\"));\n/*\t\t\t\t\t\n\t\t\t\t\tString submenuQuery = \"SELECT `part_id`,`imh_staus`,`username`,CONCAT(`username`,' ',CASE WHEN `imh_staus` = 0 \"\n\t\t\t\t\t\t\t+ \" THEN 'Certificate Not sent ' WHEN `imh_staus` = 1 THEN 'Certificate sent' \"\n\t\t\t\t\t\t\t+ \" ELSE 'Invalid 'END)status FROM `email_history`a \"\n\t\t\t\t\t\t\t+ \" JOIN `participants`b ON a.`part_id`=b.`participant_id` WHERE `ts_id` = \"+ rs.getString(\"id\");\t*/\n\t\t\t\t\t\n\t\t\t\t\tString submenuQuery = \" SELECT a.`ques_master_id`,`username`,`imh_staus`,`is_test_started`,a.`id`,a.`batch`,DATE_FORMAT(`testdate`,'%e/%c/%Y')testdate,a.`start_time`, a.`end_time`,a.`status`,b.`test_name`,`test_id`,\"\n\t\t\t\t\t\t\t+ \"CONCAT(`username`,' ',CASE WHEN `is_participant_start` = 2 THEN ' completed \\n' WHEN `is_participant_start` = 1 THEN 'Started \\n' ELSE 'Not started \\n'END)teststatus,\"\n\t\t\t\t\t\t\t+ \"`is_participant_start` FROM `test_schedule` a JOIN `question_master` b ON a.`ques_master_id` = b.`id` \"\n\t\t\t\t\t\t\t+ \"JOIN `course_scheduling`c ON c.`cs_id`= a.`batch` JOIN `participants_registration_course_details`e ON e.`course_id`= c.`cs_id` \"\n\t\t\t\t\t\t\t+ \" JOIN `participants`f ON f.`participant_id`=e.`participant_id` \"\n\t\t\t\t\t\t\t+ \"LEFT JOIN `test_participants`g ON g.`part_id`= f.`participant_id` AND g.`ts_id`=a.`id`\"\n\t\t\t\t\t\t\t+ \"JOIN `email_history`h ON h.`ts_id`= a.`id` WHERE a.`id`= \"+ rs.getString(\"id\");\n\t\t\t\t\t\n\t\t\t\t\t List<Object> submenuList = new ArrayList<Object>();\n\t\t\t\t\t submenuList = getPartStatusList(submenuQuery);\n\t\t\t\t\t map.put(\"submenuList\", submenuList);\n\t\t\t\t\t\n\t\t\t\t\tif(rs.getString(\"status\")!= null && rs.getString(\"status\").equals(\"1\")){\n\t\t\t\t\t\tmap.put(\"status\", \"Active\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tmap.put(\"status\", \"Inactive\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(rs.getString(\"is_test_started\")!= null && rs.getString(\"is_test_started\").equals(\"1\")){\n\t\t\t\t\t\tmap.put(\"teststarted\", \"Test Started\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tmap.put(\"teststarted\", \"Not started\");\n\t\t\t\t\t}\n\t\t\t\t\tmap.put(\"index\", count);\n\t\t\t\t\tcount++;\n\t\t\t\t\treturn map;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t});\n\t\t\t\n\t\t\n\t\t\t \n\t\t\t \n\t\t\tresponse.setResponseType(\"S\");\n\t\t\tresponse.setResponseObj(List);\n\t\t\tresponseInfo.setInventoryResponse(response);\n\t\t\treturn responseInfo;\n\t\t}", "public void createTempSpecialDayTrainSchedule(Timestamp date);", "public void generatePlan(Integer id,Date fromDate, Date toDate) throws Exception;", "@Override\r\n\tpublic List<Courseschedule> getCourseschedulesByClassroomId(int classroomId) {\n\t\tsession = sessionFactory.openSession();\r\n\t\tTransaction tran = session.beginTransaction();\r\n\t\tString hql = \"from Courseschedule where classroomId=:classroomId and state=:state\";\t\t\r\n\t\tList<Courseschedule> lists = session.createQuery(hql).setInteger(\"classroomId\", classroomId).setInteger(\"state\", 0).list();\r\n\t\ttran.commit();\r\n\t\tsession.close();\r\n\t\tlogger.debug(\"use the method named :getCourseschedulesByClassroomId(int classroomId)\");\r\n\t\tif (lists.size() > 0) {\r\n\t\t\treturn lists;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public void setSchedule(String timeframe) {\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic List<ScheduledFlights> retrieveScheduledFlights(String source, String destination) {\r\n\t\tQuery query = entityManager.createQuery(\"select s.scheduleId,s.source,s.destination,s.arrivaltime,s.departuretime,f.flightNumber,f.carrierName,f.seatCapacity from Schedule s JOIN ScheduledFlights sf ON s.scheduleId=sf.scheduleId JOIN Flight f on sf.flightId=f.flightNumber where schedule.source= :source AND schedule.destination=:destination\");\r\n\t\treturn query.getResultList();\r\n\t}", "@Override\r\n\tpublic boolean updateDate(ScheduleAdminModel scheduleAdminModel) throws ClassNotFoundException, SQLException {\n\t\r\n\t\tConnection connection=ConnectionManager.openConnection();\r\nPreparedStatement statement=\r\n connection.prepareStatement(\"update courses set start_date=?,end_date=? where course_name=?\");\r\nstatement.setString(1,scheduleAdminModel.getStartDate());\r\nstatement.setString(2,scheduleAdminModel.getEndDate());\r\nstatement.setString(3,scheduleAdminModel.getCourse_name());\r\n \r\n int rows=statement.executeUpdate();\r\n\tConnectionManager.closeConnection();\r\n\tif(rows>0)\r\n\t\treturn true;\r\n\t else \r\n\t return false;\r\n\t}", "void deschedule(ScheduledJob job);", "@Query(\"select :stopName from Timetable order by id\")\n List<Integer> selectStop(String stopName);", "public Date getScheduletime() {\r\n return scheduletime;\r\n }", "public List<Timetable> getAllTimetable() throws Exception;", "public abstract ArrayList<ScheduleTime> getScheduleForDay(int day, int month, int year);", "public void setSchedule(SpaceSchedule s) {\n\t\t\n\t}", "MMSchedule() {\n mScheduleID = MMUtilities.ID_DOES_NOT_EXIST;\n mOfMedicationID = 0;\n mForPersonID = 0;\n mTimeDue = 0;\n mStrategy = MMMedication.sSET_SCHEDULE_FOR_MEDICATION;\n }", "@Override\n public void fetchScheduled(RuleKey ruleKey) {\n }", "List<Schedule> selectByExampleWithRowbounds(ScheduleCriteria example, RowBounds rowBounds);", "Schedule getSchedule(String departure, String arrival, int depYear, int depMonth);", "public void setList(ScheduleInterface<Schedule> scheduleList){\n this.scheduleList = scheduleList;\n }", "int insert(Schedule record);", "private void reloadPlanTable() {\n\t\t\r\n\t}", "public Schedule getSchedule(String route, int direction){\r\n // A schedule to hold all the data returned from the query\r\n Schedule weekdayZero = new Schedule();\r\n // Fetch the route id given the route\r\n Cursor getData = getReadableDatabase().rawQuery(\"select _id from routes where route_long_name = '\" + route + \"'\", null);\r\n // Make sure to begin at the first element of the returned data\r\n getData.moveToFirst();\r\n // Store the Route Id\r\n int route_id = getData.getInt(0);\r\n // Calendar id: (90400,90448) - Monday To Friday\r\n final String query = \"select Routes.Route_long_Name, \" +\r\n \"Calendar._Id, Stops.Stop_Name, Stop_Times.Stop_Sequence, Stop_Times.Arrival_Time, routes.route_short_name \" +\r\n \"from Trips join Calendar on Trips.Service_Id=Calendar._Id \" +\r\n \"join Routes on Trips.Route_Id=Routes._Id \" +\r\n \"join Stop_Times on Trips._Id=Stop_Times.Trip_Id \" +\r\n \"join Stops on Stop_Times.Stop_Id=Stops._Id \" +\r\n \"where Calendar._Id in \" + getDayOfTheWeek() + \" \" +\r\n \"AND Trips.Route_Id = \" + route_id + \" \" +\r\n \"AND Trips.Direction_Id = \" + direction + \" \" +\r\n \"AND Stop_Times.Arrival_Time != '' \" +\r\n \"order by arrival_time asc\";\r\n getData.moveToFirst();\r\n getData = getReadableDatabase().rawQuery(query, null);\r\n while (getData.moveToNext()){\r\n weekdayZero.insertData(getData.getString(0), getData.getInt(1), getData.getString(2), getData.getInt(3)\r\n , getData.getString(4), getData.getString(5));\r\n }\r\n return weekdayZero;\r\n }", "public Date getScheduleTime() {\n return this.scheduleTime;\n }", "@Override\n\tpublic void setDateAndSchedule(String date, String schedule) {\n\n\t}", "public MonthlyValuesTable(Database database) \n {\n //Constructor calls DbTable's constructor\n super(database);\n setTableName(\"monthlyvalues\");\n }", "public Date getScheduleDate(){\r\n\t\treturn this.scheduleDate;\r\n\t}", "com.google.cloud.compute.v1.Scheduling getScheduling();", "TimerSchedule createTimerSchedule();", "public ApiSchedule[] getSchedules() {\n return this.schedules;\n }", "@Override\n\tpublic void setDateAndSchedule(String date, String schedule) {\n\t\t\n\t}", "public interface ITimetableDAO {\n\n /**\n * Get all the timetable element of <code>Timetable</code> object <br>\n *\n * @return all the list of <code>Timetable</code> object\n * @throws Exception\n */\n public List<Timetable> getAllTimetable() throws Exception;\n\n /**\n * Get all the list element has search of <code>Timetable</code> object<br>\n *\n * @param from is the date of <code>Timetable</code> object\n * @param to is the date of <code>Timetable</code> object\n * @return all the list has search of <code>Timetable</code> object\n * @throws Exception\n */\n public List<Timetable> getListSearch(String from, String to) throws Exception;\n\n /**\n * Add the all the element of Timetable to database\n *\n * @param date the date of Timetable object, it is an\n * <code>java.sql.Date</code>\n * @param slot the slot of Timetable object, it is an int\n * @param classes the classes of Timetable object, it is a string\n * @param teacher the teacher of Timetable object, it is a string\n * @param room the room of Timetable object, it is an int\n * @throws Exception\n */\n public void addTimetable(String date, String slot, String room, String teacher, String classes) throws Exception;\n\n /**\n * Function to check Timetable exist before add\n *\n * @param date the date of Timetable object, it is an\n * <code>java.sql.Date</code>\n * @param classes the slot of Timetable object, it is an int\n * @param room the room of Timetable object, it is a string\n * @return object of Timetable or null when check exist timetable\n * @throws Exception\n */\n public Timetable checkExistRoomTimeTable(String date, String classes, String room) throws Exception;\n\n /**\n * Paginate by number of timetable in <code>Timetable</code> object <br>\n *\n * @param pageIndex the index of page, it is an <code>int</code>\n * @param pageSize the size of page, it is an <code>int</code>\n * @return list of timetable, it is a <code>java.util.List</code> object.\n * @throws java.lang.Exception\n */\n public List<Timetable> pagging(int pageIndex, int pageSize) throws Exception;\n\n /**\n * Get number of result <code>Gallery</code> object by id\n *\n * @return number result of Gallery object, it is an int\n * @throws java.lang.Exception\n */\n public int numberOfResult() throws Exception;\n\n /**\n * Function to check Timetable exist before add\n *\n * @param date the date of Timetable object, it is an\n * <code>java.sql.Date</code>\n * @param classes the slot of Timetable object, it is an int\n * @param teacher the teacher of Timetable object, it is a string\n * @return object of Timetable or null when check exist timetable\n * @throws Exception\n */\n public Timetable checkExistTeacherTimeTable(String date, String classes, String teacher) throws Exception;\n\n}", "public void setScheduleTime(Date scheduleTime) {\n this.scheduleTime = scheduleTime;\n }", "@Scheduled(cron = \"0 30 06 * * *\",zone=\"America/New_York\")\n public void populateDatabase(){\n localDateTime = LocalDateTime.now();\n log.info(\"Executed now: \"+ localDateTime.toString());\n\n // Checks if table in database is empty\n // If not empty, clears the table and populates it with new data\n if(checkEmpty()==0)\n log.info(\"Empty Table\");\n else {\n deleteTableRecords();\n log.info(\"Table not Empty\");\n }\n\n URL url = null;\n\n // Get recent date, append it to URL and establish a connection\n String pattern = \"MM-dd-yyyy\";\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(pattern);\n Date date = Date.from(Instant.now().minus(Duration.ofDays(1)));\n\n\n String dateStr = simpleDateFormat.format(date);\n\n try {\n url = new URL(\"https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_daily_reports/\"+dateStr+\".csv\");\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n HttpURLConnection httpURLConnection = null;\n try {\n httpURLConnection = (HttpURLConnection) url.openConnection();\n } catch (IOException e) {\n e.printStackTrace();\n }\n int responseCode = 0;\n try {\n responseCode = httpURLConnection.getResponseCode();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n // On successful connection, read records line by line, store records in a table\n if(responseCode==200)\n {\n log.info(\"-- Successful Connection\");\n CSVReader reader = null;\n try {\n\n BufferedReader input = new BufferedReader(new InputStreamReader(httpURLConnection.getInputStream()),8192);\n reader = new CSVReader(input);\n String[] line;\n int skipFirstLine = 0;\n while ((line = reader.readNext()) != null)\n {\n if(skipFirstLine==0)\n {\n skipFirstLine++;\n continue;\n }\n\n DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern(\"yyyy-MM-dd HH:mm:ss\");\n\n Corona corona = new Corona();\n corona.setLastUpdate(LocalDateTime.parse(line[4],dateTimeFormatter));\n if(line[7].equals(\"\"))\n line[7]=\"0\";\n if(line[9].equals(\"\"))\n line[9]=\"0\";\n if(line[10].equals(\"\"))\n line[10]=\"0\";\n if(line[8].equals(\"\"))\n line[8]=\"0\";\n if(line[5].equals(\"\"))\n line[5]=\"0\";\n if(line[6].equals(\"\"))\n line[6]=\"0\";\n\n try {\n\n corona.setConfirmed(Long.valueOf(line[7]));\n corona.setRecovered(Long.valueOf(line[9]));\n corona.setActive(Long.valueOf(line[10]));\n corona.setDeaths(Long.valueOf(line[8]));\n corona.setLatitude(Double.valueOf(line[5]));\n corona.setLongitude(Double.valueOf(line[6]));\n } catch (NumberFormatException n)\n {\n n.printStackTrace();\n }\n corona.setCountry(line[3]);\n corona.setProvince(line[2]);\n corona.setCombinedKey(line[11]);\n\n\n\n coronaRepository.save(corona);\n log.info(corona.toString());\n\n\n }\n } catch (IOException | CsvValidationException e){\n e.printStackTrace();\n } finally {\n if(reader!=null)\n {\n try\n {\n reader.close();\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }\n }\n }\n }" ]
[ "0.6583093", "0.62134594", "0.614241", "0.6096163", "0.5869904", "0.5847323", "0.57736564", "0.5749311", "0.5730464", "0.5692395", "0.5691314", "0.5688622", "0.56733465", "0.5612722", "0.56103665", "0.5601378", "0.5594937", "0.5592374", "0.55869794", "0.5565921", "0.5544678", "0.5536762", "0.54946375", "0.5486974", "0.5463075", "0.54603523", "0.5455832", "0.54501116", "0.5445156", "0.5444004", "0.54084784", "0.53984827", "0.53917515", "0.53882813", "0.5388208", "0.5379494", "0.5379087", "0.53540117", "0.53484684", "0.53395474", "0.5337806", "0.53348553", "0.5326429", "0.531917", "0.5268467", "0.52664775", "0.52625597", "0.5256478", "0.5245691", "0.52455944", "0.5244061", "0.52287424", "0.52114916", "0.52114564", "0.5211055", "0.5206053", "0.5198744", "0.51842344", "0.51793087", "0.51495117", "0.5128515", "0.5107465", "0.510662", "0.51056135", "0.50985986", "0.5097996", "0.5095179", "0.5078455", "0.5071949", "0.5062537", "0.5048053", "0.5045186", "0.50360614", "0.5034012", "0.5032612", "0.5029762", "0.5028272", "0.5023831", "0.50128245", "0.50107193", "0.50062126", "0.49853772", "0.49811625", "0.4979578", "0.49694157", "0.4958413", "0.49560702", "0.49543408", "0.49509862", "0.49456567", "0.49427602", "0.49422622", "0.49398386", "0.4935916", "0.4927577", "0.49200827", "0.49151728", "0.49094823", "0.49054155", "0.49049369", "0.49020037" ]
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table schedule
public Criteria or() { Criteria criteria = createCriteriaInternal(); oredCriteria.add(criteria); return criteria; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void generateSchedule(){\n\t\t\n\t}", "@Dao\npublic interface schedule_Dao {\n\n @Query(\"SELECT * FROM Schedule where student_id = :studentId\")\n List<Schedule> getSchedulesStudent(String studentId);\n\n\n\n @Query(\"SELECT COUNT(pkey) FROM Schedule where student_id = :student_id\")\n int getScheduleCount(String student_id);\n\n\n\n @Query(\"SELECT * FROM Schedule where student_id = :studentId and active = :active or active = :Active\")\n List<Schedule> getActiveSchedules(String active,String Active, String studentId);\n\n\n @Query(\"SELECT * FROM Schedule where `endtime_null` >= :date and `starttime_null` <= :date and student_id = :studentId and active = :active or active = :Active \")\n List<Schedule> getSelEvents(String active,String Active, String studentId, String date);\n\n\n @Query(\"SELECT * FROM Schedule where `endtime` >= :date and `starttime` <= :date and student_id = :studentId and active = :active or active = :Active \")\n List<Schedule> getSelEventTime(String active,String Active, String studentId, String date);\n\n\n @Insert\n void insertAll(Schedule... schedules);\n\n @Insert(onConflict = OnConflictStrategy.IGNORE)\n void insertOnConflict(Schedule... schedules);\n\n @Query(\"DELETE FROM Schedule\")\n public abstract int DeleteToken();\n\n @Query(\"DELETE FROM Schedule where pkey = :p_key and student_id = :studentId\")\n public abstract int DeleteSchedule(String p_key,String studentId );\n\n\n @Query(\"DELETE FROM Schedule where student_id= :studentId\")\n public abstract int DeleteScheduleAllUser(String studentId);\n\n\n}", "Schedule selectByPrimaryKey(Integer id);", "public interface JobScheduleMapper {\n @Select(\"select * from job_schedule where id = #{id}\")\n public JobSchedule findById(@Param(\"id\") long id);\n\n @Select(\"select status from job_schedule where id = #{id}\")\n public int getStatus(@Param(\"id\")long id);\n\n @Insert(\"insert into job_schedule (created_datetime, schedule_datetime, job_id, job_group_name, run_as, status) \" +\n \"values(#{created_datetime}, #{schedule_datetime}, #{job_id}, #{job_group_name}, #{run_as}, #{status})\")\n @Options(useGeneratedKeys = true, keyProperty = \"id\", keyColumn = \"id\")\n public void insert(JobSchedule jobSchedule);\n\n @Update(\"update job_schedule set status = #{status} where id = #{id}\")\n public void updateStatus(@Param(\"id\") long id, @Param(\"status\")int status);\n\n @Update(\"update job_schedule set status = \" + JobSchedule.JOB_SCHEDULE_STATUS_PENDING + \", retried = retried + 1 where id = #{id}\")\n public void retry(@Param(\"id\") long id);\n\n @Update(\"update job_schedule set next_job_schedule_id = #{nextId} where id = #{thisId}\")\n public void updateNextScheduleId(@Param(\"thisId\")long thisId, @Param(\"nextId\")long nextId);\n}", "Schedule createSchedule();", "java.lang.String getSchedule();", "public Schedule() {\n\t\t// TODO Auto-generated constructor stub\n\t}", "public void generateSchedule(){\r\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"yyyy-MM-dd HH:mm:ss\"); // Date formatter used when getting SQL records\r\n Database db = new Database();\r\n Connection connection = null;\r\n String sql = \"\";\r\n String report = \"\";\r\n \r\n // Retrieve the inputted consultant's id\r\n User user = (User) combo_user.getValue();\r\n int userID = user.getId();\r\n try{\r\n connection = db.jdbc_connection.connect();\r\n Statement statement = connection.createStatement(); // Set up statement\r\n \r\n sql = \"SELECT appointment.appointmentID, customer.customerName, appointment.title, appointment.description, appointment.location, appointment.contact, \" +\r\n \"appointment.type, appointment.url, appointment.start, appointment.end FROM appointment \" +\r\n \"INNER JOIN customer ON appointment.customerID=customer.customerID \" +\r\n \"WHERE userID = \" + userID + \" GROUP BY appointment.start\"; \r\n ResultSet results = statement.executeQuery(sql); \r\n \r\n while(results.next()) { \r\n String customer = results.getString(\"customerName\");\r\n String title = results.getString(\"title\");\r\n String description = results.getString(\"description\");\r\n String location = results.getString(\"location\");\r\n String contact = results.getString(\"contact\");\r\n String type = results.getString(\"type\");\r\n String url = results.getString(\"url\");\r\n String start = results.getString(\"start\");\r\n String end = results.getString(\"end\");\r\n \r\n \r\n // Convert the start and end DATETIMES to the user's current timezone \r\n java.time.LocalDateTime start_converted = convertToCurrentZone(java.time.LocalDateTime.parse(start.replace(\".0\", \"\"), formatter));\r\n String month = start_converted.getMonth().toString();\r\n int day = start_converted.getDayOfMonth();\r\n int hour = start_converted.getHour();\r\n String minute = String.valueOf(start_converted.getMinute());\r\n \r\n if(minute.length() == 1) minute += \"0\"; // Add following zeroes\r\n \r\n report += month + \" \" + day + \" at \" + hour + \":\" + minute + \" - appointment with \" + customer + \"\\n\";\r\n } \r\n }catch(Exception e) {\r\n System.out.println(e.getMessage());\r\n }finally {\r\n try {\r\n connection.close();\r\n } catch (Exception e2) { // Closing databse error handling\r\n System.err.println(e2.getMessage());\r\n }\r\n } \r\n \r\n text_schedule.setText(report);\r\n }", "public int getSchedule_id() {\r\n return schedule_id;\r\n }", "io.opencannabis.schema.commerce.CommercialOrder.OrderScheduling getScheduling();", "List<WorkingSchedule> getAll();", "@Override\n\t\tpublic List<ProgramScheduledBean> getAllScheduleProgram()\n\t\t\t\tthrows UniversityException {\n\t\t\treturn dao.getAllScheduleProgram();\n\t\t}", "public interface ScheduleDao {\n int crewTally();\n ArrayList<avail> getAllAvailibility();\n ArrayList<ShiftDetails> getShiftDetails();\n int updateShiftSwapStatus();\n}", "@Override\n\tpublic List<ScheduleTask> getScheduleTaskList() {\n\t\treturn (List<ScheduleTask>) find(\"from ScheduleTask\");\n\t}", "public List<UserRace> selectAllSchedule() {\n\t\tString sql = \"select \" + COLUMNS + \" FROM UserRace WHERE mode = '\"\n\t\t\t\t+ UserRace.MODE_SCHEDULE + \"'\";\n\t\treturn getJdbcTemplate().query(sql, new UserRaceRowMapper());\n\t}", "@Override\r\n\tpublic List<Courseschedule> getAllCourseschedules() {\n\t\tsession = sessionFactory.openSession();\r\n\t\tTransaction tran = session.beginTransaction();\r\n\t\tString hql = \"from Courseschedule where state=:state\";\r\n\t\tQuery query = session.createQuery(hql).setInteger(\"state\", 0);\r\n\t\tList<Courseschedule> lists = query.list();\r\n\t\ttran.commit();\r\n\t\tsession.close();\r\n\t\tlogger.debug(\"use the method named :getAllCourseschedules()\");\r\n\t\tif (lists.size() > 0) {\r\n\t\t\treturn lists;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "List<Schedule> selectByExample(ScheduleCriteria example);", "public static List<Schedule> fetchGeneratedSchedules() {\r\n if (!isComplete()) {\r\n return null;\r\n }\r\n\r\n return generatedSchedules;\r\n }", "@Override\n\tpublic void UpdateTableSchedule(Schedule current) {\n\t\tif (current == null)\n\t\t\treturn;\n\t\tCurrFitness = current.fitness;\n\t\tmyLabelSchedule.setText(\"Current Schedule Fitness: \" + CurrFitness);\n\t\tfor (int station = 1; station <= current.stations.size(); station++) {\n\t\t\tfor (int i = 0; i < dtm.getRowCount(); i++) {\n\t\t\t\tdtm.setValueAt(\"\", i, station);\n\t\t\t}\n\t\t\t// @Debug System.out.println(\"TableLength: \"+tableLength);\n\t\t\tStationSlot currentStation = current.stations.get(station - 1);\n\t\t\tif (currentStation.registeredCars.size() == 0) {\n\t\t\t\tcontinue;\n\t\t\t} else {\n\t\t\t\tLinkedList<CarSlot> cars = currentStation.registeredCars;\n\t\t\t\tfor (int i = 0; i < cars.size(); i++) {\n\t\t\t\t\tCarSlot car = cars.get(i);\n\t\t\t\t\tfloat start = car.startTime;\n\t\t\t\t\tfloat duration = car.duration;\n\t\t\t\t\tint rowNum = (int) (start * (60 / interval));\n\t\t\t\t\t// System.out.println(\"ColumNum: \"+rowNum);\n\t\t\t\t\twhile (duration > 0) {\n\t\t\t\t\t\tdtm.setValueAt(\"Car \" + car.name + \" [\" + car.priority + \"]\" + \" - \" + car.type, rowNum, station);\n\t\t\t\t\t\trowNum++;\n\t\t\t\t\t\tduration = (float) (duration - interval / 60f);\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n\tpublic List<ScheduledFlights> retrieveAllScheduledFlights() {\t\r\n\t\tTypedQuery<ScheduledFlights> query = entityManager.createQuery(\"select s from ScheduledFlights s, Flight f,Schedule sc where s.flight = f and s.schedule=sc\",ScheduledFlights.class);\r\n\t\tList<ScheduledFlights> flights = query.getResultList();\r\n\t\treturn flights;\r\n\t}", "public boolean generateSchedule(){\r\n return true;\r\n }", "public void existingSchedules(){\n \n scheduleModel = (DefaultTableModel) displayTable.getModel();\n \n currentSchedules = AccessDataFromXML.retrieveSchedules();\n for (Schedule schedule : currentSchedules){\n \n \n Object[] o = new Object[1];\n o[0] = schedule.getName();\n scheduleModel.addRow(o);\n }\n \n \n\n }", "public Schedule getSchedule() {\n\n return schedule;\n }", "private List<Schedules> getSchedulesList(){\r\n//\t\tList<Schedules> list = new ArrayList<Schedules>();\r\n//\t\tSchedules s1 = new Schedules(1, \"Baidu\", \"BUPT\", \"2013-09-11\", \"12:30\");\r\n//\t\tSchedules s2 = new Schedules(2, \"Sina\", \"BUPT\", \"2013-09-11\", \"13:50\");\r\n//\r\n//\t\tlist.add(s1);\r\n//\t\tlist.add(s2);\r\n\t\tif (scheduleList == null) {\r\n\t\t\tscheduleList = mAppContext.scheduleGetAll();\r\n\t\t}\r\n\t\treturn scheduleList;\r\n//\t\treturn list;\r\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\tpublic List<TimeTableBean> getTimeTable() {\n\t\treturn sessionFactory.openSession().createQuery(\"from TimeTableBean\").list();\r\n\t}", "@Override\n\tpublic List<ScheduleTask> getScheduleTaskList() {\n\t\treturn scheduleTaskDAO.getScheduleTaskList();\n\t}", "abstract public void computeSchedule();", "SchedulingPlay selectByPrimaryKey(Long id);", "public List<WorkoutSchedule> getSchedules() {\n if (schedules == null) {\n if (daoSession == null) {\n throw new DaoException(\"Entity is detached from DAO context\");\n }\n WorkoutScheduleDao targetDao = daoSession.getWorkoutScheduleDao();\n List<WorkoutSchedule> schedulesNew = targetDao._queryWorkout_Schedules(id);\n synchronized (this) {\n if(schedules == null) {\n schedules = schedulesNew;\n }\n }\n }\n return schedules;\n }", "private void refreshScheduleTable() {\n\t\tint gameIdx = 0;\n\t\tList<GameDetails> games = getGames();\n\t\tif (games != null) {\n\t\t\tfor (GameDetails game : games) {\n\t\t\t\tfor (int i = 0; i < 2; i++) {\n\t\t\t\t\tboolean isHome = (i == 0);\n\n\t\t\t\t\tTeamDetails team = (isHome ? game.getHomeTeam() : game.getAwayTeam()); \n\n\t\t\t\t\tboolean isSelected = false;\n\t\t\t\t\tboolean canSelect = true;\n\t\t\t\t\tif (getUiHandlers() != null) {\n\t\t\t\t\t\tisSelected = getUiHandlers().isTeamSelected(team);\n\t\t\t\t\t\tcanSelect = getUiHandlers().canSelectTeam(team);\n\t\t\t\t\t}\n\n\t\t\t\t\tString text = (isHome ? \"@ \" + team.getDisplayName() : team.getDisplayName());\n\n\t\t\t\t\tint row = rowFromGameIdx(gameIdx, isHome);\n\t\t\t\t\tint col = colFromGameIdx(gameIdx, isHome);\n\n\t\t\t\t\tsetScheduleCell(row, col, text, isSelected, canSelect);\t\n\t\t\t\t}\n\n\t\t\t\tgameIdx++;\n\t\t\t}\n\t\t}\n\n\t\t// Clear out any remaining cells (in case of bye weeks).\n\t\tfor (; gameIdx < NFLConstants.MAX_GAMES_PER_WEEK; gameIdx++) {\n\t\t\tfor (int i = 0; i < 2; i++) {\n\t\t\t\tboolean isHome = (i == 0);\n\t\t\t\t\n\t\t\t\tint row = rowFromGameIdx(gameIdx, isHome);\n\t\t\t\tint col = colFromGameIdx(gameIdx, isHome);\n\n\t\t\t\tsetScheduleCell(row, col, \"\", false, true);\n\t\t\t}\n\t\t}\n\t}", "public int getScheduleMethod() {\n return scheduleMethod;\n }", "private static Entity addScheduleDateDataEntities(final Schema schema) {\n Entity scheduleDateData = schema.addEntity(\"ScheduleDateData\");\n scheduleDateData.addIdProperty().primaryKey().autoincrement();\n scheduleDateData.addIntProperty(\"schedule_id\").notNull();\n scheduleDateData.addStringProperty(\"schedule_name\");\n scheduleDateData.addStringProperty(\"class_id\");\n scheduleDateData.addStringProperty(\"class_name\");\n scheduleDateData.addStringProperty(\"class_desc\");\n scheduleDateData.addStringProperty(\"schedule_type_id\");\n scheduleDateData.addStringProperty(\"schedule_type\");\n scheduleDateData.addStringProperty(\"schedule_start_date\");\n scheduleDateData.addStringProperty(\"schedule_start_time\");\n scheduleDateData.addStringProperty(\"schedule_end_time\");\n scheduleDateData.addLongProperty(\"schedule_start_time_long\");\n scheduleDateData.addLongProperty(\"schedule_end_time_long\");\n scheduleDateData.addIntProperty(\"schedule_monday\");\n scheduleDateData.addIntProperty(\"schedule_tuesday\");\n scheduleDateData.addIntProperty(\"schedule_wednesday\");\n scheduleDateData.addIntProperty(\"schedule_thursday\");\n scheduleDateData.addIntProperty(\"schedule_friday\");\n scheduleDateData.addIntProperty(\"schedule_saturday\");\n scheduleDateData.addIntProperty(\"schedule_sunday\");\n scheduleDateData.addStringProperty(\"schedule_frequency\");\n scheduleDateData.addIntProperty(\"is_cancelled\");\n scheduleDateData.addIntProperty(\"is_reservable\");\n scheduleDateData.addStringProperty(\"instructor_id\");\n scheduleDateData.addStringProperty(\"instructor_name\");\n scheduleDateData.addStringProperty(\"location_id\");\n scheduleDateData.addStringProperty(\"location_name\");\n\n return scheduleDateData;\n }", "public static String listScheduleIdSymbol(int tambahanBolehABs) {\n DBResultSet dbrs = null;\n String result = \"\";\n try {\n Date dtStart = new Date();\n Date dtEnd = new Date();\n String dtManual = \"\";\n boolean crossDay = false;\n //dtStart.setHours(dtStart.getHours()-tambahanBolehABs);\n dtStart = new Date(dtStart.getYear(), dtStart.getMonth(), (dtStart.getDate()), (dtStart.getHours() - tambahanBolehABs), dtStart.getMinutes(), dtStart.getSeconds());\n dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate()), (dtEnd.getHours() + tambahanBolehABs), dtEnd.getMinutes(), dtEnd.getSeconds());\n int jamMelebihiOneDay = 23;\n if (dtStart.getHours() == 0 || dtStart.getHours() == 23) {\n dtManual = \"23:\" + \"59:\" + \"59\";\n crossDay = true;\n jamMelebihiOneDay = jamMelebihiOneDay + tambahanBolehABs;\n }\n if (dtEnd.getHours() == 0) {\n dtManual = \"23:\" + \"59:\" + \"59\";\n crossDay = true;\n jamMelebihiOneDay = jamMelebihiOneDay + tambahanBolehABs;\n }\n\n// String dtManual=\"\";\n// if(dt.getHours()==0 || dt.getHours()+tambahanBolehABs>=23){\n// int idtManual = 24+tambahanBolehABs;\n// dtManual = idtManual+\":59:00\" ;\n// }else{\n// dt.setHours(dt.getHours()+tambahanBolehABs);\n// }\n\n String sql = \"SELECT * FROM \" + PstScheduleSymbol.TBL_HR_SCHEDULE_SYMBOL\n + \" WHERE \\\"00:00:00\\\" <=\" + PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT]\n + \" AND \" + PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN] + \"<= \\\"\"\n + \"23:59:00\"\n //+ (dtStart.getHours() == 0 || dtStart.getHours() == 23 || dtEnd.getHours() == 0 ? dtManual : Formater.formatDate(dtEnd, \"HH:mm:00\"))\n + \"\\\"\";\n //+ \" WHERE \" + \"(\"+PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN] +\" BETWEEN \\\"00:00:00\\\" AND \\\"\"+ (crossDay?dtManual:Formater.formatDate(dtStart, \"HH:mm:00\")) +\"\\\") OR (\"+PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT] +\" BETWEEN \\\"00:00:00\\\" AND \\\"\"+Formater.formatDate(dtEnd, \"HH:mm:00\")+\"\\\")\";\n\n dbrs = DBHandler.execQueryResult(sql);\n ResultSet rs = dbrs.getResultSet();\n while (rs.next()) {\n dtEnd = new Date();\n dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate()), (dtEnd.getHours() + tambahanBolehABs), dtEnd.getMinutes(), dtEnd.getSeconds());\n \n Date schTimeIn = rs.getTime(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN]);\n\n Date schTimeOut = rs.getTime(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT]);\n Date dtTmpSchTimeIn = new Date();\n Date dtTmpSchTimeOut = new Date();\n\n\n if (schTimeIn != null && schTimeOut != null) {\n schTimeOut = new Date(dtTmpSchTimeOut.getYear(), dtTmpSchTimeOut.getMonth(), dtTmpSchTimeOut.getDate(), schTimeOut.getHours(), schTimeOut.getMinutes());\n schTimeIn = new Date(dtTmpSchTimeIn.getYear(), dtTmpSchTimeIn.getMonth(), dtTmpSchTimeIn.getDate(), schTimeIn.getHours(), schTimeIn.getMinutes());\n\n Date dtCobaTimeOut = new Date(schTimeOut.getYear(), schTimeOut.getMonth(), (schTimeOut.getDate()), (schTimeOut.getHours() + tambahanBolehABs), schTimeOut.getMinutes(), schTimeOut.getSeconds());\n boolean melebihiHari=false;\n if (schTimeIn.getHours() == 0 || schTimeOut.getHours() == 0) {\n \n } else {\n if (dtCobaTimeOut.getDate() > schTimeIn.getDate()) {\n //dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate() + 1), (dtEnd.getHours()), dtEnd.getMinutes(), dtEnd.getSeconds());\n melebihiHari=true;\n }\n\n if ( (melebihiHari && dtEnd.getHours()<dtCobaTimeOut.getHours()) || schTimeIn.getTime() <= dtEnd.getTime() || (schTimeIn.getHours() > schTimeOut.getHours() && dtEnd.getTime() < schTimeOut.getTime())) {\n result = result + rs.getString(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_SCHEDULE_ID]) + \",\";\n }\n }\n\n\n\n\n\n }\n\n }\n if (result != null && result.length() > 0) {\n result = result.substring(0, result.length() - 1);\n }\n rs.close();\n return result;\n\n } catch (Exception e) {\n System.out.println(e);\n } finally {\n DBResultSet.close(dbrs);\n }\n return result;\n }", "public interface ScheduleDao {\r\n\tpublic Schedule createSchedule(Calendar scheduleDate) throws DAOException;\r\n\tpublic Schedule findScheduleById(long scheduleId) throws DAOException;\r\n\tpublic List<Schedule> findSchedulesByDate(Calendar scheduleDate) throws DAOException;\r\n\tpublic List<Schedule> findAllSchedules() throws DAOException;\r\n\tpublic void updateSchedule(long scheduleId, Calendar newScheduleDate) throws DAOException;\r\n\tpublic void deleteScheduleById(long scheduleId) throws DAOException;\r\n\tpublic void deleteAllSchedules() throws DAOException;\r\n}", "public String getSchedule() {\n return schedule;\n }", "public Schedule getSchedule() {\r\n\t\treturn schedule;\r\n\t}", "public ScheduleType getScheduleType();", "public interface ScheduleService {\n BasicSchedule getBasicScheduleByHostelIdAndRoomType(long hostelId, RoomType type);\n\n /**\n * 获得最近一年的酒店基本计划\n *\n * @param hostelId\n * @return\n */\n List<BasicSchedule> getBasisSchedulesByHostelId(long hostelId);\n\n void modifyBasisSchedule(BasicSchedule basicSchedule);\n\n /**\n * 获得最近一年的酒店特殊计划\n *\n * @param hostelId\n * @return\n */\n List<SpecialSchedule> getSpecialScheduleByHostelId(long hostelId);\n\n void modifySpecialSchedule(SpecialSchedule specialSchedule);\n\n void addSpecialSchedule(SpecialSchedule specialSchedule);\n\n void deleteSpecialSchedule(SpecialSchedule specialSchedule);\n\n SpecialSchedule getSpecialSchedule(long hostelId, RoomType roomType, Date date);\n}", "private void loadScheduleList() {\n\n if (listTbagendamentos != null && !listTbagendamentos.isEmpty()) {\n scheduleAgendamento.clear();\n\n for (Tbagendamento agendamento : listTbagendamentos) {\n DefaultScheduleEvent defaultScheduleEvent = new DefaultScheduleEvent();\n defaultScheduleEvent.setTitle(agendamento.getIdcliente().getNmcliente());\n\n Calendar dtDataInicial = new GregorianCalendar();\n dtDataInicial.setTime(agendamento.getTmdataagendamento());\n\n defaultScheduleEvent.setStartDate(dtDataInicial.getTime());\n\n Calendar dtDataFinal = new GregorianCalendar();\n dtDataFinal.setTime(agendamento.getTmdataagendamento());\n dtDataFinal.set(Calendar.MINUTE, dtDataFinal.get(Calendar.MINUTE) + 30);\n\n defaultScheduleEvent.setEndDate(dtDataFinal.getTime());\n defaultScheduleEvent.setData(agendamento.getIdagendamento());\n scheduleAgendamento.addEvent(defaultScheduleEvent);\n }\n }\n }", "public Schedule() {\r\n }", "public void setSchedule(Schedule schedule) {\r\n\t\tthis.schedule = schedule;\r\n\t}", "List<WorkingSchedule> getByPlaceId(Long placeId);", "public ProgramScheduled getProgramScheduleById(int scheduleId);", "public ArrayList<TrainScheduleEntity> viewTrainSchedule(String dayType);", "java.lang.String getSnapshotCreationSchedule();", "io.opencannabis.schema.commerce.CommercialOrder.SchedulingType getScheduling();", "@Override\r\n\tpublic void doInitialSchedules() {\n\t}", "void setSchedule(java.lang.String schedule);", "ScheduleStartType getScheduleStart();", "public abstract void schedule();", "public void setSchedule(Schedule newSchedule) {\n\n schedule = newSchedule;\n }", "@Mapper\npublic interface VirtualRepayFlowMapper {\n @DataSource(\"bigdata2_jdb\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE update_time >= #{from_time} and update_time < #{end_time} and id>#{id} limit 1000\")\n List<VirtualRepayFlow> find(@Param(\"from_time\") String from_time,\n @Param(\"end_time\") String end_time,\n @Param(\"id\") long id);\n\n\n @DataSource(\"dmp\")\n @Insert(\"INSERT INTO virtual_repay_flow (id,uuid,virtual_productid,to_user,amount,interest,repay_status,repay_time,create_time,update_time) values\" +\n \"(#{id},#{uuid},#{virtual_productid},#{to_user},#{amount},#{interest},#{repay_status},#{repay_time},#{create_time},#{update_time})\")\n void insert(VirtualRepayFlow virtualRepayFlow);\n\n @DataSource(\"dmp\")\n @Delete(\"DELETE FROM repay_flow where update_time<#{update_time}\")\n void delete(@Param(\"update_time\") String update_time);\n\n @DataSource(\"dmp\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE id=#{id}\")\n VirtualRepayFlow getById(@Param(\"id\") long id);\n\n\n @DataSource(\"dmp\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE uuid=#{uuid}\")\n VirtualRepayFlow getByUuid(@Param(\"uuid\") String uuid);\n}", "public abstract void maintenanceSchedule() ;", "@Override\n public List<SurveillantSchedule> getSurveillantSchedule() {\n return surveillantRepository.getSurveillantSchedule();\n }", "long getScheduleID() {return mScheduleID; }", "com.google.cloud.gkebackup.v1.BackupPlan.Schedule getBackupSchedule();", "public String getScheduleRow() {\n\t\treturn uSRow;\n\t}", "public void setSchedule_id(int schedule_id) {\r\n this.schedule_id = schedule_id;\r\n }", "public void printSchedule(){\n String\n format =\n \"%-20s%-10s%-15s%\" +\n \"-20s%-25s%-10s%\" +\n \"-15s%-15s%-15s%n\";\n\n System.out.printf(format,\n \"Водитель\", \"Номер А/М\",\"Машина\", \"Дата и время\",\n \"Задание\", \"Кол-во\",\n \"Расстояние\", \"Цена\", \"Примечание\");\n System.out.println();\n\n\n\n List<TimeTable> l = driverScheduleReaderDAO.getTimeTable();\n TimeTable tPrev =l.get(0);\n for (TimeTable t: l){\n\n if (!t.getDriverName().equals(tPrev.getDriverName())) {\n\n System.out.println(\"***\");\n tPrev = t;\n\n } else if (t!=l.get(0))t.setDriverName(\" \");\n\n\n\n\n System.out.printf(format,\n t.getDriverName(), t.getCarId(), t.getCarBrand(),\n t.getBusyTime(), t.getOrder(), t.getNumOfEl(),\n t.getDistance(), t.getPrice(), t.getNote()\n );\n\n }\n\n //int\n\n\n\n\n //вывести на экран\n //отельным классом посчитать шанс поломки и предупредить\n }", "public void schedule(String id, String[] schedule) {\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic List<ISchedule> getSchedules() throws IOException {\n\t\tfinal String sql = \"SELECT * from record\";\n\t\tList<? extends ISchedule> result = this.queryDataList(Schedule.class,ISchedule.Props.class, sql);\n\t\treturn (List<ISchedule>) result;\t\t\n\t}", "public List<AllTimeSeasonBean> getAllTimeRecord(){\n String q = \"select new com.main.pcblroyals.bean.AllTimeSeasonBean( \" +\n \"sum(case when g.teamScore > g.opponentScore then 1 else 0 end), \" +\n \"sum(case when g.teamScore = g.opponentScore then 1 else 0 end), \" +\n \"sum(case when g.teamScore < g.opponentScore then 1 else 0 end) \" +\n \") \" +\n \"from seasons s \" +\n \"join games g on s.id = g.season.id \";\n Query query = entityManager.createQuery(q);\n return (List<AllTimeSeasonBean>) query.getResultList();\n }", "@Override\n public String getEndPoint() {\n return \"/v1/json/schedule\";\n }", "@GetMapping\n public List<ScheduleDTO> getAllSchedules() {\n List<Schedule> scheduleList = scheduleService.getAllSchedules();\n\n List<ScheduleDTO> scheduleDTOList = scheduleList.stream()\n .map(ScheduleController::convertScheduleToScheduleDTO)\n .collect(Collectors.toList());\n return scheduleDTOList;\n }", "public interface ScheduleListDao extends GenericDao<ScheduleList, Long> {\n\t\n\tpublic List<ScheduleList> findShceduleList(String scheduleId); \n\t\n\t /**\n * 自服务项列表\n * @return\n */\n public Page findScheduleList(String pageSize);\n\t\n}", "public void storeRegularDayTripStationScheduleWithRS();", "@MapperScan\npublic interface DSSettingMapper {\n\n @Insert(\"INSERT INTO ds_setting (dsId, dsAppointment2,dsAppointment3,outCoachIds,status,modifyTime)\" +\n \" VALUES(#{dsId},#{dsAppointment2},#{dsAppointment3},#{outCoachIds},#{status},NOW())\")\n int insertDssetting(DSSetting dsSetting);\n\n @Update(\"UPDATE ds_setting SET dsAppointment2 = #{dsAppointment2},\" +\n \" dsAppointment3 = #{dsAppointment3}, outCoachIds = #{outCoachIds}, \" +\n \"status = #{status}, modifyTime = NOW() \" +\n \"WHERE dsId = #{dsId}\")\n int updateDssetting(DSSetting dsSetting);\n\n @Select(\"SELECT * FROM ds_setting WHERE dsId = #{dsId}\")\n DSSetting findOneDSSetting(@Param(\"dsId\") Long dsId);\n}", "public String getScheduleExpression() {\n return this.scheduleExpression;\n }", "@Override\n\tpublic List<SchedulerJobEntity> getAllScheduledJobs() throws SchedulerException {\n\t\treturn schedulerRepository.findAll();\n\t}", "@Override\n\t\tpublic oep_ResponseInfo getTestscheduledetails(String id) {\n\t\t\t\n\t\t\t\n\t\t\tString query = \" SELECT a.`ques_master_id`,`is_test_started`,a.`id`,`sub_id`,a.`batch`,DATE_FORMAT(`testdate`,'%m/%d/%Y')newtestdate,a.`start_time`, a.`end_time`,a.`status`,b.`test_name`,`test_id`,\"\n\t\t\t\t\t+ \"HOUR(a.`start_time`)starthour,MINUTE(a.`start_time`)startminute, HOUR(a.`end_time`)endhour,MINUTE(a.`end_time`)endminute,\"\n\t\t\t\t\t+ \" DATE_FORMAT(`testdate`,'%d/%m/%Y')testdate, SUBSTRING_INDEX(a.`start_time`,' ',-1)startformatt,SUBSTRING_INDEX(a.`end_time`,' ',-1)endformatt,\"\n\t\t\t\t\t+ \"GROUP_CONCAT(f.`username`,' ',CASE WHEN `is_participant_start` = 2 THEN ' completed \\n' WHEN `is_participant_start` = 1 THEN 'Started \\n' ELSE 'Not started \\n'END)username,\"\n\t\t\t\t\t+ \"`is_participant_start`,h.`username`facname FROM `test_schedule` a JOIN `question_master` b ON a.`ques_master_id` = b.`id` \"\n\t\t\t\t\t+ \"JOIN `course_scheduling`c ON c.`cs_id`= a.`batch` JOIN `participants_registration_course_details`e ON e.`course_id`= c.`cs_id` \"\n\t\t\t\t\t+ \" JOIN `participants`f ON f.`participant_id`=e.`participant_id` \"\n\t\t\t\t\t+ \"LEFT JOIN `test_participants`g ON g.`part_id`= f.`participant_id` AND g.`ts_id`=a.`id`\"\n\t\t\t\t\t+ \" JOIN `faculty_master`h ON h.`faculty_id` = c.`faculty_name` WHERE a.`id`= \"+id+\" \";\n\t\t\t\n\t\t\t\n\t\t\tlog.info(query);\n\t\t\t\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tList<Object> List = jdbcTemplate.query(query, new RowMapper() {\n\t\t\t\tint count = 0;\n\t\t\t\t@Override\n\t\t\t\tpublic Object mapRow(ResultSet rs, int arg1) throws SQLException {\n\t\t\t\t\t\n\t\t\t\t\tMap<String, Object> map = new HashMap<String, Object>();\n\t\t\t\t\tmap.put(\"testid\", rs.getString(\"test_id\"));\n\t\t\t\t\tmap.put(\"startformat\", rs.getString(\"startformatt\"));\n\t\t\t\t\tmap.put(\"endformat\", rs.getString(\"endformatt\"));\t\n\t\t\t\t\tmap.put(\"facname\", rs.getString(\"facname\"));\n\t\t\t\t\tmap.put(\"quesid\", rs.getString(\"ques_master_id\"));\n\t\t\t\t\tmap.put(\"id\", rs.getString(\"id\"));\n\t\t\t\t\tmap.put(\"tsid\", rs.getString(\"id\"));\n\t\t\t\t\tmap.put(\"batch\", rs.getString(\"batch\"));\n\t\t\t\t\tmap.put(\"testdate\", rs.getString(\"testdate\"));\n\t\t\t\t\tmap.put(\"newtestdate\", rs.getString(\"newtestdate\"));\n\t\t\t\t\tmap.put(\"subid\", rs.getString(\"sub_id\"));\n\t\t\t\t\tmap.put(\"starthour\", rs.getString(\"starthour\"));\n\t\t\t\t\tmap.put(\"endhour\", rs.getString(\"endhour\"));\n\t\t\t\t\tmap.put(\"startminute\", rs.getString(\"startminute\"));\n\t\t\t\t\tmap.put(\"endminute\", rs.getString(\"endminute\"));\n\t\t\t\t\tmap.put(\"starttime\", rs.getString(\"start_time\"));\n\t\t\t\t\tmap.put(\"testname\", rs.getString(\"test_name\"));\n\t\t\t\t\tmap.put(\"username\", rs.getString(\"username\"));\n\t\t\t\t\tmap.put(\"starttest\", rs.getString(\"is_test_started\"));\n\t\t\t\t\tmap.put(\"participantstart\", rs.getString(\"is_participant_start\"));\n\t\t\t\t\tmap.put(\"endtime\", rs.getString(\"end_time\"));\n/*\t\t\t\t\t\n\t\t\t\t\tString submenuQuery = \"SELECT `part_id`,`imh_staus`,`username`,CONCAT(`username`,' ',CASE WHEN `imh_staus` = 0 \"\n\t\t\t\t\t\t\t+ \" THEN 'Certificate Not sent ' WHEN `imh_staus` = 1 THEN 'Certificate sent' \"\n\t\t\t\t\t\t\t+ \" ELSE 'Invalid 'END)status FROM `email_history`a \"\n\t\t\t\t\t\t\t+ \" JOIN `participants`b ON a.`part_id`=b.`participant_id` WHERE `ts_id` = \"+ rs.getString(\"id\");\t*/\n\t\t\t\t\t\n\t\t\t\t\tString submenuQuery = \" SELECT a.`ques_master_id`,`username`,`imh_staus`,`is_test_started`,a.`id`,a.`batch`,DATE_FORMAT(`testdate`,'%e/%c/%Y')testdate,a.`start_time`, a.`end_time`,a.`status`,b.`test_name`,`test_id`,\"\n\t\t\t\t\t\t\t+ \"CONCAT(`username`,' ',CASE WHEN `is_participant_start` = 2 THEN ' completed \\n' WHEN `is_participant_start` = 1 THEN 'Started \\n' ELSE 'Not started \\n'END)teststatus,\"\n\t\t\t\t\t\t\t+ \"`is_participant_start` FROM `test_schedule` a JOIN `question_master` b ON a.`ques_master_id` = b.`id` \"\n\t\t\t\t\t\t\t+ \"JOIN `course_scheduling`c ON c.`cs_id`= a.`batch` JOIN `participants_registration_course_details`e ON e.`course_id`= c.`cs_id` \"\n\t\t\t\t\t\t\t+ \" JOIN `participants`f ON f.`participant_id`=e.`participant_id` \"\n\t\t\t\t\t\t\t+ \"LEFT JOIN `test_participants`g ON g.`part_id`= f.`participant_id` AND g.`ts_id`=a.`id`\"\n\t\t\t\t\t\t\t+ \"JOIN `email_history`h ON h.`ts_id`= a.`id` WHERE a.`id`= \"+ rs.getString(\"id\");\n\t\t\t\t\t\n\t\t\t\t\t List<Object> submenuList = new ArrayList<Object>();\n\t\t\t\t\t submenuList = getPartStatusList(submenuQuery);\n\t\t\t\t\t map.put(\"submenuList\", submenuList);\n\t\t\t\t\t\n\t\t\t\t\tif(rs.getString(\"status\")!= null && rs.getString(\"status\").equals(\"1\")){\n\t\t\t\t\t\tmap.put(\"status\", \"Active\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tmap.put(\"status\", \"Inactive\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(rs.getString(\"is_test_started\")!= null && rs.getString(\"is_test_started\").equals(\"1\")){\n\t\t\t\t\t\tmap.put(\"teststarted\", \"Test Started\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tmap.put(\"teststarted\", \"Not started\");\n\t\t\t\t\t}\n\t\t\t\t\tmap.put(\"index\", count);\n\t\t\t\t\tcount++;\n\t\t\t\t\treturn map;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t});\n\t\t\t\n\t\t\n\t\t\t \n\t\t\t \n\t\t\tresponse.setResponseType(\"S\");\n\t\t\tresponse.setResponseObj(List);\n\t\t\tresponseInfo.setInventoryResponse(response);\n\t\t\treturn responseInfo;\n\t\t}", "public void createTempSpecialDayTrainSchedule(Timestamp date);", "public void generatePlan(Integer id,Date fromDate, Date toDate) throws Exception;", "@Override\r\n\tpublic List<Courseschedule> getCourseschedulesByClassroomId(int classroomId) {\n\t\tsession = sessionFactory.openSession();\r\n\t\tTransaction tran = session.beginTransaction();\r\n\t\tString hql = \"from Courseschedule where classroomId=:classroomId and state=:state\";\t\t\r\n\t\tList<Courseschedule> lists = session.createQuery(hql).setInteger(\"classroomId\", classroomId).setInteger(\"state\", 0).list();\r\n\t\ttran.commit();\r\n\t\tsession.close();\r\n\t\tlogger.debug(\"use the method named :getCourseschedulesByClassroomId(int classroomId)\");\r\n\t\tif (lists.size() > 0) {\r\n\t\t\treturn lists;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public void setSchedule(String timeframe) {\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic List<ScheduledFlights> retrieveScheduledFlights(String source, String destination) {\r\n\t\tQuery query = entityManager.createQuery(\"select s.scheduleId,s.source,s.destination,s.arrivaltime,s.departuretime,f.flightNumber,f.carrierName,f.seatCapacity from Schedule s JOIN ScheduledFlights sf ON s.scheduleId=sf.scheduleId JOIN Flight f on sf.flightId=f.flightNumber where schedule.source= :source AND schedule.destination=:destination\");\r\n\t\treturn query.getResultList();\r\n\t}", "@Override\r\n\tpublic boolean updateDate(ScheduleAdminModel scheduleAdminModel) throws ClassNotFoundException, SQLException {\n\t\r\n\t\tConnection connection=ConnectionManager.openConnection();\r\nPreparedStatement statement=\r\n connection.prepareStatement(\"update courses set start_date=?,end_date=? where course_name=?\");\r\nstatement.setString(1,scheduleAdminModel.getStartDate());\r\nstatement.setString(2,scheduleAdminModel.getEndDate());\r\nstatement.setString(3,scheduleAdminModel.getCourse_name());\r\n \r\n int rows=statement.executeUpdate();\r\n\tConnectionManager.closeConnection();\r\n\tif(rows>0)\r\n\t\treturn true;\r\n\t else \r\n\t return false;\r\n\t}", "void deschedule(ScheduledJob job);", "@Query(\"select :stopName from Timetable order by id\")\n List<Integer> selectStop(String stopName);", "public Date getScheduletime() {\r\n return scheduletime;\r\n }", "public List<Timetable> getAllTimetable() throws Exception;", "public abstract ArrayList<ScheduleTime> getScheduleForDay(int day, int month, int year);", "public void setSchedule(SpaceSchedule s) {\n\t\t\n\t}", "MMSchedule() {\n mScheduleID = MMUtilities.ID_DOES_NOT_EXIST;\n mOfMedicationID = 0;\n mForPersonID = 0;\n mTimeDue = 0;\n mStrategy = MMMedication.sSET_SCHEDULE_FOR_MEDICATION;\n }", "@Override\n public void fetchScheduled(RuleKey ruleKey) {\n }", "List<Schedule> selectByExampleWithRowbounds(ScheduleCriteria example, RowBounds rowBounds);", "Schedule getSchedule(String departure, String arrival, int depYear, int depMonth);", "public void setList(ScheduleInterface<Schedule> scheduleList){\n this.scheduleList = scheduleList;\n }", "int insert(Schedule record);", "private void reloadPlanTable() {\n\t\t\r\n\t}", "public Schedule getSchedule(String route, int direction){\r\n // A schedule to hold all the data returned from the query\r\n Schedule weekdayZero = new Schedule();\r\n // Fetch the route id given the route\r\n Cursor getData = getReadableDatabase().rawQuery(\"select _id from routes where route_long_name = '\" + route + \"'\", null);\r\n // Make sure to begin at the first element of the returned data\r\n getData.moveToFirst();\r\n // Store the Route Id\r\n int route_id = getData.getInt(0);\r\n // Calendar id: (90400,90448) - Monday To Friday\r\n final String query = \"select Routes.Route_long_Name, \" +\r\n \"Calendar._Id, Stops.Stop_Name, Stop_Times.Stop_Sequence, Stop_Times.Arrival_Time, routes.route_short_name \" +\r\n \"from Trips join Calendar on Trips.Service_Id=Calendar._Id \" +\r\n \"join Routes on Trips.Route_Id=Routes._Id \" +\r\n \"join Stop_Times on Trips._Id=Stop_Times.Trip_Id \" +\r\n \"join Stops on Stop_Times.Stop_Id=Stops._Id \" +\r\n \"where Calendar._Id in \" + getDayOfTheWeek() + \" \" +\r\n \"AND Trips.Route_Id = \" + route_id + \" \" +\r\n \"AND Trips.Direction_Id = \" + direction + \" \" +\r\n \"AND Stop_Times.Arrival_Time != '' \" +\r\n \"order by arrival_time asc\";\r\n getData.moveToFirst();\r\n getData = getReadableDatabase().rawQuery(query, null);\r\n while (getData.moveToNext()){\r\n weekdayZero.insertData(getData.getString(0), getData.getInt(1), getData.getString(2), getData.getInt(3)\r\n , getData.getString(4), getData.getString(5));\r\n }\r\n return weekdayZero;\r\n }", "public Date getScheduleTime() {\n return this.scheduleTime;\n }", "@Override\n\tpublic void setDateAndSchedule(String date, String schedule) {\n\n\t}", "public MonthlyValuesTable(Database database) \n {\n //Constructor calls DbTable's constructor\n super(database);\n setTableName(\"monthlyvalues\");\n }", "public Date getScheduleDate(){\r\n\t\treturn this.scheduleDate;\r\n\t}", "com.google.cloud.compute.v1.Scheduling getScheduling();", "TimerSchedule createTimerSchedule();", "public ApiSchedule[] getSchedules() {\n return this.schedules;\n }", "@Override\n\tpublic void setDateAndSchedule(String date, String schedule) {\n\t\t\n\t}", "public interface ITimetableDAO {\n\n /**\n * Get all the timetable element of <code>Timetable</code> object <br>\n *\n * @return all the list of <code>Timetable</code> object\n * @throws Exception\n */\n public List<Timetable> getAllTimetable() throws Exception;\n\n /**\n * Get all the list element has search of <code>Timetable</code> object<br>\n *\n * @param from is the date of <code>Timetable</code> object\n * @param to is the date of <code>Timetable</code> object\n * @return all the list has search of <code>Timetable</code> object\n * @throws Exception\n */\n public List<Timetable> getListSearch(String from, String to) throws Exception;\n\n /**\n * Add the all the element of Timetable to database\n *\n * @param date the date of Timetable object, it is an\n * <code>java.sql.Date</code>\n * @param slot the slot of Timetable object, it is an int\n * @param classes the classes of Timetable object, it is a string\n * @param teacher the teacher of Timetable object, it is a string\n * @param room the room of Timetable object, it is an int\n * @throws Exception\n */\n public void addTimetable(String date, String slot, String room, String teacher, String classes) throws Exception;\n\n /**\n * Function to check Timetable exist before add\n *\n * @param date the date of Timetable object, it is an\n * <code>java.sql.Date</code>\n * @param classes the slot of Timetable object, it is an int\n * @param room the room of Timetable object, it is a string\n * @return object of Timetable or null when check exist timetable\n * @throws Exception\n */\n public Timetable checkExistRoomTimeTable(String date, String classes, String room) throws Exception;\n\n /**\n * Paginate by number of timetable in <code>Timetable</code> object <br>\n *\n * @param pageIndex the index of page, it is an <code>int</code>\n * @param pageSize the size of page, it is an <code>int</code>\n * @return list of timetable, it is a <code>java.util.List</code> object.\n * @throws java.lang.Exception\n */\n public List<Timetable> pagging(int pageIndex, int pageSize) throws Exception;\n\n /**\n * Get number of result <code>Gallery</code> object by id\n *\n * @return number result of Gallery object, it is an int\n * @throws java.lang.Exception\n */\n public int numberOfResult() throws Exception;\n\n /**\n * Function to check Timetable exist before add\n *\n * @param date the date of Timetable object, it is an\n * <code>java.sql.Date</code>\n * @param classes the slot of Timetable object, it is an int\n * @param teacher the teacher of Timetable object, it is a string\n * @return object of Timetable or null when check exist timetable\n * @throws Exception\n */\n public Timetable checkExistTeacherTimeTable(String date, String classes, String teacher) throws Exception;\n\n}", "public void setScheduleTime(Date scheduleTime) {\n this.scheduleTime = scheduleTime;\n }", "@Scheduled(cron = \"0 30 06 * * *\",zone=\"America/New_York\")\n public void populateDatabase(){\n localDateTime = LocalDateTime.now();\n log.info(\"Executed now: \"+ localDateTime.toString());\n\n // Checks if table in database is empty\n // If not empty, clears the table and populates it with new data\n if(checkEmpty()==0)\n log.info(\"Empty Table\");\n else {\n deleteTableRecords();\n log.info(\"Table not Empty\");\n }\n\n URL url = null;\n\n // Get recent date, append it to URL and establish a connection\n String pattern = \"MM-dd-yyyy\";\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(pattern);\n Date date = Date.from(Instant.now().minus(Duration.ofDays(1)));\n\n\n String dateStr = simpleDateFormat.format(date);\n\n try {\n url = new URL(\"https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_daily_reports/\"+dateStr+\".csv\");\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n HttpURLConnection httpURLConnection = null;\n try {\n httpURLConnection = (HttpURLConnection) url.openConnection();\n } catch (IOException e) {\n e.printStackTrace();\n }\n int responseCode = 0;\n try {\n responseCode = httpURLConnection.getResponseCode();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n // On successful connection, read records line by line, store records in a table\n if(responseCode==200)\n {\n log.info(\"-- Successful Connection\");\n CSVReader reader = null;\n try {\n\n BufferedReader input = new BufferedReader(new InputStreamReader(httpURLConnection.getInputStream()),8192);\n reader = new CSVReader(input);\n String[] line;\n int skipFirstLine = 0;\n while ((line = reader.readNext()) != null)\n {\n if(skipFirstLine==0)\n {\n skipFirstLine++;\n continue;\n }\n\n DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern(\"yyyy-MM-dd HH:mm:ss\");\n\n Corona corona = new Corona();\n corona.setLastUpdate(LocalDateTime.parse(line[4],dateTimeFormatter));\n if(line[7].equals(\"\"))\n line[7]=\"0\";\n if(line[9].equals(\"\"))\n line[9]=\"0\";\n if(line[10].equals(\"\"))\n line[10]=\"0\";\n if(line[8].equals(\"\"))\n line[8]=\"0\";\n if(line[5].equals(\"\"))\n line[5]=\"0\";\n if(line[6].equals(\"\"))\n line[6]=\"0\";\n\n try {\n\n corona.setConfirmed(Long.valueOf(line[7]));\n corona.setRecovered(Long.valueOf(line[9]));\n corona.setActive(Long.valueOf(line[10]));\n corona.setDeaths(Long.valueOf(line[8]));\n corona.setLatitude(Double.valueOf(line[5]));\n corona.setLongitude(Double.valueOf(line[6]));\n } catch (NumberFormatException n)\n {\n n.printStackTrace();\n }\n corona.setCountry(line[3]);\n corona.setProvince(line[2]);\n corona.setCombinedKey(line[11]);\n\n\n\n coronaRepository.save(corona);\n log.info(corona.toString());\n\n\n }\n } catch (IOException | CsvValidationException e){\n e.printStackTrace();\n } finally {\n if(reader!=null)\n {\n try\n {\n reader.close();\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }\n }\n }\n }" ]
[ "0.6583093", "0.62134594", "0.614241", "0.6096163", "0.5869904", "0.5847323", "0.57736564", "0.5749311", "0.5730464", "0.5692395", "0.5691314", "0.5688622", "0.56733465", "0.5612722", "0.56103665", "0.5601378", "0.5594937", "0.5592374", "0.55869794", "0.5565921", "0.5544678", "0.5536762", "0.54946375", "0.5486974", "0.5463075", "0.54603523", "0.5455832", "0.54501116", "0.5445156", "0.5444004", "0.54084784", "0.53984827", "0.53917515", "0.53882813", "0.5388208", "0.5379494", "0.5379087", "0.53540117", "0.53484684", "0.53395474", "0.5337806", "0.53348553", "0.5326429", "0.531917", "0.5268467", "0.52664775", "0.52625597", "0.5256478", "0.5245691", "0.52455944", "0.5244061", "0.52287424", "0.52114916", "0.52114564", "0.5211055", "0.5206053", "0.5198744", "0.51842344", "0.51793087", "0.51495117", "0.5128515", "0.5107465", "0.510662", "0.51056135", "0.50985986", "0.5097996", "0.5095179", "0.5078455", "0.5071949", "0.5062537", "0.5048053", "0.5045186", "0.50360614", "0.5034012", "0.5032612", "0.5029762", "0.5028272", "0.5023831", "0.50128245", "0.50107193", "0.50062126", "0.49853772", "0.49811625", "0.4979578", "0.49694157", "0.4958413", "0.49560702", "0.49543408", "0.49509862", "0.49456567", "0.49427602", "0.49422622", "0.49398386", "0.4935916", "0.4927577", "0.49200827", "0.49151728", "0.49094823", "0.49054155", "0.49049369", "0.49020037" ]
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table schedule
public Criteria createCriteria() { Criteria criteria = createCriteriaInternal(); if (oredCriteria.size() == 0) { oredCriteria.add(criteria); } return criteria; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void generateSchedule(){\n\t\t\n\t}", "@Dao\npublic interface schedule_Dao {\n\n @Query(\"SELECT * FROM Schedule where student_id = :studentId\")\n List<Schedule> getSchedulesStudent(String studentId);\n\n\n\n @Query(\"SELECT COUNT(pkey) FROM Schedule where student_id = :student_id\")\n int getScheduleCount(String student_id);\n\n\n\n @Query(\"SELECT * FROM Schedule where student_id = :studentId and active = :active or active = :Active\")\n List<Schedule> getActiveSchedules(String active,String Active, String studentId);\n\n\n @Query(\"SELECT * FROM Schedule where `endtime_null` >= :date and `starttime_null` <= :date and student_id = :studentId and active = :active or active = :Active \")\n List<Schedule> getSelEvents(String active,String Active, String studentId, String date);\n\n\n @Query(\"SELECT * FROM Schedule where `endtime` >= :date and `starttime` <= :date and student_id = :studentId and active = :active or active = :Active \")\n List<Schedule> getSelEventTime(String active,String Active, String studentId, String date);\n\n\n @Insert\n void insertAll(Schedule... schedules);\n\n @Insert(onConflict = OnConflictStrategy.IGNORE)\n void insertOnConflict(Schedule... schedules);\n\n @Query(\"DELETE FROM Schedule\")\n public abstract int DeleteToken();\n\n @Query(\"DELETE FROM Schedule where pkey = :p_key and student_id = :studentId\")\n public abstract int DeleteSchedule(String p_key,String studentId );\n\n\n @Query(\"DELETE FROM Schedule where student_id= :studentId\")\n public abstract int DeleteScheduleAllUser(String studentId);\n\n\n}", "Schedule selectByPrimaryKey(Integer id);", "public interface JobScheduleMapper {\n @Select(\"select * from job_schedule where id = #{id}\")\n public JobSchedule findById(@Param(\"id\") long id);\n\n @Select(\"select status from job_schedule where id = #{id}\")\n public int getStatus(@Param(\"id\")long id);\n\n @Insert(\"insert into job_schedule (created_datetime, schedule_datetime, job_id, job_group_name, run_as, status) \" +\n \"values(#{created_datetime}, #{schedule_datetime}, #{job_id}, #{job_group_name}, #{run_as}, #{status})\")\n @Options(useGeneratedKeys = true, keyProperty = \"id\", keyColumn = \"id\")\n public void insert(JobSchedule jobSchedule);\n\n @Update(\"update job_schedule set status = #{status} where id = #{id}\")\n public void updateStatus(@Param(\"id\") long id, @Param(\"status\")int status);\n\n @Update(\"update job_schedule set status = \" + JobSchedule.JOB_SCHEDULE_STATUS_PENDING + \", retried = retried + 1 where id = #{id}\")\n public void retry(@Param(\"id\") long id);\n\n @Update(\"update job_schedule set next_job_schedule_id = #{nextId} where id = #{thisId}\")\n public void updateNextScheduleId(@Param(\"thisId\")long thisId, @Param(\"nextId\")long nextId);\n}", "Schedule createSchedule();", "java.lang.String getSchedule();", "public Schedule() {\n\t\t// TODO Auto-generated constructor stub\n\t}", "public void generateSchedule(){\r\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"yyyy-MM-dd HH:mm:ss\"); // Date formatter used when getting SQL records\r\n Database db = new Database();\r\n Connection connection = null;\r\n String sql = \"\";\r\n String report = \"\";\r\n \r\n // Retrieve the inputted consultant's id\r\n User user = (User) combo_user.getValue();\r\n int userID = user.getId();\r\n try{\r\n connection = db.jdbc_connection.connect();\r\n Statement statement = connection.createStatement(); // Set up statement\r\n \r\n sql = \"SELECT appointment.appointmentID, customer.customerName, appointment.title, appointment.description, appointment.location, appointment.contact, \" +\r\n \"appointment.type, appointment.url, appointment.start, appointment.end FROM appointment \" +\r\n \"INNER JOIN customer ON appointment.customerID=customer.customerID \" +\r\n \"WHERE userID = \" + userID + \" GROUP BY appointment.start\"; \r\n ResultSet results = statement.executeQuery(sql); \r\n \r\n while(results.next()) { \r\n String customer = results.getString(\"customerName\");\r\n String title = results.getString(\"title\");\r\n String description = results.getString(\"description\");\r\n String location = results.getString(\"location\");\r\n String contact = results.getString(\"contact\");\r\n String type = results.getString(\"type\");\r\n String url = results.getString(\"url\");\r\n String start = results.getString(\"start\");\r\n String end = results.getString(\"end\");\r\n \r\n \r\n // Convert the start and end DATETIMES to the user's current timezone \r\n java.time.LocalDateTime start_converted = convertToCurrentZone(java.time.LocalDateTime.parse(start.replace(\".0\", \"\"), formatter));\r\n String month = start_converted.getMonth().toString();\r\n int day = start_converted.getDayOfMonth();\r\n int hour = start_converted.getHour();\r\n String minute = String.valueOf(start_converted.getMinute());\r\n \r\n if(minute.length() == 1) minute += \"0\"; // Add following zeroes\r\n \r\n report += month + \" \" + day + \" at \" + hour + \":\" + minute + \" - appointment with \" + customer + \"\\n\";\r\n } \r\n }catch(Exception e) {\r\n System.out.println(e.getMessage());\r\n }finally {\r\n try {\r\n connection.close();\r\n } catch (Exception e2) { // Closing databse error handling\r\n System.err.println(e2.getMessage());\r\n }\r\n } \r\n \r\n text_schedule.setText(report);\r\n }", "public int getSchedule_id() {\r\n return schedule_id;\r\n }", "io.opencannabis.schema.commerce.CommercialOrder.OrderScheduling getScheduling();", "List<WorkingSchedule> getAll();", "@Override\n\t\tpublic List<ProgramScheduledBean> getAllScheduleProgram()\n\t\t\t\tthrows UniversityException {\n\t\t\treturn dao.getAllScheduleProgram();\n\t\t}", "public interface ScheduleDao {\n int crewTally();\n ArrayList<avail> getAllAvailibility();\n ArrayList<ShiftDetails> getShiftDetails();\n int updateShiftSwapStatus();\n}", "@Override\n\tpublic List<ScheduleTask> getScheduleTaskList() {\n\t\treturn (List<ScheduleTask>) find(\"from ScheduleTask\");\n\t}", "public List<UserRace> selectAllSchedule() {\n\t\tString sql = \"select \" + COLUMNS + \" FROM UserRace WHERE mode = '\"\n\t\t\t\t+ UserRace.MODE_SCHEDULE + \"'\";\n\t\treturn getJdbcTemplate().query(sql, new UserRaceRowMapper());\n\t}", "@Override\r\n\tpublic List<Courseschedule> getAllCourseschedules() {\n\t\tsession = sessionFactory.openSession();\r\n\t\tTransaction tran = session.beginTransaction();\r\n\t\tString hql = \"from Courseschedule where state=:state\";\r\n\t\tQuery query = session.createQuery(hql).setInteger(\"state\", 0);\r\n\t\tList<Courseschedule> lists = query.list();\r\n\t\ttran.commit();\r\n\t\tsession.close();\r\n\t\tlogger.debug(\"use the method named :getAllCourseschedules()\");\r\n\t\tif (lists.size() > 0) {\r\n\t\t\treturn lists;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "List<Schedule> selectByExample(ScheduleCriteria example);", "public static List<Schedule> fetchGeneratedSchedules() {\r\n if (!isComplete()) {\r\n return null;\r\n }\r\n\r\n return generatedSchedules;\r\n }", "@Override\n\tpublic void UpdateTableSchedule(Schedule current) {\n\t\tif (current == null)\n\t\t\treturn;\n\t\tCurrFitness = current.fitness;\n\t\tmyLabelSchedule.setText(\"Current Schedule Fitness: \" + CurrFitness);\n\t\tfor (int station = 1; station <= current.stations.size(); station++) {\n\t\t\tfor (int i = 0; i < dtm.getRowCount(); i++) {\n\t\t\t\tdtm.setValueAt(\"\", i, station);\n\t\t\t}\n\t\t\t// @Debug System.out.println(\"TableLength: \"+tableLength);\n\t\t\tStationSlot currentStation = current.stations.get(station - 1);\n\t\t\tif (currentStation.registeredCars.size() == 0) {\n\t\t\t\tcontinue;\n\t\t\t} else {\n\t\t\t\tLinkedList<CarSlot> cars = currentStation.registeredCars;\n\t\t\t\tfor (int i = 0; i < cars.size(); i++) {\n\t\t\t\t\tCarSlot car = cars.get(i);\n\t\t\t\t\tfloat start = car.startTime;\n\t\t\t\t\tfloat duration = car.duration;\n\t\t\t\t\tint rowNum = (int) (start * (60 / interval));\n\t\t\t\t\t// System.out.println(\"ColumNum: \"+rowNum);\n\t\t\t\t\twhile (duration > 0) {\n\t\t\t\t\t\tdtm.setValueAt(\"Car \" + car.name + \" [\" + car.priority + \"]\" + \" - \" + car.type, rowNum, station);\n\t\t\t\t\t\trowNum++;\n\t\t\t\t\t\tduration = (float) (duration - interval / 60f);\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n\tpublic List<ScheduledFlights> retrieveAllScheduledFlights() {\t\r\n\t\tTypedQuery<ScheduledFlights> query = entityManager.createQuery(\"select s from ScheduledFlights s, Flight f,Schedule sc where s.flight = f and s.schedule=sc\",ScheduledFlights.class);\r\n\t\tList<ScheduledFlights> flights = query.getResultList();\r\n\t\treturn flights;\r\n\t}", "public boolean generateSchedule(){\r\n return true;\r\n }", "public void existingSchedules(){\n \n scheduleModel = (DefaultTableModel) displayTable.getModel();\n \n currentSchedules = AccessDataFromXML.retrieveSchedules();\n for (Schedule schedule : currentSchedules){\n \n \n Object[] o = new Object[1];\n o[0] = schedule.getName();\n scheduleModel.addRow(o);\n }\n \n \n\n }", "public Schedule getSchedule() {\n\n return schedule;\n }", "private List<Schedules> getSchedulesList(){\r\n//\t\tList<Schedules> list = new ArrayList<Schedules>();\r\n//\t\tSchedules s1 = new Schedules(1, \"Baidu\", \"BUPT\", \"2013-09-11\", \"12:30\");\r\n//\t\tSchedules s2 = new Schedules(2, \"Sina\", \"BUPT\", \"2013-09-11\", \"13:50\");\r\n//\r\n//\t\tlist.add(s1);\r\n//\t\tlist.add(s2);\r\n\t\tif (scheduleList == null) {\r\n\t\t\tscheduleList = mAppContext.scheduleGetAll();\r\n\t\t}\r\n\t\treturn scheduleList;\r\n//\t\treturn list;\r\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\tpublic List<TimeTableBean> getTimeTable() {\n\t\treturn sessionFactory.openSession().createQuery(\"from TimeTableBean\").list();\r\n\t}", "@Override\n\tpublic List<ScheduleTask> getScheduleTaskList() {\n\t\treturn scheduleTaskDAO.getScheduleTaskList();\n\t}", "abstract public void computeSchedule();", "SchedulingPlay selectByPrimaryKey(Long id);", "public List<WorkoutSchedule> getSchedules() {\n if (schedules == null) {\n if (daoSession == null) {\n throw new DaoException(\"Entity is detached from DAO context\");\n }\n WorkoutScheduleDao targetDao = daoSession.getWorkoutScheduleDao();\n List<WorkoutSchedule> schedulesNew = targetDao._queryWorkout_Schedules(id);\n synchronized (this) {\n if(schedules == null) {\n schedules = schedulesNew;\n }\n }\n }\n return schedules;\n }", "private void refreshScheduleTable() {\n\t\tint gameIdx = 0;\n\t\tList<GameDetails> games = getGames();\n\t\tif (games != null) {\n\t\t\tfor (GameDetails game : games) {\n\t\t\t\tfor (int i = 0; i < 2; i++) {\n\t\t\t\t\tboolean isHome = (i == 0);\n\n\t\t\t\t\tTeamDetails team = (isHome ? game.getHomeTeam() : game.getAwayTeam()); \n\n\t\t\t\t\tboolean isSelected = false;\n\t\t\t\t\tboolean canSelect = true;\n\t\t\t\t\tif (getUiHandlers() != null) {\n\t\t\t\t\t\tisSelected = getUiHandlers().isTeamSelected(team);\n\t\t\t\t\t\tcanSelect = getUiHandlers().canSelectTeam(team);\n\t\t\t\t\t}\n\n\t\t\t\t\tString text = (isHome ? \"@ \" + team.getDisplayName() : team.getDisplayName());\n\n\t\t\t\t\tint row = rowFromGameIdx(gameIdx, isHome);\n\t\t\t\t\tint col = colFromGameIdx(gameIdx, isHome);\n\n\t\t\t\t\tsetScheduleCell(row, col, text, isSelected, canSelect);\t\n\t\t\t\t}\n\n\t\t\t\tgameIdx++;\n\t\t\t}\n\t\t}\n\n\t\t// Clear out any remaining cells (in case of bye weeks).\n\t\tfor (; gameIdx < NFLConstants.MAX_GAMES_PER_WEEK; gameIdx++) {\n\t\t\tfor (int i = 0; i < 2; i++) {\n\t\t\t\tboolean isHome = (i == 0);\n\t\t\t\t\n\t\t\t\tint row = rowFromGameIdx(gameIdx, isHome);\n\t\t\t\tint col = colFromGameIdx(gameIdx, isHome);\n\n\t\t\t\tsetScheduleCell(row, col, \"\", false, true);\n\t\t\t}\n\t\t}\n\t}", "public int getScheduleMethod() {\n return scheduleMethod;\n }", "private static Entity addScheduleDateDataEntities(final Schema schema) {\n Entity scheduleDateData = schema.addEntity(\"ScheduleDateData\");\n scheduleDateData.addIdProperty().primaryKey().autoincrement();\n scheduleDateData.addIntProperty(\"schedule_id\").notNull();\n scheduleDateData.addStringProperty(\"schedule_name\");\n scheduleDateData.addStringProperty(\"class_id\");\n scheduleDateData.addStringProperty(\"class_name\");\n scheduleDateData.addStringProperty(\"class_desc\");\n scheduleDateData.addStringProperty(\"schedule_type_id\");\n scheduleDateData.addStringProperty(\"schedule_type\");\n scheduleDateData.addStringProperty(\"schedule_start_date\");\n scheduleDateData.addStringProperty(\"schedule_start_time\");\n scheduleDateData.addStringProperty(\"schedule_end_time\");\n scheduleDateData.addLongProperty(\"schedule_start_time_long\");\n scheduleDateData.addLongProperty(\"schedule_end_time_long\");\n scheduleDateData.addIntProperty(\"schedule_monday\");\n scheduleDateData.addIntProperty(\"schedule_tuesday\");\n scheduleDateData.addIntProperty(\"schedule_wednesday\");\n scheduleDateData.addIntProperty(\"schedule_thursday\");\n scheduleDateData.addIntProperty(\"schedule_friday\");\n scheduleDateData.addIntProperty(\"schedule_saturday\");\n scheduleDateData.addIntProperty(\"schedule_sunday\");\n scheduleDateData.addStringProperty(\"schedule_frequency\");\n scheduleDateData.addIntProperty(\"is_cancelled\");\n scheduleDateData.addIntProperty(\"is_reservable\");\n scheduleDateData.addStringProperty(\"instructor_id\");\n scheduleDateData.addStringProperty(\"instructor_name\");\n scheduleDateData.addStringProperty(\"location_id\");\n scheduleDateData.addStringProperty(\"location_name\");\n\n return scheduleDateData;\n }", "public static String listScheduleIdSymbol(int tambahanBolehABs) {\n DBResultSet dbrs = null;\n String result = \"\";\n try {\n Date dtStart = new Date();\n Date dtEnd = new Date();\n String dtManual = \"\";\n boolean crossDay = false;\n //dtStart.setHours(dtStart.getHours()-tambahanBolehABs);\n dtStart = new Date(dtStart.getYear(), dtStart.getMonth(), (dtStart.getDate()), (dtStart.getHours() - tambahanBolehABs), dtStart.getMinutes(), dtStart.getSeconds());\n dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate()), (dtEnd.getHours() + tambahanBolehABs), dtEnd.getMinutes(), dtEnd.getSeconds());\n int jamMelebihiOneDay = 23;\n if (dtStart.getHours() == 0 || dtStart.getHours() == 23) {\n dtManual = \"23:\" + \"59:\" + \"59\";\n crossDay = true;\n jamMelebihiOneDay = jamMelebihiOneDay + tambahanBolehABs;\n }\n if (dtEnd.getHours() == 0) {\n dtManual = \"23:\" + \"59:\" + \"59\";\n crossDay = true;\n jamMelebihiOneDay = jamMelebihiOneDay + tambahanBolehABs;\n }\n\n// String dtManual=\"\";\n// if(dt.getHours()==0 || dt.getHours()+tambahanBolehABs>=23){\n// int idtManual = 24+tambahanBolehABs;\n// dtManual = idtManual+\":59:00\" ;\n// }else{\n// dt.setHours(dt.getHours()+tambahanBolehABs);\n// }\n\n String sql = \"SELECT * FROM \" + PstScheduleSymbol.TBL_HR_SCHEDULE_SYMBOL\n + \" WHERE \\\"00:00:00\\\" <=\" + PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT]\n + \" AND \" + PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN] + \"<= \\\"\"\n + \"23:59:00\"\n //+ (dtStart.getHours() == 0 || dtStart.getHours() == 23 || dtEnd.getHours() == 0 ? dtManual : Formater.formatDate(dtEnd, \"HH:mm:00\"))\n + \"\\\"\";\n //+ \" WHERE \" + \"(\"+PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN] +\" BETWEEN \\\"00:00:00\\\" AND \\\"\"+ (crossDay?dtManual:Formater.formatDate(dtStart, \"HH:mm:00\")) +\"\\\") OR (\"+PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT] +\" BETWEEN \\\"00:00:00\\\" AND \\\"\"+Formater.formatDate(dtEnd, \"HH:mm:00\")+\"\\\")\";\n\n dbrs = DBHandler.execQueryResult(sql);\n ResultSet rs = dbrs.getResultSet();\n while (rs.next()) {\n dtEnd = new Date();\n dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate()), (dtEnd.getHours() + tambahanBolehABs), dtEnd.getMinutes(), dtEnd.getSeconds());\n \n Date schTimeIn = rs.getTime(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN]);\n\n Date schTimeOut = rs.getTime(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT]);\n Date dtTmpSchTimeIn = new Date();\n Date dtTmpSchTimeOut = new Date();\n\n\n if (schTimeIn != null && schTimeOut != null) {\n schTimeOut = new Date(dtTmpSchTimeOut.getYear(), dtTmpSchTimeOut.getMonth(), dtTmpSchTimeOut.getDate(), schTimeOut.getHours(), schTimeOut.getMinutes());\n schTimeIn = new Date(dtTmpSchTimeIn.getYear(), dtTmpSchTimeIn.getMonth(), dtTmpSchTimeIn.getDate(), schTimeIn.getHours(), schTimeIn.getMinutes());\n\n Date dtCobaTimeOut = new Date(schTimeOut.getYear(), schTimeOut.getMonth(), (schTimeOut.getDate()), (schTimeOut.getHours() + tambahanBolehABs), schTimeOut.getMinutes(), schTimeOut.getSeconds());\n boolean melebihiHari=false;\n if (schTimeIn.getHours() == 0 || schTimeOut.getHours() == 0) {\n \n } else {\n if (dtCobaTimeOut.getDate() > schTimeIn.getDate()) {\n //dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate() + 1), (dtEnd.getHours()), dtEnd.getMinutes(), dtEnd.getSeconds());\n melebihiHari=true;\n }\n\n if ( (melebihiHari && dtEnd.getHours()<dtCobaTimeOut.getHours()) || schTimeIn.getTime() <= dtEnd.getTime() || (schTimeIn.getHours() > schTimeOut.getHours() && dtEnd.getTime() < schTimeOut.getTime())) {\n result = result + rs.getString(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_SCHEDULE_ID]) + \",\";\n }\n }\n\n\n\n\n\n }\n\n }\n if (result != null && result.length() > 0) {\n result = result.substring(0, result.length() - 1);\n }\n rs.close();\n return result;\n\n } catch (Exception e) {\n System.out.println(e);\n } finally {\n DBResultSet.close(dbrs);\n }\n return result;\n }", "public interface ScheduleDao {\r\n\tpublic Schedule createSchedule(Calendar scheduleDate) throws DAOException;\r\n\tpublic Schedule findScheduleById(long scheduleId) throws DAOException;\r\n\tpublic List<Schedule> findSchedulesByDate(Calendar scheduleDate) throws DAOException;\r\n\tpublic List<Schedule> findAllSchedules() throws DAOException;\r\n\tpublic void updateSchedule(long scheduleId, Calendar newScheduleDate) throws DAOException;\r\n\tpublic void deleteScheduleById(long scheduleId) throws DAOException;\r\n\tpublic void deleteAllSchedules() throws DAOException;\r\n}", "public String getSchedule() {\n return schedule;\n }", "public Schedule getSchedule() {\r\n\t\treturn schedule;\r\n\t}", "public ScheduleType getScheduleType();", "public interface ScheduleService {\n BasicSchedule getBasicScheduleByHostelIdAndRoomType(long hostelId, RoomType type);\n\n /**\n * 获得最近一年的酒店基本计划\n *\n * @param hostelId\n * @return\n */\n List<BasicSchedule> getBasisSchedulesByHostelId(long hostelId);\n\n void modifyBasisSchedule(BasicSchedule basicSchedule);\n\n /**\n * 获得最近一年的酒店特殊计划\n *\n * @param hostelId\n * @return\n */\n List<SpecialSchedule> getSpecialScheduleByHostelId(long hostelId);\n\n void modifySpecialSchedule(SpecialSchedule specialSchedule);\n\n void addSpecialSchedule(SpecialSchedule specialSchedule);\n\n void deleteSpecialSchedule(SpecialSchedule specialSchedule);\n\n SpecialSchedule getSpecialSchedule(long hostelId, RoomType roomType, Date date);\n}", "private void loadScheduleList() {\n\n if (listTbagendamentos != null && !listTbagendamentos.isEmpty()) {\n scheduleAgendamento.clear();\n\n for (Tbagendamento agendamento : listTbagendamentos) {\n DefaultScheduleEvent defaultScheduleEvent = new DefaultScheduleEvent();\n defaultScheduleEvent.setTitle(agendamento.getIdcliente().getNmcliente());\n\n Calendar dtDataInicial = new GregorianCalendar();\n dtDataInicial.setTime(agendamento.getTmdataagendamento());\n\n defaultScheduleEvent.setStartDate(dtDataInicial.getTime());\n\n Calendar dtDataFinal = new GregorianCalendar();\n dtDataFinal.setTime(agendamento.getTmdataagendamento());\n dtDataFinal.set(Calendar.MINUTE, dtDataFinal.get(Calendar.MINUTE) + 30);\n\n defaultScheduleEvent.setEndDate(dtDataFinal.getTime());\n defaultScheduleEvent.setData(agendamento.getIdagendamento());\n scheduleAgendamento.addEvent(defaultScheduleEvent);\n }\n }\n }", "public Schedule() {\r\n }", "public void setSchedule(Schedule schedule) {\r\n\t\tthis.schedule = schedule;\r\n\t}", "List<WorkingSchedule> getByPlaceId(Long placeId);", "public ProgramScheduled getProgramScheduleById(int scheduleId);", "public ArrayList<TrainScheduleEntity> viewTrainSchedule(String dayType);", "java.lang.String getSnapshotCreationSchedule();", "io.opencannabis.schema.commerce.CommercialOrder.SchedulingType getScheduling();", "@Override\r\n\tpublic void doInitialSchedules() {\n\t}", "void setSchedule(java.lang.String schedule);", "ScheduleStartType getScheduleStart();", "public abstract void schedule();", "public void setSchedule(Schedule newSchedule) {\n\n schedule = newSchedule;\n }", "@Mapper\npublic interface VirtualRepayFlowMapper {\n @DataSource(\"bigdata2_jdb\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE update_time >= #{from_time} and update_time < #{end_time} and id>#{id} limit 1000\")\n List<VirtualRepayFlow> find(@Param(\"from_time\") String from_time,\n @Param(\"end_time\") String end_time,\n @Param(\"id\") long id);\n\n\n @DataSource(\"dmp\")\n @Insert(\"INSERT INTO virtual_repay_flow (id,uuid,virtual_productid,to_user,amount,interest,repay_status,repay_time,create_time,update_time) values\" +\n \"(#{id},#{uuid},#{virtual_productid},#{to_user},#{amount},#{interest},#{repay_status},#{repay_time},#{create_time},#{update_time})\")\n void insert(VirtualRepayFlow virtualRepayFlow);\n\n @DataSource(\"dmp\")\n @Delete(\"DELETE FROM repay_flow where update_time<#{update_time}\")\n void delete(@Param(\"update_time\") String update_time);\n\n @DataSource(\"dmp\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE id=#{id}\")\n VirtualRepayFlow getById(@Param(\"id\") long id);\n\n\n @DataSource(\"dmp\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE uuid=#{uuid}\")\n VirtualRepayFlow getByUuid(@Param(\"uuid\") String uuid);\n}", "public abstract void maintenanceSchedule() ;", "@Override\n public List<SurveillantSchedule> getSurveillantSchedule() {\n return surveillantRepository.getSurveillantSchedule();\n }", "long getScheduleID() {return mScheduleID; }", "com.google.cloud.gkebackup.v1.BackupPlan.Schedule getBackupSchedule();", "public String getScheduleRow() {\n\t\treturn uSRow;\n\t}", "public void setSchedule_id(int schedule_id) {\r\n this.schedule_id = schedule_id;\r\n }", "public void printSchedule(){\n String\n format =\n \"%-20s%-10s%-15s%\" +\n \"-20s%-25s%-10s%\" +\n \"-15s%-15s%-15s%n\";\n\n System.out.printf(format,\n \"Водитель\", \"Номер А/М\",\"Машина\", \"Дата и время\",\n \"Задание\", \"Кол-во\",\n \"Расстояние\", \"Цена\", \"Примечание\");\n System.out.println();\n\n\n\n List<TimeTable> l = driverScheduleReaderDAO.getTimeTable();\n TimeTable tPrev =l.get(0);\n for (TimeTable t: l){\n\n if (!t.getDriverName().equals(tPrev.getDriverName())) {\n\n System.out.println(\"***\");\n tPrev = t;\n\n } else if (t!=l.get(0))t.setDriverName(\" \");\n\n\n\n\n System.out.printf(format,\n t.getDriverName(), t.getCarId(), t.getCarBrand(),\n t.getBusyTime(), t.getOrder(), t.getNumOfEl(),\n t.getDistance(), t.getPrice(), t.getNote()\n );\n\n }\n\n //int\n\n\n\n\n //вывести на экран\n //отельным классом посчитать шанс поломки и предупредить\n }", "public void schedule(String id, String[] schedule) {\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic List<ISchedule> getSchedules() throws IOException {\n\t\tfinal String sql = \"SELECT * from record\";\n\t\tList<? extends ISchedule> result = this.queryDataList(Schedule.class,ISchedule.Props.class, sql);\n\t\treturn (List<ISchedule>) result;\t\t\n\t}", "public List<AllTimeSeasonBean> getAllTimeRecord(){\n String q = \"select new com.main.pcblroyals.bean.AllTimeSeasonBean( \" +\n \"sum(case when g.teamScore > g.opponentScore then 1 else 0 end), \" +\n \"sum(case when g.teamScore = g.opponentScore then 1 else 0 end), \" +\n \"sum(case when g.teamScore < g.opponentScore then 1 else 0 end) \" +\n \") \" +\n \"from seasons s \" +\n \"join games g on s.id = g.season.id \";\n Query query = entityManager.createQuery(q);\n return (List<AllTimeSeasonBean>) query.getResultList();\n }", "@Override\n public String getEndPoint() {\n return \"/v1/json/schedule\";\n }", "@GetMapping\n public List<ScheduleDTO> getAllSchedules() {\n List<Schedule> scheduleList = scheduleService.getAllSchedules();\n\n List<ScheduleDTO> scheduleDTOList = scheduleList.stream()\n .map(ScheduleController::convertScheduleToScheduleDTO)\n .collect(Collectors.toList());\n return scheduleDTOList;\n }", "public interface ScheduleListDao extends GenericDao<ScheduleList, Long> {\n\t\n\tpublic List<ScheduleList> findShceduleList(String scheduleId); \n\t\n\t /**\n * 自服务项列表\n * @return\n */\n public Page findScheduleList(String pageSize);\n\t\n}", "public void storeRegularDayTripStationScheduleWithRS();", "@MapperScan\npublic interface DSSettingMapper {\n\n @Insert(\"INSERT INTO ds_setting (dsId, dsAppointment2,dsAppointment3,outCoachIds,status,modifyTime)\" +\n \" VALUES(#{dsId},#{dsAppointment2},#{dsAppointment3},#{outCoachIds},#{status},NOW())\")\n int insertDssetting(DSSetting dsSetting);\n\n @Update(\"UPDATE ds_setting SET dsAppointment2 = #{dsAppointment2},\" +\n \" dsAppointment3 = #{dsAppointment3}, outCoachIds = #{outCoachIds}, \" +\n \"status = #{status}, modifyTime = NOW() \" +\n \"WHERE dsId = #{dsId}\")\n int updateDssetting(DSSetting dsSetting);\n\n @Select(\"SELECT * FROM ds_setting WHERE dsId = #{dsId}\")\n DSSetting findOneDSSetting(@Param(\"dsId\") Long dsId);\n}", "public String getScheduleExpression() {\n return this.scheduleExpression;\n }", "@Override\n\tpublic List<SchedulerJobEntity> getAllScheduledJobs() throws SchedulerException {\n\t\treturn schedulerRepository.findAll();\n\t}", "@Override\n\t\tpublic oep_ResponseInfo getTestscheduledetails(String id) {\n\t\t\t\n\t\t\t\n\t\t\tString query = \" SELECT a.`ques_master_id`,`is_test_started`,a.`id`,`sub_id`,a.`batch`,DATE_FORMAT(`testdate`,'%m/%d/%Y')newtestdate,a.`start_time`, a.`end_time`,a.`status`,b.`test_name`,`test_id`,\"\n\t\t\t\t\t+ \"HOUR(a.`start_time`)starthour,MINUTE(a.`start_time`)startminute, HOUR(a.`end_time`)endhour,MINUTE(a.`end_time`)endminute,\"\n\t\t\t\t\t+ \" DATE_FORMAT(`testdate`,'%d/%m/%Y')testdate, SUBSTRING_INDEX(a.`start_time`,' ',-1)startformatt,SUBSTRING_INDEX(a.`end_time`,' ',-1)endformatt,\"\n\t\t\t\t\t+ \"GROUP_CONCAT(f.`username`,' ',CASE WHEN `is_participant_start` = 2 THEN ' completed \\n' WHEN `is_participant_start` = 1 THEN 'Started \\n' ELSE 'Not started \\n'END)username,\"\n\t\t\t\t\t+ \"`is_participant_start`,h.`username`facname FROM `test_schedule` a JOIN `question_master` b ON a.`ques_master_id` = b.`id` \"\n\t\t\t\t\t+ \"JOIN `course_scheduling`c ON c.`cs_id`= a.`batch` JOIN `participants_registration_course_details`e ON e.`course_id`= c.`cs_id` \"\n\t\t\t\t\t+ \" JOIN `participants`f ON f.`participant_id`=e.`participant_id` \"\n\t\t\t\t\t+ \"LEFT JOIN `test_participants`g ON g.`part_id`= f.`participant_id` AND g.`ts_id`=a.`id`\"\n\t\t\t\t\t+ \" JOIN `faculty_master`h ON h.`faculty_id` = c.`faculty_name` WHERE a.`id`= \"+id+\" \";\n\t\t\t\n\t\t\t\n\t\t\tlog.info(query);\n\t\t\t\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tList<Object> List = jdbcTemplate.query(query, new RowMapper() {\n\t\t\t\tint count = 0;\n\t\t\t\t@Override\n\t\t\t\tpublic Object mapRow(ResultSet rs, int arg1) throws SQLException {\n\t\t\t\t\t\n\t\t\t\t\tMap<String, Object> map = new HashMap<String, Object>();\n\t\t\t\t\tmap.put(\"testid\", rs.getString(\"test_id\"));\n\t\t\t\t\tmap.put(\"startformat\", rs.getString(\"startformatt\"));\n\t\t\t\t\tmap.put(\"endformat\", rs.getString(\"endformatt\"));\t\n\t\t\t\t\tmap.put(\"facname\", rs.getString(\"facname\"));\n\t\t\t\t\tmap.put(\"quesid\", rs.getString(\"ques_master_id\"));\n\t\t\t\t\tmap.put(\"id\", rs.getString(\"id\"));\n\t\t\t\t\tmap.put(\"tsid\", rs.getString(\"id\"));\n\t\t\t\t\tmap.put(\"batch\", rs.getString(\"batch\"));\n\t\t\t\t\tmap.put(\"testdate\", rs.getString(\"testdate\"));\n\t\t\t\t\tmap.put(\"newtestdate\", rs.getString(\"newtestdate\"));\n\t\t\t\t\tmap.put(\"subid\", rs.getString(\"sub_id\"));\n\t\t\t\t\tmap.put(\"starthour\", rs.getString(\"starthour\"));\n\t\t\t\t\tmap.put(\"endhour\", rs.getString(\"endhour\"));\n\t\t\t\t\tmap.put(\"startminute\", rs.getString(\"startminute\"));\n\t\t\t\t\tmap.put(\"endminute\", rs.getString(\"endminute\"));\n\t\t\t\t\tmap.put(\"starttime\", rs.getString(\"start_time\"));\n\t\t\t\t\tmap.put(\"testname\", rs.getString(\"test_name\"));\n\t\t\t\t\tmap.put(\"username\", rs.getString(\"username\"));\n\t\t\t\t\tmap.put(\"starttest\", rs.getString(\"is_test_started\"));\n\t\t\t\t\tmap.put(\"participantstart\", rs.getString(\"is_participant_start\"));\n\t\t\t\t\tmap.put(\"endtime\", rs.getString(\"end_time\"));\n/*\t\t\t\t\t\n\t\t\t\t\tString submenuQuery = \"SELECT `part_id`,`imh_staus`,`username`,CONCAT(`username`,' ',CASE WHEN `imh_staus` = 0 \"\n\t\t\t\t\t\t\t+ \" THEN 'Certificate Not sent ' WHEN `imh_staus` = 1 THEN 'Certificate sent' \"\n\t\t\t\t\t\t\t+ \" ELSE 'Invalid 'END)status FROM `email_history`a \"\n\t\t\t\t\t\t\t+ \" JOIN `participants`b ON a.`part_id`=b.`participant_id` WHERE `ts_id` = \"+ rs.getString(\"id\");\t*/\n\t\t\t\t\t\n\t\t\t\t\tString submenuQuery = \" SELECT a.`ques_master_id`,`username`,`imh_staus`,`is_test_started`,a.`id`,a.`batch`,DATE_FORMAT(`testdate`,'%e/%c/%Y')testdate,a.`start_time`, a.`end_time`,a.`status`,b.`test_name`,`test_id`,\"\n\t\t\t\t\t\t\t+ \"CONCAT(`username`,' ',CASE WHEN `is_participant_start` = 2 THEN ' completed \\n' WHEN `is_participant_start` = 1 THEN 'Started \\n' ELSE 'Not started \\n'END)teststatus,\"\n\t\t\t\t\t\t\t+ \"`is_participant_start` FROM `test_schedule` a JOIN `question_master` b ON a.`ques_master_id` = b.`id` \"\n\t\t\t\t\t\t\t+ \"JOIN `course_scheduling`c ON c.`cs_id`= a.`batch` JOIN `participants_registration_course_details`e ON e.`course_id`= c.`cs_id` \"\n\t\t\t\t\t\t\t+ \" JOIN `participants`f ON f.`participant_id`=e.`participant_id` \"\n\t\t\t\t\t\t\t+ \"LEFT JOIN `test_participants`g ON g.`part_id`= f.`participant_id` AND g.`ts_id`=a.`id`\"\n\t\t\t\t\t\t\t+ \"JOIN `email_history`h ON h.`ts_id`= a.`id` WHERE a.`id`= \"+ rs.getString(\"id\");\n\t\t\t\t\t\n\t\t\t\t\t List<Object> submenuList = new ArrayList<Object>();\n\t\t\t\t\t submenuList = getPartStatusList(submenuQuery);\n\t\t\t\t\t map.put(\"submenuList\", submenuList);\n\t\t\t\t\t\n\t\t\t\t\tif(rs.getString(\"status\")!= null && rs.getString(\"status\").equals(\"1\")){\n\t\t\t\t\t\tmap.put(\"status\", \"Active\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tmap.put(\"status\", \"Inactive\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(rs.getString(\"is_test_started\")!= null && rs.getString(\"is_test_started\").equals(\"1\")){\n\t\t\t\t\t\tmap.put(\"teststarted\", \"Test Started\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tmap.put(\"teststarted\", \"Not started\");\n\t\t\t\t\t}\n\t\t\t\t\tmap.put(\"index\", count);\n\t\t\t\t\tcount++;\n\t\t\t\t\treturn map;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t});\n\t\t\t\n\t\t\n\t\t\t \n\t\t\t \n\t\t\tresponse.setResponseType(\"S\");\n\t\t\tresponse.setResponseObj(List);\n\t\t\tresponseInfo.setInventoryResponse(response);\n\t\t\treturn responseInfo;\n\t\t}", "public void createTempSpecialDayTrainSchedule(Timestamp date);", "public void generatePlan(Integer id,Date fromDate, Date toDate) throws Exception;", "@Override\r\n\tpublic List<Courseschedule> getCourseschedulesByClassroomId(int classroomId) {\n\t\tsession = sessionFactory.openSession();\r\n\t\tTransaction tran = session.beginTransaction();\r\n\t\tString hql = \"from Courseschedule where classroomId=:classroomId and state=:state\";\t\t\r\n\t\tList<Courseschedule> lists = session.createQuery(hql).setInteger(\"classroomId\", classroomId).setInteger(\"state\", 0).list();\r\n\t\ttran.commit();\r\n\t\tsession.close();\r\n\t\tlogger.debug(\"use the method named :getCourseschedulesByClassroomId(int classroomId)\");\r\n\t\tif (lists.size() > 0) {\r\n\t\t\treturn lists;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public void setSchedule(String timeframe) {\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic List<ScheduledFlights> retrieveScheduledFlights(String source, String destination) {\r\n\t\tQuery query = entityManager.createQuery(\"select s.scheduleId,s.source,s.destination,s.arrivaltime,s.departuretime,f.flightNumber,f.carrierName,f.seatCapacity from Schedule s JOIN ScheduledFlights sf ON s.scheduleId=sf.scheduleId JOIN Flight f on sf.flightId=f.flightNumber where schedule.source= :source AND schedule.destination=:destination\");\r\n\t\treturn query.getResultList();\r\n\t}", "@Override\r\n\tpublic boolean updateDate(ScheduleAdminModel scheduleAdminModel) throws ClassNotFoundException, SQLException {\n\t\r\n\t\tConnection connection=ConnectionManager.openConnection();\r\nPreparedStatement statement=\r\n connection.prepareStatement(\"update courses set start_date=?,end_date=? where course_name=?\");\r\nstatement.setString(1,scheduleAdminModel.getStartDate());\r\nstatement.setString(2,scheduleAdminModel.getEndDate());\r\nstatement.setString(3,scheduleAdminModel.getCourse_name());\r\n \r\n int rows=statement.executeUpdate();\r\n\tConnectionManager.closeConnection();\r\n\tif(rows>0)\r\n\t\treturn true;\r\n\t else \r\n\t return false;\r\n\t}", "void deschedule(ScheduledJob job);", "@Query(\"select :stopName from Timetable order by id\")\n List<Integer> selectStop(String stopName);", "public Date getScheduletime() {\r\n return scheduletime;\r\n }", "public List<Timetable> getAllTimetable() throws Exception;", "public abstract ArrayList<ScheduleTime> getScheduleForDay(int day, int month, int year);", "public void setSchedule(SpaceSchedule s) {\n\t\t\n\t}", "MMSchedule() {\n mScheduleID = MMUtilities.ID_DOES_NOT_EXIST;\n mOfMedicationID = 0;\n mForPersonID = 0;\n mTimeDue = 0;\n mStrategy = MMMedication.sSET_SCHEDULE_FOR_MEDICATION;\n }", "@Override\n public void fetchScheduled(RuleKey ruleKey) {\n }", "List<Schedule> selectByExampleWithRowbounds(ScheduleCriteria example, RowBounds rowBounds);", "Schedule getSchedule(String departure, String arrival, int depYear, int depMonth);", "public void setList(ScheduleInterface<Schedule> scheduleList){\n this.scheduleList = scheduleList;\n }", "int insert(Schedule record);", "private void reloadPlanTable() {\n\t\t\r\n\t}", "public Schedule getSchedule(String route, int direction){\r\n // A schedule to hold all the data returned from the query\r\n Schedule weekdayZero = new Schedule();\r\n // Fetch the route id given the route\r\n Cursor getData = getReadableDatabase().rawQuery(\"select _id from routes where route_long_name = '\" + route + \"'\", null);\r\n // Make sure to begin at the first element of the returned data\r\n getData.moveToFirst();\r\n // Store the Route Id\r\n int route_id = getData.getInt(0);\r\n // Calendar id: (90400,90448) - Monday To Friday\r\n final String query = \"select Routes.Route_long_Name, \" +\r\n \"Calendar._Id, Stops.Stop_Name, Stop_Times.Stop_Sequence, Stop_Times.Arrival_Time, routes.route_short_name \" +\r\n \"from Trips join Calendar on Trips.Service_Id=Calendar._Id \" +\r\n \"join Routes on Trips.Route_Id=Routes._Id \" +\r\n \"join Stop_Times on Trips._Id=Stop_Times.Trip_Id \" +\r\n \"join Stops on Stop_Times.Stop_Id=Stops._Id \" +\r\n \"where Calendar._Id in \" + getDayOfTheWeek() + \" \" +\r\n \"AND Trips.Route_Id = \" + route_id + \" \" +\r\n \"AND Trips.Direction_Id = \" + direction + \" \" +\r\n \"AND Stop_Times.Arrival_Time != '' \" +\r\n \"order by arrival_time asc\";\r\n getData.moveToFirst();\r\n getData = getReadableDatabase().rawQuery(query, null);\r\n while (getData.moveToNext()){\r\n weekdayZero.insertData(getData.getString(0), getData.getInt(1), getData.getString(2), getData.getInt(3)\r\n , getData.getString(4), getData.getString(5));\r\n }\r\n return weekdayZero;\r\n }", "public Date getScheduleTime() {\n return this.scheduleTime;\n }", "@Override\n\tpublic void setDateAndSchedule(String date, String schedule) {\n\n\t}", "public MonthlyValuesTable(Database database) \n {\n //Constructor calls DbTable's constructor\n super(database);\n setTableName(\"monthlyvalues\");\n }", "public Date getScheduleDate(){\r\n\t\treturn this.scheduleDate;\r\n\t}", "com.google.cloud.compute.v1.Scheduling getScheduling();", "TimerSchedule createTimerSchedule();", "public ApiSchedule[] getSchedules() {\n return this.schedules;\n }", "@Override\n\tpublic void setDateAndSchedule(String date, String schedule) {\n\t\t\n\t}", "public interface ITimetableDAO {\n\n /**\n * Get all the timetable element of <code>Timetable</code> object <br>\n *\n * @return all the list of <code>Timetable</code> object\n * @throws Exception\n */\n public List<Timetable> getAllTimetable() throws Exception;\n\n /**\n * Get all the list element has search of <code>Timetable</code> object<br>\n *\n * @param from is the date of <code>Timetable</code> object\n * @param to is the date of <code>Timetable</code> object\n * @return all the list has search of <code>Timetable</code> object\n * @throws Exception\n */\n public List<Timetable> getListSearch(String from, String to) throws Exception;\n\n /**\n * Add the all the element of Timetable to database\n *\n * @param date the date of Timetable object, it is an\n * <code>java.sql.Date</code>\n * @param slot the slot of Timetable object, it is an int\n * @param classes the classes of Timetable object, it is a string\n * @param teacher the teacher of Timetable object, it is a string\n * @param room the room of Timetable object, it is an int\n * @throws Exception\n */\n public void addTimetable(String date, String slot, String room, String teacher, String classes) throws Exception;\n\n /**\n * Function to check Timetable exist before add\n *\n * @param date the date of Timetable object, it is an\n * <code>java.sql.Date</code>\n * @param classes the slot of Timetable object, it is an int\n * @param room the room of Timetable object, it is a string\n * @return object of Timetable or null when check exist timetable\n * @throws Exception\n */\n public Timetable checkExistRoomTimeTable(String date, String classes, String room) throws Exception;\n\n /**\n * Paginate by number of timetable in <code>Timetable</code> object <br>\n *\n * @param pageIndex the index of page, it is an <code>int</code>\n * @param pageSize the size of page, it is an <code>int</code>\n * @return list of timetable, it is a <code>java.util.List</code> object.\n * @throws java.lang.Exception\n */\n public List<Timetable> pagging(int pageIndex, int pageSize) throws Exception;\n\n /**\n * Get number of result <code>Gallery</code> object by id\n *\n * @return number result of Gallery object, it is an int\n * @throws java.lang.Exception\n */\n public int numberOfResult() throws Exception;\n\n /**\n * Function to check Timetable exist before add\n *\n * @param date the date of Timetable object, it is an\n * <code>java.sql.Date</code>\n * @param classes the slot of Timetable object, it is an int\n * @param teacher the teacher of Timetable object, it is a string\n * @return object of Timetable or null when check exist timetable\n * @throws Exception\n */\n public Timetable checkExistTeacherTimeTable(String date, String classes, String teacher) throws Exception;\n\n}", "public void setScheduleTime(Date scheduleTime) {\n this.scheduleTime = scheduleTime;\n }", "@Scheduled(cron = \"0 30 06 * * *\",zone=\"America/New_York\")\n public void populateDatabase(){\n localDateTime = LocalDateTime.now();\n log.info(\"Executed now: \"+ localDateTime.toString());\n\n // Checks if table in database is empty\n // If not empty, clears the table and populates it with new data\n if(checkEmpty()==0)\n log.info(\"Empty Table\");\n else {\n deleteTableRecords();\n log.info(\"Table not Empty\");\n }\n\n URL url = null;\n\n // Get recent date, append it to URL and establish a connection\n String pattern = \"MM-dd-yyyy\";\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(pattern);\n Date date = Date.from(Instant.now().minus(Duration.ofDays(1)));\n\n\n String dateStr = simpleDateFormat.format(date);\n\n try {\n url = new URL(\"https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_daily_reports/\"+dateStr+\".csv\");\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n HttpURLConnection httpURLConnection = null;\n try {\n httpURLConnection = (HttpURLConnection) url.openConnection();\n } catch (IOException e) {\n e.printStackTrace();\n }\n int responseCode = 0;\n try {\n responseCode = httpURLConnection.getResponseCode();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n // On successful connection, read records line by line, store records in a table\n if(responseCode==200)\n {\n log.info(\"-- Successful Connection\");\n CSVReader reader = null;\n try {\n\n BufferedReader input = new BufferedReader(new InputStreamReader(httpURLConnection.getInputStream()),8192);\n reader = new CSVReader(input);\n String[] line;\n int skipFirstLine = 0;\n while ((line = reader.readNext()) != null)\n {\n if(skipFirstLine==0)\n {\n skipFirstLine++;\n continue;\n }\n\n DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern(\"yyyy-MM-dd HH:mm:ss\");\n\n Corona corona = new Corona();\n corona.setLastUpdate(LocalDateTime.parse(line[4],dateTimeFormatter));\n if(line[7].equals(\"\"))\n line[7]=\"0\";\n if(line[9].equals(\"\"))\n line[9]=\"0\";\n if(line[10].equals(\"\"))\n line[10]=\"0\";\n if(line[8].equals(\"\"))\n line[8]=\"0\";\n if(line[5].equals(\"\"))\n line[5]=\"0\";\n if(line[6].equals(\"\"))\n line[6]=\"0\";\n\n try {\n\n corona.setConfirmed(Long.valueOf(line[7]));\n corona.setRecovered(Long.valueOf(line[9]));\n corona.setActive(Long.valueOf(line[10]));\n corona.setDeaths(Long.valueOf(line[8]));\n corona.setLatitude(Double.valueOf(line[5]));\n corona.setLongitude(Double.valueOf(line[6]));\n } catch (NumberFormatException n)\n {\n n.printStackTrace();\n }\n corona.setCountry(line[3]);\n corona.setProvince(line[2]);\n corona.setCombinedKey(line[11]);\n\n\n\n coronaRepository.save(corona);\n log.info(corona.toString());\n\n\n }\n } catch (IOException | CsvValidationException e){\n e.printStackTrace();\n } finally {\n if(reader!=null)\n {\n try\n {\n reader.close();\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }\n }\n }\n }" ]
[ "0.6583093", "0.62134594", "0.614241", "0.6096163", "0.5869904", "0.5847323", "0.57736564", "0.5749311", "0.5730464", "0.5692395", "0.5691314", "0.5688622", "0.56733465", "0.5612722", "0.56103665", "0.5601378", "0.5594937", "0.5592374", "0.55869794", "0.5565921", "0.5544678", "0.5536762", "0.54946375", "0.5486974", "0.5463075", "0.54603523", "0.5455832", "0.54501116", "0.5445156", "0.5444004", "0.54084784", "0.53984827", "0.53917515", "0.53882813", "0.5388208", "0.5379494", "0.5379087", "0.53540117", "0.53484684", "0.53395474", "0.5337806", "0.53348553", "0.5326429", "0.531917", "0.5268467", "0.52664775", "0.52625597", "0.5256478", "0.5245691", "0.52455944", "0.5244061", "0.52287424", "0.52114916", "0.52114564", "0.5211055", "0.5206053", "0.5198744", "0.51842344", "0.51793087", "0.51495117", "0.5128515", "0.5107465", "0.510662", "0.51056135", "0.50985986", "0.5097996", "0.5095179", "0.5078455", "0.5071949", "0.5062537", "0.5048053", "0.5045186", "0.50360614", "0.5034012", "0.5032612", "0.5029762", "0.5028272", "0.5023831", "0.50128245", "0.50107193", "0.50062126", "0.49853772", "0.49811625", "0.4979578", "0.49694157", "0.4958413", "0.49560702", "0.49543408", "0.49509862", "0.49456567", "0.49427602", "0.49422622", "0.49398386", "0.4935916", "0.4927577", "0.49200827", "0.49151728", "0.49094823", "0.49054155", "0.49049369", "0.49020037" ]
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table schedule
protected Criteria createCriteriaInternal() { Criteria criteria = new Criteria(); return criteria; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void generateSchedule(){\n\t\t\n\t}", "@Dao\npublic interface schedule_Dao {\n\n @Query(\"SELECT * FROM Schedule where student_id = :studentId\")\n List<Schedule> getSchedulesStudent(String studentId);\n\n\n\n @Query(\"SELECT COUNT(pkey) FROM Schedule where student_id = :student_id\")\n int getScheduleCount(String student_id);\n\n\n\n @Query(\"SELECT * FROM Schedule where student_id = :studentId and active = :active or active = :Active\")\n List<Schedule> getActiveSchedules(String active,String Active, String studentId);\n\n\n @Query(\"SELECT * FROM Schedule where `endtime_null` >= :date and `starttime_null` <= :date and student_id = :studentId and active = :active or active = :Active \")\n List<Schedule> getSelEvents(String active,String Active, String studentId, String date);\n\n\n @Query(\"SELECT * FROM Schedule where `endtime` >= :date and `starttime` <= :date and student_id = :studentId and active = :active or active = :Active \")\n List<Schedule> getSelEventTime(String active,String Active, String studentId, String date);\n\n\n @Insert\n void insertAll(Schedule... schedules);\n\n @Insert(onConflict = OnConflictStrategy.IGNORE)\n void insertOnConflict(Schedule... schedules);\n\n @Query(\"DELETE FROM Schedule\")\n public abstract int DeleteToken();\n\n @Query(\"DELETE FROM Schedule where pkey = :p_key and student_id = :studentId\")\n public abstract int DeleteSchedule(String p_key,String studentId );\n\n\n @Query(\"DELETE FROM Schedule where student_id= :studentId\")\n public abstract int DeleteScheduleAllUser(String studentId);\n\n\n}", "Schedule selectByPrimaryKey(Integer id);", "public interface JobScheduleMapper {\n @Select(\"select * from job_schedule where id = #{id}\")\n public JobSchedule findById(@Param(\"id\") long id);\n\n @Select(\"select status from job_schedule where id = #{id}\")\n public int getStatus(@Param(\"id\")long id);\n\n @Insert(\"insert into job_schedule (created_datetime, schedule_datetime, job_id, job_group_name, run_as, status) \" +\n \"values(#{created_datetime}, #{schedule_datetime}, #{job_id}, #{job_group_name}, #{run_as}, #{status})\")\n @Options(useGeneratedKeys = true, keyProperty = \"id\", keyColumn = \"id\")\n public void insert(JobSchedule jobSchedule);\n\n @Update(\"update job_schedule set status = #{status} where id = #{id}\")\n public void updateStatus(@Param(\"id\") long id, @Param(\"status\")int status);\n\n @Update(\"update job_schedule set status = \" + JobSchedule.JOB_SCHEDULE_STATUS_PENDING + \", retried = retried + 1 where id = #{id}\")\n public void retry(@Param(\"id\") long id);\n\n @Update(\"update job_schedule set next_job_schedule_id = #{nextId} where id = #{thisId}\")\n public void updateNextScheduleId(@Param(\"thisId\")long thisId, @Param(\"nextId\")long nextId);\n}", "Schedule createSchedule();", "java.lang.String getSchedule();", "public Schedule() {\n\t\t// TODO Auto-generated constructor stub\n\t}", "public void generateSchedule(){\r\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"yyyy-MM-dd HH:mm:ss\"); // Date formatter used when getting SQL records\r\n Database db = new Database();\r\n Connection connection = null;\r\n String sql = \"\";\r\n String report = \"\";\r\n \r\n // Retrieve the inputted consultant's id\r\n User user = (User) combo_user.getValue();\r\n int userID = user.getId();\r\n try{\r\n connection = db.jdbc_connection.connect();\r\n Statement statement = connection.createStatement(); // Set up statement\r\n \r\n sql = \"SELECT appointment.appointmentID, customer.customerName, appointment.title, appointment.description, appointment.location, appointment.contact, \" +\r\n \"appointment.type, appointment.url, appointment.start, appointment.end FROM appointment \" +\r\n \"INNER JOIN customer ON appointment.customerID=customer.customerID \" +\r\n \"WHERE userID = \" + userID + \" GROUP BY appointment.start\"; \r\n ResultSet results = statement.executeQuery(sql); \r\n \r\n while(results.next()) { \r\n String customer = results.getString(\"customerName\");\r\n String title = results.getString(\"title\");\r\n String description = results.getString(\"description\");\r\n String location = results.getString(\"location\");\r\n String contact = results.getString(\"contact\");\r\n String type = results.getString(\"type\");\r\n String url = results.getString(\"url\");\r\n String start = results.getString(\"start\");\r\n String end = results.getString(\"end\");\r\n \r\n \r\n // Convert the start and end DATETIMES to the user's current timezone \r\n java.time.LocalDateTime start_converted = convertToCurrentZone(java.time.LocalDateTime.parse(start.replace(\".0\", \"\"), formatter));\r\n String month = start_converted.getMonth().toString();\r\n int day = start_converted.getDayOfMonth();\r\n int hour = start_converted.getHour();\r\n String minute = String.valueOf(start_converted.getMinute());\r\n \r\n if(minute.length() == 1) minute += \"0\"; // Add following zeroes\r\n \r\n report += month + \" \" + day + \" at \" + hour + \":\" + minute + \" - appointment with \" + customer + \"\\n\";\r\n } \r\n }catch(Exception e) {\r\n System.out.println(e.getMessage());\r\n }finally {\r\n try {\r\n connection.close();\r\n } catch (Exception e2) { // Closing databse error handling\r\n System.err.println(e2.getMessage());\r\n }\r\n } \r\n \r\n text_schedule.setText(report);\r\n }", "public int getSchedule_id() {\r\n return schedule_id;\r\n }", "io.opencannabis.schema.commerce.CommercialOrder.OrderScheduling getScheduling();", "List<WorkingSchedule> getAll();", "@Override\n\t\tpublic List<ProgramScheduledBean> getAllScheduleProgram()\n\t\t\t\tthrows UniversityException {\n\t\t\treturn dao.getAllScheduleProgram();\n\t\t}", "public interface ScheduleDao {\n int crewTally();\n ArrayList<avail> getAllAvailibility();\n ArrayList<ShiftDetails> getShiftDetails();\n int updateShiftSwapStatus();\n}", "@Override\n\tpublic List<ScheduleTask> getScheduleTaskList() {\n\t\treturn (List<ScheduleTask>) find(\"from ScheduleTask\");\n\t}", "public List<UserRace> selectAllSchedule() {\n\t\tString sql = \"select \" + COLUMNS + \" FROM UserRace WHERE mode = '\"\n\t\t\t\t+ UserRace.MODE_SCHEDULE + \"'\";\n\t\treturn getJdbcTemplate().query(sql, new UserRaceRowMapper());\n\t}", "@Override\r\n\tpublic List<Courseschedule> getAllCourseschedules() {\n\t\tsession = sessionFactory.openSession();\r\n\t\tTransaction tran = session.beginTransaction();\r\n\t\tString hql = \"from Courseschedule where state=:state\";\r\n\t\tQuery query = session.createQuery(hql).setInteger(\"state\", 0);\r\n\t\tList<Courseschedule> lists = query.list();\r\n\t\ttran.commit();\r\n\t\tsession.close();\r\n\t\tlogger.debug(\"use the method named :getAllCourseschedules()\");\r\n\t\tif (lists.size() > 0) {\r\n\t\t\treturn lists;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "List<Schedule> selectByExample(ScheduleCriteria example);", "public static List<Schedule> fetchGeneratedSchedules() {\r\n if (!isComplete()) {\r\n return null;\r\n }\r\n\r\n return generatedSchedules;\r\n }", "@Override\n\tpublic void UpdateTableSchedule(Schedule current) {\n\t\tif (current == null)\n\t\t\treturn;\n\t\tCurrFitness = current.fitness;\n\t\tmyLabelSchedule.setText(\"Current Schedule Fitness: \" + CurrFitness);\n\t\tfor (int station = 1; station <= current.stations.size(); station++) {\n\t\t\tfor (int i = 0; i < dtm.getRowCount(); i++) {\n\t\t\t\tdtm.setValueAt(\"\", i, station);\n\t\t\t}\n\t\t\t// @Debug System.out.println(\"TableLength: \"+tableLength);\n\t\t\tStationSlot currentStation = current.stations.get(station - 1);\n\t\t\tif (currentStation.registeredCars.size() == 0) {\n\t\t\t\tcontinue;\n\t\t\t} else {\n\t\t\t\tLinkedList<CarSlot> cars = currentStation.registeredCars;\n\t\t\t\tfor (int i = 0; i < cars.size(); i++) {\n\t\t\t\t\tCarSlot car = cars.get(i);\n\t\t\t\t\tfloat start = car.startTime;\n\t\t\t\t\tfloat duration = car.duration;\n\t\t\t\t\tint rowNum = (int) (start * (60 / interval));\n\t\t\t\t\t// System.out.println(\"ColumNum: \"+rowNum);\n\t\t\t\t\twhile (duration > 0) {\n\t\t\t\t\t\tdtm.setValueAt(\"Car \" + car.name + \" [\" + car.priority + \"]\" + \" - \" + car.type, rowNum, station);\n\t\t\t\t\t\trowNum++;\n\t\t\t\t\t\tduration = (float) (duration - interval / 60f);\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n\tpublic List<ScheduledFlights> retrieveAllScheduledFlights() {\t\r\n\t\tTypedQuery<ScheduledFlights> query = entityManager.createQuery(\"select s from ScheduledFlights s, Flight f,Schedule sc where s.flight = f and s.schedule=sc\",ScheduledFlights.class);\r\n\t\tList<ScheduledFlights> flights = query.getResultList();\r\n\t\treturn flights;\r\n\t}", "public boolean generateSchedule(){\r\n return true;\r\n }", "public void existingSchedules(){\n \n scheduleModel = (DefaultTableModel) displayTable.getModel();\n \n currentSchedules = AccessDataFromXML.retrieveSchedules();\n for (Schedule schedule : currentSchedules){\n \n \n Object[] o = new Object[1];\n o[0] = schedule.getName();\n scheduleModel.addRow(o);\n }\n \n \n\n }", "public Schedule getSchedule() {\n\n return schedule;\n }", "private List<Schedules> getSchedulesList(){\r\n//\t\tList<Schedules> list = new ArrayList<Schedules>();\r\n//\t\tSchedules s1 = new Schedules(1, \"Baidu\", \"BUPT\", \"2013-09-11\", \"12:30\");\r\n//\t\tSchedules s2 = new Schedules(2, \"Sina\", \"BUPT\", \"2013-09-11\", \"13:50\");\r\n//\r\n//\t\tlist.add(s1);\r\n//\t\tlist.add(s2);\r\n\t\tif (scheduleList == null) {\r\n\t\t\tscheduleList = mAppContext.scheduleGetAll();\r\n\t\t}\r\n\t\treturn scheduleList;\r\n//\t\treturn list;\r\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\tpublic List<TimeTableBean> getTimeTable() {\n\t\treturn sessionFactory.openSession().createQuery(\"from TimeTableBean\").list();\r\n\t}", "@Override\n\tpublic List<ScheduleTask> getScheduleTaskList() {\n\t\treturn scheduleTaskDAO.getScheduleTaskList();\n\t}", "abstract public void computeSchedule();", "SchedulingPlay selectByPrimaryKey(Long id);", "public List<WorkoutSchedule> getSchedules() {\n if (schedules == null) {\n if (daoSession == null) {\n throw new DaoException(\"Entity is detached from DAO context\");\n }\n WorkoutScheduleDao targetDao = daoSession.getWorkoutScheduleDao();\n List<WorkoutSchedule> schedulesNew = targetDao._queryWorkout_Schedules(id);\n synchronized (this) {\n if(schedules == null) {\n schedules = schedulesNew;\n }\n }\n }\n return schedules;\n }", "private void refreshScheduleTable() {\n\t\tint gameIdx = 0;\n\t\tList<GameDetails> games = getGames();\n\t\tif (games != null) {\n\t\t\tfor (GameDetails game : games) {\n\t\t\t\tfor (int i = 0; i < 2; i++) {\n\t\t\t\t\tboolean isHome = (i == 0);\n\n\t\t\t\t\tTeamDetails team = (isHome ? game.getHomeTeam() : game.getAwayTeam()); \n\n\t\t\t\t\tboolean isSelected = false;\n\t\t\t\t\tboolean canSelect = true;\n\t\t\t\t\tif (getUiHandlers() != null) {\n\t\t\t\t\t\tisSelected = getUiHandlers().isTeamSelected(team);\n\t\t\t\t\t\tcanSelect = getUiHandlers().canSelectTeam(team);\n\t\t\t\t\t}\n\n\t\t\t\t\tString text = (isHome ? \"@ \" + team.getDisplayName() : team.getDisplayName());\n\n\t\t\t\t\tint row = rowFromGameIdx(gameIdx, isHome);\n\t\t\t\t\tint col = colFromGameIdx(gameIdx, isHome);\n\n\t\t\t\t\tsetScheduleCell(row, col, text, isSelected, canSelect);\t\n\t\t\t\t}\n\n\t\t\t\tgameIdx++;\n\t\t\t}\n\t\t}\n\n\t\t// Clear out any remaining cells (in case of bye weeks).\n\t\tfor (; gameIdx < NFLConstants.MAX_GAMES_PER_WEEK; gameIdx++) {\n\t\t\tfor (int i = 0; i < 2; i++) {\n\t\t\t\tboolean isHome = (i == 0);\n\t\t\t\t\n\t\t\t\tint row = rowFromGameIdx(gameIdx, isHome);\n\t\t\t\tint col = colFromGameIdx(gameIdx, isHome);\n\n\t\t\t\tsetScheduleCell(row, col, \"\", false, true);\n\t\t\t}\n\t\t}\n\t}", "public int getScheduleMethod() {\n return scheduleMethod;\n }", "private static Entity addScheduleDateDataEntities(final Schema schema) {\n Entity scheduleDateData = schema.addEntity(\"ScheduleDateData\");\n scheduleDateData.addIdProperty().primaryKey().autoincrement();\n scheduleDateData.addIntProperty(\"schedule_id\").notNull();\n scheduleDateData.addStringProperty(\"schedule_name\");\n scheduleDateData.addStringProperty(\"class_id\");\n scheduleDateData.addStringProperty(\"class_name\");\n scheduleDateData.addStringProperty(\"class_desc\");\n scheduleDateData.addStringProperty(\"schedule_type_id\");\n scheduleDateData.addStringProperty(\"schedule_type\");\n scheduleDateData.addStringProperty(\"schedule_start_date\");\n scheduleDateData.addStringProperty(\"schedule_start_time\");\n scheduleDateData.addStringProperty(\"schedule_end_time\");\n scheduleDateData.addLongProperty(\"schedule_start_time_long\");\n scheduleDateData.addLongProperty(\"schedule_end_time_long\");\n scheduleDateData.addIntProperty(\"schedule_monday\");\n scheduleDateData.addIntProperty(\"schedule_tuesday\");\n scheduleDateData.addIntProperty(\"schedule_wednesday\");\n scheduleDateData.addIntProperty(\"schedule_thursday\");\n scheduleDateData.addIntProperty(\"schedule_friday\");\n scheduleDateData.addIntProperty(\"schedule_saturday\");\n scheduleDateData.addIntProperty(\"schedule_sunday\");\n scheduleDateData.addStringProperty(\"schedule_frequency\");\n scheduleDateData.addIntProperty(\"is_cancelled\");\n scheduleDateData.addIntProperty(\"is_reservable\");\n scheduleDateData.addStringProperty(\"instructor_id\");\n scheduleDateData.addStringProperty(\"instructor_name\");\n scheduleDateData.addStringProperty(\"location_id\");\n scheduleDateData.addStringProperty(\"location_name\");\n\n return scheduleDateData;\n }", "public static String listScheduleIdSymbol(int tambahanBolehABs) {\n DBResultSet dbrs = null;\n String result = \"\";\n try {\n Date dtStart = new Date();\n Date dtEnd = new Date();\n String dtManual = \"\";\n boolean crossDay = false;\n //dtStart.setHours(dtStart.getHours()-tambahanBolehABs);\n dtStart = new Date(dtStart.getYear(), dtStart.getMonth(), (dtStart.getDate()), (dtStart.getHours() - tambahanBolehABs), dtStart.getMinutes(), dtStart.getSeconds());\n dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate()), (dtEnd.getHours() + tambahanBolehABs), dtEnd.getMinutes(), dtEnd.getSeconds());\n int jamMelebihiOneDay = 23;\n if (dtStart.getHours() == 0 || dtStart.getHours() == 23) {\n dtManual = \"23:\" + \"59:\" + \"59\";\n crossDay = true;\n jamMelebihiOneDay = jamMelebihiOneDay + tambahanBolehABs;\n }\n if (dtEnd.getHours() == 0) {\n dtManual = \"23:\" + \"59:\" + \"59\";\n crossDay = true;\n jamMelebihiOneDay = jamMelebihiOneDay + tambahanBolehABs;\n }\n\n// String dtManual=\"\";\n// if(dt.getHours()==0 || dt.getHours()+tambahanBolehABs>=23){\n// int idtManual = 24+tambahanBolehABs;\n// dtManual = idtManual+\":59:00\" ;\n// }else{\n// dt.setHours(dt.getHours()+tambahanBolehABs);\n// }\n\n String sql = \"SELECT * FROM \" + PstScheduleSymbol.TBL_HR_SCHEDULE_SYMBOL\n + \" WHERE \\\"00:00:00\\\" <=\" + PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT]\n + \" AND \" + PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN] + \"<= \\\"\"\n + \"23:59:00\"\n //+ (dtStart.getHours() == 0 || dtStart.getHours() == 23 || dtEnd.getHours() == 0 ? dtManual : Formater.formatDate(dtEnd, \"HH:mm:00\"))\n + \"\\\"\";\n //+ \" WHERE \" + \"(\"+PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN] +\" BETWEEN \\\"00:00:00\\\" AND \\\"\"+ (crossDay?dtManual:Formater.formatDate(dtStart, \"HH:mm:00\")) +\"\\\") OR (\"+PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT] +\" BETWEEN \\\"00:00:00\\\" AND \\\"\"+Formater.formatDate(dtEnd, \"HH:mm:00\")+\"\\\")\";\n\n dbrs = DBHandler.execQueryResult(sql);\n ResultSet rs = dbrs.getResultSet();\n while (rs.next()) {\n dtEnd = new Date();\n dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate()), (dtEnd.getHours() + tambahanBolehABs), dtEnd.getMinutes(), dtEnd.getSeconds());\n \n Date schTimeIn = rs.getTime(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN]);\n\n Date schTimeOut = rs.getTime(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT]);\n Date dtTmpSchTimeIn = new Date();\n Date dtTmpSchTimeOut = new Date();\n\n\n if (schTimeIn != null && schTimeOut != null) {\n schTimeOut = new Date(dtTmpSchTimeOut.getYear(), dtTmpSchTimeOut.getMonth(), dtTmpSchTimeOut.getDate(), schTimeOut.getHours(), schTimeOut.getMinutes());\n schTimeIn = new Date(dtTmpSchTimeIn.getYear(), dtTmpSchTimeIn.getMonth(), dtTmpSchTimeIn.getDate(), schTimeIn.getHours(), schTimeIn.getMinutes());\n\n Date dtCobaTimeOut = new Date(schTimeOut.getYear(), schTimeOut.getMonth(), (schTimeOut.getDate()), (schTimeOut.getHours() + tambahanBolehABs), schTimeOut.getMinutes(), schTimeOut.getSeconds());\n boolean melebihiHari=false;\n if (schTimeIn.getHours() == 0 || schTimeOut.getHours() == 0) {\n \n } else {\n if (dtCobaTimeOut.getDate() > schTimeIn.getDate()) {\n //dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate() + 1), (dtEnd.getHours()), dtEnd.getMinutes(), dtEnd.getSeconds());\n melebihiHari=true;\n }\n\n if ( (melebihiHari && dtEnd.getHours()<dtCobaTimeOut.getHours()) || schTimeIn.getTime() <= dtEnd.getTime() || (schTimeIn.getHours() > schTimeOut.getHours() && dtEnd.getTime() < schTimeOut.getTime())) {\n result = result + rs.getString(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_SCHEDULE_ID]) + \",\";\n }\n }\n\n\n\n\n\n }\n\n }\n if (result != null && result.length() > 0) {\n result = result.substring(0, result.length() - 1);\n }\n rs.close();\n return result;\n\n } catch (Exception e) {\n System.out.println(e);\n } finally {\n DBResultSet.close(dbrs);\n }\n return result;\n }", "public interface ScheduleDao {\r\n\tpublic Schedule createSchedule(Calendar scheduleDate) throws DAOException;\r\n\tpublic Schedule findScheduleById(long scheduleId) throws DAOException;\r\n\tpublic List<Schedule> findSchedulesByDate(Calendar scheduleDate) throws DAOException;\r\n\tpublic List<Schedule> findAllSchedules() throws DAOException;\r\n\tpublic void updateSchedule(long scheduleId, Calendar newScheduleDate) throws DAOException;\r\n\tpublic void deleteScheduleById(long scheduleId) throws DAOException;\r\n\tpublic void deleteAllSchedules() throws DAOException;\r\n}", "public String getSchedule() {\n return schedule;\n }", "public Schedule getSchedule() {\r\n\t\treturn schedule;\r\n\t}", "public ScheduleType getScheduleType();", "public interface ScheduleService {\n BasicSchedule getBasicScheduleByHostelIdAndRoomType(long hostelId, RoomType type);\n\n /**\n * 获得最近一年的酒店基本计划\n *\n * @param hostelId\n * @return\n */\n List<BasicSchedule> getBasisSchedulesByHostelId(long hostelId);\n\n void modifyBasisSchedule(BasicSchedule basicSchedule);\n\n /**\n * 获得最近一年的酒店特殊计划\n *\n * @param hostelId\n * @return\n */\n List<SpecialSchedule> getSpecialScheduleByHostelId(long hostelId);\n\n void modifySpecialSchedule(SpecialSchedule specialSchedule);\n\n void addSpecialSchedule(SpecialSchedule specialSchedule);\n\n void deleteSpecialSchedule(SpecialSchedule specialSchedule);\n\n SpecialSchedule getSpecialSchedule(long hostelId, RoomType roomType, Date date);\n}", "private void loadScheduleList() {\n\n if (listTbagendamentos != null && !listTbagendamentos.isEmpty()) {\n scheduleAgendamento.clear();\n\n for (Tbagendamento agendamento : listTbagendamentos) {\n DefaultScheduleEvent defaultScheduleEvent = new DefaultScheduleEvent();\n defaultScheduleEvent.setTitle(agendamento.getIdcliente().getNmcliente());\n\n Calendar dtDataInicial = new GregorianCalendar();\n dtDataInicial.setTime(agendamento.getTmdataagendamento());\n\n defaultScheduleEvent.setStartDate(dtDataInicial.getTime());\n\n Calendar dtDataFinal = new GregorianCalendar();\n dtDataFinal.setTime(agendamento.getTmdataagendamento());\n dtDataFinal.set(Calendar.MINUTE, dtDataFinal.get(Calendar.MINUTE) + 30);\n\n defaultScheduleEvent.setEndDate(dtDataFinal.getTime());\n defaultScheduleEvent.setData(agendamento.getIdagendamento());\n scheduleAgendamento.addEvent(defaultScheduleEvent);\n }\n }\n }", "public Schedule() {\r\n }", "public void setSchedule(Schedule schedule) {\r\n\t\tthis.schedule = schedule;\r\n\t}", "List<WorkingSchedule> getByPlaceId(Long placeId);", "public ProgramScheduled getProgramScheduleById(int scheduleId);", "public ArrayList<TrainScheduleEntity> viewTrainSchedule(String dayType);", "java.lang.String getSnapshotCreationSchedule();", "io.opencannabis.schema.commerce.CommercialOrder.SchedulingType getScheduling();", "@Override\r\n\tpublic void doInitialSchedules() {\n\t}", "void setSchedule(java.lang.String schedule);", "ScheduleStartType getScheduleStart();", "public abstract void schedule();", "public void setSchedule(Schedule newSchedule) {\n\n schedule = newSchedule;\n }", "@Mapper\npublic interface VirtualRepayFlowMapper {\n @DataSource(\"bigdata2_jdb\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE update_time >= #{from_time} and update_time < #{end_time} and id>#{id} limit 1000\")\n List<VirtualRepayFlow> find(@Param(\"from_time\") String from_time,\n @Param(\"end_time\") String end_time,\n @Param(\"id\") long id);\n\n\n @DataSource(\"dmp\")\n @Insert(\"INSERT INTO virtual_repay_flow (id,uuid,virtual_productid,to_user,amount,interest,repay_status,repay_time,create_time,update_time) values\" +\n \"(#{id},#{uuid},#{virtual_productid},#{to_user},#{amount},#{interest},#{repay_status},#{repay_time},#{create_time},#{update_time})\")\n void insert(VirtualRepayFlow virtualRepayFlow);\n\n @DataSource(\"dmp\")\n @Delete(\"DELETE FROM repay_flow where update_time<#{update_time}\")\n void delete(@Param(\"update_time\") String update_time);\n\n @DataSource(\"dmp\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE id=#{id}\")\n VirtualRepayFlow getById(@Param(\"id\") long id);\n\n\n @DataSource(\"dmp\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE uuid=#{uuid}\")\n VirtualRepayFlow getByUuid(@Param(\"uuid\") String uuid);\n}", "public abstract void maintenanceSchedule() ;", "@Override\n public List<SurveillantSchedule> getSurveillantSchedule() {\n return surveillantRepository.getSurveillantSchedule();\n }", "long getScheduleID() {return mScheduleID; }", "com.google.cloud.gkebackup.v1.BackupPlan.Schedule getBackupSchedule();", "public String getScheduleRow() {\n\t\treturn uSRow;\n\t}", "public void setSchedule_id(int schedule_id) {\r\n this.schedule_id = schedule_id;\r\n }", "public void printSchedule(){\n String\n format =\n \"%-20s%-10s%-15s%\" +\n \"-20s%-25s%-10s%\" +\n \"-15s%-15s%-15s%n\";\n\n System.out.printf(format,\n \"Водитель\", \"Номер А/М\",\"Машина\", \"Дата и время\",\n \"Задание\", \"Кол-во\",\n \"Расстояние\", \"Цена\", \"Примечание\");\n System.out.println();\n\n\n\n List<TimeTable> l = driverScheduleReaderDAO.getTimeTable();\n TimeTable tPrev =l.get(0);\n for (TimeTable t: l){\n\n if (!t.getDriverName().equals(tPrev.getDriverName())) {\n\n System.out.println(\"***\");\n tPrev = t;\n\n } else if (t!=l.get(0))t.setDriverName(\" \");\n\n\n\n\n System.out.printf(format,\n t.getDriverName(), t.getCarId(), t.getCarBrand(),\n t.getBusyTime(), t.getOrder(), t.getNumOfEl(),\n t.getDistance(), t.getPrice(), t.getNote()\n );\n\n }\n\n //int\n\n\n\n\n //вывести на экран\n //отельным классом посчитать шанс поломки и предупредить\n }", "public void schedule(String id, String[] schedule) {\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic List<ISchedule> getSchedules() throws IOException {\n\t\tfinal String sql = \"SELECT * from record\";\n\t\tList<? extends ISchedule> result = this.queryDataList(Schedule.class,ISchedule.Props.class, sql);\n\t\treturn (List<ISchedule>) result;\t\t\n\t}", "public List<AllTimeSeasonBean> getAllTimeRecord(){\n String q = \"select new com.main.pcblroyals.bean.AllTimeSeasonBean( \" +\n \"sum(case when g.teamScore > g.opponentScore then 1 else 0 end), \" +\n \"sum(case when g.teamScore = g.opponentScore then 1 else 0 end), \" +\n \"sum(case when g.teamScore < g.opponentScore then 1 else 0 end) \" +\n \") \" +\n \"from seasons s \" +\n \"join games g on s.id = g.season.id \";\n Query query = entityManager.createQuery(q);\n return (List<AllTimeSeasonBean>) query.getResultList();\n }", "@Override\n public String getEndPoint() {\n return \"/v1/json/schedule\";\n }", "@GetMapping\n public List<ScheduleDTO> getAllSchedules() {\n List<Schedule> scheduleList = scheduleService.getAllSchedules();\n\n List<ScheduleDTO> scheduleDTOList = scheduleList.stream()\n .map(ScheduleController::convertScheduleToScheduleDTO)\n .collect(Collectors.toList());\n return scheduleDTOList;\n }", "public interface ScheduleListDao extends GenericDao<ScheduleList, Long> {\n\t\n\tpublic List<ScheduleList> findShceduleList(String scheduleId); \n\t\n\t /**\n * 自服务项列表\n * @return\n */\n public Page findScheduleList(String pageSize);\n\t\n}", "public void storeRegularDayTripStationScheduleWithRS();", "@MapperScan\npublic interface DSSettingMapper {\n\n @Insert(\"INSERT INTO ds_setting (dsId, dsAppointment2,dsAppointment3,outCoachIds,status,modifyTime)\" +\n \" VALUES(#{dsId},#{dsAppointment2},#{dsAppointment3},#{outCoachIds},#{status},NOW())\")\n int insertDssetting(DSSetting dsSetting);\n\n @Update(\"UPDATE ds_setting SET dsAppointment2 = #{dsAppointment2},\" +\n \" dsAppointment3 = #{dsAppointment3}, outCoachIds = #{outCoachIds}, \" +\n \"status = #{status}, modifyTime = NOW() \" +\n \"WHERE dsId = #{dsId}\")\n int updateDssetting(DSSetting dsSetting);\n\n @Select(\"SELECT * FROM ds_setting WHERE dsId = #{dsId}\")\n DSSetting findOneDSSetting(@Param(\"dsId\") Long dsId);\n}", "public String getScheduleExpression() {\n return this.scheduleExpression;\n }", "@Override\n\tpublic List<SchedulerJobEntity> getAllScheduledJobs() throws SchedulerException {\n\t\treturn schedulerRepository.findAll();\n\t}", "@Override\n\t\tpublic oep_ResponseInfo getTestscheduledetails(String id) {\n\t\t\t\n\t\t\t\n\t\t\tString query = \" SELECT a.`ques_master_id`,`is_test_started`,a.`id`,`sub_id`,a.`batch`,DATE_FORMAT(`testdate`,'%m/%d/%Y')newtestdate,a.`start_time`, a.`end_time`,a.`status`,b.`test_name`,`test_id`,\"\n\t\t\t\t\t+ \"HOUR(a.`start_time`)starthour,MINUTE(a.`start_time`)startminute, HOUR(a.`end_time`)endhour,MINUTE(a.`end_time`)endminute,\"\n\t\t\t\t\t+ \" DATE_FORMAT(`testdate`,'%d/%m/%Y')testdate, SUBSTRING_INDEX(a.`start_time`,' ',-1)startformatt,SUBSTRING_INDEX(a.`end_time`,' ',-1)endformatt,\"\n\t\t\t\t\t+ \"GROUP_CONCAT(f.`username`,' ',CASE WHEN `is_participant_start` = 2 THEN ' completed \\n' WHEN `is_participant_start` = 1 THEN 'Started \\n' ELSE 'Not started \\n'END)username,\"\n\t\t\t\t\t+ \"`is_participant_start`,h.`username`facname FROM `test_schedule` a JOIN `question_master` b ON a.`ques_master_id` = b.`id` \"\n\t\t\t\t\t+ \"JOIN `course_scheduling`c ON c.`cs_id`= a.`batch` JOIN `participants_registration_course_details`e ON e.`course_id`= c.`cs_id` \"\n\t\t\t\t\t+ \" JOIN `participants`f ON f.`participant_id`=e.`participant_id` \"\n\t\t\t\t\t+ \"LEFT JOIN `test_participants`g ON g.`part_id`= f.`participant_id` AND g.`ts_id`=a.`id`\"\n\t\t\t\t\t+ \" JOIN `faculty_master`h ON h.`faculty_id` = c.`faculty_name` WHERE a.`id`= \"+id+\" \";\n\t\t\t\n\t\t\t\n\t\t\tlog.info(query);\n\t\t\t\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tList<Object> List = jdbcTemplate.query(query, new RowMapper() {\n\t\t\t\tint count = 0;\n\t\t\t\t@Override\n\t\t\t\tpublic Object mapRow(ResultSet rs, int arg1) throws SQLException {\n\t\t\t\t\t\n\t\t\t\t\tMap<String, Object> map = new HashMap<String, Object>();\n\t\t\t\t\tmap.put(\"testid\", rs.getString(\"test_id\"));\n\t\t\t\t\tmap.put(\"startformat\", rs.getString(\"startformatt\"));\n\t\t\t\t\tmap.put(\"endformat\", rs.getString(\"endformatt\"));\t\n\t\t\t\t\tmap.put(\"facname\", rs.getString(\"facname\"));\n\t\t\t\t\tmap.put(\"quesid\", rs.getString(\"ques_master_id\"));\n\t\t\t\t\tmap.put(\"id\", rs.getString(\"id\"));\n\t\t\t\t\tmap.put(\"tsid\", rs.getString(\"id\"));\n\t\t\t\t\tmap.put(\"batch\", rs.getString(\"batch\"));\n\t\t\t\t\tmap.put(\"testdate\", rs.getString(\"testdate\"));\n\t\t\t\t\tmap.put(\"newtestdate\", rs.getString(\"newtestdate\"));\n\t\t\t\t\tmap.put(\"subid\", rs.getString(\"sub_id\"));\n\t\t\t\t\tmap.put(\"starthour\", rs.getString(\"starthour\"));\n\t\t\t\t\tmap.put(\"endhour\", rs.getString(\"endhour\"));\n\t\t\t\t\tmap.put(\"startminute\", rs.getString(\"startminute\"));\n\t\t\t\t\tmap.put(\"endminute\", rs.getString(\"endminute\"));\n\t\t\t\t\tmap.put(\"starttime\", rs.getString(\"start_time\"));\n\t\t\t\t\tmap.put(\"testname\", rs.getString(\"test_name\"));\n\t\t\t\t\tmap.put(\"username\", rs.getString(\"username\"));\n\t\t\t\t\tmap.put(\"starttest\", rs.getString(\"is_test_started\"));\n\t\t\t\t\tmap.put(\"participantstart\", rs.getString(\"is_participant_start\"));\n\t\t\t\t\tmap.put(\"endtime\", rs.getString(\"end_time\"));\n/*\t\t\t\t\t\n\t\t\t\t\tString submenuQuery = \"SELECT `part_id`,`imh_staus`,`username`,CONCAT(`username`,' ',CASE WHEN `imh_staus` = 0 \"\n\t\t\t\t\t\t\t+ \" THEN 'Certificate Not sent ' WHEN `imh_staus` = 1 THEN 'Certificate sent' \"\n\t\t\t\t\t\t\t+ \" ELSE 'Invalid 'END)status FROM `email_history`a \"\n\t\t\t\t\t\t\t+ \" JOIN `participants`b ON a.`part_id`=b.`participant_id` WHERE `ts_id` = \"+ rs.getString(\"id\");\t*/\n\t\t\t\t\t\n\t\t\t\t\tString submenuQuery = \" SELECT a.`ques_master_id`,`username`,`imh_staus`,`is_test_started`,a.`id`,a.`batch`,DATE_FORMAT(`testdate`,'%e/%c/%Y')testdate,a.`start_time`, a.`end_time`,a.`status`,b.`test_name`,`test_id`,\"\n\t\t\t\t\t\t\t+ \"CONCAT(`username`,' ',CASE WHEN `is_participant_start` = 2 THEN ' completed \\n' WHEN `is_participant_start` = 1 THEN 'Started \\n' ELSE 'Not started \\n'END)teststatus,\"\n\t\t\t\t\t\t\t+ \"`is_participant_start` FROM `test_schedule` a JOIN `question_master` b ON a.`ques_master_id` = b.`id` \"\n\t\t\t\t\t\t\t+ \"JOIN `course_scheduling`c ON c.`cs_id`= a.`batch` JOIN `participants_registration_course_details`e ON e.`course_id`= c.`cs_id` \"\n\t\t\t\t\t\t\t+ \" JOIN `participants`f ON f.`participant_id`=e.`participant_id` \"\n\t\t\t\t\t\t\t+ \"LEFT JOIN `test_participants`g ON g.`part_id`= f.`participant_id` AND g.`ts_id`=a.`id`\"\n\t\t\t\t\t\t\t+ \"JOIN `email_history`h ON h.`ts_id`= a.`id` WHERE a.`id`= \"+ rs.getString(\"id\");\n\t\t\t\t\t\n\t\t\t\t\t List<Object> submenuList = new ArrayList<Object>();\n\t\t\t\t\t submenuList = getPartStatusList(submenuQuery);\n\t\t\t\t\t map.put(\"submenuList\", submenuList);\n\t\t\t\t\t\n\t\t\t\t\tif(rs.getString(\"status\")!= null && rs.getString(\"status\").equals(\"1\")){\n\t\t\t\t\t\tmap.put(\"status\", \"Active\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tmap.put(\"status\", \"Inactive\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(rs.getString(\"is_test_started\")!= null && rs.getString(\"is_test_started\").equals(\"1\")){\n\t\t\t\t\t\tmap.put(\"teststarted\", \"Test Started\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tmap.put(\"teststarted\", \"Not started\");\n\t\t\t\t\t}\n\t\t\t\t\tmap.put(\"index\", count);\n\t\t\t\t\tcount++;\n\t\t\t\t\treturn map;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t});\n\t\t\t\n\t\t\n\t\t\t \n\t\t\t \n\t\t\tresponse.setResponseType(\"S\");\n\t\t\tresponse.setResponseObj(List);\n\t\t\tresponseInfo.setInventoryResponse(response);\n\t\t\treturn responseInfo;\n\t\t}", "public void createTempSpecialDayTrainSchedule(Timestamp date);", "public void generatePlan(Integer id,Date fromDate, Date toDate) throws Exception;", "@Override\r\n\tpublic List<Courseschedule> getCourseschedulesByClassroomId(int classroomId) {\n\t\tsession = sessionFactory.openSession();\r\n\t\tTransaction tran = session.beginTransaction();\r\n\t\tString hql = \"from Courseschedule where classroomId=:classroomId and state=:state\";\t\t\r\n\t\tList<Courseschedule> lists = session.createQuery(hql).setInteger(\"classroomId\", classroomId).setInteger(\"state\", 0).list();\r\n\t\ttran.commit();\r\n\t\tsession.close();\r\n\t\tlogger.debug(\"use the method named :getCourseschedulesByClassroomId(int classroomId)\");\r\n\t\tif (lists.size() > 0) {\r\n\t\t\treturn lists;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public void setSchedule(String timeframe) {\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic List<ScheduledFlights> retrieveScheduledFlights(String source, String destination) {\r\n\t\tQuery query = entityManager.createQuery(\"select s.scheduleId,s.source,s.destination,s.arrivaltime,s.departuretime,f.flightNumber,f.carrierName,f.seatCapacity from Schedule s JOIN ScheduledFlights sf ON s.scheduleId=sf.scheduleId JOIN Flight f on sf.flightId=f.flightNumber where schedule.source= :source AND schedule.destination=:destination\");\r\n\t\treturn query.getResultList();\r\n\t}", "@Override\r\n\tpublic boolean updateDate(ScheduleAdminModel scheduleAdminModel) throws ClassNotFoundException, SQLException {\n\t\r\n\t\tConnection connection=ConnectionManager.openConnection();\r\nPreparedStatement statement=\r\n connection.prepareStatement(\"update courses set start_date=?,end_date=? where course_name=?\");\r\nstatement.setString(1,scheduleAdminModel.getStartDate());\r\nstatement.setString(2,scheduleAdminModel.getEndDate());\r\nstatement.setString(3,scheduleAdminModel.getCourse_name());\r\n \r\n int rows=statement.executeUpdate();\r\n\tConnectionManager.closeConnection();\r\n\tif(rows>0)\r\n\t\treturn true;\r\n\t else \r\n\t return false;\r\n\t}", "void deschedule(ScheduledJob job);", "@Query(\"select :stopName from Timetable order by id\")\n List<Integer> selectStop(String stopName);", "public Date getScheduletime() {\r\n return scheduletime;\r\n }", "public List<Timetable> getAllTimetable() throws Exception;", "public abstract ArrayList<ScheduleTime> getScheduleForDay(int day, int month, int year);", "public void setSchedule(SpaceSchedule s) {\n\t\t\n\t}", "MMSchedule() {\n mScheduleID = MMUtilities.ID_DOES_NOT_EXIST;\n mOfMedicationID = 0;\n mForPersonID = 0;\n mTimeDue = 0;\n mStrategy = MMMedication.sSET_SCHEDULE_FOR_MEDICATION;\n }", "@Override\n public void fetchScheduled(RuleKey ruleKey) {\n }", "List<Schedule> selectByExampleWithRowbounds(ScheduleCriteria example, RowBounds rowBounds);", "Schedule getSchedule(String departure, String arrival, int depYear, int depMonth);", "public void setList(ScheduleInterface<Schedule> scheduleList){\n this.scheduleList = scheduleList;\n }", "int insert(Schedule record);", "private void reloadPlanTable() {\n\t\t\r\n\t}", "public Schedule getSchedule(String route, int direction){\r\n // A schedule to hold all the data returned from the query\r\n Schedule weekdayZero = new Schedule();\r\n // Fetch the route id given the route\r\n Cursor getData = getReadableDatabase().rawQuery(\"select _id from routes where route_long_name = '\" + route + \"'\", null);\r\n // Make sure to begin at the first element of the returned data\r\n getData.moveToFirst();\r\n // Store the Route Id\r\n int route_id = getData.getInt(0);\r\n // Calendar id: (90400,90448) - Monday To Friday\r\n final String query = \"select Routes.Route_long_Name, \" +\r\n \"Calendar._Id, Stops.Stop_Name, Stop_Times.Stop_Sequence, Stop_Times.Arrival_Time, routes.route_short_name \" +\r\n \"from Trips join Calendar on Trips.Service_Id=Calendar._Id \" +\r\n \"join Routes on Trips.Route_Id=Routes._Id \" +\r\n \"join Stop_Times on Trips._Id=Stop_Times.Trip_Id \" +\r\n \"join Stops on Stop_Times.Stop_Id=Stops._Id \" +\r\n \"where Calendar._Id in \" + getDayOfTheWeek() + \" \" +\r\n \"AND Trips.Route_Id = \" + route_id + \" \" +\r\n \"AND Trips.Direction_Id = \" + direction + \" \" +\r\n \"AND Stop_Times.Arrival_Time != '' \" +\r\n \"order by arrival_time asc\";\r\n getData.moveToFirst();\r\n getData = getReadableDatabase().rawQuery(query, null);\r\n while (getData.moveToNext()){\r\n weekdayZero.insertData(getData.getString(0), getData.getInt(1), getData.getString(2), getData.getInt(3)\r\n , getData.getString(4), getData.getString(5));\r\n }\r\n return weekdayZero;\r\n }", "public Date getScheduleTime() {\n return this.scheduleTime;\n }", "@Override\n\tpublic void setDateAndSchedule(String date, String schedule) {\n\n\t}", "public MonthlyValuesTable(Database database) \n {\n //Constructor calls DbTable's constructor\n super(database);\n setTableName(\"monthlyvalues\");\n }", "public Date getScheduleDate(){\r\n\t\treturn this.scheduleDate;\r\n\t}", "com.google.cloud.compute.v1.Scheduling getScheduling();", "TimerSchedule createTimerSchedule();", "public ApiSchedule[] getSchedules() {\n return this.schedules;\n }", "@Override\n\tpublic void setDateAndSchedule(String date, String schedule) {\n\t\t\n\t}", "public interface ITimetableDAO {\n\n /**\n * Get all the timetable element of <code>Timetable</code> object <br>\n *\n * @return all the list of <code>Timetable</code> object\n * @throws Exception\n */\n public List<Timetable> getAllTimetable() throws Exception;\n\n /**\n * Get all the list element has search of <code>Timetable</code> object<br>\n *\n * @param from is the date of <code>Timetable</code> object\n * @param to is the date of <code>Timetable</code> object\n * @return all the list has search of <code>Timetable</code> object\n * @throws Exception\n */\n public List<Timetable> getListSearch(String from, String to) throws Exception;\n\n /**\n * Add the all the element of Timetable to database\n *\n * @param date the date of Timetable object, it is an\n * <code>java.sql.Date</code>\n * @param slot the slot of Timetable object, it is an int\n * @param classes the classes of Timetable object, it is a string\n * @param teacher the teacher of Timetable object, it is a string\n * @param room the room of Timetable object, it is an int\n * @throws Exception\n */\n public void addTimetable(String date, String slot, String room, String teacher, String classes) throws Exception;\n\n /**\n * Function to check Timetable exist before add\n *\n * @param date the date of Timetable object, it is an\n * <code>java.sql.Date</code>\n * @param classes the slot of Timetable object, it is an int\n * @param room the room of Timetable object, it is a string\n * @return object of Timetable or null when check exist timetable\n * @throws Exception\n */\n public Timetable checkExistRoomTimeTable(String date, String classes, String room) throws Exception;\n\n /**\n * Paginate by number of timetable in <code>Timetable</code> object <br>\n *\n * @param pageIndex the index of page, it is an <code>int</code>\n * @param pageSize the size of page, it is an <code>int</code>\n * @return list of timetable, it is a <code>java.util.List</code> object.\n * @throws java.lang.Exception\n */\n public List<Timetable> pagging(int pageIndex, int pageSize) throws Exception;\n\n /**\n * Get number of result <code>Gallery</code> object by id\n *\n * @return number result of Gallery object, it is an int\n * @throws java.lang.Exception\n */\n public int numberOfResult() throws Exception;\n\n /**\n * Function to check Timetable exist before add\n *\n * @param date the date of Timetable object, it is an\n * <code>java.sql.Date</code>\n * @param classes the slot of Timetable object, it is an int\n * @param teacher the teacher of Timetable object, it is a string\n * @return object of Timetable or null when check exist timetable\n * @throws Exception\n */\n public Timetable checkExistTeacherTimeTable(String date, String classes, String teacher) throws Exception;\n\n}", "public void setScheduleTime(Date scheduleTime) {\n this.scheduleTime = scheduleTime;\n }", "@Scheduled(cron = \"0 30 06 * * *\",zone=\"America/New_York\")\n public void populateDatabase(){\n localDateTime = LocalDateTime.now();\n log.info(\"Executed now: \"+ localDateTime.toString());\n\n // Checks if table in database is empty\n // If not empty, clears the table and populates it with new data\n if(checkEmpty()==0)\n log.info(\"Empty Table\");\n else {\n deleteTableRecords();\n log.info(\"Table not Empty\");\n }\n\n URL url = null;\n\n // Get recent date, append it to URL and establish a connection\n String pattern = \"MM-dd-yyyy\";\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(pattern);\n Date date = Date.from(Instant.now().minus(Duration.ofDays(1)));\n\n\n String dateStr = simpleDateFormat.format(date);\n\n try {\n url = new URL(\"https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_daily_reports/\"+dateStr+\".csv\");\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n HttpURLConnection httpURLConnection = null;\n try {\n httpURLConnection = (HttpURLConnection) url.openConnection();\n } catch (IOException e) {\n e.printStackTrace();\n }\n int responseCode = 0;\n try {\n responseCode = httpURLConnection.getResponseCode();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n // On successful connection, read records line by line, store records in a table\n if(responseCode==200)\n {\n log.info(\"-- Successful Connection\");\n CSVReader reader = null;\n try {\n\n BufferedReader input = new BufferedReader(new InputStreamReader(httpURLConnection.getInputStream()),8192);\n reader = new CSVReader(input);\n String[] line;\n int skipFirstLine = 0;\n while ((line = reader.readNext()) != null)\n {\n if(skipFirstLine==0)\n {\n skipFirstLine++;\n continue;\n }\n\n DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern(\"yyyy-MM-dd HH:mm:ss\");\n\n Corona corona = new Corona();\n corona.setLastUpdate(LocalDateTime.parse(line[4],dateTimeFormatter));\n if(line[7].equals(\"\"))\n line[7]=\"0\";\n if(line[9].equals(\"\"))\n line[9]=\"0\";\n if(line[10].equals(\"\"))\n line[10]=\"0\";\n if(line[8].equals(\"\"))\n line[8]=\"0\";\n if(line[5].equals(\"\"))\n line[5]=\"0\";\n if(line[6].equals(\"\"))\n line[6]=\"0\";\n\n try {\n\n corona.setConfirmed(Long.valueOf(line[7]));\n corona.setRecovered(Long.valueOf(line[9]));\n corona.setActive(Long.valueOf(line[10]));\n corona.setDeaths(Long.valueOf(line[8]));\n corona.setLatitude(Double.valueOf(line[5]));\n corona.setLongitude(Double.valueOf(line[6]));\n } catch (NumberFormatException n)\n {\n n.printStackTrace();\n }\n corona.setCountry(line[3]);\n corona.setProvince(line[2]);\n corona.setCombinedKey(line[11]);\n\n\n\n coronaRepository.save(corona);\n log.info(corona.toString());\n\n\n }\n } catch (IOException | CsvValidationException e){\n e.printStackTrace();\n } finally {\n if(reader!=null)\n {\n try\n {\n reader.close();\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }\n }\n }\n }" ]
[ "0.6583093", "0.62134594", "0.614241", "0.6096163", "0.5869904", "0.5847323", "0.57736564", "0.5749311", "0.5730464", "0.5692395", "0.5691314", "0.5688622", "0.56733465", "0.5612722", "0.56103665", "0.5601378", "0.5594937", "0.5592374", "0.55869794", "0.5565921", "0.5544678", "0.5536762", "0.54946375", "0.5486974", "0.5463075", "0.54603523", "0.5455832", "0.54501116", "0.5445156", "0.5444004", "0.54084784", "0.53984827", "0.53917515", "0.53882813", "0.5388208", "0.5379494", "0.5379087", "0.53540117", "0.53484684", "0.53395474", "0.5337806", "0.53348553", "0.5326429", "0.531917", "0.5268467", "0.52664775", "0.52625597", "0.5256478", "0.5245691", "0.52455944", "0.5244061", "0.52287424", "0.52114916", "0.52114564", "0.5211055", "0.5206053", "0.5198744", "0.51842344", "0.51793087", "0.51495117", "0.5128515", "0.5107465", "0.510662", "0.51056135", "0.50985986", "0.5097996", "0.5095179", "0.5078455", "0.5071949", "0.5062537", "0.5048053", "0.5045186", "0.50360614", "0.5034012", "0.5032612", "0.5029762", "0.5028272", "0.5023831", "0.50128245", "0.50107193", "0.50062126", "0.49853772", "0.49811625", "0.4979578", "0.49694157", "0.4958413", "0.49560702", "0.49543408", "0.49509862", "0.49456567", "0.49427602", "0.49422622", "0.49398386", "0.4935916", "0.4927577", "0.49200827", "0.49151728", "0.49094823", "0.49054155", "0.49049369", "0.49020037" ]
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table schedule
public void clear() { oredCriteria.clear(); orderByClause = null; distinct = false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void generateSchedule(){\n\t\t\n\t}", "@Dao\npublic interface schedule_Dao {\n\n @Query(\"SELECT * FROM Schedule where student_id = :studentId\")\n List<Schedule> getSchedulesStudent(String studentId);\n\n\n\n @Query(\"SELECT COUNT(pkey) FROM Schedule where student_id = :student_id\")\n int getScheduleCount(String student_id);\n\n\n\n @Query(\"SELECT * FROM Schedule where student_id = :studentId and active = :active or active = :Active\")\n List<Schedule> getActiveSchedules(String active,String Active, String studentId);\n\n\n @Query(\"SELECT * FROM Schedule where `endtime_null` >= :date and `starttime_null` <= :date and student_id = :studentId and active = :active or active = :Active \")\n List<Schedule> getSelEvents(String active,String Active, String studentId, String date);\n\n\n @Query(\"SELECT * FROM Schedule where `endtime` >= :date and `starttime` <= :date and student_id = :studentId and active = :active or active = :Active \")\n List<Schedule> getSelEventTime(String active,String Active, String studentId, String date);\n\n\n @Insert\n void insertAll(Schedule... schedules);\n\n @Insert(onConflict = OnConflictStrategy.IGNORE)\n void insertOnConflict(Schedule... schedules);\n\n @Query(\"DELETE FROM Schedule\")\n public abstract int DeleteToken();\n\n @Query(\"DELETE FROM Schedule where pkey = :p_key and student_id = :studentId\")\n public abstract int DeleteSchedule(String p_key,String studentId );\n\n\n @Query(\"DELETE FROM Schedule where student_id= :studentId\")\n public abstract int DeleteScheduleAllUser(String studentId);\n\n\n}", "Schedule selectByPrimaryKey(Integer id);", "public interface JobScheduleMapper {\n @Select(\"select * from job_schedule where id = #{id}\")\n public JobSchedule findById(@Param(\"id\") long id);\n\n @Select(\"select status from job_schedule where id = #{id}\")\n public int getStatus(@Param(\"id\")long id);\n\n @Insert(\"insert into job_schedule (created_datetime, schedule_datetime, job_id, job_group_name, run_as, status) \" +\n \"values(#{created_datetime}, #{schedule_datetime}, #{job_id}, #{job_group_name}, #{run_as}, #{status})\")\n @Options(useGeneratedKeys = true, keyProperty = \"id\", keyColumn = \"id\")\n public void insert(JobSchedule jobSchedule);\n\n @Update(\"update job_schedule set status = #{status} where id = #{id}\")\n public void updateStatus(@Param(\"id\") long id, @Param(\"status\")int status);\n\n @Update(\"update job_schedule set status = \" + JobSchedule.JOB_SCHEDULE_STATUS_PENDING + \", retried = retried + 1 where id = #{id}\")\n public void retry(@Param(\"id\") long id);\n\n @Update(\"update job_schedule set next_job_schedule_id = #{nextId} where id = #{thisId}\")\n public void updateNextScheduleId(@Param(\"thisId\")long thisId, @Param(\"nextId\")long nextId);\n}", "Schedule createSchedule();", "java.lang.String getSchedule();", "public Schedule() {\n\t\t// TODO Auto-generated constructor stub\n\t}", "public void generateSchedule(){\r\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"yyyy-MM-dd HH:mm:ss\"); // Date formatter used when getting SQL records\r\n Database db = new Database();\r\n Connection connection = null;\r\n String sql = \"\";\r\n String report = \"\";\r\n \r\n // Retrieve the inputted consultant's id\r\n User user = (User) combo_user.getValue();\r\n int userID = user.getId();\r\n try{\r\n connection = db.jdbc_connection.connect();\r\n Statement statement = connection.createStatement(); // Set up statement\r\n \r\n sql = \"SELECT appointment.appointmentID, customer.customerName, appointment.title, appointment.description, appointment.location, appointment.contact, \" +\r\n \"appointment.type, appointment.url, appointment.start, appointment.end FROM appointment \" +\r\n \"INNER JOIN customer ON appointment.customerID=customer.customerID \" +\r\n \"WHERE userID = \" + userID + \" GROUP BY appointment.start\"; \r\n ResultSet results = statement.executeQuery(sql); \r\n \r\n while(results.next()) { \r\n String customer = results.getString(\"customerName\");\r\n String title = results.getString(\"title\");\r\n String description = results.getString(\"description\");\r\n String location = results.getString(\"location\");\r\n String contact = results.getString(\"contact\");\r\n String type = results.getString(\"type\");\r\n String url = results.getString(\"url\");\r\n String start = results.getString(\"start\");\r\n String end = results.getString(\"end\");\r\n \r\n \r\n // Convert the start and end DATETIMES to the user's current timezone \r\n java.time.LocalDateTime start_converted = convertToCurrentZone(java.time.LocalDateTime.parse(start.replace(\".0\", \"\"), formatter));\r\n String month = start_converted.getMonth().toString();\r\n int day = start_converted.getDayOfMonth();\r\n int hour = start_converted.getHour();\r\n String minute = String.valueOf(start_converted.getMinute());\r\n \r\n if(minute.length() == 1) minute += \"0\"; // Add following zeroes\r\n \r\n report += month + \" \" + day + \" at \" + hour + \":\" + minute + \" - appointment with \" + customer + \"\\n\";\r\n } \r\n }catch(Exception e) {\r\n System.out.println(e.getMessage());\r\n }finally {\r\n try {\r\n connection.close();\r\n } catch (Exception e2) { // Closing databse error handling\r\n System.err.println(e2.getMessage());\r\n }\r\n } \r\n \r\n text_schedule.setText(report);\r\n }", "public int getSchedule_id() {\r\n return schedule_id;\r\n }", "io.opencannabis.schema.commerce.CommercialOrder.OrderScheduling getScheduling();", "List<WorkingSchedule> getAll();", "@Override\n\t\tpublic List<ProgramScheduledBean> getAllScheduleProgram()\n\t\t\t\tthrows UniversityException {\n\t\t\treturn dao.getAllScheduleProgram();\n\t\t}", "public interface ScheduleDao {\n int crewTally();\n ArrayList<avail> getAllAvailibility();\n ArrayList<ShiftDetails> getShiftDetails();\n int updateShiftSwapStatus();\n}", "@Override\n\tpublic List<ScheduleTask> getScheduleTaskList() {\n\t\treturn (List<ScheduleTask>) find(\"from ScheduleTask\");\n\t}", "public List<UserRace> selectAllSchedule() {\n\t\tString sql = \"select \" + COLUMNS + \" FROM UserRace WHERE mode = '\"\n\t\t\t\t+ UserRace.MODE_SCHEDULE + \"'\";\n\t\treturn getJdbcTemplate().query(sql, new UserRaceRowMapper());\n\t}", "@Override\r\n\tpublic List<Courseschedule> getAllCourseschedules() {\n\t\tsession = sessionFactory.openSession();\r\n\t\tTransaction tran = session.beginTransaction();\r\n\t\tString hql = \"from Courseschedule where state=:state\";\r\n\t\tQuery query = session.createQuery(hql).setInteger(\"state\", 0);\r\n\t\tList<Courseschedule> lists = query.list();\r\n\t\ttran.commit();\r\n\t\tsession.close();\r\n\t\tlogger.debug(\"use the method named :getAllCourseschedules()\");\r\n\t\tif (lists.size() > 0) {\r\n\t\t\treturn lists;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "List<Schedule> selectByExample(ScheduleCriteria example);", "public static List<Schedule> fetchGeneratedSchedules() {\r\n if (!isComplete()) {\r\n return null;\r\n }\r\n\r\n return generatedSchedules;\r\n }", "@Override\n\tpublic void UpdateTableSchedule(Schedule current) {\n\t\tif (current == null)\n\t\t\treturn;\n\t\tCurrFitness = current.fitness;\n\t\tmyLabelSchedule.setText(\"Current Schedule Fitness: \" + CurrFitness);\n\t\tfor (int station = 1; station <= current.stations.size(); station++) {\n\t\t\tfor (int i = 0; i < dtm.getRowCount(); i++) {\n\t\t\t\tdtm.setValueAt(\"\", i, station);\n\t\t\t}\n\t\t\t// @Debug System.out.println(\"TableLength: \"+tableLength);\n\t\t\tStationSlot currentStation = current.stations.get(station - 1);\n\t\t\tif (currentStation.registeredCars.size() == 0) {\n\t\t\t\tcontinue;\n\t\t\t} else {\n\t\t\t\tLinkedList<CarSlot> cars = currentStation.registeredCars;\n\t\t\t\tfor (int i = 0; i < cars.size(); i++) {\n\t\t\t\t\tCarSlot car = cars.get(i);\n\t\t\t\t\tfloat start = car.startTime;\n\t\t\t\t\tfloat duration = car.duration;\n\t\t\t\t\tint rowNum = (int) (start * (60 / interval));\n\t\t\t\t\t// System.out.println(\"ColumNum: \"+rowNum);\n\t\t\t\t\twhile (duration > 0) {\n\t\t\t\t\t\tdtm.setValueAt(\"Car \" + car.name + \" [\" + car.priority + \"]\" + \" - \" + car.type, rowNum, station);\n\t\t\t\t\t\trowNum++;\n\t\t\t\t\t\tduration = (float) (duration - interval / 60f);\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n\tpublic List<ScheduledFlights> retrieveAllScheduledFlights() {\t\r\n\t\tTypedQuery<ScheduledFlights> query = entityManager.createQuery(\"select s from ScheduledFlights s, Flight f,Schedule sc where s.flight = f and s.schedule=sc\",ScheduledFlights.class);\r\n\t\tList<ScheduledFlights> flights = query.getResultList();\r\n\t\treturn flights;\r\n\t}", "public boolean generateSchedule(){\r\n return true;\r\n }", "public void existingSchedules(){\n \n scheduleModel = (DefaultTableModel) displayTable.getModel();\n \n currentSchedules = AccessDataFromXML.retrieveSchedules();\n for (Schedule schedule : currentSchedules){\n \n \n Object[] o = new Object[1];\n o[0] = schedule.getName();\n scheduleModel.addRow(o);\n }\n \n \n\n }", "public Schedule getSchedule() {\n\n return schedule;\n }", "private List<Schedules> getSchedulesList(){\r\n//\t\tList<Schedules> list = new ArrayList<Schedules>();\r\n//\t\tSchedules s1 = new Schedules(1, \"Baidu\", \"BUPT\", \"2013-09-11\", \"12:30\");\r\n//\t\tSchedules s2 = new Schedules(2, \"Sina\", \"BUPT\", \"2013-09-11\", \"13:50\");\r\n//\r\n//\t\tlist.add(s1);\r\n//\t\tlist.add(s2);\r\n\t\tif (scheduleList == null) {\r\n\t\t\tscheduleList = mAppContext.scheduleGetAll();\r\n\t\t}\r\n\t\treturn scheduleList;\r\n//\t\treturn list;\r\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\tpublic List<TimeTableBean> getTimeTable() {\n\t\treturn sessionFactory.openSession().createQuery(\"from TimeTableBean\").list();\r\n\t}", "@Override\n\tpublic List<ScheduleTask> getScheduleTaskList() {\n\t\treturn scheduleTaskDAO.getScheduleTaskList();\n\t}", "abstract public void computeSchedule();", "SchedulingPlay selectByPrimaryKey(Long id);", "public List<WorkoutSchedule> getSchedules() {\n if (schedules == null) {\n if (daoSession == null) {\n throw new DaoException(\"Entity is detached from DAO context\");\n }\n WorkoutScheduleDao targetDao = daoSession.getWorkoutScheduleDao();\n List<WorkoutSchedule> schedulesNew = targetDao._queryWorkout_Schedules(id);\n synchronized (this) {\n if(schedules == null) {\n schedules = schedulesNew;\n }\n }\n }\n return schedules;\n }", "private void refreshScheduleTable() {\n\t\tint gameIdx = 0;\n\t\tList<GameDetails> games = getGames();\n\t\tif (games != null) {\n\t\t\tfor (GameDetails game : games) {\n\t\t\t\tfor (int i = 0; i < 2; i++) {\n\t\t\t\t\tboolean isHome = (i == 0);\n\n\t\t\t\t\tTeamDetails team = (isHome ? game.getHomeTeam() : game.getAwayTeam()); \n\n\t\t\t\t\tboolean isSelected = false;\n\t\t\t\t\tboolean canSelect = true;\n\t\t\t\t\tif (getUiHandlers() != null) {\n\t\t\t\t\t\tisSelected = getUiHandlers().isTeamSelected(team);\n\t\t\t\t\t\tcanSelect = getUiHandlers().canSelectTeam(team);\n\t\t\t\t\t}\n\n\t\t\t\t\tString text = (isHome ? \"@ \" + team.getDisplayName() : team.getDisplayName());\n\n\t\t\t\t\tint row = rowFromGameIdx(gameIdx, isHome);\n\t\t\t\t\tint col = colFromGameIdx(gameIdx, isHome);\n\n\t\t\t\t\tsetScheduleCell(row, col, text, isSelected, canSelect);\t\n\t\t\t\t}\n\n\t\t\t\tgameIdx++;\n\t\t\t}\n\t\t}\n\n\t\t// Clear out any remaining cells (in case of bye weeks).\n\t\tfor (; gameIdx < NFLConstants.MAX_GAMES_PER_WEEK; gameIdx++) {\n\t\t\tfor (int i = 0; i < 2; i++) {\n\t\t\t\tboolean isHome = (i == 0);\n\t\t\t\t\n\t\t\t\tint row = rowFromGameIdx(gameIdx, isHome);\n\t\t\t\tint col = colFromGameIdx(gameIdx, isHome);\n\n\t\t\t\tsetScheduleCell(row, col, \"\", false, true);\n\t\t\t}\n\t\t}\n\t}", "public int getScheduleMethod() {\n return scheduleMethod;\n }", "private static Entity addScheduleDateDataEntities(final Schema schema) {\n Entity scheduleDateData = schema.addEntity(\"ScheduleDateData\");\n scheduleDateData.addIdProperty().primaryKey().autoincrement();\n scheduleDateData.addIntProperty(\"schedule_id\").notNull();\n scheduleDateData.addStringProperty(\"schedule_name\");\n scheduleDateData.addStringProperty(\"class_id\");\n scheduleDateData.addStringProperty(\"class_name\");\n scheduleDateData.addStringProperty(\"class_desc\");\n scheduleDateData.addStringProperty(\"schedule_type_id\");\n scheduleDateData.addStringProperty(\"schedule_type\");\n scheduleDateData.addStringProperty(\"schedule_start_date\");\n scheduleDateData.addStringProperty(\"schedule_start_time\");\n scheduleDateData.addStringProperty(\"schedule_end_time\");\n scheduleDateData.addLongProperty(\"schedule_start_time_long\");\n scheduleDateData.addLongProperty(\"schedule_end_time_long\");\n scheduleDateData.addIntProperty(\"schedule_monday\");\n scheduleDateData.addIntProperty(\"schedule_tuesday\");\n scheduleDateData.addIntProperty(\"schedule_wednesday\");\n scheduleDateData.addIntProperty(\"schedule_thursday\");\n scheduleDateData.addIntProperty(\"schedule_friday\");\n scheduleDateData.addIntProperty(\"schedule_saturday\");\n scheduleDateData.addIntProperty(\"schedule_sunday\");\n scheduleDateData.addStringProperty(\"schedule_frequency\");\n scheduleDateData.addIntProperty(\"is_cancelled\");\n scheduleDateData.addIntProperty(\"is_reservable\");\n scheduleDateData.addStringProperty(\"instructor_id\");\n scheduleDateData.addStringProperty(\"instructor_name\");\n scheduleDateData.addStringProperty(\"location_id\");\n scheduleDateData.addStringProperty(\"location_name\");\n\n return scheduleDateData;\n }", "public static String listScheduleIdSymbol(int tambahanBolehABs) {\n DBResultSet dbrs = null;\n String result = \"\";\n try {\n Date dtStart = new Date();\n Date dtEnd = new Date();\n String dtManual = \"\";\n boolean crossDay = false;\n //dtStart.setHours(dtStart.getHours()-tambahanBolehABs);\n dtStart = new Date(dtStart.getYear(), dtStart.getMonth(), (dtStart.getDate()), (dtStart.getHours() - tambahanBolehABs), dtStart.getMinutes(), dtStart.getSeconds());\n dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate()), (dtEnd.getHours() + tambahanBolehABs), dtEnd.getMinutes(), dtEnd.getSeconds());\n int jamMelebihiOneDay = 23;\n if (dtStart.getHours() == 0 || dtStart.getHours() == 23) {\n dtManual = \"23:\" + \"59:\" + \"59\";\n crossDay = true;\n jamMelebihiOneDay = jamMelebihiOneDay + tambahanBolehABs;\n }\n if (dtEnd.getHours() == 0) {\n dtManual = \"23:\" + \"59:\" + \"59\";\n crossDay = true;\n jamMelebihiOneDay = jamMelebihiOneDay + tambahanBolehABs;\n }\n\n// String dtManual=\"\";\n// if(dt.getHours()==0 || dt.getHours()+tambahanBolehABs>=23){\n// int idtManual = 24+tambahanBolehABs;\n// dtManual = idtManual+\":59:00\" ;\n// }else{\n// dt.setHours(dt.getHours()+tambahanBolehABs);\n// }\n\n String sql = \"SELECT * FROM \" + PstScheduleSymbol.TBL_HR_SCHEDULE_SYMBOL\n + \" WHERE \\\"00:00:00\\\" <=\" + PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT]\n + \" AND \" + PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN] + \"<= \\\"\"\n + \"23:59:00\"\n //+ (dtStart.getHours() == 0 || dtStart.getHours() == 23 || dtEnd.getHours() == 0 ? dtManual : Formater.formatDate(dtEnd, \"HH:mm:00\"))\n + \"\\\"\";\n //+ \" WHERE \" + \"(\"+PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN] +\" BETWEEN \\\"00:00:00\\\" AND \\\"\"+ (crossDay?dtManual:Formater.formatDate(dtStart, \"HH:mm:00\")) +\"\\\") OR (\"+PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT] +\" BETWEEN \\\"00:00:00\\\" AND \\\"\"+Formater.formatDate(dtEnd, \"HH:mm:00\")+\"\\\")\";\n\n dbrs = DBHandler.execQueryResult(sql);\n ResultSet rs = dbrs.getResultSet();\n while (rs.next()) {\n dtEnd = new Date();\n dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate()), (dtEnd.getHours() + tambahanBolehABs), dtEnd.getMinutes(), dtEnd.getSeconds());\n \n Date schTimeIn = rs.getTime(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN]);\n\n Date schTimeOut = rs.getTime(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT]);\n Date dtTmpSchTimeIn = new Date();\n Date dtTmpSchTimeOut = new Date();\n\n\n if (schTimeIn != null && schTimeOut != null) {\n schTimeOut = new Date(dtTmpSchTimeOut.getYear(), dtTmpSchTimeOut.getMonth(), dtTmpSchTimeOut.getDate(), schTimeOut.getHours(), schTimeOut.getMinutes());\n schTimeIn = new Date(dtTmpSchTimeIn.getYear(), dtTmpSchTimeIn.getMonth(), dtTmpSchTimeIn.getDate(), schTimeIn.getHours(), schTimeIn.getMinutes());\n\n Date dtCobaTimeOut = new Date(schTimeOut.getYear(), schTimeOut.getMonth(), (schTimeOut.getDate()), (schTimeOut.getHours() + tambahanBolehABs), schTimeOut.getMinutes(), schTimeOut.getSeconds());\n boolean melebihiHari=false;\n if (schTimeIn.getHours() == 0 || schTimeOut.getHours() == 0) {\n \n } else {\n if (dtCobaTimeOut.getDate() > schTimeIn.getDate()) {\n //dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate() + 1), (dtEnd.getHours()), dtEnd.getMinutes(), dtEnd.getSeconds());\n melebihiHari=true;\n }\n\n if ( (melebihiHari && dtEnd.getHours()<dtCobaTimeOut.getHours()) || schTimeIn.getTime() <= dtEnd.getTime() || (schTimeIn.getHours() > schTimeOut.getHours() && dtEnd.getTime() < schTimeOut.getTime())) {\n result = result + rs.getString(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_SCHEDULE_ID]) + \",\";\n }\n }\n\n\n\n\n\n }\n\n }\n if (result != null && result.length() > 0) {\n result = result.substring(0, result.length() - 1);\n }\n rs.close();\n return result;\n\n } catch (Exception e) {\n System.out.println(e);\n } finally {\n DBResultSet.close(dbrs);\n }\n return result;\n }", "public interface ScheduleDao {\r\n\tpublic Schedule createSchedule(Calendar scheduleDate) throws DAOException;\r\n\tpublic Schedule findScheduleById(long scheduleId) throws DAOException;\r\n\tpublic List<Schedule> findSchedulesByDate(Calendar scheduleDate) throws DAOException;\r\n\tpublic List<Schedule> findAllSchedules() throws DAOException;\r\n\tpublic void updateSchedule(long scheduleId, Calendar newScheduleDate) throws DAOException;\r\n\tpublic void deleteScheduleById(long scheduleId) throws DAOException;\r\n\tpublic void deleteAllSchedules() throws DAOException;\r\n}", "public String getSchedule() {\n return schedule;\n }", "public Schedule getSchedule() {\r\n\t\treturn schedule;\r\n\t}", "public ScheduleType getScheduleType();", "public interface ScheduleService {\n BasicSchedule getBasicScheduleByHostelIdAndRoomType(long hostelId, RoomType type);\n\n /**\n * 获得最近一年的酒店基本计划\n *\n * @param hostelId\n * @return\n */\n List<BasicSchedule> getBasisSchedulesByHostelId(long hostelId);\n\n void modifyBasisSchedule(BasicSchedule basicSchedule);\n\n /**\n * 获得最近一年的酒店特殊计划\n *\n * @param hostelId\n * @return\n */\n List<SpecialSchedule> getSpecialScheduleByHostelId(long hostelId);\n\n void modifySpecialSchedule(SpecialSchedule specialSchedule);\n\n void addSpecialSchedule(SpecialSchedule specialSchedule);\n\n void deleteSpecialSchedule(SpecialSchedule specialSchedule);\n\n SpecialSchedule getSpecialSchedule(long hostelId, RoomType roomType, Date date);\n}", "private void loadScheduleList() {\n\n if (listTbagendamentos != null && !listTbagendamentos.isEmpty()) {\n scheduleAgendamento.clear();\n\n for (Tbagendamento agendamento : listTbagendamentos) {\n DefaultScheduleEvent defaultScheduleEvent = new DefaultScheduleEvent();\n defaultScheduleEvent.setTitle(agendamento.getIdcliente().getNmcliente());\n\n Calendar dtDataInicial = new GregorianCalendar();\n dtDataInicial.setTime(agendamento.getTmdataagendamento());\n\n defaultScheduleEvent.setStartDate(dtDataInicial.getTime());\n\n Calendar dtDataFinal = new GregorianCalendar();\n dtDataFinal.setTime(agendamento.getTmdataagendamento());\n dtDataFinal.set(Calendar.MINUTE, dtDataFinal.get(Calendar.MINUTE) + 30);\n\n defaultScheduleEvent.setEndDate(dtDataFinal.getTime());\n defaultScheduleEvent.setData(agendamento.getIdagendamento());\n scheduleAgendamento.addEvent(defaultScheduleEvent);\n }\n }\n }", "public Schedule() {\r\n }", "public void setSchedule(Schedule schedule) {\r\n\t\tthis.schedule = schedule;\r\n\t}", "List<WorkingSchedule> getByPlaceId(Long placeId);", "public ProgramScheduled getProgramScheduleById(int scheduleId);", "public ArrayList<TrainScheduleEntity> viewTrainSchedule(String dayType);", "java.lang.String getSnapshotCreationSchedule();", "io.opencannabis.schema.commerce.CommercialOrder.SchedulingType getScheduling();", "@Override\r\n\tpublic void doInitialSchedules() {\n\t}", "void setSchedule(java.lang.String schedule);", "ScheduleStartType getScheduleStart();", "public abstract void schedule();", "public void setSchedule(Schedule newSchedule) {\n\n schedule = newSchedule;\n }", "@Mapper\npublic interface VirtualRepayFlowMapper {\n @DataSource(\"bigdata2_jdb\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE update_time >= #{from_time} and update_time < #{end_time} and id>#{id} limit 1000\")\n List<VirtualRepayFlow> find(@Param(\"from_time\") String from_time,\n @Param(\"end_time\") String end_time,\n @Param(\"id\") long id);\n\n\n @DataSource(\"dmp\")\n @Insert(\"INSERT INTO virtual_repay_flow (id,uuid,virtual_productid,to_user,amount,interest,repay_status,repay_time,create_time,update_time) values\" +\n \"(#{id},#{uuid},#{virtual_productid},#{to_user},#{amount},#{interest},#{repay_status},#{repay_time},#{create_time},#{update_time})\")\n void insert(VirtualRepayFlow virtualRepayFlow);\n\n @DataSource(\"dmp\")\n @Delete(\"DELETE FROM repay_flow where update_time<#{update_time}\")\n void delete(@Param(\"update_time\") String update_time);\n\n @DataSource(\"dmp\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE id=#{id}\")\n VirtualRepayFlow getById(@Param(\"id\") long id);\n\n\n @DataSource(\"dmp\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE uuid=#{uuid}\")\n VirtualRepayFlow getByUuid(@Param(\"uuid\") String uuid);\n}", "public abstract void maintenanceSchedule() ;", "@Override\n public List<SurveillantSchedule> getSurveillantSchedule() {\n return surveillantRepository.getSurveillantSchedule();\n }", "long getScheduleID() {return mScheduleID; }", "com.google.cloud.gkebackup.v1.BackupPlan.Schedule getBackupSchedule();", "public String getScheduleRow() {\n\t\treturn uSRow;\n\t}", "public void setSchedule_id(int schedule_id) {\r\n this.schedule_id = schedule_id;\r\n }", "public void printSchedule(){\n String\n format =\n \"%-20s%-10s%-15s%\" +\n \"-20s%-25s%-10s%\" +\n \"-15s%-15s%-15s%n\";\n\n System.out.printf(format,\n \"Водитель\", \"Номер А/М\",\"Машина\", \"Дата и время\",\n \"Задание\", \"Кол-во\",\n \"Расстояние\", \"Цена\", \"Примечание\");\n System.out.println();\n\n\n\n List<TimeTable> l = driverScheduleReaderDAO.getTimeTable();\n TimeTable tPrev =l.get(0);\n for (TimeTable t: l){\n\n if (!t.getDriverName().equals(tPrev.getDriverName())) {\n\n System.out.println(\"***\");\n tPrev = t;\n\n } else if (t!=l.get(0))t.setDriverName(\" \");\n\n\n\n\n System.out.printf(format,\n t.getDriverName(), t.getCarId(), t.getCarBrand(),\n t.getBusyTime(), t.getOrder(), t.getNumOfEl(),\n t.getDistance(), t.getPrice(), t.getNote()\n );\n\n }\n\n //int\n\n\n\n\n //вывести на экран\n //отельным классом посчитать шанс поломки и предупредить\n }", "public void schedule(String id, String[] schedule) {\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic List<ISchedule> getSchedules() throws IOException {\n\t\tfinal String sql = \"SELECT * from record\";\n\t\tList<? extends ISchedule> result = this.queryDataList(Schedule.class,ISchedule.Props.class, sql);\n\t\treturn (List<ISchedule>) result;\t\t\n\t}", "public List<AllTimeSeasonBean> getAllTimeRecord(){\n String q = \"select new com.main.pcblroyals.bean.AllTimeSeasonBean( \" +\n \"sum(case when g.teamScore > g.opponentScore then 1 else 0 end), \" +\n \"sum(case when g.teamScore = g.opponentScore then 1 else 0 end), \" +\n \"sum(case when g.teamScore < g.opponentScore then 1 else 0 end) \" +\n \") \" +\n \"from seasons s \" +\n \"join games g on s.id = g.season.id \";\n Query query = entityManager.createQuery(q);\n return (List<AllTimeSeasonBean>) query.getResultList();\n }", "@Override\n public String getEndPoint() {\n return \"/v1/json/schedule\";\n }", "@GetMapping\n public List<ScheduleDTO> getAllSchedules() {\n List<Schedule> scheduleList = scheduleService.getAllSchedules();\n\n List<ScheduleDTO> scheduleDTOList = scheduleList.stream()\n .map(ScheduleController::convertScheduleToScheduleDTO)\n .collect(Collectors.toList());\n return scheduleDTOList;\n }", "public interface ScheduleListDao extends GenericDao<ScheduleList, Long> {\n\t\n\tpublic List<ScheduleList> findShceduleList(String scheduleId); \n\t\n\t /**\n * 自服务项列表\n * @return\n */\n public Page findScheduleList(String pageSize);\n\t\n}", "public void storeRegularDayTripStationScheduleWithRS();", "@MapperScan\npublic interface DSSettingMapper {\n\n @Insert(\"INSERT INTO ds_setting (dsId, dsAppointment2,dsAppointment3,outCoachIds,status,modifyTime)\" +\n \" VALUES(#{dsId},#{dsAppointment2},#{dsAppointment3},#{outCoachIds},#{status},NOW())\")\n int insertDssetting(DSSetting dsSetting);\n\n @Update(\"UPDATE ds_setting SET dsAppointment2 = #{dsAppointment2},\" +\n \" dsAppointment3 = #{dsAppointment3}, outCoachIds = #{outCoachIds}, \" +\n \"status = #{status}, modifyTime = NOW() \" +\n \"WHERE dsId = #{dsId}\")\n int updateDssetting(DSSetting dsSetting);\n\n @Select(\"SELECT * FROM ds_setting WHERE dsId = #{dsId}\")\n DSSetting findOneDSSetting(@Param(\"dsId\") Long dsId);\n}", "public String getScheduleExpression() {\n return this.scheduleExpression;\n }", "@Override\n\tpublic List<SchedulerJobEntity> getAllScheduledJobs() throws SchedulerException {\n\t\treturn schedulerRepository.findAll();\n\t}", "@Override\n\t\tpublic oep_ResponseInfo getTestscheduledetails(String id) {\n\t\t\t\n\t\t\t\n\t\t\tString query = \" SELECT a.`ques_master_id`,`is_test_started`,a.`id`,`sub_id`,a.`batch`,DATE_FORMAT(`testdate`,'%m/%d/%Y')newtestdate,a.`start_time`, a.`end_time`,a.`status`,b.`test_name`,`test_id`,\"\n\t\t\t\t\t+ \"HOUR(a.`start_time`)starthour,MINUTE(a.`start_time`)startminute, HOUR(a.`end_time`)endhour,MINUTE(a.`end_time`)endminute,\"\n\t\t\t\t\t+ \" DATE_FORMAT(`testdate`,'%d/%m/%Y')testdate, SUBSTRING_INDEX(a.`start_time`,' ',-1)startformatt,SUBSTRING_INDEX(a.`end_time`,' ',-1)endformatt,\"\n\t\t\t\t\t+ \"GROUP_CONCAT(f.`username`,' ',CASE WHEN `is_participant_start` = 2 THEN ' completed \\n' WHEN `is_participant_start` = 1 THEN 'Started \\n' ELSE 'Not started \\n'END)username,\"\n\t\t\t\t\t+ \"`is_participant_start`,h.`username`facname FROM `test_schedule` a JOIN `question_master` b ON a.`ques_master_id` = b.`id` \"\n\t\t\t\t\t+ \"JOIN `course_scheduling`c ON c.`cs_id`= a.`batch` JOIN `participants_registration_course_details`e ON e.`course_id`= c.`cs_id` \"\n\t\t\t\t\t+ \" JOIN `participants`f ON f.`participant_id`=e.`participant_id` \"\n\t\t\t\t\t+ \"LEFT JOIN `test_participants`g ON g.`part_id`= f.`participant_id` AND g.`ts_id`=a.`id`\"\n\t\t\t\t\t+ \" JOIN `faculty_master`h ON h.`faculty_id` = c.`faculty_name` WHERE a.`id`= \"+id+\" \";\n\t\t\t\n\t\t\t\n\t\t\tlog.info(query);\n\t\t\t\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tList<Object> List = jdbcTemplate.query(query, new RowMapper() {\n\t\t\t\tint count = 0;\n\t\t\t\t@Override\n\t\t\t\tpublic Object mapRow(ResultSet rs, int arg1) throws SQLException {\n\t\t\t\t\t\n\t\t\t\t\tMap<String, Object> map = new HashMap<String, Object>();\n\t\t\t\t\tmap.put(\"testid\", rs.getString(\"test_id\"));\n\t\t\t\t\tmap.put(\"startformat\", rs.getString(\"startformatt\"));\n\t\t\t\t\tmap.put(\"endformat\", rs.getString(\"endformatt\"));\t\n\t\t\t\t\tmap.put(\"facname\", rs.getString(\"facname\"));\n\t\t\t\t\tmap.put(\"quesid\", rs.getString(\"ques_master_id\"));\n\t\t\t\t\tmap.put(\"id\", rs.getString(\"id\"));\n\t\t\t\t\tmap.put(\"tsid\", rs.getString(\"id\"));\n\t\t\t\t\tmap.put(\"batch\", rs.getString(\"batch\"));\n\t\t\t\t\tmap.put(\"testdate\", rs.getString(\"testdate\"));\n\t\t\t\t\tmap.put(\"newtestdate\", rs.getString(\"newtestdate\"));\n\t\t\t\t\tmap.put(\"subid\", rs.getString(\"sub_id\"));\n\t\t\t\t\tmap.put(\"starthour\", rs.getString(\"starthour\"));\n\t\t\t\t\tmap.put(\"endhour\", rs.getString(\"endhour\"));\n\t\t\t\t\tmap.put(\"startminute\", rs.getString(\"startminute\"));\n\t\t\t\t\tmap.put(\"endminute\", rs.getString(\"endminute\"));\n\t\t\t\t\tmap.put(\"starttime\", rs.getString(\"start_time\"));\n\t\t\t\t\tmap.put(\"testname\", rs.getString(\"test_name\"));\n\t\t\t\t\tmap.put(\"username\", rs.getString(\"username\"));\n\t\t\t\t\tmap.put(\"starttest\", rs.getString(\"is_test_started\"));\n\t\t\t\t\tmap.put(\"participantstart\", rs.getString(\"is_participant_start\"));\n\t\t\t\t\tmap.put(\"endtime\", rs.getString(\"end_time\"));\n/*\t\t\t\t\t\n\t\t\t\t\tString submenuQuery = \"SELECT `part_id`,`imh_staus`,`username`,CONCAT(`username`,' ',CASE WHEN `imh_staus` = 0 \"\n\t\t\t\t\t\t\t+ \" THEN 'Certificate Not sent ' WHEN `imh_staus` = 1 THEN 'Certificate sent' \"\n\t\t\t\t\t\t\t+ \" ELSE 'Invalid 'END)status FROM `email_history`a \"\n\t\t\t\t\t\t\t+ \" JOIN `participants`b ON a.`part_id`=b.`participant_id` WHERE `ts_id` = \"+ rs.getString(\"id\");\t*/\n\t\t\t\t\t\n\t\t\t\t\tString submenuQuery = \" SELECT a.`ques_master_id`,`username`,`imh_staus`,`is_test_started`,a.`id`,a.`batch`,DATE_FORMAT(`testdate`,'%e/%c/%Y')testdate,a.`start_time`, a.`end_time`,a.`status`,b.`test_name`,`test_id`,\"\n\t\t\t\t\t\t\t+ \"CONCAT(`username`,' ',CASE WHEN `is_participant_start` = 2 THEN ' completed \\n' WHEN `is_participant_start` = 1 THEN 'Started \\n' ELSE 'Not started \\n'END)teststatus,\"\n\t\t\t\t\t\t\t+ \"`is_participant_start` FROM `test_schedule` a JOIN `question_master` b ON a.`ques_master_id` = b.`id` \"\n\t\t\t\t\t\t\t+ \"JOIN `course_scheduling`c ON c.`cs_id`= a.`batch` JOIN `participants_registration_course_details`e ON e.`course_id`= c.`cs_id` \"\n\t\t\t\t\t\t\t+ \" JOIN `participants`f ON f.`participant_id`=e.`participant_id` \"\n\t\t\t\t\t\t\t+ \"LEFT JOIN `test_participants`g ON g.`part_id`= f.`participant_id` AND g.`ts_id`=a.`id`\"\n\t\t\t\t\t\t\t+ \"JOIN `email_history`h ON h.`ts_id`= a.`id` WHERE a.`id`= \"+ rs.getString(\"id\");\n\t\t\t\t\t\n\t\t\t\t\t List<Object> submenuList = new ArrayList<Object>();\n\t\t\t\t\t submenuList = getPartStatusList(submenuQuery);\n\t\t\t\t\t map.put(\"submenuList\", submenuList);\n\t\t\t\t\t\n\t\t\t\t\tif(rs.getString(\"status\")!= null && rs.getString(\"status\").equals(\"1\")){\n\t\t\t\t\t\tmap.put(\"status\", \"Active\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tmap.put(\"status\", \"Inactive\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(rs.getString(\"is_test_started\")!= null && rs.getString(\"is_test_started\").equals(\"1\")){\n\t\t\t\t\t\tmap.put(\"teststarted\", \"Test Started\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tmap.put(\"teststarted\", \"Not started\");\n\t\t\t\t\t}\n\t\t\t\t\tmap.put(\"index\", count);\n\t\t\t\t\tcount++;\n\t\t\t\t\treturn map;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t});\n\t\t\t\n\t\t\n\t\t\t \n\t\t\t \n\t\t\tresponse.setResponseType(\"S\");\n\t\t\tresponse.setResponseObj(List);\n\t\t\tresponseInfo.setInventoryResponse(response);\n\t\t\treturn responseInfo;\n\t\t}", "public void createTempSpecialDayTrainSchedule(Timestamp date);", "public void generatePlan(Integer id,Date fromDate, Date toDate) throws Exception;", "@Override\r\n\tpublic List<Courseschedule> getCourseschedulesByClassroomId(int classroomId) {\n\t\tsession = sessionFactory.openSession();\r\n\t\tTransaction tran = session.beginTransaction();\r\n\t\tString hql = \"from Courseschedule where classroomId=:classroomId and state=:state\";\t\t\r\n\t\tList<Courseschedule> lists = session.createQuery(hql).setInteger(\"classroomId\", classroomId).setInteger(\"state\", 0).list();\r\n\t\ttran.commit();\r\n\t\tsession.close();\r\n\t\tlogger.debug(\"use the method named :getCourseschedulesByClassroomId(int classroomId)\");\r\n\t\tif (lists.size() > 0) {\r\n\t\t\treturn lists;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public void setSchedule(String timeframe) {\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic List<ScheduledFlights> retrieveScheduledFlights(String source, String destination) {\r\n\t\tQuery query = entityManager.createQuery(\"select s.scheduleId,s.source,s.destination,s.arrivaltime,s.departuretime,f.flightNumber,f.carrierName,f.seatCapacity from Schedule s JOIN ScheduledFlights sf ON s.scheduleId=sf.scheduleId JOIN Flight f on sf.flightId=f.flightNumber where schedule.source= :source AND schedule.destination=:destination\");\r\n\t\treturn query.getResultList();\r\n\t}", "@Override\r\n\tpublic boolean updateDate(ScheduleAdminModel scheduleAdminModel) throws ClassNotFoundException, SQLException {\n\t\r\n\t\tConnection connection=ConnectionManager.openConnection();\r\nPreparedStatement statement=\r\n connection.prepareStatement(\"update courses set start_date=?,end_date=? where course_name=?\");\r\nstatement.setString(1,scheduleAdminModel.getStartDate());\r\nstatement.setString(2,scheduleAdminModel.getEndDate());\r\nstatement.setString(3,scheduleAdminModel.getCourse_name());\r\n \r\n int rows=statement.executeUpdate();\r\n\tConnectionManager.closeConnection();\r\n\tif(rows>0)\r\n\t\treturn true;\r\n\t else \r\n\t return false;\r\n\t}", "void deschedule(ScheduledJob job);", "@Query(\"select :stopName from Timetable order by id\")\n List<Integer> selectStop(String stopName);", "public Date getScheduletime() {\r\n return scheduletime;\r\n }", "public List<Timetable> getAllTimetable() throws Exception;", "public abstract ArrayList<ScheduleTime> getScheduleForDay(int day, int month, int year);", "public void setSchedule(SpaceSchedule s) {\n\t\t\n\t}", "MMSchedule() {\n mScheduleID = MMUtilities.ID_DOES_NOT_EXIST;\n mOfMedicationID = 0;\n mForPersonID = 0;\n mTimeDue = 0;\n mStrategy = MMMedication.sSET_SCHEDULE_FOR_MEDICATION;\n }", "@Override\n public void fetchScheduled(RuleKey ruleKey) {\n }", "List<Schedule> selectByExampleWithRowbounds(ScheduleCriteria example, RowBounds rowBounds);", "Schedule getSchedule(String departure, String arrival, int depYear, int depMonth);", "public void setList(ScheduleInterface<Schedule> scheduleList){\n this.scheduleList = scheduleList;\n }", "int insert(Schedule record);", "private void reloadPlanTable() {\n\t\t\r\n\t}", "public Schedule getSchedule(String route, int direction){\r\n // A schedule to hold all the data returned from the query\r\n Schedule weekdayZero = new Schedule();\r\n // Fetch the route id given the route\r\n Cursor getData = getReadableDatabase().rawQuery(\"select _id from routes where route_long_name = '\" + route + \"'\", null);\r\n // Make sure to begin at the first element of the returned data\r\n getData.moveToFirst();\r\n // Store the Route Id\r\n int route_id = getData.getInt(0);\r\n // Calendar id: (90400,90448) - Monday To Friday\r\n final String query = \"select Routes.Route_long_Name, \" +\r\n \"Calendar._Id, Stops.Stop_Name, Stop_Times.Stop_Sequence, Stop_Times.Arrival_Time, routes.route_short_name \" +\r\n \"from Trips join Calendar on Trips.Service_Id=Calendar._Id \" +\r\n \"join Routes on Trips.Route_Id=Routes._Id \" +\r\n \"join Stop_Times on Trips._Id=Stop_Times.Trip_Id \" +\r\n \"join Stops on Stop_Times.Stop_Id=Stops._Id \" +\r\n \"where Calendar._Id in \" + getDayOfTheWeek() + \" \" +\r\n \"AND Trips.Route_Id = \" + route_id + \" \" +\r\n \"AND Trips.Direction_Id = \" + direction + \" \" +\r\n \"AND Stop_Times.Arrival_Time != '' \" +\r\n \"order by arrival_time asc\";\r\n getData.moveToFirst();\r\n getData = getReadableDatabase().rawQuery(query, null);\r\n while (getData.moveToNext()){\r\n weekdayZero.insertData(getData.getString(0), getData.getInt(1), getData.getString(2), getData.getInt(3)\r\n , getData.getString(4), getData.getString(5));\r\n }\r\n return weekdayZero;\r\n }", "public Date getScheduleTime() {\n return this.scheduleTime;\n }", "@Override\n\tpublic void setDateAndSchedule(String date, String schedule) {\n\n\t}", "public MonthlyValuesTable(Database database) \n {\n //Constructor calls DbTable's constructor\n super(database);\n setTableName(\"monthlyvalues\");\n }", "public Date getScheduleDate(){\r\n\t\treturn this.scheduleDate;\r\n\t}", "com.google.cloud.compute.v1.Scheduling getScheduling();", "TimerSchedule createTimerSchedule();", "public ApiSchedule[] getSchedules() {\n return this.schedules;\n }", "@Override\n\tpublic void setDateAndSchedule(String date, String schedule) {\n\t\t\n\t}", "public interface ITimetableDAO {\n\n /**\n * Get all the timetable element of <code>Timetable</code> object <br>\n *\n * @return all the list of <code>Timetable</code> object\n * @throws Exception\n */\n public List<Timetable> getAllTimetable() throws Exception;\n\n /**\n * Get all the list element has search of <code>Timetable</code> object<br>\n *\n * @param from is the date of <code>Timetable</code> object\n * @param to is the date of <code>Timetable</code> object\n * @return all the list has search of <code>Timetable</code> object\n * @throws Exception\n */\n public List<Timetable> getListSearch(String from, String to) throws Exception;\n\n /**\n * Add the all the element of Timetable to database\n *\n * @param date the date of Timetable object, it is an\n * <code>java.sql.Date</code>\n * @param slot the slot of Timetable object, it is an int\n * @param classes the classes of Timetable object, it is a string\n * @param teacher the teacher of Timetable object, it is a string\n * @param room the room of Timetable object, it is an int\n * @throws Exception\n */\n public void addTimetable(String date, String slot, String room, String teacher, String classes) throws Exception;\n\n /**\n * Function to check Timetable exist before add\n *\n * @param date the date of Timetable object, it is an\n * <code>java.sql.Date</code>\n * @param classes the slot of Timetable object, it is an int\n * @param room the room of Timetable object, it is a string\n * @return object of Timetable or null when check exist timetable\n * @throws Exception\n */\n public Timetable checkExistRoomTimeTable(String date, String classes, String room) throws Exception;\n\n /**\n * Paginate by number of timetable in <code>Timetable</code> object <br>\n *\n * @param pageIndex the index of page, it is an <code>int</code>\n * @param pageSize the size of page, it is an <code>int</code>\n * @return list of timetable, it is a <code>java.util.List</code> object.\n * @throws java.lang.Exception\n */\n public List<Timetable> pagging(int pageIndex, int pageSize) throws Exception;\n\n /**\n * Get number of result <code>Gallery</code> object by id\n *\n * @return number result of Gallery object, it is an int\n * @throws java.lang.Exception\n */\n public int numberOfResult() throws Exception;\n\n /**\n * Function to check Timetable exist before add\n *\n * @param date the date of Timetable object, it is an\n * <code>java.sql.Date</code>\n * @param classes the slot of Timetable object, it is an int\n * @param teacher the teacher of Timetable object, it is a string\n * @return object of Timetable or null when check exist timetable\n * @throws Exception\n */\n public Timetable checkExistTeacherTimeTable(String date, String classes, String teacher) throws Exception;\n\n}", "public void setScheduleTime(Date scheduleTime) {\n this.scheduleTime = scheduleTime;\n }", "@Scheduled(cron = \"0 30 06 * * *\",zone=\"America/New_York\")\n public void populateDatabase(){\n localDateTime = LocalDateTime.now();\n log.info(\"Executed now: \"+ localDateTime.toString());\n\n // Checks if table in database is empty\n // If not empty, clears the table and populates it with new data\n if(checkEmpty()==0)\n log.info(\"Empty Table\");\n else {\n deleteTableRecords();\n log.info(\"Table not Empty\");\n }\n\n URL url = null;\n\n // Get recent date, append it to URL and establish a connection\n String pattern = \"MM-dd-yyyy\";\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(pattern);\n Date date = Date.from(Instant.now().minus(Duration.ofDays(1)));\n\n\n String dateStr = simpleDateFormat.format(date);\n\n try {\n url = new URL(\"https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_daily_reports/\"+dateStr+\".csv\");\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n HttpURLConnection httpURLConnection = null;\n try {\n httpURLConnection = (HttpURLConnection) url.openConnection();\n } catch (IOException e) {\n e.printStackTrace();\n }\n int responseCode = 0;\n try {\n responseCode = httpURLConnection.getResponseCode();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n // On successful connection, read records line by line, store records in a table\n if(responseCode==200)\n {\n log.info(\"-- Successful Connection\");\n CSVReader reader = null;\n try {\n\n BufferedReader input = new BufferedReader(new InputStreamReader(httpURLConnection.getInputStream()),8192);\n reader = new CSVReader(input);\n String[] line;\n int skipFirstLine = 0;\n while ((line = reader.readNext()) != null)\n {\n if(skipFirstLine==0)\n {\n skipFirstLine++;\n continue;\n }\n\n DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern(\"yyyy-MM-dd HH:mm:ss\");\n\n Corona corona = new Corona();\n corona.setLastUpdate(LocalDateTime.parse(line[4],dateTimeFormatter));\n if(line[7].equals(\"\"))\n line[7]=\"0\";\n if(line[9].equals(\"\"))\n line[9]=\"0\";\n if(line[10].equals(\"\"))\n line[10]=\"0\";\n if(line[8].equals(\"\"))\n line[8]=\"0\";\n if(line[5].equals(\"\"))\n line[5]=\"0\";\n if(line[6].equals(\"\"))\n line[6]=\"0\";\n\n try {\n\n corona.setConfirmed(Long.valueOf(line[7]));\n corona.setRecovered(Long.valueOf(line[9]));\n corona.setActive(Long.valueOf(line[10]));\n corona.setDeaths(Long.valueOf(line[8]));\n corona.setLatitude(Double.valueOf(line[5]));\n corona.setLongitude(Double.valueOf(line[6]));\n } catch (NumberFormatException n)\n {\n n.printStackTrace();\n }\n corona.setCountry(line[3]);\n corona.setProvince(line[2]);\n corona.setCombinedKey(line[11]);\n\n\n\n coronaRepository.save(corona);\n log.info(corona.toString());\n\n\n }\n } catch (IOException | CsvValidationException e){\n e.printStackTrace();\n } finally {\n if(reader!=null)\n {\n try\n {\n reader.close();\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }\n }\n }\n }" ]
[ "0.6583093", "0.62134594", "0.614241", "0.6096163", "0.5869904", "0.5847323", "0.57736564", "0.5749311", "0.5730464", "0.5692395", "0.5691314", "0.5688622", "0.56733465", "0.5612722", "0.56103665", "0.5601378", "0.5594937", "0.5592374", "0.55869794", "0.5565921", "0.5544678", "0.5536762", "0.54946375", "0.5486974", "0.5463075", "0.54603523", "0.5455832", "0.54501116", "0.5445156", "0.5444004", "0.54084784", "0.53984827", "0.53917515", "0.53882813", "0.5388208", "0.5379494", "0.5379087", "0.53540117", "0.53484684", "0.53395474", "0.5337806", "0.53348553", "0.5326429", "0.531917", "0.5268467", "0.52664775", "0.52625597", "0.5256478", "0.5245691", "0.52455944", "0.5244061", "0.52287424", "0.52114916", "0.52114564", "0.5211055", "0.5206053", "0.5198744", "0.51842344", "0.51793087", "0.51495117", "0.5128515", "0.5107465", "0.510662", "0.51056135", "0.50985986", "0.5097996", "0.5095179", "0.5078455", "0.5071949", "0.5062537", "0.5048053", "0.5045186", "0.50360614", "0.5034012", "0.5032612", "0.5029762", "0.5028272", "0.5023831", "0.50128245", "0.50107193", "0.50062126", "0.49853772", "0.49811625", "0.4979578", "0.49694157", "0.4958413", "0.49560702", "0.49543408", "0.49509862", "0.49456567", "0.49427602", "0.49422622", "0.49398386", "0.4935916", "0.4927577", "0.49200827", "0.49151728", "0.49094823", "0.49054155", "0.49049369", "0.49020037" ]
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table schedule
public void setStart(int start) { this.start = start; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void generateSchedule(){\n\t\t\n\t}", "@Dao\npublic interface schedule_Dao {\n\n @Query(\"SELECT * FROM Schedule where student_id = :studentId\")\n List<Schedule> getSchedulesStudent(String studentId);\n\n\n\n @Query(\"SELECT COUNT(pkey) FROM Schedule where student_id = :student_id\")\n int getScheduleCount(String student_id);\n\n\n\n @Query(\"SELECT * FROM Schedule where student_id = :studentId and active = :active or active = :Active\")\n List<Schedule> getActiveSchedules(String active,String Active, String studentId);\n\n\n @Query(\"SELECT * FROM Schedule where `endtime_null` >= :date and `starttime_null` <= :date and student_id = :studentId and active = :active or active = :Active \")\n List<Schedule> getSelEvents(String active,String Active, String studentId, String date);\n\n\n @Query(\"SELECT * FROM Schedule where `endtime` >= :date and `starttime` <= :date and student_id = :studentId and active = :active or active = :Active \")\n List<Schedule> getSelEventTime(String active,String Active, String studentId, String date);\n\n\n @Insert\n void insertAll(Schedule... schedules);\n\n @Insert(onConflict = OnConflictStrategy.IGNORE)\n void insertOnConflict(Schedule... schedules);\n\n @Query(\"DELETE FROM Schedule\")\n public abstract int DeleteToken();\n\n @Query(\"DELETE FROM Schedule where pkey = :p_key and student_id = :studentId\")\n public abstract int DeleteSchedule(String p_key,String studentId );\n\n\n @Query(\"DELETE FROM Schedule where student_id= :studentId\")\n public abstract int DeleteScheduleAllUser(String studentId);\n\n\n}", "Schedule selectByPrimaryKey(Integer id);", "public interface JobScheduleMapper {\n @Select(\"select * from job_schedule where id = #{id}\")\n public JobSchedule findById(@Param(\"id\") long id);\n\n @Select(\"select status from job_schedule where id = #{id}\")\n public int getStatus(@Param(\"id\")long id);\n\n @Insert(\"insert into job_schedule (created_datetime, schedule_datetime, job_id, job_group_name, run_as, status) \" +\n \"values(#{created_datetime}, #{schedule_datetime}, #{job_id}, #{job_group_name}, #{run_as}, #{status})\")\n @Options(useGeneratedKeys = true, keyProperty = \"id\", keyColumn = \"id\")\n public void insert(JobSchedule jobSchedule);\n\n @Update(\"update job_schedule set status = #{status} where id = #{id}\")\n public void updateStatus(@Param(\"id\") long id, @Param(\"status\")int status);\n\n @Update(\"update job_schedule set status = \" + JobSchedule.JOB_SCHEDULE_STATUS_PENDING + \", retried = retried + 1 where id = #{id}\")\n public void retry(@Param(\"id\") long id);\n\n @Update(\"update job_schedule set next_job_schedule_id = #{nextId} where id = #{thisId}\")\n public void updateNextScheduleId(@Param(\"thisId\")long thisId, @Param(\"nextId\")long nextId);\n}", "Schedule createSchedule();", "java.lang.String getSchedule();", "public Schedule() {\n\t\t// TODO Auto-generated constructor stub\n\t}", "public void generateSchedule(){\r\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"yyyy-MM-dd HH:mm:ss\"); // Date formatter used when getting SQL records\r\n Database db = new Database();\r\n Connection connection = null;\r\n String sql = \"\";\r\n String report = \"\";\r\n \r\n // Retrieve the inputted consultant's id\r\n User user = (User) combo_user.getValue();\r\n int userID = user.getId();\r\n try{\r\n connection = db.jdbc_connection.connect();\r\n Statement statement = connection.createStatement(); // Set up statement\r\n \r\n sql = \"SELECT appointment.appointmentID, customer.customerName, appointment.title, appointment.description, appointment.location, appointment.contact, \" +\r\n \"appointment.type, appointment.url, appointment.start, appointment.end FROM appointment \" +\r\n \"INNER JOIN customer ON appointment.customerID=customer.customerID \" +\r\n \"WHERE userID = \" + userID + \" GROUP BY appointment.start\"; \r\n ResultSet results = statement.executeQuery(sql); \r\n \r\n while(results.next()) { \r\n String customer = results.getString(\"customerName\");\r\n String title = results.getString(\"title\");\r\n String description = results.getString(\"description\");\r\n String location = results.getString(\"location\");\r\n String contact = results.getString(\"contact\");\r\n String type = results.getString(\"type\");\r\n String url = results.getString(\"url\");\r\n String start = results.getString(\"start\");\r\n String end = results.getString(\"end\");\r\n \r\n \r\n // Convert the start and end DATETIMES to the user's current timezone \r\n java.time.LocalDateTime start_converted = convertToCurrentZone(java.time.LocalDateTime.parse(start.replace(\".0\", \"\"), formatter));\r\n String month = start_converted.getMonth().toString();\r\n int day = start_converted.getDayOfMonth();\r\n int hour = start_converted.getHour();\r\n String minute = String.valueOf(start_converted.getMinute());\r\n \r\n if(minute.length() == 1) minute += \"0\"; // Add following zeroes\r\n \r\n report += month + \" \" + day + \" at \" + hour + \":\" + minute + \" - appointment with \" + customer + \"\\n\";\r\n } \r\n }catch(Exception e) {\r\n System.out.println(e.getMessage());\r\n }finally {\r\n try {\r\n connection.close();\r\n } catch (Exception e2) { // Closing databse error handling\r\n System.err.println(e2.getMessage());\r\n }\r\n } \r\n \r\n text_schedule.setText(report);\r\n }", "public int getSchedule_id() {\r\n return schedule_id;\r\n }", "io.opencannabis.schema.commerce.CommercialOrder.OrderScheduling getScheduling();", "List<WorkingSchedule> getAll();", "@Override\n\t\tpublic List<ProgramScheduledBean> getAllScheduleProgram()\n\t\t\t\tthrows UniversityException {\n\t\t\treturn dao.getAllScheduleProgram();\n\t\t}", "public interface ScheduleDao {\n int crewTally();\n ArrayList<avail> getAllAvailibility();\n ArrayList<ShiftDetails> getShiftDetails();\n int updateShiftSwapStatus();\n}", "@Override\n\tpublic List<ScheduleTask> getScheduleTaskList() {\n\t\treturn (List<ScheduleTask>) find(\"from ScheduleTask\");\n\t}", "public List<UserRace> selectAllSchedule() {\n\t\tString sql = \"select \" + COLUMNS + \" FROM UserRace WHERE mode = '\"\n\t\t\t\t+ UserRace.MODE_SCHEDULE + \"'\";\n\t\treturn getJdbcTemplate().query(sql, new UserRaceRowMapper());\n\t}", "@Override\r\n\tpublic List<Courseschedule> getAllCourseschedules() {\n\t\tsession = sessionFactory.openSession();\r\n\t\tTransaction tran = session.beginTransaction();\r\n\t\tString hql = \"from Courseschedule where state=:state\";\r\n\t\tQuery query = session.createQuery(hql).setInteger(\"state\", 0);\r\n\t\tList<Courseschedule> lists = query.list();\r\n\t\ttran.commit();\r\n\t\tsession.close();\r\n\t\tlogger.debug(\"use the method named :getAllCourseschedules()\");\r\n\t\tif (lists.size() > 0) {\r\n\t\t\treturn lists;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "List<Schedule> selectByExample(ScheduleCriteria example);", "public static List<Schedule> fetchGeneratedSchedules() {\r\n if (!isComplete()) {\r\n return null;\r\n }\r\n\r\n return generatedSchedules;\r\n }", "@Override\n\tpublic void UpdateTableSchedule(Schedule current) {\n\t\tif (current == null)\n\t\t\treturn;\n\t\tCurrFitness = current.fitness;\n\t\tmyLabelSchedule.setText(\"Current Schedule Fitness: \" + CurrFitness);\n\t\tfor (int station = 1; station <= current.stations.size(); station++) {\n\t\t\tfor (int i = 0; i < dtm.getRowCount(); i++) {\n\t\t\t\tdtm.setValueAt(\"\", i, station);\n\t\t\t}\n\t\t\t// @Debug System.out.println(\"TableLength: \"+tableLength);\n\t\t\tStationSlot currentStation = current.stations.get(station - 1);\n\t\t\tif (currentStation.registeredCars.size() == 0) {\n\t\t\t\tcontinue;\n\t\t\t} else {\n\t\t\t\tLinkedList<CarSlot> cars = currentStation.registeredCars;\n\t\t\t\tfor (int i = 0; i < cars.size(); i++) {\n\t\t\t\t\tCarSlot car = cars.get(i);\n\t\t\t\t\tfloat start = car.startTime;\n\t\t\t\t\tfloat duration = car.duration;\n\t\t\t\t\tint rowNum = (int) (start * (60 / interval));\n\t\t\t\t\t// System.out.println(\"ColumNum: \"+rowNum);\n\t\t\t\t\twhile (duration > 0) {\n\t\t\t\t\t\tdtm.setValueAt(\"Car \" + car.name + \" [\" + car.priority + \"]\" + \" - \" + car.type, rowNum, station);\n\t\t\t\t\t\trowNum++;\n\t\t\t\t\t\tduration = (float) (duration - interval / 60f);\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n\tpublic List<ScheduledFlights> retrieveAllScheduledFlights() {\t\r\n\t\tTypedQuery<ScheduledFlights> query = entityManager.createQuery(\"select s from ScheduledFlights s, Flight f,Schedule sc where s.flight = f and s.schedule=sc\",ScheduledFlights.class);\r\n\t\tList<ScheduledFlights> flights = query.getResultList();\r\n\t\treturn flights;\r\n\t}", "public boolean generateSchedule(){\r\n return true;\r\n }", "public void existingSchedules(){\n \n scheduleModel = (DefaultTableModel) displayTable.getModel();\n \n currentSchedules = AccessDataFromXML.retrieveSchedules();\n for (Schedule schedule : currentSchedules){\n \n \n Object[] o = new Object[1];\n o[0] = schedule.getName();\n scheduleModel.addRow(o);\n }\n \n \n\n }", "public Schedule getSchedule() {\n\n return schedule;\n }", "private List<Schedules> getSchedulesList(){\r\n//\t\tList<Schedules> list = new ArrayList<Schedules>();\r\n//\t\tSchedules s1 = new Schedules(1, \"Baidu\", \"BUPT\", \"2013-09-11\", \"12:30\");\r\n//\t\tSchedules s2 = new Schedules(2, \"Sina\", \"BUPT\", \"2013-09-11\", \"13:50\");\r\n//\r\n//\t\tlist.add(s1);\r\n//\t\tlist.add(s2);\r\n\t\tif (scheduleList == null) {\r\n\t\t\tscheduleList = mAppContext.scheduleGetAll();\r\n\t\t}\r\n\t\treturn scheduleList;\r\n//\t\treturn list;\r\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\tpublic List<TimeTableBean> getTimeTable() {\n\t\treturn sessionFactory.openSession().createQuery(\"from TimeTableBean\").list();\r\n\t}", "@Override\n\tpublic List<ScheduleTask> getScheduleTaskList() {\n\t\treturn scheduleTaskDAO.getScheduleTaskList();\n\t}", "abstract public void computeSchedule();", "SchedulingPlay selectByPrimaryKey(Long id);", "public List<WorkoutSchedule> getSchedules() {\n if (schedules == null) {\n if (daoSession == null) {\n throw new DaoException(\"Entity is detached from DAO context\");\n }\n WorkoutScheduleDao targetDao = daoSession.getWorkoutScheduleDao();\n List<WorkoutSchedule> schedulesNew = targetDao._queryWorkout_Schedules(id);\n synchronized (this) {\n if(schedules == null) {\n schedules = schedulesNew;\n }\n }\n }\n return schedules;\n }", "private void refreshScheduleTable() {\n\t\tint gameIdx = 0;\n\t\tList<GameDetails> games = getGames();\n\t\tif (games != null) {\n\t\t\tfor (GameDetails game : games) {\n\t\t\t\tfor (int i = 0; i < 2; i++) {\n\t\t\t\t\tboolean isHome = (i == 0);\n\n\t\t\t\t\tTeamDetails team = (isHome ? game.getHomeTeam() : game.getAwayTeam()); \n\n\t\t\t\t\tboolean isSelected = false;\n\t\t\t\t\tboolean canSelect = true;\n\t\t\t\t\tif (getUiHandlers() != null) {\n\t\t\t\t\t\tisSelected = getUiHandlers().isTeamSelected(team);\n\t\t\t\t\t\tcanSelect = getUiHandlers().canSelectTeam(team);\n\t\t\t\t\t}\n\n\t\t\t\t\tString text = (isHome ? \"@ \" + team.getDisplayName() : team.getDisplayName());\n\n\t\t\t\t\tint row = rowFromGameIdx(gameIdx, isHome);\n\t\t\t\t\tint col = colFromGameIdx(gameIdx, isHome);\n\n\t\t\t\t\tsetScheduleCell(row, col, text, isSelected, canSelect);\t\n\t\t\t\t}\n\n\t\t\t\tgameIdx++;\n\t\t\t}\n\t\t}\n\n\t\t// Clear out any remaining cells (in case of bye weeks).\n\t\tfor (; gameIdx < NFLConstants.MAX_GAMES_PER_WEEK; gameIdx++) {\n\t\t\tfor (int i = 0; i < 2; i++) {\n\t\t\t\tboolean isHome = (i == 0);\n\t\t\t\t\n\t\t\t\tint row = rowFromGameIdx(gameIdx, isHome);\n\t\t\t\tint col = colFromGameIdx(gameIdx, isHome);\n\n\t\t\t\tsetScheduleCell(row, col, \"\", false, true);\n\t\t\t}\n\t\t}\n\t}", "public int getScheduleMethod() {\n return scheduleMethod;\n }", "private static Entity addScheduleDateDataEntities(final Schema schema) {\n Entity scheduleDateData = schema.addEntity(\"ScheduleDateData\");\n scheduleDateData.addIdProperty().primaryKey().autoincrement();\n scheduleDateData.addIntProperty(\"schedule_id\").notNull();\n scheduleDateData.addStringProperty(\"schedule_name\");\n scheduleDateData.addStringProperty(\"class_id\");\n scheduleDateData.addStringProperty(\"class_name\");\n scheduleDateData.addStringProperty(\"class_desc\");\n scheduleDateData.addStringProperty(\"schedule_type_id\");\n scheduleDateData.addStringProperty(\"schedule_type\");\n scheduleDateData.addStringProperty(\"schedule_start_date\");\n scheduleDateData.addStringProperty(\"schedule_start_time\");\n scheduleDateData.addStringProperty(\"schedule_end_time\");\n scheduleDateData.addLongProperty(\"schedule_start_time_long\");\n scheduleDateData.addLongProperty(\"schedule_end_time_long\");\n scheduleDateData.addIntProperty(\"schedule_monday\");\n scheduleDateData.addIntProperty(\"schedule_tuesday\");\n scheduleDateData.addIntProperty(\"schedule_wednesday\");\n scheduleDateData.addIntProperty(\"schedule_thursday\");\n scheduleDateData.addIntProperty(\"schedule_friday\");\n scheduleDateData.addIntProperty(\"schedule_saturday\");\n scheduleDateData.addIntProperty(\"schedule_sunday\");\n scheduleDateData.addStringProperty(\"schedule_frequency\");\n scheduleDateData.addIntProperty(\"is_cancelled\");\n scheduleDateData.addIntProperty(\"is_reservable\");\n scheduleDateData.addStringProperty(\"instructor_id\");\n scheduleDateData.addStringProperty(\"instructor_name\");\n scheduleDateData.addStringProperty(\"location_id\");\n scheduleDateData.addStringProperty(\"location_name\");\n\n return scheduleDateData;\n }", "public static String listScheduleIdSymbol(int tambahanBolehABs) {\n DBResultSet dbrs = null;\n String result = \"\";\n try {\n Date dtStart = new Date();\n Date dtEnd = new Date();\n String dtManual = \"\";\n boolean crossDay = false;\n //dtStart.setHours(dtStart.getHours()-tambahanBolehABs);\n dtStart = new Date(dtStart.getYear(), dtStart.getMonth(), (dtStart.getDate()), (dtStart.getHours() - tambahanBolehABs), dtStart.getMinutes(), dtStart.getSeconds());\n dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate()), (dtEnd.getHours() + tambahanBolehABs), dtEnd.getMinutes(), dtEnd.getSeconds());\n int jamMelebihiOneDay = 23;\n if (dtStart.getHours() == 0 || dtStart.getHours() == 23) {\n dtManual = \"23:\" + \"59:\" + \"59\";\n crossDay = true;\n jamMelebihiOneDay = jamMelebihiOneDay + tambahanBolehABs;\n }\n if (dtEnd.getHours() == 0) {\n dtManual = \"23:\" + \"59:\" + \"59\";\n crossDay = true;\n jamMelebihiOneDay = jamMelebihiOneDay + tambahanBolehABs;\n }\n\n// String dtManual=\"\";\n// if(dt.getHours()==0 || dt.getHours()+tambahanBolehABs>=23){\n// int idtManual = 24+tambahanBolehABs;\n// dtManual = idtManual+\":59:00\" ;\n// }else{\n// dt.setHours(dt.getHours()+tambahanBolehABs);\n// }\n\n String sql = \"SELECT * FROM \" + PstScheduleSymbol.TBL_HR_SCHEDULE_SYMBOL\n + \" WHERE \\\"00:00:00\\\" <=\" + PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT]\n + \" AND \" + PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN] + \"<= \\\"\"\n + \"23:59:00\"\n //+ (dtStart.getHours() == 0 || dtStart.getHours() == 23 || dtEnd.getHours() == 0 ? dtManual : Formater.formatDate(dtEnd, \"HH:mm:00\"))\n + \"\\\"\";\n //+ \" WHERE \" + \"(\"+PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN] +\" BETWEEN \\\"00:00:00\\\" AND \\\"\"+ (crossDay?dtManual:Formater.formatDate(dtStart, \"HH:mm:00\")) +\"\\\") OR (\"+PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT] +\" BETWEEN \\\"00:00:00\\\" AND \\\"\"+Formater.formatDate(dtEnd, \"HH:mm:00\")+\"\\\")\";\n\n dbrs = DBHandler.execQueryResult(sql);\n ResultSet rs = dbrs.getResultSet();\n while (rs.next()) {\n dtEnd = new Date();\n dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate()), (dtEnd.getHours() + tambahanBolehABs), dtEnd.getMinutes(), dtEnd.getSeconds());\n \n Date schTimeIn = rs.getTime(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN]);\n\n Date schTimeOut = rs.getTime(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT]);\n Date dtTmpSchTimeIn = new Date();\n Date dtTmpSchTimeOut = new Date();\n\n\n if (schTimeIn != null && schTimeOut != null) {\n schTimeOut = new Date(dtTmpSchTimeOut.getYear(), dtTmpSchTimeOut.getMonth(), dtTmpSchTimeOut.getDate(), schTimeOut.getHours(), schTimeOut.getMinutes());\n schTimeIn = new Date(dtTmpSchTimeIn.getYear(), dtTmpSchTimeIn.getMonth(), dtTmpSchTimeIn.getDate(), schTimeIn.getHours(), schTimeIn.getMinutes());\n\n Date dtCobaTimeOut = new Date(schTimeOut.getYear(), schTimeOut.getMonth(), (schTimeOut.getDate()), (schTimeOut.getHours() + tambahanBolehABs), schTimeOut.getMinutes(), schTimeOut.getSeconds());\n boolean melebihiHari=false;\n if (schTimeIn.getHours() == 0 || schTimeOut.getHours() == 0) {\n \n } else {\n if (dtCobaTimeOut.getDate() > schTimeIn.getDate()) {\n //dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate() + 1), (dtEnd.getHours()), dtEnd.getMinutes(), dtEnd.getSeconds());\n melebihiHari=true;\n }\n\n if ( (melebihiHari && dtEnd.getHours()<dtCobaTimeOut.getHours()) || schTimeIn.getTime() <= dtEnd.getTime() || (schTimeIn.getHours() > schTimeOut.getHours() && dtEnd.getTime() < schTimeOut.getTime())) {\n result = result + rs.getString(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_SCHEDULE_ID]) + \",\";\n }\n }\n\n\n\n\n\n }\n\n }\n if (result != null && result.length() > 0) {\n result = result.substring(0, result.length() - 1);\n }\n rs.close();\n return result;\n\n } catch (Exception e) {\n System.out.println(e);\n } finally {\n DBResultSet.close(dbrs);\n }\n return result;\n }", "public interface ScheduleDao {\r\n\tpublic Schedule createSchedule(Calendar scheduleDate) throws DAOException;\r\n\tpublic Schedule findScheduleById(long scheduleId) throws DAOException;\r\n\tpublic List<Schedule> findSchedulesByDate(Calendar scheduleDate) throws DAOException;\r\n\tpublic List<Schedule> findAllSchedules() throws DAOException;\r\n\tpublic void updateSchedule(long scheduleId, Calendar newScheduleDate) throws DAOException;\r\n\tpublic void deleteScheduleById(long scheduleId) throws DAOException;\r\n\tpublic void deleteAllSchedules() throws DAOException;\r\n}", "public String getSchedule() {\n return schedule;\n }", "public Schedule getSchedule() {\r\n\t\treturn schedule;\r\n\t}", "public ScheduleType getScheduleType();", "public interface ScheduleService {\n BasicSchedule getBasicScheduleByHostelIdAndRoomType(long hostelId, RoomType type);\n\n /**\n * 获得最近一年的酒店基本计划\n *\n * @param hostelId\n * @return\n */\n List<BasicSchedule> getBasisSchedulesByHostelId(long hostelId);\n\n void modifyBasisSchedule(BasicSchedule basicSchedule);\n\n /**\n * 获得最近一年的酒店特殊计划\n *\n * @param hostelId\n * @return\n */\n List<SpecialSchedule> getSpecialScheduleByHostelId(long hostelId);\n\n void modifySpecialSchedule(SpecialSchedule specialSchedule);\n\n void addSpecialSchedule(SpecialSchedule specialSchedule);\n\n void deleteSpecialSchedule(SpecialSchedule specialSchedule);\n\n SpecialSchedule getSpecialSchedule(long hostelId, RoomType roomType, Date date);\n}", "private void loadScheduleList() {\n\n if (listTbagendamentos != null && !listTbagendamentos.isEmpty()) {\n scheduleAgendamento.clear();\n\n for (Tbagendamento agendamento : listTbagendamentos) {\n DefaultScheduleEvent defaultScheduleEvent = new DefaultScheduleEvent();\n defaultScheduleEvent.setTitle(agendamento.getIdcliente().getNmcliente());\n\n Calendar dtDataInicial = new GregorianCalendar();\n dtDataInicial.setTime(agendamento.getTmdataagendamento());\n\n defaultScheduleEvent.setStartDate(dtDataInicial.getTime());\n\n Calendar dtDataFinal = new GregorianCalendar();\n dtDataFinal.setTime(agendamento.getTmdataagendamento());\n dtDataFinal.set(Calendar.MINUTE, dtDataFinal.get(Calendar.MINUTE) + 30);\n\n defaultScheduleEvent.setEndDate(dtDataFinal.getTime());\n defaultScheduleEvent.setData(agendamento.getIdagendamento());\n scheduleAgendamento.addEvent(defaultScheduleEvent);\n }\n }\n }", "public Schedule() {\r\n }", "public void setSchedule(Schedule schedule) {\r\n\t\tthis.schedule = schedule;\r\n\t}", "List<WorkingSchedule> getByPlaceId(Long placeId);", "public ProgramScheduled getProgramScheduleById(int scheduleId);", "public ArrayList<TrainScheduleEntity> viewTrainSchedule(String dayType);", "java.lang.String getSnapshotCreationSchedule();", "io.opencannabis.schema.commerce.CommercialOrder.SchedulingType getScheduling();", "@Override\r\n\tpublic void doInitialSchedules() {\n\t}", "void setSchedule(java.lang.String schedule);", "ScheduleStartType getScheduleStart();", "public abstract void schedule();", "public void setSchedule(Schedule newSchedule) {\n\n schedule = newSchedule;\n }", "@Mapper\npublic interface VirtualRepayFlowMapper {\n @DataSource(\"bigdata2_jdb\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE update_time >= #{from_time} and update_time < #{end_time} and id>#{id} limit 1000\")\n List<VirtualRepayFlow> find(@Param(\"from_time\") String from_time,\n @Param(\"end_time\") String end_time,\n @Param(\"id\") long id);\n\n\n @DataSource(\"dmp\")\n @Insert(\"INSERT INTO virtual_repay_flow (id,uuid,virtual_productid,to_user,amount,interest,repay_status,repay_time,create_time,update_time) values\" +\n \"(#{id},#{uuid},#{virtual_productid},#{to_user},#{amount},#{interest},#{repay_status},#{repay_time},#{create_time},#{update_time})\")\n void insert(VirtualRepayFlow virtualRepayFlow);\n\n @DataSource(\"dmp\")\n @Delete(\"DELETE FROM repay_flow where update_time<#{update_time}\")\n void delete(@Param(\"update_time\") String update_time);\n\n @DataSource(\"dmp\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE id=#{id}\")\n VirtualRepayFlow getById(@Param(\"id\") long id);\n\n\n @DataSource(\"dmp\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE uuid=#{uuid}\")\n VirtualRepayFlow getByUuid(@Param(\"uuid\") String uuid);\n}", "public abstract void maintenanceSchedule() ;", "@Override\n public List<SurveillantSchedule> getSurveillantSchedule() {\n return surveillantRepository.getSurveillantSchedule();\n }", "long getScheduleID() {return mScheduleID; }", "com.google.cloud.gkebackup.v1.BackupPlan.Schedule getBackupSchedule();", "public String getScheduleRow() {\n\t\treturn uSRow;\n\t}", "public void setSchedule_id(int schedule_id) {\r\n this.schedule_id = schedule_id;\r\n }", "public void printSchedule(){\n String\n format =\n \"%-20s%-10s%-15s%\" +\n \"-20s%-25s%-10s%\" +\n \"-15s%-15s%-15s%n\";\n\n System.out.printf(format,\n \"Водитель\", \"Номер А/М\",\"Машина\", \"Дата и время\",\n \"Задание\", \"Кол-во\",\n \"Расстояние\", \"Цена\", \"Примечание\");\n System.out.println();\n\n\n\n List<TimeTable> l = driverScheduleReaderDAO.getTimeTable();\n TimeTable tPrev =l.get(0);\n for (TimeTable t: l){\n\n if (!t.getDriverName().equals(tPrev.getDriverName())) {\n\n System.out.println(\"***\");\n tPrev = t;\n\n } else if (t!=l.get(0))t.setDriverName(\" \");\n\n\n\n\n System.out.printf(format,\n t.getDriverName(), t.getCarId(), t.getCarBrand(),\n t.getBusyTime(), t.getOrder(), t.getNumOfEl(),\n t.getDistance(), t.getPrice(), t.getNote()\n );\n\n }\n\n //int\n\n\n\n\n //вывести на экран\n //отельным классом посчитать шанс поломки и предупредить\n }", "public void schedule(String id, String[] schedule) {\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic List<ISchedule> getSchedules() throws IOException {\n\t\tfinal String sql = \"SELECT * from record\";\n\t\tList<? extends ISchedule> result = this.queryDataList(Schedule.class,ISchedule.Props.class, sql);\n\t\treturn (List<ISchedule>) result;\t\t\n\t}", "public List<AllTimeSeasonBean> getAllTimeRecord(){\n String q = \"select new com.main.pcblroyals.bean.AllTimeSeasonBean( \" +\n \"sum(case when g.teamScore > g.opponentScore then 1 else 0 end), \" +\n \"sum(case when g.teamScore = g.opponentScore then 1 else 0 end), \" +\n \"sum(case when g.teamScore < g.opponentScore then 1 else 0 end) \" +\n \") \" +\n \"from seasons s \" +\n \"join games g on s.id = g.season.id \";\n Query query = entityManager.createQuery(q);\n return (List<AllTimeSeasonBean>) query.getResultList();\n }", "@Override\n public String getEndPoint() {\n return \"/v1/json/schedule\";\n }", "@GetMapping\n public List<ScheduleDTO> getAllSchedules() {\n List<Schedule> scheduleList = scheduleService.getAllSchedules();\n\n List<ScheduleDTO> scheduleDTOList = scheduleList.stream()\n .map(ScheduleController::convertScheduleToScheduleDTO)\n .collect(Collectors.toList());\n return scheduleDTOList;\n }", "public interface ScheduleListDao extends GenericDao<ScheduleList, Long> {\n\t\n\tpublic List<ScheduleList> findShceduleList(String scheduleId); \n\t\n\t /**\n * 自服务项列表\n * @return\n */\n public Page findScheduleList(String pageSize);\n\t\n}", "public void storeRegularDayTripStationScheduleWithRS();", "@MapperScan\npublic interface DSSettingMapper {\n\n @Insert(\"INSERT INTO ds_setting (dsId, dsAppointment2,dsAppointment3,outCoachIds,status,modifyTime)\" +\n \" VALUES(#{dsId},#{dsAppointment2},#{dsAppointment3},#{outCoachIds},#{status},NOW())\")\n int insertDssetting(DSSetting dsSetting);\n\n @Update(\"UPDATE ds_setting SET dsAppointment2 = #{dsAppointment2},\" +\n \" dsAppointment3 = #{dsAppointment3}, outCoachIds = #{outCoachIds}, \" +\n \"status = #{status}, modifyTime = NOW() \" +\n \"WHERE dsId = #{dsId}\")\n int updateDssetting(DSSetting dsSetting);\n\n @Select(\"SELECT * FROM ds_setting WHERE dsId = #{dsId}\")\n DSSetting findOneDSSetting(@Param(\"dsId\") Long dsId);\n}", "public String getScheduleExpression() {\n return this.scheduleExpression;\n }", "@Override\n\tpublic List<SchedulerJobEntity> getAllScheduledJobs() throws SchedulerException {\n\t\treturn schedulerRepository.findAll();\n\t}", "@Override\n\t\tpublic oep_ResponseInfo getTestscheduledetails(String id) {\n\t\t\t\n\t\t\t\n\t\t\tString query = \" SELECT a.`ques_master_id`,`is_test_started`,a.`id`,`sub_id`,a.`batch`,DATE_FORMAT(`testdate`,'%m/%d/%Y')newtestdate,a.`start_time`, a.`end_time`,a.`status`,b.`test_name`,`test_id`,\"\n\t\t\t\t\t+ \"HOUR(a.`start_time`)starthour,MINUTE(a.`start_time`)startminute, HOUR(a.`end_time`)endhour,MINUTE(a.`end_time`)endminute,\"\n\t\t\t\t\t+ \" DATE_FORMAT(`testdate`,'%d/%m/%Y')testdate, SUBSTRING_INDEX(a.`start_time`,' ',-1)startformatt,SUBSTRING_INDEX(a.`end_time`,' ',-1)endformatt,\"\n\t\t\t\t\t+ \"GROUP_CONCAT(f.`username`,' ',CASE WHEN `is_participant_start` = 2 THEN ' completed \\n' WHEN `is_participant_start` = 1 THEN 'Started \\n' ELSE 'Not started \\n'END)username,\"\n\t\t\t\t\t+ \"`is_participant_start`,h.`username`facname FROM `test_schedule` a JOIN `question_master` b ON a.`ques_master_id` = b.`id` \"\n\t\t\t\t\t+ \"JOIN `course_scheduling`c ON c.`cs_id`= a.`batch` JOIN `participants_registration_course_details`e ON e.`course_id`= c.`cs_id` \"\n\t\t\t\t\t+ \" JOIN `participants`f ON f.`participant_id`=e.`participant_id` \"\n\t\t\t\t\t+ \"LEFT JOIN `test_participants`g ON g.`part_id`= f.`participant_id` AND g.`ts_id`=a.`id`\"\n\t\t\t\t\t+ \" JOIN `faculty_master`h ON h.`faculty_id` = c.`faculty_name` WHERE a.`id`= \"+id+\" \";\n\t\t\t\n\t\t\t\n\t\t\tlog.info(query);\n\t\t\t\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tList<Object> List = jdbcTemplate.query(query, new RowMapper() {\n\t\t\t\tint count = 0;\n\t\t\t\t@Override\n\t\t\t\tpublic Object mapRow(ResultSet rs, int arg1) throws SQLException {\n\t\t\t\t\t\n\t\t\t\t\tMap<String, Object> map = new HashMap<String, Object>();\n\t\t\t\t\tmap.put(\"testid\", rs.getString(\"test_id\"));\n\t\t\t\t\tmap.put(\"startformat\", rs.getString(\"startformatt\"));\n\t\t\t\t\tmap.put(\"endformat\", rs.getString(\"endformatt\"));\t\n\t\t\t\t\tmap.put(\"facname\", rs.getString(\"facname\"));\n\t\t\t\t\tmap.put(\"quesid\", rs.getString(\"ques_master_id\"));\n\t\t\t\t\tmap.put(\"id\", rs.getString(\"id\"));\n\t\t\t\t\tmap.put(\"tsid\", rs.getString(\"id\"));\n\t\t\t\t\tmap.put(\"batch\", rs.getString(\"batch\"));\n\t\t\t\t\tmap.put(\"testdate\", rs.getString(\"testdate\"));\n\t\t\t\t\tmap.put(\"newtestdate\", rs.getString(\"newtestdate\"));\n\t\t\t\t\tmap.put(\"subid\", rs.getString(\"sub_id\"));\n\t\t\t\t\tmap.put(\"starthour\", rs.getString(\"starthour\"));\n\t\t\t\t\tmap.put(\"endhour\", rs.getString(\"endhour\"));\n\t\t\t\t\tmap.put(\"startminute\", rs.getString(\"startminute\"));\n\t\t\t\t\tmap.put(\"endminute\", rs.getString(\"endminute\"));\n\t\t\t\t\tmap.put(\"starttime\", rs.getString(\"start_time\"));\n\t\t\t\t\tmap.put(\"testname\", rs.getString(\"test_name\"));\n\t\t\t\t\tmap.put(\"username\", rs.getString(\"username\"));\n\t\t\t\t\tmap.put(\"starttest\", rs.getString(\"is_test_started\"));\n\t\t\t\t\tmap.put(\"participantstart\", rs.getString(\"is_participant_start\"));\n\t\t\t\t\tmap.put(\"endtime\", rs.getString(\"end_time\"));\n/*\t\t\t\t\t\n\t\t\t\t\tString submenuQuery = \"SELECT `part_id`,`imh_staus`,`username`,CONCAT(`username`,' ',CASE WHEN `imh_staus` = 0 \"\n\t\t\t\t\t\t\t+ \" THEN 'Certificate Not sent ' WHEN `imh_staus` = 1 THEN 'Certificate sent' \"\n\t\t\t\t\t\t\t+ \" ELSE 'Invalid 'END)status FROM `email_history`a \"\n\t\t\t\t\t\t\t+ \" JOIN `participants`b ON a.`part_id`=b.`participant_id` WHERE `ts_id` = \"+ rs.getString(\"id\");\t*/\n\t\t\t\t\t\n\t\t\t\t\tString submenuQuery = \" SELECT a.`ques_master_id`,`username`,`imh_staus`,`is_test_started`,a.`id`,a.`batch`,DATE_FORMAT(`testdate`,'%e/%c/%Y')testdate,a.`start_time`, a.`end_time`,a.`status`,b.`test_name`,`test_id`,\"\n\t\t\t\t\t\t\t+ \"CONCAT(`username`,' ',CASE WHEN `is_participant_start` = 2 THEN ' completed \\n' WHEN `is_participant_start` = 1 THEN 'Started \\n' ELSE 'Not started \\n'END)teststatus,\"\n\t\t\t\t\t\t\t+ \"`is_participant_start` FROM `test_schedule` a JOIN `question_master` b ON a.`ques_master_id` = b.`id` \"\n\t\t\t\t\t\t\t+ \"JOIN `course_scheduling`c ON c.`cs_id`= a.`batch` JOIN `participants_registration_course_details`e ON e.`course_id`= c.`cs_id` \"\n\t\t\t\t\t\t\t+ \" JOIN `participants`f ON f.`participant_id`=e.`participant_id` \"\n\t\t\t\t\t\t\t+ \"LEFT JOIN `test_participants`g ON g.`part_id`= f.`participant_id` AND g.`ts_id`=a.`id`\"\n\t\t\t\t\t\t\t+ \"JOIN `email_history`h ON h.`ts_id`= a.`id` WHERE a.`id`= \"+ rs.getString(\"id\");\n\t\t\t\t\t\n\t\t\t\t\t List<Object> submenuList = new ArrayList<Object>();\n\t\t\t\t\t submenuList = getPartStatusList(submenuQuery);\n\t\t\t\t\t map.put(\"submenuList\", submenuList);\n\t\t\t\t\t\n\t\t\t\t\tif(rs.getString(\"status\")!= null && rs.getString(\"status\").equals(\"1\")){\n\t\t\t\t\t\tmap.put(\"status\", \"Active\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tmap.put(\"status\", \"Inactive\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(rs.getString(\"is_test_started\")!= null && rs.getString(\"is_test_started\").equals(\"1\")){\n\t\t\t\t\t\tmap.put(\"teststarted\", \"Test Started\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tmap.put(\"teststarted\", \"Not started\");\n\t\t\t\t\t}\n\t\t\t\t\tmap.put(\"index\", count);\n\t\t\t\t\tcount++;\n\t\t\t\t\treturn map;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t});\n\t\t\t\n\t\t\n\t\t\t \n\t\t\t \n\t\t\tresponse.setResponseType(\"S\");\n\t\t\tresponse.setResponseObj(List);\n\t\t\tresponseInfo.setInventoryResponse(response);\n\t\t\treturn responseInfo;\n\t\t}", "public void createTempSpecialDayTrainSchedule(Timestamp date);", "public void generatePlan(Integer id,Date fromDate, Date toDate) throws Exception;", "@Override\r\n\tpublic List<Courseschedule> getCourseschedulesByClassroomId(int classroomId) {\n\t\tsession = sessionFactory.openSession();\r\n\t\tTransaction tran = session.beginTransaction();\r\n\t\tString hql = \"from Courseschedule where classroomId=:classroomId and state=:state\";\t\t\r\n\t\tList<Courseschedule> lists = session.createQuery(hql).setInteger(\"classroomId\", classroomId).setInteger(\"state\", 0).list();\r\n\t\ttran.commit();\r\n\t\tsession.close();\r\n\t\tlogger.debug(\"use the method named :getCourseschedulesByClassroomId(int classroomId)\");\r\n\t\tif (lists.size() > 0) {\r\n\t\t\treturn lists;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public void setSchedule(String timeframe) {\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic List<ScheduledFlights> retrieveScheduledFlights(String source, String destination) {\r\n\t\tQuery query = entityManager.createQuery(\"select s.scheduleId,s.source,s.destination,s.arrivaltime,s.departuretime,f.flightNumber,f.carrierName,f.seatCapacity from Schedule s JOIN ScheduledFlights sf ON s.scheduleId=sf.scheduleId JOIN Flight f on sf.flightId=f.flightNumber where schedule.source= :source AND schedule.destination=:destination\");\r\n\t\treturn query.getResultList();\r\n\t}", "@Override\r\n\tpublic boolean updateDate(ScheduleAdminModel scheduleAdminModel) throws ClassNotFoundException, SQLException {\n\t\r\n\t\tConnection connection=ConnectionManager.openConnection();\r\nPreparedStatement statement=\r\n connection.prepareStatement(\"update courses set start_date=?,end_date=? where course_name=?\");\r\nstatement.setString(1,scheduleAdminModel.getStartDate());\r\nstatement.setString(2,scheduleAdminModel.getEndDate());\r\nstatement.setString(3,scheduleAdminModel.getCourse_name());\r\n \r\n int rows=statement.executeUpdate();\r\n\tConnectionManager.closeConnection();\r\n\tif(rows>0)\r\n\t\treturn true;\r\n\t else \r\n\t return false;\r\n\t}", "void deschedule(ScheduledJob job);", "@Query(\"select :stopName from Timetable order by id\")\n List<Integer> selectStop(String stopName);", "public Date getScheduletime() {\r\n return scheduletime;\r\n }", "public List<Timetable> getAllTimetable() throws Exception;", "public abstract ArrayList<ScheduleTime> getScheduleForDay(int day, int month, int year);", "public void setSchedule(SpaceSchedule s) {\n\t\t\n\t}", "MMSchedule() {\n mScheduleID = MMUtilities.ID_DOES_NOT_EXIST;\n mOfMedicationID = 0;\n mForPersonID = 0;\n mTimeDue = 0;\n mStrategy = MMMedication.sSET_SCHEDULE_FOR_MEDICATION;\n }", "@Override\n public void fetchScheduled(RuleKey ruleKey) {\n }", "List<Schedule> selectByExampleWithRowbounds(ScheduleCriteria example, RowBounds rowBounds);", "Schedule getSchedule(String departure, String arrival, int depYear, int depMonth);", "public void setList(ScheduleInterface<Schedule> scheduleList){\n this.scheduleList = scheduleList;\n }", "int insert(Schedule record);", "private void reloadPlanTable() {\n\t\t\r\n\t}", "public Schedule getSchedule(String route, int direction){\r\n // A schedule to hold all the data returned from the query\r\n Schedule weekdayZero = new Schedule();\r\n // Fetch the route id given the route\r\n Cursor getData = getReadableDatabase().rawQuery(\"select _id from routes where route_long_name = '\" + route + \"'\", null);\r\n // Make sure to begin at the first element of the returned data\r\n getData.moveToFirst();\r\n // Store the Route Id\r\n int route_id = getData.getInt(0);\r\n // Calendar id: (90400,90448) - Monday To Friday\r\n final String query = \"select Routes.Route_long_Name, \" +\r\n \"Calendar._Id, Stops.Stop_Name, Stop_Times.Stop_Sequence, Stop_Times.Arrival_Time, routes.route_short_name \" +\r\n \"from Trips join Calendar on Trips.Service_Id=Calendar._Id \" +\r\n \"join Routes on Trips.Route_Id=Routes._Id \" +\r\n \"join Stop_Times on Trips._Id=Stop_Times.Trip_Id \" +\r\n \"join Stops on Stop_Times.Stop_Id=Stops._Id \" +\r\n \"where Calendar._Id in \" + getDayOfTheWeek() + \" \" +\r\n \"AND Trips.Route_Id = \" + route_id + \" \" +\r\n \"AND Trips.Direction_Id = \" + direction + \" \" +\r\n \"AND Stop_Times.Arrival_Time != '' \" +\r\n \"order by arrival_time asc\";\r\n getData.moveToFirst();\r\n getData = getReadableDatabase().rawQuery(query, null);\r\n while (getData.moveToNext()){\r\n weekdayZero.insertData(getData.getString(0), getData.getInt(1), getData.getString(2), getData.getInt(3)\r\n , getData.getString(4), getData.getString(5));\r\n }\r\n return weekdayZero;\r\n }", "public Date getScheduleTime() {\n return this.scheduleTime;\n }", "@Override\n\tpublic void setDateAndSchedule(String date, String schedule) {\n\n\t}", "public MonthlyValuesTable(Database database) \n {\n //Constructor calls DbTable's constructor\n super(database);\n setTableName(\"monthlyvalues\");\n }", "public Date getScheduleDate(){\r\n\t\treturn this.scheduleDate;\r\n\t}", "com.google.cloud.compute.v1.Scheduling getScheduling();", "TimerSchedule createTimerSchedule();", "public ApiSchedule[] getSchedules() {\n return this.schedules;\n }", "@Override\n\tpublic void setDateAndSchedule(String date, String schedule) {\n\t\t\n\t}", "public interface ITimetableDAO {\n\n /**\n * Get all the timetable element of <code>Timetable</code> object <br>\n *\n * @return all the list of <code>Timetable</code> object\n * @throws Exception\n */\n public List<Timetable> getAllTimetable() throws Exception;\n\n /**\n * Get all the list element has search of <code>Timetable</code> object<br>\n *\n * @param from is the date of <code>Timetable</code> object\n * @param to is the date of <code>Timetable</code> object\n * @return all the list has search of <code>Timetable</code> object\n * @throws Exception\n */\n public List<Timetable> getListSearch(String from, String to) throws Exception;\n\n /**\n * Add the all the element of Timetable to database\n *\n * @param date the date of Timetable object, it is an\n * <code>java.sql.Date</code>\n * @param slot the slot of Timetable object, it is an int\n * @param classes the classes of Timetable object, it is a string\n * @param teacher the teacher of Timetable object, it is a string\n * @param room the room of Timetable object, it is an int\n * @throws Exception\n */\n public void addTimetable(String date, String slot, String room, String teacher, String classes) throws Exception;\n\n /**\n * Function to check Timetable exist before add\n *\n * @param date the date of Timetable object, it is an\n * <code>java.sql.Date</code>\n * @param classes the slot of Timetable object, it is an int\n * @param room the room of Timetable object, it is a string\n * @return object of Timetable or null when check exist timetable\n * @throws Exception\n */\n public Timetable checkExistRoomTimeTable(String date, String classes, String room) throws Exception;\n\n /**\n * Paginate by number of timetable in <code>Timetable</code> object <br>\n *\n * @param pageIndex the index of page, it is an <code>int</code>\n * @param pageSize the size of page, it is an <code>int</code>\n * @return list of timetable, it is a <code>java.util.List</code> object.\n * @throws java.lang.Exception\n */\n public List<Timetable> pagging(int pageIndex, int pageSize) throws Exception;\n\n /**\n * Get number of result <code>Gallery</code> object by id\n *\n * @return number result of Gallery object, it is an int\n * @throws java.lang.Exception\n */\n public int numberOfResult() throws Exception;\n\n /**\n * Function to check Timetable exist before add\n *\n * @param date the date of Timetable object, it is an\n * <code>java.sql.Date</code>\n * @param classes the slot of Timetable object, it is an int\n * @param teacher the teacher of Timetable object, it is a string\n * @return object of Timetable or null when check exist timetable\n * @throws Exception\n */\n public Timetable checkExistTeacherTimeTable(String date, String classes, String teacher) throws Exception;\n\n}", "public void setScheduleTime(Date scheduleTime) {\n this.scheduleTime = scheduleTime;\n }", "@Scheduled(cron = \"0 30 06 * * *\",zone=\"America/New_York\")\n public void populateDatabase(){\n localDateTime = LocalDateTime.now();\n log.info(\"Executed now: \"+ localDateTime.toString());\n\n // Checks if table in database is empty\n // If not empty, clears the table and populates it with new data\n if(checkEmpty()==0)\n log.info(\"Empty Table\");\n else {\n deleteTableRecords();\n log.info(\"Table not Empty\");\n }\n\n URL url = null;\n\n // Get recent date, append it to URL and establish a connection\n String pattern = \"MM-dd-yyyy\";\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(pattern);\n Date date = Date.from(Instant.now().minus(Duration.ofDays(1)));\n\n\n String dateStr = simpleDateFormat.format(date);\n\n try {\n url = new URL(\"https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_daily_reports/\"+dateStr+\".csv\");\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n HttpURLConnection httpURLConnection = null;\n try {\n httpURLConnection = (HttpURLConnection) url.openConnection();\n } catch (IOException e) {\n e.printStackTrace();\n }\n int responseCode = 0;\n try {\n responseCode = httpURLConnection.getResponseCode();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n // On successful connection, read records line by line, store records in a table\n if(responseCode==200)\n {\n log.info(\"-- Successful Connection\");\n CSVReader reader = null;\n try {\n\n BufferedReader input = new BufferedReader(new InputStreamReader(httpURLConnection.getInputStream()),8192);\n reader = new CSVReader(input);\n String[] line;\n int skipFirstLine = 0;\n while ((line = reader.readNext()) != null)\n {\n if(skipFirstLine==0)\n {\n skipFirstLine++;\n continue;\n }\n\n DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern(\"yyyy-MM-dd HH:mm:ss\");\n\n Corona corona = new Corona();\n corona.setLastUpdate(LocalDateTime.parse(line[4],dateTimeFormatter));\n if(line[7].equals(\"\"))\n line[7]=\"0\";\n if(line[9].equals(\"\"))\n line[9]=\"0\";\n if(line[10].equals(\"\"))\n line[10]=\"0\";\n if(line[8].equals(\"\"))\n line[8]=\"0\";\n if(line[5].equals(\"\"))\n line[5]=\"0\";\n if(line[6].equals(\"\"))\n line[6]=\"0\";\n\n try {\n\n corona.setConfirmed(Long.valueOf(line[7]));\n corona.setRecovered(Long.valueOf(line[9]));\n corona.setActive(Long.valueOf(line[10]));\n corona.setDeaths(Long.valueOf(line[8]));\n corona.setLatitude(Double.valueOf(line[5]));\n corona.setLongitude(Double.valueOf(line[6]));\n } catch (NumberFormatException n)\n {\n n.printStackTrace();\n }\n corona.setCountry(line[3]);\n corona.setProvince(line[2]);\n corona.setCombinedKey(line[11]);\n\n\n\n coronaRepository.save(corona);\n log.info(corona.toString());\n\n\n }\n } catch (IOException | CsvValidationException e){\n e.printStackTrace();\n } finally {\n if(reader!=null)\n {\n try\n {\n reader.close();\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }\n }\n }\n }" ]
[ "0.6583093", "0.62134594", "0.614241", "0.6096163", "0.5869904", "0.5847323", "0.57736564", "0.5749311", "0.5730464", "0.5692395", "0.5691314", "0.5688622", "0.56733465", "0.5612722", "0.56103665", "0.5601378", "0.5594937", "0.5592374", "0.55869794", "0.5565921", "0.5544678", "0.5536762", "0.54946375", "0.5486974", "0.5463075", "0.54603523", "0.5455832", "0.54501116", "0.5445156", "0.5444004", "0.54084784", "0.53984827", "0.53917515", "0.53882813", "0.5388208", "0.5379494", "0.5379087", "0.53540117", "0.53484684", "0.53395474", "0.5337806", "0.53348553", "0.5326429", "0.531917", "0.5268467", "0.52664775", "0.52625597", "0.5256478", "0.5245691", "0.52455944", "0.5244061", "0.52287424", "0.52114916", "0.52114564", "0.5211055", "0.5206053", "0.5198744", "0.51842344", "0.51793087", "0.51495117", "0.5128515", "0.5107465", "0.510662", "0.51056135", "0.50985986", "0.5097996", "0.5095179", "0.5078455", "0.5071949", "0.5062537", "0.5048053", "0.5045186", "0.50360614", "0.5034012", "0.5032612", "0.5029762", "0.5028272", "0.5023831", "0.50128245", "0.50107193", "0.50062126", "0.49853772", "0.49811625", "0.4979578", "0.49694157", "0.4958413", "0.49560702", "0.49543408", "0.49509862", "0.49456567", "0.49427602", "0.49422622", "0.49398386", "0.4935916", "0.4927577", "0.49200827", "0.49151728", "0.49094823", "0.49054155", "0.49049369", "0.49020037" ]
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table schedule
public int getStart() { return start; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void generateSchedule(){\n\t\t\n\t}", "@Dao\npublic interface schedule_Dao {\n\n @Query(\"SELECT * FROM Schedule where student_id = :studentId\")\n List<Schedule> getSchedulesStudent(String studentId);\n\n\n\n @Query(\"SELECT COUNT(pkey) FROM Schedule where student_id = :student_id\")\n int getScheduleCount(String student_id);\n\n\n\n @Query(\"SELECT * FROM Schedule where student_id = :studentId and active = :active or active = :Active\")\n List<Schedule> getActiveSchedules(String active,String Active, String studentId);\n\n\n @Query(\"SELECT * FROM Schedule where `endtime_null` >= :date and `starttime_null` <= :date and student_id = :studentId and active = :active or active = :Active \")\n List<Schedule> getSelEvents(String active,String Active, String studentId, String date);\n\n\n @Query(\"SELECT * FROM Schedule where `endtime` >= :date and `starttime` <= :date and student_id = :studentId and active = :active or active = :Active \")\n List<Schedule> getSelEventTime(String active,String Active, String studentId, String date);\n\n\n @Insert\n void insertAll(Schedule... schedules);\n\n @Insert(onConflict = OnConflictStrategy.IGNORE)\n void insertOnConflict(Schedule... schedules);\n\n @Query(\"DELETE FROM Schedule\")\n public abstract int DeleteToken();\n\n @Query(\"DELETE FROM Schedule where pkey = :p_key and student_id = :studentId\")\n public abstract int DeleteSchedule(String p_key,String studentId );\n\n\n @Query(\"DELETE FROM Schedule where student_id= :studentId\")\n public abstract int DeleteScheduleAllUser(String studentId);\n\n\n}", "Schedule selectByPrimaryKey(Integer id);", "public interface JobScheduleMapper {\n @Select(\"select * from job_schedule where id = #{id}\")\n public JobSchedule findById(@Param(\"id\") long id);\n\n @Select(\"select status from job_schedule where id = #{id}\")\n public int getStatus(@Param(\"id\")long id);\n\n @Insert(\"insert into job_schedule (created_datetime, schedule_datetime, job_id, job_group_name, run_as, status) \" +\n \"values(#{created_datetime}, #{schedule_datetime}, #{job_id}, #{job_group_name}, #{run_as}, #{status})\")\n @Options(useGeneratedKeys = true, keyProperty = \"id\", keyColumn = \"id\")\n public void insert(JobSchedule jobSchedule);\n\n @Update(\"update job_schedule set status = #{status} where id = #{id}\")\n public void updateStatus(@Param(\"id\") long id, @Param(\"status\")int status);\n\n @Update(\"update job_schedule set status = \" + JobSchedule.JOB_SCHEDULE_STATUS_PENDING + \", retried = retried + 1 where id = #{id}\")\n public void retry(@Param(\"id\") long id);\n\n @Update(\"update job_schedule set next_job_schedule_id = #{nextId} where id = #{thisId}\")\n public void updateNextScheduleId(@Param(\"thisId\")long thisId, @Param(\"nextId\")long nextId);\n}", "Schedule createSchedule();", "java.lang.String getSchedule();", "public Schedule() {\n\t\t// TODO Auto-generated constructor stub\n\t}", "public void generateSchedule(){\r\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"yyyy-MM-dd HH:mm:ss\"); // Date formatter used when getting SQL records\r\n Database db = new Database();\r\n Connection connection = null;\r\n String sql = \"\";\r\n String report = \"\";\r\n \r\n // Retrieve the inputted consultant's id\r\n User user = (User) combo_user.getValue();\r\n int userID = user.getId();\r\n try{\r\n connection = db.jdbc_connection.connect();\r\n Statement statement = connection.createStatement(); // Set up statement\r\n \r\n sql = \"SELECT appointment.appointmentID, customer.customerName, appointment.title, appointment.description, appointment.location, appointment.contact, \" +\r\n \"appointment.type, appointment.url, appointment.start, appointment.end FROM appointment \" +\r\n \"INNER JOIN customer ON appointment.customerID=customer.customerID \" +\r\n \"WHERE userID = \" + userID + \" GROUP BY appointment.start\"; \r\n ResultSet results = statement.executeQuery(sql); \r\n \r\n while(results.next()) { \r\n String customer = results.getString(\"customerName\");\r\n String title = results.getString(\"title\");\r\n String description = results.getString(\"description\");\r\n String location = results.getString(\"location\");\r\n String contact = results.getString(\"contact\");\r\n String type = results.getString(\"type\");\r\n String url = results.getString(\"url\");\r\n String start = results.getString(\"start\");\r\n String end = results.getString(\"end\");\r\n \r\n \r\n // Convert the start and end DATETIMES to the user's current timezone \r\n java.time.LocalDateTime start_converted = convertToCurrentZone(java.time.LocalDateTime.parse(start.replace(\".0\", \"\"), formatter));\r\n String month = start_converted.getMonth().toString();\r\n int day = start_converted.getDayOfMonth();\r\n int hour = start_converted.getHour();\r\n String minute = String.valueOf(start_converted.getMinute());\r\n \r\n if(minute.length() == 1) minute += \"0\"; // Add following zeroes\r\n \r\n report += month + \" \" + day + \" at \" + hour + \":\" + minute + \" - appointment with \" + customer + \"\\n\";\r\n } \r\n }catch(Exception e) {\r\n System.out.println(e.getMessage());\r\n }finally {\r\n try {\r\n connection.close();\r\n } catch (Exception e2) { // Closing databse error handling\r\n System.err.println(e2.getMessage());\r\n }\r\n } \r\n \r\n text_schedule.setText(report);\r\n }", "public int getSchedule_id() {\r\n return schedule_id;\r\n }", "io.opencannabis.schema.commerce.CommercialOrder.OrderScheduling getScheduling();", "List<WorkingSchedule> getAll();", "@Override\n\t\tpublic List<ProgramScheduledBean> getAllScheduleProgram()\n\t\t\t\tthrows UniversityException {\n\t\t\treturn dao.getAllScheduleProgram();\n\t\t}", "public interface ScheduleDao {\n int crewTally();\n ArrayList<avail> getAllAvailibility();\n ArrayList<ShiftDetails> getShiftDetails();\n int updateShiftSwapStatus();\n}", "@Override\n\tpublic List<ScheduleTask> getScheduleTaskList() {\n\t\treturn (List<ScheduleTask>) find(\"from ScheduleTask\");\n\t}", "public List<UserRace> selectAllSchedule() {\n\t\tString sql = \"select \" + COLUMNS + \" FROM UserRace WHERE mode = '\"\n\t\t\t\t+ UserRace.MODE_SCHEDULE + \"'\";\n\t\treturn getJdbcTemplate().query(sql, new UserRaceRowMapper());\n\t}", "@Override\r\n\tpublic List<Courseschedule> getAllCourseschedules() {\n\t\tsession = sessionFactory.openSession();\r\n\t\tTransaction tran = session.beginTransaction();\r\n\t\tString hql = \"from Courseschedule where state=:state\";\r\n\t\tQuery query = session.createQuery(hql).setInteger(\"state\", 0);\r\n\t\tList<Courseschedule> lists = query.list();\r\n\t\ttran.commit();\r\n\t\tsession.close();\r\n\t\tlogger.debug(\"use the method named :getAllCourseschedules()\");\r\n\t\tif (lists.size() > 0) {\r\n\t\t\treturn lists;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "List<Schedule> selectByExample(ScheduleCriteria example);", "public static List<Schedule> fetchGeneratedSchedules() {\r\n if (!isComplete()) {\r\n return null;\r\n }\r\n\r\n return generatedSchedules;\r\n }", "@Override\n\tpublic void UpdateTableSchedule(Schedule current) {\n\t\tif (current == null)\n\t\t\treturn;\n\t\tCurrFitness = current.fitness;\n\t\tmyLabelSchedule.setText(\"Current Schedule Fitness: \" + CurrFitness);\n\t\tfor (int station = 1; station <= current.stations.size(); station++) {\n\t\t\tfor (int i = 0; i < dtm.getRowCount(); i++) {\n\t\t\t\tdtm.setValueAt(\"\", i, station);\n\t\t\t}\n\t\t\t// @Debug System.out.println(\"TableLength: \"+tableLength);\n\t\t\tStationSlot currentStation = current.stations.get(station - 1);\n\t\t\tif (currentStation.registeredCars.size() == 0) {\n\t\t\t\tcontinue;\n\t\t\t} else {\n\t\t\t\tLinkedList<CarSlot> cars = currentStation.registeredCars;\n\t\t\t\tfor (int i = 0; i < cars.size(); i++) {\n\t\t\t\t\tCarSlot car = cars.get(i);\n\t\t\t\t\tfloat start = car.startTime;\n\t\t\t\t\tfloat duration = car.duration;\n\t\t\t\t\tint rowNum = (int) (start * (60 / interval));\n\t\t\t\t\t// System.out.println(\"ColumNum: \"+rowNum);\n\t\t\t\t\twhile (duration > 0) {\n\t\t\t\t\t\tdtm.setValueAt(\"Car \" + car.name + \" [\" + car.priority + \"]\" + \" - \" + car.type, rowNum, station);\n\t\t\t\t\t\trowNum++;\n\t\t\t\t\t\tduration = (float) (duration - interval / 60f);\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n\tpublic List<ScheduledFlights> retrieveAllScheduledFlights() {\t\r\n\t\tTypedQuery<ScheduledFlights> query = entityManager.createQuery(\"select s from ScheduledFlights s, Flight f,Schedule sc where s.flight = f and s.schedule=sc\",ScheduledFlights.class);\r\n\t\tList<ScheduledFlights> flights = query.getResultList();\r\n\t\treturn flights;\r\n\t}", "public boolean generateSchedule(){\r\n return true;\r\n }", "public void existingSchedules(){\n \n scheduleModel = (DefaultTableModel) displayTable.getModel();\n \n currentSchedules = AccessDataFromXML.retrieveSchedules();\n for (Schedule schedule : currentSchedules){\n \n \n Object[] o = new Object[1];\n o[0] = schedule.getName();\n scheduleModel.addRow(o);\n }\n \n \n\n }", "public Schedule getSchedule() {\n\n return schedule;\n }", "private List<Schedules> getSchedulesList(){\r\n//\t\tList<Schedules> list = new ArrayList<Schedules>();\r\n//\t\tSchedules s1 = new Schedules(1, \"Baidu\", \"BUPT\", \"2013-09-11\", \"12:30\");\r\n//\t\tSchedules s2 = new Schedules(2, \"Sina\", \"BUPT\", \"2013-09-11\", \"13:50\");\r\n//\r\n//\t\tlist.add(s1);\r\n//\t\tlist.add(s2);\r\n\t\tif (scheduleList == null) {\r\n\t\t\tscheduleList = mAppContext.scheduleGetAll();\r\n\t\t}\r\n\t\treturn scheduleList;\r\n//\t\treturn list;\r\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\tpublic List<TimeTableBean> getTimeTable() {\n\t\treturn sessionFactory.openSession().createQuery(\"from TimeTableBean\").list();\r\n\t}", "@Override\n\tpublic List<ScheduleTask> getScheduleTaskList() {\n\t\treturn scheduleTaskDAO.getScheduleTaskList();\n\t}", "abstract public void computeSchedule();", "SchedulingPlay selectByPrimaryKey(Long id);", "public List<WorkoutSchedule> getSchedules() {\n if (schedules == null) {\n if (daoSession == null) {\n throw new DaoException(\"Entity is detached from DAO context\");\n }\n WorkoutScheduleDao targetDao = daoSession.getWorkoutScheduleDao();\n List<WorkoutSchedule> schedulesNew = targetDao._queryWorkout_Schedules(id);\n synchronized (this) {\n if(schedules == null) {\n schedules = schedulesNew;\n }\n }\n }\n return schedules;\n }", "private void refreshScheduleTable() {\n\t\tint gameIdx = 0;\n\t\tList<GameDetails> games = getGames();\n\t\tif (games != null) {\n\t\t\tfor (GameDetails game : games) {\n\t\t\t\tfor (int i = 0; i < 2; i++) {\n\t\t\t\t\tboolean isHome = (i == 0);\n\n\t\t\t\t\tTeamDetails team = (isHome ? game.getHomeTeam() : game.getAwayTeam()); \n\n\t\t\t\t\tboolean isSelected = false;\n\t\t\t\t\tboolean canSelect = true;\n\t\t\t\t\tif (getUiHandlers() != null) {\n\t\t\t\t\t\tisSelected = getUiHandlers().isTeamSelected(team);\n\t\t\t\t\t\tcanSelect = getUiHandlers().canSelectTeam(team);\n\t\t\t\t\t}\n\n\t\t\t\t\tString text = (isHome ? \"@ \" + team.getDisplayName() : team.getDisplayName());\n\n\t\t\t\t\tint row = rowFromGameIdx(gameIdx, isHome);\n\t\t\t\t\tint col = colFromGameIdx(gameIdx, isHome);\n\n\t\t\t\t\tsetScheduleCell(row, col, text, isSelected, canSelect);\t\n\t\t\t\t}\n\n\t\t\t\tgameIdx++;\n\t\t\t}\n\t\t}\n\n\t\t// Clear out any remaining cells (in case of bye weeks).\n\t\tfor (; gameIdx < NFLConstants.MAX_GAMES_PER_WEEK; gameIdx++) {\n\t\t\tfor (int i = 0; i < 2; i++) {\n\t\t\t\tboolean isHome = (i == 0);\n\t\t\t\t\n\t\t\t\tint row = rowFromGameIdx(gameIdx, isHome);\n\t\t\t\tint col = colFromGameIdx(gameIdx, isHome);\n\n\t\t\t\tsetScheduleCell(row, col, \"\", false, true);\n\t\t\t}\n\t\t}\n\t}", "public int getScheduleMethod() {\n return scheduleMethod;\n }", "private static Entity addScheduleDateDataEntities(final Schema schema) {\n Entity scheduleDateData = schema.addEntity(\"ScheduleDateData\");\n scheduleDateData.addIdProperty().primaryKey().autoincrement();\n scheduleDateData.addIntProperty(\"schedule_id\").notNull();\n scheduleDateData.addStringProperty(\"schedule_name\");\n scheduleDateData.addStringProperty(\"class_id\");\n scheduleDateData.addStringProperty(\"class_name\");\n scheduleDateData.addStringProperty(\"class_desc\");\n scheduleDateData.addStringProperty(\"schedule_type_id\");\n scheduleDateData.addStringProperty(\"schedule_type\");\n scheduleDateData.addStringProperty(\"schedule_start_date\");\n scheduleDateData.addStringProperty(\"schedule_start_time\");\n scheduleDateData.addStringProperty(\"schedule_end_time\");\n scheduleDateData.addLongProperty(\"schedule_start_time_long\");\n scheduleDateData.addLongProperty(\"schedule_end_time_long\");\n scheduleDateData.addIntProperty(\"schedule_monday\");\n scheduleDateData.addIntProperty(\"schedule_tuesday\");\n scheduleDateData.addIntProperty(\"schedule_wednesday\");\n scheduleDateData.addIntProperty(\"schedule_thursday\");\n scheduleDateData.addIntProperty(\"schedule_friday\");\n scheduleDateData.addIntProperty(\"schedule_saturday\");\n scheduleDateData.addIntProperty(\"schedule_sunday\");\n scheduleDateData.addStringProperty(\"schedule_frequency\");\n scheduleDateData.addIntProperty(\"is_cancelled\");\n scheduleDateData.addIntProperty(\"is_reservable\");\n scheduleDateData.addStringProperty(\"instructor_id\");\n scheduleDateData.addStringProperty(\"instructor_name\");\n scheduleDateData.addStringProperty(\"location_id\");\n scheduleDateData.addStringProperty(\"location_name\");\n\n return scheduleDateData;\n }", "public static String listScheduleIdSymbol(int tambahanBolehABs) {\n DBResultSet dbrs = null;\n String result = \"\";\n try {\n Date dtStart = new Date();\n Date dtEnd = new Date();\n String dtManual = \"\";\n boolean crossDay = false;\n //dtStart.setHours(dtStart.getHours()-tambahanBolehABs);\n dtStart = new Date(dtStart.getYear(), dtStart.getMonth(), (dtStart.getDate()), (dtStart.getHours() - tambahanBolehABs), dtStart.getMinutes(), dtStart.getSeconds());\n dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate()), (dtEnd.getHours() + tambahanBolehABs), dtEnd.getMinutes(), dtEnd.getSeconds());\n int jamMelebihiOneDay = 23;\n if (dtStart.getHours() == 0 || dtStart.getHours() == 23) {\n dtManual = \"23:\" + \"59:\" + \"59\";\n crossDay = true;\n jamMelebihiOneDay = jamMelebihiOneDay + tambahanBolehABs;\n }\n if (dtEnd.getHours() == 0) {\n dtManual = \"23:\" + \"59:\" + \"59\";\n crossDay = true;\n jamMelebihiOneDay = jamMelebihiOneDay + tambahanBolehABs;\n }\n\n// String dtManual=\"\";\n// if(dt.getHours()==0 || dt.getHours()+tambahanBolehABs>=23){\n// int idtManual = 24+tambahanBolehABs;\n// dtManual = idtManual+\":59:00\" ;\n// }else{\n// dt.setHours(dt.getHours()+tambahanBolehABs);\n// }\n\n String sql = \"SELECT * FROM \" + PstScheduleSymbol.TBL_HR_SCHEDULE_SYMBOL\n + \" WHERE \\\"00:00:00\\\" <=\" + PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT]\n + \" AND \" + PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN] + \"<= \\\"\"\n + \"23:59:00\"\n //+ (dtStart.getHours() == 0 || dtStart.getHours() == 23 || dtEnd.getHours() == 0 ? dtManual : Formater.formatDate(dtEnd, \"HH:mm:00\"))\n + \"\\\"\";\n //+ \" WHERE \" + \"(\"+PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN] +\" BETWEEN \\\"00:00:00\\\" AND \\\"\"+ (crossDay?dtManual:Formater.formatDate(dtStart, \"HH:mm:00\")) +\"\\\") OR (\"+PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT] +\" BETWEEN \\\"00:00:00\\\" AND \\\"\"+Formater.formatDate(dtEnd, \"HH:mm:00\")+\"\\\")\";\n\n dbrs = DBHandler.execQueryResult(sql);\n ResultSet rs = dbrs.getResultSet();\n while (rs.next()) {\n dtEnd = new Date();\n dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate()), (dtEnd.getHours() + tambahanBolehABs), dtEnd.getMinutes(), dtEnd.getSeconds());\n \n Date schTimeIn = rs.getTime(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN]);\n\n Date schTimeOut = rs.getTime(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT]);\n Date dtTmpSchTimeIn = new Date();\n Date dtTmpSchTimeOut = new Date();\n\n\n if (schTimeIn != null && schTimeOut != null) {\n schTimeOut = new Date(dtTmpSchTimeOut.getYear(), dtTmpSchTimeOut.getMonth(), dtTmpSchTimeOut.getDate(), schTimeOut.getHours(), schTimeOut.getMinutes());\n schTimeIn = new Date(dtTmpSchTimeIn.getYear(), dtTmpSchTimeIn.getMonth(), dtTmpSchTimeIn.getDate(), schTimeIn.getHours(), schTimeIn.getMinutes());\n\n Date dtCobaTimeOut = new Date(schTimeOut.getYear(), schTimeOut.getMonth(), (schTimeOut.getDate()), (schTimeOut.getHours() + tambahanBolehABs), schTimeOut.getMinutes(), schTimeOut.getSeconds());\n boolean melebihiHari=false;\n if (schTimeIn.getHours() == 0 || schTimeOut.getHours() == 0) {\n \n } else {\n if (dtCobaTimeOut.getDate() > schTimeIn.getDate()) {\n //dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate() + 1), (dtEnd.getHours()), dtEnd.getMinutes(), dtEnd.getSeconds());\n melebihiHari=true;\n }\n\n if ( (melebihiHari && dtEnd.getHours()<dtCobaTimeOut.getHours()) || schTimeIn.getTime() <= dtEnd.getTime() || (schTimeIn.getHours() > schTimeOut.getHours() && dtEnd.getTime() < schTimeOut.getTime())) {\n result = result + rs.getString(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_SCHEDULE_ID]) + \",\";\n }\n }\n\n\n\n\n\n }\n\n }\n if (result != null && result.length() > 0) {\n result = result.substring(0, result.length() - 1);\n }\n rs.close();\n return result;\n\n } catch (Exception e) {\n System.out.println(e);\n } finally {\n DBResultSet.close(dbrs);\n }\n return result;\n }", "public interface ScheduleDao {\r\n\tpublic Schedule createSchedule(Calendar scheduleDate) throws DAOException;\r\n\tpublic Schedule findScheduleById(long scheduleId) throws DAOException;\r\n\tpublic List<Schedule> findSchedulesByDate(Calendar scheduleDate) throws DAOException;\r\n\tpublic List<Schedule> findAllSchedules() throws DAOException;\r\n\tpublic void updateSchedule(long scheduleId, Calendar newScheduleDate) throws DAOException;\r\n\tpublic void deleteScheduleById(long scheduleId) throws DAOException;\r\n\tpublic void deleteAllSchedules() throws DAOException;\r\n}", "public String getSchedule() {\n return schedule;\n }", "public Schedule getSchedule() {\r\n\t\treturn schedule;\r\n\t}", "public ScheduleType getScheduleType();", "public interface ScheduleService {\n BasicSchedule getBasicScheduleByHostelIdAndRoomType(long hostelId, RoomType type);\n\n /**\n * 获得最近一年的酒店基本计划\n *\n * @param hostelId\n * @return\n */\n List<BasicSchedule> getBasisSchedulesByHostelId(long hostelId);\n\n void modifyBasisSchedule(BasicSchedule basicSchedule);\n\n /**\n * 获得最近一年的酒店特殊计划\n *\n * @param hostelId\n * @return\n */\n List<SpecialSchedule> getSpecialScheduleByHostelId(long hostelId);\n\n void modifySpecialSchedule(SpecialSchedule specialSchedule);\n\n void addSpecialSchedule(SpecialSchedule specialSchedule);\n\n void deleteSpecialSchedule(SpecialSchedule specialSchedule);\n\n SpecialSchedule getSpecialSchedule(long hostelId, RoomType roomType, Date date);\n}", "private void loadScheduleList() {\n\n if (listTbagendamentos != null && !listTbagendamentos.isEmpty()) {\n scheduleAgendamento.clear();\n\n for (Tbagendamento agendamento : listTbagendamentos) {\n DefaultScheduleEvent defaultScheduleEvent = new DefaultScheduleEvent();\n defaultScheduleEvent.setTitle(agendamento.getIdcliente().getNmcliente());\n\n Calendar dtDataInicial = new GregorianCalendar();\n dtDataInicial.setTime(agendamento.getTmdataagendamento());\n\n defaultScheduleEvent.setStartDate(dtDataInicial.getTime());\n\n Calendar dtDataFinal = new GregorianCalendar();\n dtDataFinal.setTime(agendamento.getTmdataagendamento());\n dtDataFinal.set(Calendar.MINUTE, dtDataFinal.get(Calendar.MINUTE) + 30);\n\n defaultScheduleEvent.setEndDate(dtDataFinal.getTime());\n defaultScheduleEvent.setData(agendamento.getIdagendamento());\n scheduleAgendamento.addEvent(defaultScheduleEvent);\n }\n }\n }", "public Schedule() {\r\n }", "public void setSchedule(Schedule schedule) {\r\n\t\tthis.schedule = schedule;\r\n\t}", "List<WorkingSchedule> getByPlaceId(Long placeId);", "public ProgramScheduled getProgramScheduleById(int scheduleId);", "public ArrayList<TrainScheduleEntity> viewTrainSchedule(String dayType);", "java.lang.String getSnapshotCreationSchedule();", "io.opencannabis.schema.commerce.CommercialOrder.SchedulingType getScheduling();", "@Override\r\n\tpublic void doInitialSchedules() {\n\t}", "void setSchedule(java.lang.String schedule);", "ScheduleStartType getScheduleStart();", "public abstract void schedule();", "public void setSchedule(Schedule newSchedule) {\n\n schedule = newSchedule;\n }", "@Mapper\npublic interface VirtualRepayFlowMapper {\n @DataSource(\"bigdata2_jdb\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE update_time >= #{from_time} and update_time < #{end_time} and id>#{id} limit 1000\")\n List<VirtualRepayFlow> find(@Param(\"from_time\") String from_time,\n @Param(\"end_time\") String end_time,\n @Param(\"id\") long id);\n\n\n @DataSource(\"dmp\")\n @Insert(\"INSERT INTO virtual_repay_flow (id,uuid,virtual_productid,to_user,amount,interest,repay_status,repay_time,create_time,update_time) values\" +\n \"(#{id},#{uuid},#{virtual_productid},#{to_user},#{amount},#{interest},#{repay_status},#{repay_time},#{create_time},#{update_time})\")\n void insert(VirtualRepayFlow virtualRepayFlow);\n\n @DataSource(\"dmp\")\n @Delete(\"DELETE FROM repay_flow where update_time<#{update_time}\")\n void delete(@Param(\"update_time\") String update_time);\n\n @DataSource(\"dmp\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE id=#{id}\")\n VirtualRepayFlow getById(@Param(\"id\") long id);\n\n\n @DataSource(\"dmp\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE uuid=#{uuid}\")\n VirtualRepayFlow getByUuid(@Param(\"uuid\") String uuid);\n}", "public abstract void maintenanceSchedule() ;", "@Override\n public List<SurveillantSchedule> getSurveillantSchedule() {\n return surveillantRepository.getSurveillantSchedule();\n }", "long getScheduleID() {return mScheduleID; }", "com.google.cloud.gkebackup.v1.BackupPlan.Schedule getBackupSchedule();", "public String getScheduleRow() {\n\t\treturn uSRow;\n\t}", "public void setSchedule_id(int schedule_id) {\r\n this.schedule_id = schedule_id;\r\n }", "public void printSchedule(){\n String\n format =\n \"%-20s%-10s%-15s%\" +\n \"-20s%-25s%-10s%\" +\n \"-15s%-15s%-15s%n\";\n\n System.out.printf(format,\n \"Водитель\", \"Номер А/М\",\"Машина\", \"Дата и время\",\n \"Задание\", \"Кол-во\",\n \"Расстояние\", \"Цена\", \"Примечание\");\n System.out.println();\n\n\n\n List<TimeTable> l = driverScheduleReaderDAO.getTimeTable();\n TimeTable tPrev =l.get(0);\n for (TimeTable t: l){\n\n if (!t.getDriverName().equals(tPrev.getDriverName())) {\n\n System.out.println(\"***\");\n tPrev = t;\n\n } else if (t!=l.get(0))t.setDriverName(\" \");\n\n\n\n\n System.out.printf(format,\n t.getDriverName(), t.getCarId(), t.getCarBrand(),\n t.getBusyTime(), t.getOrder(), t.getNumOfEl(),\n t.getDistance(), t.getPrice(), t.getNote()\n );\n\n }\n\n //int\n\n\n\n\n //вывести на экран\n //отельным классом посчитать шанс поломки и предупредить\n }", "public void schedule(String id, String[] schedule) {\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic List<ISchedule> getSchedules() throws IOException {\n\t\tfinal String sql = \"SELECT * from record\";\n\t\tList<? extends ISchedule> result = this.queryDataList(Schedule.class,ISchedule.Props.class, sql);\n\t\treturn (List<ISchedule>) result;\t\t\n\t}", "public List<AllTimeSeasonBean> getAllTimeRecord(){\n String q = \"select new com.main.pcblroyals.bean.AllTimeSeasonBean( \" +\n \"sum(case when g.teamScore > g.opponentScore then 1 else 0 end), \" +\n \"sum(case when g.teamScore = g.opponentScore then 1 else 0 end), \" +\n \"sum(case when g.teamScore < g.opponentScore then 1 else 0 end) \" +\n \") \" +\n \"from seasons s \" +\n \"join games g on s.id = g.season.id \";\n Query query = entityManager.createQuery(q);\n return (List<AllTimeSeasonBean>) query.getResultList();\n }", "@Override\n public String getEndPoint() {\n return \"/v1/json/schedule\";\n }", "@GetMapping\n public List<ScheduleDTO> getAllSchedules() {\n List<Schedule> scheduleList = scheduleService.getAllSchedules();\n\n List<ScheduleDTO> scheduleDTOList = scheduleList.stream()\n .map(ScheduleController::convertScheduleToScheduleDTO)\n .collect(Collectors.toList());\n return scheduleDTOList;\n }", "public interface ScheduleListDao extends GenericDao<ScheduleList, Long> {\n\t\n\tpublic List<ScheduleList> findShceduleList(String scheduleId); \n\t\n\t /**\n * 自服务项列表\n * @return\n */\n public Page findScheduleList(String pageSize);\n\t\n}", "public void storeRegularDayTripStationScheduleWithRS();", "@MapperScan\npublic interface DSSettingMapper {\n\n @Insert(\"INSERT INTO ds_setting (dsId, dsAppointment2,dsAppointment3,outCoachIds,status,modifyTime)\" +\n \" VALUES(#{dsId},#{dsAppointment2},#{dsAppointment3},#{outCoachIds},#{status},NOW())\")\n int insertDssetting(DSSetting dsSetting);\n\n @Update(\"UPDATE ds_setting SET dsAppointment2 = #{dsAppointment2},\" +\n \" dsAppointment3 = #{dsAppointment3}, outCoachIds = #{outCoachIds}, \" +\n \"status = #{status}, modifyTime = NOW() \" +\n \"WHERE dsId = #{dsId}\")\n int updateDssetting(DSSetting dsSetting);\n\n @Select(\"SELECT * FROM ds_setting WHERE dsId = #{dsId}\")\n DSSetting findOneDSSetting(@Param(\"dsId\") Long dsId);\n}", "public String getScheduleExpression() {\n return this.scheduleExpression;\n }", "@Override\n\tpublic List<SchedulerJobEntity> getAllScheduledJobs() throws SchedulerException {\n\t\treturn schedulerRepository.findAll();\n\t}", "@Override\n\t\tpublic oep_ResponseInfo getTestscheduledetails(String id) {\n\t\t\t\n\t\t\t\n\t\t\tString query = \" SELECT a.`ques_master_id`,`is_test_started`,a.`id`,`sub_id`,a.`batch`,DATE_FORMAT(`testdate`,'%m/%d/%Y')newtestdate,a.`start_time`, a.`end_time`,a.`status`,b.`test_name`,`test_id`,\"\n\t\t\t\t\t+ \"HOUR(a.`start_time`)starthour,MINUTE(a.`start_time`)startminute, HOUR(a.`end_time`)endhour,MINUTE(a.`end_time`)endminute,\"\n\t\t\t\t\t+ \" DATE_FORMAT(`testdate`,'%d/%m/%Y')testdate, SUBSTRING_INDEX(a.`start_time`,' ',-1)startformatt,SUBSTRING_INDEX(a.`end_time`,' ',-1)endformatt,\"\n\t\t\t\t\t+ \"GROUP_CONCAT(f.`username`,' ',CASE WHEN `is_participant_start` = 2 THEN ' completed \\n' WHEN `is_participant_start` = 1 THEN 'Started \\n' ELSE 'Not started \\n'END)username,\"\n\t\t\t\t\t+ \"`is_participant_start`,h.`username`facname FROM `test_schedule` a JOIN `question_master` b ON a.`ques_master_id` = b.`id` \"\n\t\t\t\t\t+ \"JOIN `course_scheduling`c ON c.`cs_id`= a.`batch` JOIN `participants_registration_course_details`e ON e.`course_id`= c.`cs_id` \"\n\t\t\t\t\t+ \" JOIN `participants`f ON f.`participant_id`=e.`participant_id` \"\n\t\t\t\t\t+ \"LEFT JOIN `test_participants`g ON g.`part_id`= f.`participant_id` AND g.`ts_id`=a.`id`\"\n\t\t\t\t\t+ \" JOIN `faculty_master`h ON h.`faculty_id` = c.`faculty_name` WHERE a.`id`= \"+id+\" \";\n\t\t\t\n\t\t\t\n\t\t\tlog.info(query);\n\t\t\t\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tList<Object> List = jdbcTemplate.query(query, new RowMapper() {\n\t\t\t\tint count = 0;\n\t\t\t\t@Override\n\t\t\t\tpublic Object mapRow(ResultSet rs, int arg1) throws SQLException {\n\t\t\t\t\t\n\t\t\t\t\tMap<String, Object> map = new HashMap<String, Object>();\n\t\t\t\t\tmap.put(\"testid\", rs.getString(\"test_id\"));\n\t\t\t\t\tmap.put(\"startformat\", rs.getString(\"startformatt\"));\n\t\t\t\t\tmap.put(\"endformat\", rs.getString(\"endformatt\"));\t\n\t\t\t\t\tmap.put(\"facname\", rs.getString(\"facname\"));\n\t\t\t\t\tmap.put(\"quesid\", rs.getString(\"ques_master_id\"));\n\t\t\t\t\tmap.put(\"id\", rs.getString(\"id\"));\n\t\t\t\t\tmap.put(\"tsid\", rs.getString(\"id\"));\n\t\t\t\t\tmap.put(\"batch\", rs.getString(\"batch\"));\n\t\t\t\t\tmap.put(\"testdate\", rs.getString(\"testdate\"));\n\t\t\t\t\tmap.put(\"newtestdate\", rs.getString(\"newtestdate\"));\n\t\t\t\t\tmap.put(\"subid\", rs.getString(\"sub_id\"));\n\t\t\t\t\tmap.put(\"starthour\", rs.getString(\"starthour\"));\n\t\t\t\t\tmap.put(\"endhour\", rs.getString(\"endhour\"));\n\t\t\t\t\tmap.put(\"startminute\", rs.getString(\"startminute\"));\n\t\t\t\t\tmap.put(\"endminute\", rs.getString(\"endminute\"));\n\t\t\t\t\tmap.put(\"starttime\", rs.getString(\"start_time\"));\n\t\t\t\t\tmap.put(\"testname\", rs.getString(\"test_name\"));\n\t\t\t\t\tmap.put(\"username\", rs.getString(\"username\"));\n\t\t\t\t\tmap.put(\"starttest\", rs.getString(\"is_test_started\"));\n\t\t\t\t\tmap.put(\"participantstart\", rs.getString(\"is_participant_start\"));\n\t\t\t\t\tmap.put(\"endtime\", rs.getString(\"end_time\"));\n/*\t\t\t\t\t\n\t\t\t\t\tString submenuQuery = \"SELECT `part_id`,`imh_staus`,`username`,CONCAT(`username`,' ',CASE WHEN `imh_staus` = 0 \"\n\t\t\t\t\t\t\t+ \" THEN 'Certificate Not sent ' WHEN `imh_staus` = 1 THEN 'Certificate sent' \"\n\t\t\t\t\t\t\t+ \" ELSE 'Invalid 'END)status FROM `email_history`a \"\n\t\t\t\t\t\t\t+ \" JOIN `participants`b ON a.`part_id`=b.`participant_id` WHERE `ts_id` = \"+ rs.getString(\"id\");\t*/\n\t\t\t\t\t\n\t\t\t\t\tString submenuQuery = \" SELECT a.`ques_master_id`,`username`,`imh_staus`,`is_test_started`,a.`id`,a.`batch`,DATE_FORMAT(`testdate`,'%e/%c/%Y')testdate,a.`start_time`, a.`end_time`,a.`status`,b.`test_name`,`test_id`,\"\n\t\t\t\t\t\t\t+ \"CONCAT(`username`,' ',CASE WHEN `is_participant_start` = 2 THEN ' completed \\n' WHEN `is_participant_start` = 1 THEN 'Started \\n' ELSE 'Not started \\n'END)teststatus,\"\n\t\t\t\t\t\t\t+ \"`is_participant_start` FROM `test_schedule` a JOIN `question_master` b ON a.`ques_master_id` = b.`id` \"\n\t\t\t\t\t\t\t+ \"JOIN `course_scheduling`c ON c.`cs_id`= a.`batch` JOIN `participants_registration_course_details`e ON e.`course_id`= c.`cs_id` \"\n\t\t\t\t\t\t\t+ \" JOIN `participants`f ON f.`participant_id`=e.`participant_id` \"\n\t\t\t\t\t\t\t+ \"LEFT JOIN `test_participants`g ON g.`part_id`= f.`participant_id` AND g.`ts_id`=a.`id`\"\n\t\t\t\t\t\t\t+ \"JOIN `email_history`h ON h.`ts_id`= a.`id` WHERE a.`id`= \"+ rs.getString(\"id\");\n\t\t\t\t\t\n\t\t\t\t\t List<Object> submenuList = new ArrayList<Object>();\n\t\t\t\t\t submenuList = getPartStatusList(submenuQuery);\n\t\t\t\t\t map.put(\"submenuList\", submenuList);\n\t\t\t\t\t\n\t\t\t\t\tif(rs.getString(\"status\")!= null && rs.getString(\"status\").equals(\"1\")){\n\t\t\t\t\t\tmap.put(\"status\", \"Active\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tmap.put(\"status\", \"Inactive\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(rs.getString(\"is_test_started\")!= null && rs.getString(\"is_test_started\").equals(\"1\")){\n\t\t\t\t\t\tmap.put(\"teststarted\", \"Test Started\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tmap.put(\"teststarted\", \"Not started\");\n\t\t\t\t\t}\n\t\t\t\t\tmap.put(\"index\", count);\n\t\t\t\t\tcount++;\n\t\t\t\t\treturn map;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t});\n\t\t\t\n\t\t\n\t\t\t \n\t\t\t \n\t\t\tresponse.setResponseType(\"S\");\n\t\t\tresponse.setResponseObj(List);\n\t\t\tresponseInfo.setInventoryResponse(response);\n\t\t\treturn responseInfo;\n\t\t}", "public void createTempSpecialDayTrainSchedule(Timestamp date);", "public void generatePlan(Integer id,Date fromDate, Date toDate) throws Exception;", "@Override\r\n\tpublic List<Courseschedule> getCourseschedulesByClassroomId(int classroomId) {\n\t\tsession = sessionFactory.openSession();\r\n\t\tTransaction tran = session.beginTransaction();\r\n\t\tString hql = \"from Courseschedule where classroomId=:classroomId and state=:state\";\t\t\r\n\t\tList<Courseschedule> lists = session.createQuery(hql).setInteger(\"classroomId\", classroomId).setInteger(\"state\", 0).list();\r\n\t\ttran.commit();\r\n\t\tsession.close();\r\n\t\tlogger.debug(\"use the method named :getCourseschedulesByClassroomId(int classroomId)\");\r\n\t\tif (lists.size() > 0) {\r\n\t\t\treturn lists;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public void setSchedule(String timeframe) {\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic List<ScheduledFlights> retrieveScheduledFlights(String source, String destination) {\r\n\t\tQuery query = entityManager.createQuery(\"select s.scheduleId,s.source,s.destination,s.arrivaltime,s.departuretime,f.flightNumber,f.carrierName,f.seatCapacity from Schedule s JOIN ScheduledFlights sf ON s.scheduleId=sf.scheduleId JOIN Flight f on sf.flightId=f.flightNumber where schedule.source= :source AND schedule.destination=:destination\");\r\n\t\treturn query.getResultList();\r\n\t}", "@Override\r\n\tpublic boolean updateDate(ScheduleAdminModel scheduleAdminModel) throws ClassNotFoundException, SQLException {\n\t\r\n\t\tConnection connection=ConnectionManager.openConnection();\r\nPreparedStatement statement=\r\n connection.prepareStatement(\"update courses set start_date=?,end_date=? where course_name=?\");\r\nstatement.setString(1,scheduleAdminModel.getStartDate());\r\nstatement.setString(2,scheduleAdminModel.getEndDate());\r\nstatement.setString(3,scheduleAdminModel.getCourse_name());\r\n \r\n int rows=statement.executeUpdate();\r\n\tConnectionManager.closeConnection();\r\n\tif(rows>0)\r\n\t\treturn true;\r\n\t else \r\n\t return false;\r\n\t}", "void deschedule(ScheduledJob job);", "@Query(\"select :stopName from Timetable order by id\")\n List<Integer> selectStop(String stopName);", "public Date getScheduletime() {\r\n return scheduletime;\r\n }", "public List<Timetable> getAllTimetable() throws Exception;", "public abstract ArrayList<ScheduleTime> getScheduleForDay(int day, int month, int year);", "public void setSchedule(SpaceSchedule s) {\n\t\t\n\t}", "MMSchedule() {\n mScheduleID = MMUtilities.ID_DOES_NOT_EXIST;\n mOfMedicationID = 0;\n mForPersonID = 0;\n mTimeDue = 0;\n mStrategy = MMMedication.sSET_SCHEDULE_FOR_MEDICATION;\n }", "@Override\n public void fetchScheduled(RuleKey ruleKey) {\n }", "List<Schedule> selectByExampleWithRowbounds(ScheduleCriteria example, RowBounds rowBounds);", "Schedule getSchedule(String departure, String arrival, int depYear, int depMonth);", "public void setList(ScheduleInterface<Schedule> scheduleList){\n this.scheduleList = scheduleList;\n }", "int insert(Schedule record);", "private void reloadPlanTable() {\n\t\t\r\n\t}", "public Schedule getSchedule(String route, int direction){\r\n // A schedule to hold all the data returned from the query\r\n Schedule weekdayZero = new Schedule();\r\n // Fetch the route id given the route\r\n Cursor getData = getReadableDatabase().rawQuery(\"select _id from routes where route_long_name = '\" + route + \"'\", null);\r\n // Make sure to begin at the first element of the returned data\r\n getData.moveToFirst();\r\n // Store the Route Id\r\n int route_id = getData.getInt(0);\r\n // Calendar id: (90400,90448) - Monday To Friday\r\n final String query = \"select Routes.Route_long_Name, \" +\r\n \"Calendar._Id, Stops.Stop_Name, Stop_Times.Stop_Sequence, Stop_Times.Arrival_Time, routes.route_short_name \" +\r\n \"from Trips join Calendar on Trips.Service_Id=Calendar._Id \" +\r\n \"join Routes on Trips.Route_Id=Routes._Id \" +\r\n \"join Stop_Times on Trips._Id=Stop_Times.Trip_Id \" +\r\n \"join Stops on Stop_Times.Stop_Id=Stops._Id \" +\r\n \"where Calendar._Id in \" + getDayOfTheWeek() + \" \" +\r\n \"AND Trips.Route_Id = \" + route_id + \" \" +\r\n \"AND Trips.Direction_Id = \" + direction + \" \" +\r\n \"AND Stop_Times.Arrival_Time != '' \" +\r\n \"order by arrival_time asc\";\r\n getData.moveToFirst();\r\n getData = getReadableDatabase().rawQuery(query, null);\r\n while (getData.moveToNext()){\r\n weekdayZero.insertData(getData.getString(0), getData.getInt(1), getData.getString(2), getData.getInt(3)\r\n , getData.getString(4), getData.getString(5));\r\n }\r\n return weekdayZero;\r\n }", "public Date getScheduleTime() {\n return this.scheduleTime;\n }", "@Override\n\tpublic void setDateAndSchedule(String date, String schedule) {\n\n\t}", "public MonthlyValuesTable(Database database) \n {\n //Constructor calls DbTable's constructor\n super(database);\n setTableName(\"monthlyvalues\");\n }", "public Date getScheduleDate(){\r\n\t\treturn this.scheduleDate;\r\n\t}", "com.google.cloud.compute.v1.Scheduling getScheduling();", "TimerSchedule createTimerSchedule();", "public ApiSchedule[] getSchedules() {\n return this.schedules;\n }", "@Override\n\tpublic void setDateAndSchedule(String date, String schedule) {\n\t\t\n\t}", "public interface ITimetableDAO {\n\n /**\n * Get all the timetable element of <code>Timetable</code> object <br>\n *\n * @return all the list of <code>Timetable</code> object\n * @throws Exception\n */\n public List<Timetable> getAllTimetable() throws Exception;\n\n /**\n * Get all the list element has search of <code>Timetable</code> object<br>\n *\n * @param from is the date of <code>Timetable</code> object\n * @param to is the date of <code>Timetable</code> object\n * @return all the list has search of <code>Timetable</code> object\n * @throws Exception\n */\n public List<Timetable> getListSearch(String from, String to) throws Exception;\n\n /**\n * Add the all the element of Timetable to database\n *\n * @param date the date of Timetable object, it is an\n * <code>java.sql.Date</code>\n * @param slot the slot of Timetable object, it is an int\n * @param classes the classes of Timetable object, it is a string\n * @param teacher the teacher of Timetable object, it is a string\n * @param room the room of Timetable object, it is an int\n * @throws Exception\n */\n public void addTimetable(String date, String slot, String room, String teacher, String classes) throws Exception;\n\n /**\n * Function to check Timetable exist before add\n *\n * @param date the date of Timetable object, it is an\n * <code>java.sql.Date</code>\n * @param classes the slot of Timetable object, it is an int\n * @param room the room of Timetable object, it is a string\n * @return object of Timetable or null when check exist timetable\n * @throws Exception\n */\n public Timetable checkExistRoomTimeTable(String date, String classes, String room) throws Exception;\n\n /**\n * Paginate by number of timetable in <code>Timetable</code> object <br>\n *\n * @param pageIndex the index of page, it is an <code>int</code>\n * @param pageSize the size of page, it is an <code>int</code>\n * @return list of timetable, it is a <code>java.util.List</code> object.\n * @throws java.lang.Exception\n */\n public List<Timetable> pagging(int pageIndex, int pageSize) throws Exception;\n\n /**\n * Get number of result <code>Gallery</code> object by id\n *\n * @return number result of Gallery object, it is an int\n * @throws java.lang.Exception\n */\n public int numberOfResult() throws Exception;\n\n /**\n * Function to check Timetable exist before add\n *\n * @param date the date of Timetable object, it is an\n * <code>java.sql.Date</code>\n * @param classes the slot of Timetable object, it is an int\n * @param teacher the teacher of Timetable object, it is a string\n * @return object of Timetable or null when check exist timetable\n * @throws Exception\n */\n public Timetable checkExistTeacherTimeTable(String date, String classes, String teacher) throws Exception;\n\n}", "public void setScheduleTime(Date scheduleTime) {\n this.scheduleTime = scheduleTime;\n }", "@Scheduled(cron = \"0 30 06 * * *\",zone=\"America/New_York\")\n public void populateDatabase(){\n localDateTime = LocalDateTime.now();\n log.info(\"Executed now: \"+ localDateTime.toString());\n\n // Checks if table in database is empty\n // If not empty, clears the table and populates it with new data\n if(checkEmpty()==0)\n log.info(\"Empty Table\");\n else {\n deleteTableRecords();\n log.info(\"Table not Empty\");\n }\n\n URL url = null;\n\n // Get recent date, append it to URL and establish a connection\n String pattern = \"MM-dd-yyyy\";\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(pattern);\n Date date = Date.from(Instant.now().minus(Duration.ofDays(1)));\n\n\n String dateStr = simpleDateFormat.format(date);\n\n try {\n url = new URL(\"https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_daily_reports/\"+dateStr+\".csv\");\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n HttpURLConnection httpURLConnection = null;\n try {\n httpURLConnection = (HttpURLConnection) url.openConnection();\n } catch (IOException e) {\n e.printStackTrace();\n }\n int responseCode = 0;\n try {\n responseCode = httpURLConnection.getResponseCode();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n // On successful connection, read records line by line, store records in a table\n if(responseCode==200)\n {\n log.info(\"-- Successful Connection\");\n CSVReader reader = null;\n try {\n\n BufferedReader input = new BufferedReader(new InputStreamReader(httpURLConnection.getInputStream()),8192);\n reader = new CSVReader(input);\n String[] line;\n int skipFirstLine = 0;\n while ((line = reader.readNext()) != null)\n {\n if(skipFirstLine==0)\n {\n skipFirstLine++;\n continue;\n }\n\n DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern(\"yyyy-MM-dd HH:mm:ss\");\n\n Corona corona = new Corona();\n corona.setLastUpdate(LocalDateTime.parse(line[4],dateTimeFormatter));\n if(line[7].equals(\"\"))\n line[7]=\"0\";\n if(line[9].equals(\"\"))\n line[9]=\"0\";\n if(line[10].equals(\"\"))\n line[10]=\"0\";\n if(line[8].equals(\"\"))\n line[8]=\"0\";\n if(line[5].equals(\"\"))\n line[5]=\"0\";\n if(line[6].equals(\"\"))\n line[6]=\"0\";\n\n try {\n\n corona.setConfirmed(Long.valueOf(line[7]));\n corona.setRecovered(Long.valueOf(line[9]));\n corona.setActive(Long.valueOf(line[10]));\n corona.setDeaths(Long.valueOf(line[8]));\n corona.setLatitude(Double.valueOf(line[5]));\n corona.setLongitude(Double.valueOf(line[6]));\n } catch (NumberFormatException n)\n {\n n.printStackTrace();\n }\n corona.setCountry(line[3]);\n corona.setProvince(line[2]);\n corona.setCombinedKey(line[11]);\n\n\n\n coronaRepository.save(corona);\n log.info(corona.toString());\n\n\n }\n } catch (IOException | CsvValidationException e){\n e.printStackTrace();\n } finally {\n if(reader!=null)\n {\n try\n {\n reader.close();\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }\n }\n }\n }" ]
[ "0.6583093", "0.62134594", "0.614241", "0.6096163", "0.5869904", "0.5847323", "0.57736564", "0.5749311", "0.5730464", "0.5692395", "0.5691314", "0.5688622", "0.56733465", "0.5612722", "0.56103665", "0.5601378", "0.5594937", "0.5592374", "0.55869794", "0.5565921", "0.5544678", "0.5536762", "0.54946375", "0.5486974", "0.5463075", "0.54603523", "0.5455832", "0.54501116", "0.5445156", "0.5444004", "0.54084784", "0.53984827", "0.53917515", "0.53882813", "0.5388208", "0.5379494", "0.5379087", "0.53540117", "0.53484684", "0.53395474", "0.5337806", "0.53348553", "0.5326429", "0.531917", "0.5268467", "0.52664775", "0.52625597", "0.5256478", "0.5245691", "0.52455944", "0.5244061", "0.52287424", "0.52114916", "0.52114564", "0.5211055", "0.5206053", "0.5198744", "0.51842344", "0.51793087", "0.51495117", "0.5128515", "0.5107465", "0.510662", "0.51056135", "0.50985986", "0.5097996", "0.5095179", "0.5078455", "0.5071949", "0.5062537", "0.5048053", "0.5045186", "0.50360614", "0.5034012", "0.5032612", "0.5029762", "0.5028272", "0.5023831", "0.50128245", "0.50107193", "0.50062126", "0.49853772", "0.49811625", "0.4979578", "0.49694157", "0.4958413", "0.49560702", "0.49543408", "0.49509862", "0.49456567", "0.49427602", "0.49422622", "0.49398386", "0.4935916", "0.4927577", "0.49200827", "0.49151728", "0.49094823", "0.49054155", "0.49049369", "0.49020037" ]
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table schedule
public void setLimit(int limit) { this.limit = limit; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void generateSchedule(){\n\t\t\n\t}", "@Dao\npublic interface schedule_Dao {\n\n @Query(\"SELECT * FROM Schedule where student_id = :studentId\")\n List<Schedule> getSchedulesStudent(String studentId);\n\n\n\n @Query(\"SELECT COUNT(pkey) FROM Schedule where student_id = :student_id\")\n int getScheduleCount(String student_id);\n\n\n\n @Query(\"SELECT * FROM Schedule where student_id = :studentId and active = :active or active = :Active\")\n List<Schedule> getActiveSchedules(String active,String Active, String studentId);\n\n\n @Query(\"SELECT * FROM Schedule where `endtime_null` >= :date and `starttime_null` <= :date and student_id = :studentId and active = :active or active = :Active \")\n List<Schedule> getSelEvents(String active,String Active, String studentId, String date);\n\n\n @Query(\"SELECT * FROM Schedule where `endtime` >= :date and `starttime` <= :date and student_id = :studentId and active = :active or active = :Active \")\n List<Schedule> getSelEventTime(String active,String Active, String studentId, String date);\n\n\n @Insert\n void insertAll(Schedule... schedules);\n\n @Insert(onConflict = OnConflictStrategy.IGNORE)\n void insertOnConflict(Schedule... schedules);\n\n @Query(\"DELETE FROM Schedule\")\n public abstract int DeleteToken();\n\n @Query(\"DELETE FROM Schedule where pkey = :p_key and student_id = :studentId\")\n public abstract int DeleteSchedule(String p_key,String studentId );\n\n\n @Query(\"DELETE FROM Schedule where student_id= :studentId\")\n public abstract int DeleteScheduleAllUser(String studentId);\n\n\n}", "Schedule selectByPrimaryKey(Integer id);", "public interface JobScheduleMapper {\n @Select(\"select * from job_schedule where id = #{id}\")\n public JobSchedule findById(@Param(\"id\") long id);\n\n @Select(\"select status from job_schedule where id = #{id}\")\n public int getStatus(@Param(\"id\")long id);\n\n @Insert(\"insert into job_schedule (created_datetime, schedule_datetime, job_id, job_group_name, run_as, status) \" +\n \"values(#{created_datetime}, #{schedule_datetime}, #{job_id}, #{job_group_name}, #{run_as}, #{status})\")\n @Options(useGeneratedKeys = true, keyProperty = \"id\", keyColumn = \"id\")\n public void insert(JobSchedule jobSchedule);\n\n @Update(\"update job_schedule set status = #{status} where id = #{id}\")\n public void updateStatus(@Param(\"id\") long id, @Param(\"status\")int status);\n\n @Update(\"update job_schedule set status = \" + JobSchedule.JOB_SCHEDULE_STATUS_PENDING + \", retried = retried + 1 where id = #{id}\")\n public void retry(@Param(\"id\") long id);\n\n @Update(\"update job_schedule set next_job_schedule_id = #{nextId} where id = #{thisId}\")\n public void updateNextScheduleId(@Param(\"thisId\")long thisId, @Param(\"nextId\")long nextId);\n}", "Schedule createSchedule();", "java.lang.String getSchedule();", "public Schedule() {\n\t\t// TODO Auto-generated constructor stub\n\t}", "public void generateSchedule(){\r\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"yyyy-MM-dd HH:mm:ss\"); // Date formatter used when getting SQL records\r\n Database db = new Database();\r\n Connection connection = null;\r\n String sql = \"\";\r\n String report = \"\";\r\n \r\n // Retrieve the inputted consultant's id\r\n User user = (User) combo_user.getValue();\r\n int userID = user.getId();\r\n try{\r\n connection = db.jdbc_connection.connect();\r\n Statement statement = connection.createStatement(); // Set up statement\r\n \r\n sql = \"SELECT appointment.appointmentID, customer.customerName, appointment.title, appointment.description, appointment.location, appointment.contact, \" +\r\n \"appointment.type, appointment.url, appointment.start, appointment.end FROM appointment \" +\r\n \"INNER JOIN customer ON appointment.customerID=customer.customerID \" +\r\n \"WHERE userID = \" + userID + \" GROUP BY appointment.start\"; \r\n ResultSet results = statement.executeQuery(sql); \r\n \r\n while(results.next()) { \r\n String customer = results.getString(\"customerName\");\r\n String title = results.getString(\"title\");\r\n String description = results.getString(\"description\");\r\n String location = results.getString(\"location\");\r\n String contact = results.getString(\"contact\");\r\n String type = results.getString(\"type\");\r\n String url = results.getString(\"url\");\r\n String start = results.getString(\"start\");\r\n String end = results.getString(\"end\");\r\n \r\n \r\n // Convert the start and end DATETIMES to the user's current timezone \r\n java.time.LocalDateTime start_converted = convertToCurrentZone(java.time.LocalDateTime.parse(start.replace(\".0\", \"\"), formatter));\r\n String month = start_converted.getMonth().toString();\r\n int day = start_converted.getDayOfMonth();\r\n int hour = start_converted.getHour();\r\n String minute = String.valueOf(start_converted.getMinute());\r\n \r\n if(minute.length() == 1) minute += \"0\"; // Add following zeroes\r\n \r\n report += month + \" \" + day + \" at \" + hour + \":\" + minute + \" - appointment with \" + customer + \"\\n\";\r\n } \r\n }catch(Exception e) {\r\n System.out.println(e.getMessage());\r\n }finally {\r\n try {\r\n connection.close();\r\n } catch (Exception e2) { // Closing databse error handling\r\n System.err.println(e2.getMessage());\r\n }\r\n } \r\n \r\n text_schedule.setText(report);\r\n }", "public int getSchedule_id() {\r\n return schedule_id;\r\n }", "io.opencannabis.schema.commerce.CommercialOrder.OrderScheduling getScheduling();", "List<WorkingSchedule> getAll();", "@Override\n\t\tpublic List<ProgramScheduledBean> getAllScheduleProgram()\n\t\t\t\tthrows UniversityException {\n\t\t\treturn dao.getAllScheduleProgram();\n\t\t}", "public interface ScheduleDao {\n int crewTally();\n ArrayList<avail> getAllAvailibility();\n ArrayList<ShiftDetails> getShiftDetails();\n int updateShiftSwapStatus();\n}", "@Override\n\tpublic List<ScheduleTask> getScheduleTaskList() {\n\t\treturn (List<ScheduleTask>) find(\"from ScheduleTask\");\n\t}", "public List<UserRace> selectAllSchedule() {\n\t\tString sql = \"select \" + COLUMNS + \" FROM UserRace WHERE mode = '\"\n\t\t\t\t+ UserRace.MODE_SCHEDULE + \"'\";\n\t\treturn getJdbcTemplate().query(sql, new UserRaceRowMapper());\n\t}", "@Override\r\n\tpublic List<Courseschedule> getAllCourseschedules() {\n\t\tsession = sessionFactory.openSession();\r\n\t\tTransaction tran = session.beginTransaction();\r\n\t\tString hql = \"from Courseschedule where state=:state\";\r\n\t\tQuery query = session.createQuery(hql).setInteger(\"state\", 0);\r\n\t\tList<Courseschedule> lists = query.list();\r\n\t\ttran.commit();\r\n\t\tsession.close();\r\n\t\tlogger.debug(\"use the method named :getAllCourseschedules()\");\r\n\t\tif (lists.size() > 0) {\r\n\t\t\treturn lists;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "List<Schedule> selectByExample(ScheduleCriteria example);", "public static List<Schedule> fetchGeneratedSchedules() {\r\n if (!isComplete()) {\r\n return null;\r\n }\r\n\r\n return generatedSchedules;\r\n }", "@Override\n\tpublic void UpdateTableSchedule(Schedule current) {\n\t\tif (current == null)\n\t\t\treturn;\n\t\tCurrFitness = current.fitness;\n\t\tmyLabelSchedule.setText(\"Current Schedule Fitness: \" + CurrFitness);\n\t\tfor (int station = 1; station <= current.stations.size(); station++) {\n\t\t\tfor (int i = 0; i < dtm.getRowCount(); i++) {\n\t\t\t\tdtm.setValueAt(\"\", i, station);\n\t\t\t}\n\t\t\t// @Debug System.out.println(\"TableLength: \"+tableLength);\n\t\t\tStationSlot currentStation = current.stations.get(station - 1);\n\t\t\tif (currentStation.registeredCars.size() == 0) {\n\t\t\t\tcontinue;\n\t\t\t} else {\n\t\t\t\tLinkedList<CarSlot> cars = currentStation.registeredCars;\n\t\t\t\tfor (int i = 0; i < cars.size(); i++) {\n\t\t\t\t\tCarSlot car = cars.get(i);\n\t\t\t\t\tfloat start = car.startTime;\n\t\t\t\t\tfloat duration = car.duration;\n\t\t\t\t\tint rowNum = (int) (start * (60 / interval));\n\t\t\t\t\t// System.out.println(\"ColumNum: \"+rowNum);\n\t\t\t\t\twhile (duration > 0) {\n\t\t\t\t\t\tdtm.setValueAt(\"Car \" + car.name + \" [\" + car.priority + \"]\" + \" - \" + car.type, rowNum, station);\n\t\t\t\t\t\trowNum++;\n\t\t\t\t\t\tduration = (float) (duration - interval / 60f);\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n\tpublic List<ScheduledFlights> retrieveAllScheduledFlights() {\t\r\n\t\tTypedQuery<ScheduledFlights> query = entityManager.createQuery(\"select s from ScheduledFlights s, Flight f,Schedule sc where s.flight = f and s.schedule=sc\",ScheduledFlights.class);\r\n\t\tList<ScheduledFlights> flights = query.getResultList();\r\n\t\treturn flights;\r\n\t}", "public boolean generateSchedule(){\r\n return true;\r\n }", "public void existingSchedules(){\n \n scheduleModel = (DefaultTableModel) displayTable.getModel();\n \n currentSchedules = AccessDataFromXML.retrieveSchedules();\n for (Schedule schedule : currentSchedules){\n \n \n Object[] o = new Object[1];\n o[0] = schedule.getName();\n scheduleModel.addRow(o);\n }\n \n \n\n }", "public Schedule getSchedule() {\n\n return schedule;\n }", "private List<Schedules> getSchedulesList(){\r\n//\t\tList<Schedules> list = new ArrayList<Schedules>();\r\n//\t\tSchedules s1 = new Schedules(1, \"Baidu\", \"BUPT\", \"2013-09-11\", \"12:30\");\r\n//\t\tSchedules s2 = new Schedules(2, \"Sina\", \"BUPT\", \"2013-09-11\", \"13:50\");\r\n//\r\n//\t\tlist.add(s1);\r\n//\t\tlist.add(s2);\r\n\t\tif (scheduleList == null) {\r\n\t\t\tscheduleList = mAppContext.scheduleGetAll();\r\n\t\t}\r\n\t\treturn scheduleList;\r\n//\t\treturn list;\r\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\tpublic List<TimeTableBean> getTimeTable() {\n\t\treturn sessionFactory.openSession().createQuery(\"from TimeTableBean\").list();\r\n\t}", "@Override\n\tpublic List<ScheduleTask> getScheduleTaskList() {\n\t\treturn scheduleTaskDAO.getScheduleTaskList();\n\t}", "abstract public void computeSchedule();", "SchedulingPlay selectByPrimaryKey(Long id);", "public List<WorkoutSchedule> getSchedules() {\n if (schedules == null) {\n if (daoSession == null) {\n throw new DaoException(\"Entity is detached from DAO context\");\n }\n WorkoutScheduleDao targetDao = daoSession.getWorkoutScheduleDao();\n List<WorkoutSchedule> schedulesNew = targetDao._queryWorkout_Schedules(id);\n synchronized (this) {\n if(schedules == null) {\n schedules = schedulesNew;\n }\n }\n }\n return schedules;\n }", "private void refreshScheduleTable() {\n\t\tint gameIdx = 0;\n\t\tList<GameDetails> games = getGames();\n\t\tif (games != null) {\n\t\t\tfor (GameDetails game : games) {\n\t\t\t\tfor (int i = 0; i < 2; i++) {\n\t\t\t\t\tboolean isHome = (i == 0);\n\n\t\t\t\t\tTeamDetails team = (isHome ? game.getHomeTeam() : game.getAwayTeam()); \n\n\t\t\t\t\tboolean isSelected = false;\n\t\t\t\t\tboolean canSelect = true;\n\t\t\t\t\tif (getUiHandlers() != null) {\n\t\t\t\t\t\tisSelected = getUiHandlers().isTeamSelected(team);\n\t\t\t\t\t\tcanSelect = getUiHandlers().canSelectTeam(team);\n\t\t\t\t\t}\n\n\t\t\t\t\tString text = (isHome ? \"@ \" + team.getDisplayName() : team.getDisplayName());\n\n\t\t\t\t\tint row = rowFromGameIdx(gameIdx, isHome);\n\t\t\t\t\tint col = colFromGameIdx(gameIdx, isHome);\n\n\t\t\t\t\tsetScheduleCell(row, col, text, isSelected, canSelect);\t\n\t\t\t\t}\n\n\t\t\t\tgameIdx++;\n\t\t\t}\n\t\t}\n\n\t\t// Clear out any remaining cells (in case of bye weeks).\n\t\tfor (; gameIdx < NFLConstants.MAX_GAMES_PER_WEEK; gameIdx++) {\n\t\t\tfor (int i = 0; i < 2; i++) {\n\t\t\t\tboolean isHome = (i == 0);\n\t\t\t\t\n\t\t\t\tint row = rowFromGameIdx(gameIdx, isHome);\n\t\t\t\tint col = colFromGameIdx(gameIdx, isHome);\n\n\t\t\t\tsetScheduleCell(row, col, \"\", false, true);\n\t\t\t}\n\t\t}\n\t}", "public int getScheduleMethod() {\n return scheduleMethod;\n }", "private static Entity addScheduleDateDataEntities(final Schema schema) {\n Entity scheduleDateData = schema.addEntity(\"ScheduleDateData\");\n scheduleDateData.addIdProperty().primaryKey().autoincrement();\n scheduleDateData.addIntProperty(\"schedule_id\").notNull();\n scheduleDateData.addStringProperty(\"schedule_name\");\n scheduleDateData.addStringProperty(\"class_id\");\n scheduleDateData.addStringProperty(\"class_name\");\n scheduleDateData.addStringProperty(\"class_desc\");\n scheduleDateData.addStringProperty(\"schedule_type_id\");\n scheduleDateData.addStringProperty(\"schedule_type\");\n scheduleDateData.addStringProperty(\"schedule_start_date\");\n scheduleDateData.addStringProperty(\"schedule_start_time\");\n scheduleDateData.addStringProperty(\"schedule_end_time\");\n scheduleDateData.addLongProperty(\"schedule_start_time_long\");\n scheduleDateData.addLongProperty(\"schedule_end_time_long\");\n scheduleDateData.addIntProperty(\"schedule_monday\");\n scheduleDateData.addIntProperty(\"schedule_tuesday\");\n scheduleDateData.addIntProperty(\"schedule_wednesday\");\n scheduleDateData.addIntProperty(\"schedule_thursday\");\n scheduleDateData.addIntProperty(\"schedule_friday\");\n scheduleDateData.addIntProperty(\"schedule_saturday\");\n scheduleDateData.addIntProperty(\"schedule_sunday\");\n scheduleDateData.addStringProperty(\"schedule_frequency\");\n scheduleDateData.addIntProperty(\"is_cancelled\");\n scheduleDateData.addIntProperty(\"is_reservable\");\n scheduleDateData.addStringProperty(\"instructor_id\");\n scheduleDateData.addStringProperty(\"instructor_name\");\n scheduleDateData.addStringProperty(\"location_id\");\n scheduleDateData.addStringProperty(\"location_name\");\n\n return scheduleDateData;\n }", "public static String listScheduleIdSymbol(int tambahanBolehABs) {\n DBResultSet dbrs = null;\n String result = \"\";\n try {\n Date dtStart = new Date();\n Date dtEnd = new Date();\n String dtManual = \"\";\n boolean crossDay = false;\n //dtStart.setHours(dtStart.getHours()-tambahanBolehABs);\n dtStart = new Date(dtStart.getYear(), dtStart.getMonth(), (dtStart.getDate()), (dtStart.getHours() - tambahanBolehABs), dtStart.getMinutes(), dtStart.getSeconds());\n dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate()), (dtEnd.getHours() + tambahanBolehABs), dtEnd.getMinutes(), dtEnd.getSeconds());\n int jamMelebihiOneDay = 23;\n if (dtStart.getHours() == 0 || dtStart.getHours() == 23) {\n dtManual = \"23:\" + \"59:\" + \"59\";\n crossDay = true;\n jamMelebihiOneDay = jamMelebihiOneDay + tambahanBolehABs;\n }\n if (dtEnd.getHours() == 0) {\n dtManual = \"23:\" + \"59:\" + \"59\";\n crossDay = true;\n jamMelebihiOneDay = jamMelebihiOneDay + tambahanBolehABs;\n }\n\n// String dtManual=\"\";\n// if(dt.getHours()==0 || dt.getHours()+tambahanBolehABs>=23){\n// int idtManual = 24+tambahanBolehABs;\n// dtManual = idtManual+\":59:00\" ;\n// }else{\n// dt.setHours(dt.getHours()+tambahanBolehABs);\n// }\n\n String sql = \"SELECT * FROM \" + PstScheduleSymbol.TBL_HR_SCHEDULE_SYMBOL\n + \" WHERE \\\"00:00:00\\\" <=\" + PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT]\n + \" AND \" + PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN] + \"<= \\\"\"\n + \"23:59:00\"\n //+ (dtStart.getHours() == 0 || dtStart.getHours() == 23 || dtEnd.getHours() == 0 ? dtManual : Formater.formatDate(dtEnd, \"HH:mm:00\"))\n + \"\\\"\";\n //+ \" WHERE \" + \"(\"+PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN] +\" BETWEEN \\\"00:00:00\\\" AND \\\"\"+ (crossDay?dtManual:Formater.formatDate(dtStart, \"HH:mm:00\")) +\"\\\") OR (\"+PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT] +\" BETWEEN \\\"00:00:00\\\" AND \\\"\"+Formater.formatDate(dtEnd, \"HH:mm:00\")+\"\\\")\";\n\n dbrs = DBHandler.execQueryResult(sql);\n ResultSet rs = dbrs.getResultSet();\n while (rs.next()) {\n dtEnd = new Date();\n dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate()), (dtEnd.getHours() + tambahanBolehABs), dtEnd.getMinutes(), dtEnd.getSeconds());\n \n Date schTimeIn = rs.getTime(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN]);\n\n Date schTimeOut = rs.getTime(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT]);\n Date dtTmpSchTimeIn = new Date();\n Date dtTmpSchTimeOut = new Date();\n\n\n if (schTimeIn != null && schTimeOut != null) {\n schTimeOut = new Date(dtTmpSchTimeOut.getYear(), dtTmpSchTimeOut.getMonth(), dtTmpSchTimeOut.getDate(), schTimeOut.getHours(), schTimeOut.getMinutes());\n schTimeIn = new Date(dtTmpSchTimeIn.getYear(), dtTmpSchTimeIn.getMonth(), dtTmpSchTimeIn.getDate(), schTimeIn.getHours(), schTimeIn.getMinutes());\n\n Date dtCobaTimeOut = new Date(schTimeOut.getYear(), schTimeOut.getMonth(), (schTimeOut.getDate()), (schTimeOut.getHours() + tambahanBolehABs), schTimeOut.getMinutes(), schTimeOut.getSeconds());\n boolean melebihiHari=false;\n if (schTimeIn.getHours() == 0 || schTimeOut.getHours() == 0) {\n \n } else {\n if (dtCobaTimeOut.getDate() > schTimeIn.getDate()) {\n //dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate() + 1), (dtEnd.getHours()), dtEnd.getMinutes(), dtEnd.getSeconds());\n melebihiHari=true;\n }\n\n if ( (melebihiHari && dtEnd.getHours()<dtCobaTimeOut.getHours()) || schTimeIn.getTime() <= dtEnd.getTime() || (schTimeIn.getHours() > schTimeOut.getHours() && dtEnd.getTime() < schTimeOut.getTime())) {\n result = result + rs.getString(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_SCHEDULE_ID]) + \",\";\n }\n }\n\n\n\n\n\n }\n\n }\n if (result != null && result.length() > 0) {\n result = result.substring(0, result.length() - 1);\n }\n rs.close();\n return result;\n\n } catch (Exception e) {\n System.out.println(e);\n } finally {\n DBResultSet.close(dbrs);\n }\n return result;\n }", "public interface ScheduleDao {\r\n\tpublic Schedule createSchedule(Calendar scheduleDate) throws DAOException;\r\n\tpublic Schedule findScheduleById(long scheduleId) throws DAOException;\r\n\tpublic List<Schedule> findSchedulesByDate(Calendar scheduleDate) throws DAOException;\r\n\tpublic List<Schedule> findAllSchedules() throws DAOException;\r\n\tpublic void updateSchedule(long scheduleId, Calendar newScheduleDate) throws DAOException;\r\n\tpublic void deleteScheduleById(long scheduleId) throws DAOException;\r\n\tpublic void deleteAllSchedules() throws DAOException;\r\n}", "public String getSchedule() {\n return schedule;\n }", "public Schedule getSchedule() {\r\n\t\treturn schedule;\r\n\t}", "public ScheduleType getScheduleType();", "public interface ScheduleService {\n BasicSchedule getBasicScheduleByHostelIdAndRoomType(long hostelId, RoomType type);\n\n /**\n * 获得最近一年的酒店基本计划\n *\n * @param hostelId\n * @return\n */\n List<BasicSchedule> getBasisSchedulesByHostelId(long hostelId);\n\n void modifyBasisSchedule(BasicSchedule basicSchedule);\n\n /**\n * 获得最近一年的酒店特殊计划\n *\n * @param hostelId\n * @return\n */\n List<SpecialSchedule> getSpecialScheduleByHostelId(long hostelId);\n\n void modifySpecialSchedule(SpecialSchedule specialSchedule);\n\n void addSpecialSchedule(SpecialSchedule specialSchedule);\n\n void deleteSpecialSchedule(SpecialSchedule specialSchedule);\n\n SpecialSchedule getSpecialSchedule(long hostelId, RoomType roomType, Date date);\n}", "private void loadScheduleList() {\n\n if (listTbagendamentos != null && !listTbagendamentos.isEmpty()) {\n scheduleAgendamento.clear();\n\n for (Tbagendamento agendamento : listTbagendamentos) {\n DefaultScheduleEvent defaultScheduleEvent = new DefaultScheduleEvent();\n defaultScheduleEvent.setTitle(agendamento.getIdcliente().getNmcliente());\n\n Calendar dtDataInicial = new GregorianCalendar();\n dtDataInicial.setTime(agendamento.getTmdataagendamento());\n\n defaultScheduleEvent.setStartDate(dtDataInicial.getTime());\n\n Calendar dtDataFinal = new GregorianCalendar();\n dtDataFinal.setTime(agendamento.getTmdataagendamento());\n dtDataFinal.set(Calendar.MINUTE, dtDataFinal.get(Calendar.MINUTE) + 30);\n\n defaultScheduleEvent.setEndDate(dtDataFinal.getTime());\n defaultScheduleEvent.setData(agendamento.getIdagendamento());\n scheduleAgendamento.addEvent(defaultScheduleEvent);\n }\n }\n }", "public Schedule() {\r\n }", "public void setSchedule(Schedule schedule) {\r\n\t\tthis.schedule = schedule;\r\n\t}", "List<WorkingSchedule> getByPlaceId(Long placeId);", "public ProgramScheduled getProgramScheduleById(int scheduleId);", "public ArrayList<TrainScheduleEntity> viewTrainSchedule(String dayType);", "java.lang.String getSnapshotCreationSchedule();", "io.opencannabis.schema.commerce.CommercialOrder.SchedulingType getScheduling();", "@Override\r\n\tpublic void doInitialSchedules() {\n\t}", "void setSchedule(java.lang.String schedule);", "ScheduleStartType getScheduleStart();", "public abstract void schedule();", "public void setSchedule(Schedule newSchedule) {\n\n schedule = newSchedule;\n }", "@Mapper\npublic interface VirtualRepayFlowMapper {\n @DataSource(\"bigdata2_jdb\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE update_time >= #{from_time} and update_time < #{end_time} and id>#{id} limit 1000\")\n List<VirtualRepayFlow> find(@Param(\"from_time\") String from_time,\n @Param(\"end_time\") String end_time,\n @Param(\"id\") long id);\n\n\n @DataSource(\"dmp\")\n @Insert(\"INSERT INTO virtual_repay_flow (id,uuid,virtual_productid,to_user,amount,interest,repay_status,repay_time,create_time,update_time) values\" +\n \"(#{id},#{uuid},#{virtual_productid},#{to_user},#{amount},#{interest},#{repay_status},#{repay_time},#{create_time},#{update_time})\")\n void insert(VirtualRepayFlow virtualRepayFlow);\n\n @DataSource(\"dmp\")\n @Delete(\"DELETE FROM repay_flow where update_time<#{update_time}\")\n void delete(@Param(\"update_time\") String update_time);\n\n @DataSource(\"dmp\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE id=#{id}\")\n VirtualRepayFlow getById(@Param(\"id\") long id);\n\n\n @DataSource(\"dmp\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE uuid=#{uuid}\")\n VirtualRepayFlow getByUuid(@Param(\"uuid\") String uuid);\n}", "public abstract void maintenanceSchedule() ;", "@Override\n public List<SurveillantSchedule> getSurveillantSchedule() {\n return surveillantRepository.getSurveillantSchedule();\n }", "long getScheduleID() {return mScheduleID; }", "com.google.cloud.gkebackup.v1.BackupPlan.Schedule getBackupSchedule();", "public String getScheduleRow() {\n\t\treturn uSRow;\n\t}", "public void setSchedule_id(int schedule_id) {\r\n this.schedule_id = schedule_id;\r\n }", "public void printSchedule(){\n String\n format =\n \"%-20s%-10s%-15s%\" +\n \"-20s%-25s%-10s%\" +\n \"-15s%-15s%-15s%n\";\n\n System.out.printf(format,\n \"Водитель\", \"Номер А/М\",\"Машина\", \"Дата и время\",\n \"Задание\", \"Кол-во\",\n \"Расстояние\", \"Цена\", \"Примечание\");\n System.out.println();\n\n\n\n List<TimeTable> l = driverScheduleReaderDAO.getTimeTable();\n TimeTable tPrev =l.get(0);\n for (TimeTable t: l){\n\n if (!t.getDriverName().equals(tPrev.getDriverName())) {\n\n System.out.println(\"***\");\n tPrev = t;\n\n } else if (t!=l.get(0))t.setDriverName(\" \");\n\n\n\n\n System.out.printf(format,\n t.getDriverName(), t.getCarId(), t.getCarBrand(),\n t.getBusyTime(), t.getOrder(), t.getNumOfEl(),\n t.getDistance(), t.getPrice(), t.getNote()\n );\n\n }\n\n //int\n\n\n\n\n //вывести на экран\n //отельным классом посчитать шанс поломки и предупредить\n }", "public void schedule(String id, String[] schedule) {\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic List<ISchedule> getSchedules() throws IOException {\n\t\tfinal String sql = \"SELECT * from record\";\n\t\tList<? extends ISchedule> result = this.queryDataList(Schedule.class,ISchedule.Props.class, sql);\n\t\treturn (List<ISchedule>) result;\t\t\n\t}", "public List<AllTimeSeasonBean> getAllTimeRecord(){\n String q = \"select new com.main.pcblroyals.bean.AllTimeSeasonBean( \" +\n \"sum(case when g.teamScore > g.opponentScore then 1 else 0 end), \" +\n \"sum(case when g.teamScore = g.opponentScore then 1 else 0 end), \" +\n \"sum(case when g.teamScore < g.opponentScore then 1 else 0 end) \" +\n \") \" +\n \"from seasons s \" +\n \"join games g on s.id = g.season.id \";\n Query query = entityManager.createQuery(q);\n return (List<AllTimeSeasonBean>) query.getResultList();\n }", "@Override\n public String getEndPoint() {\n return \"/v1/json/schedule\";\n }", "@GetMapping\n public List<ScheduleDTO> getAllSchedules() {\n List<Schedule> scheduleList = scheduleService.getAllSchedules();\n\n List<ScheduleDTO> scheduleDTOList = scheduleList.stream()\n .map(ScheduleController::convertScheduleToScheduleDTO)\n .collect(Collectors.toList());\n return scheduleDTOList;\n }", "public interface ScheduleListDao extends GenericDao<ScheduleList, Long> {\n\t\n\tpublic List<ScheduleList> findShceduleList(String scheduleId); \n\t\n\t /**\n * 自服务项列表\n * @return\n */\n public Page findScheduleList(String pageSize);\n\t\n}", "public void storeRegularDayTripStationScheduleWithRS();", "@MapperScan\npublic interface DSSettingMapper {\n\n @Insert(\"INSERT INTO ds_setting (dsId, dsAppointment2,dsAppointment3,outCoachIds,status,modifyTime)\" +\n \" VALUES(#{dsId},#{dsAppointment2},#{dsAppointment3},#{outCoachIds},#{status},NOW())\")\n int insertDssetting(DSSetting dsSetting);\n\n @Update(\"UPDATE ds_setting SET dsAppointment2 = #{dsAppointment2},\" +\n \" dsAppointment3 = #{dsAppointment3}, outCoachIds = #{outCoachIds}, \" +\n \"status = #{status}, modifyTime = NOW() \" +\n \"WHERE dsId = #{dsId}\")\n int updateDssetting(DSSetting dsSetting);\n\n @Select(\"SELECT * FROM ds_setting WHERE dsId = #{dsId}\")\n DSSetting findOneDSSetting(@Param(\"dsId\") Long dsId);\n}", "public String getScheduleExpression() {\n return this.scheduleExpression;\n }", "@Override\n\tpublic List<SchedulerJobEntity> getAllScheduledJobs() throws SchedulerException {\n\t\treturn schedulerRepository.findAll();\n\t}", "@Override\n\t\tpublic oep_ResponseInfo getTestscheduledetails(String id) {\n\t\t\t\n\t\t\t\n\t\t\tString query = \" SELECT a.`ques_master_id`,`is_test_started`,a.`id`,`sub_id`,a.`batch`,DATE_FORMAT(`testdate`,'%m/%d/%Y')newtestdate,a.`start_time`, a.`end_time`,a.`status`,b.`test_name`,`test_id`,\"\n\t\t\t\t\t+ \"HOUR(a.`start_time`)starthour,MINUTE(a.`start_time`)startminute, HOUR(a.`end_time`)endhour,MINUTE(a.`end_time`)endminute,\"\n\t\t\t\t\t+ \" DATE_FORMAT(`testdate`,'%d/%m/%Y')testdate, SUBSTRING_INDEX(a.`start_time`,' ',-1)startformatt,SUBSTRING_INDEX(a.`end_time`,' ',-1)endformatt,\"\n\t\t\t\t\t+ \"GROUP_CONCAT(f.`username`,' ',CASE WHEN `is_participant_start` = 2 THEN ' completed \\n' WHEN `is_participant_start` = 1 THEN 'Started \\n' ELSE 'Not started \\n'END)username,\"\n\t\t\t\t\t+ \"`is_participant_start`,h.`username`facname FROM `test_schedule` a JOIN `question_master` b ON a.`ques_master_id` = b.`id` \"\n\t\t\t\t\t+ \"JOIN `course_scheduling`c ON c.`cs_id`= a.`batch` JOIN `participants_registration_course_details`e ON e.`course_id`= c.`cs_id` \"\n\t\t\t\t\t+ \" JOIN `participants`f ON f.`participant_id`=e.`participant_id` \"\n\t\t\t\t\t+ \"LEFT JOIN `test_participants`g ON g.`part_id`= f.`participant_id` AND g.`ts_id`=a.`id`\"\n\t\t\t\t\t+ \" JOIN `faculty_master`h ON h.`faculty_id` = c.`faculty_name` WHERE a.`id`= \"+id+\" \";\n\t\t\t\n\t\t\t\n\t\t\tlog.info(query);\n\t\t\t\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tList<Object> List = jdbcTemplate.query(query, new RowMapper() {\n\t\t\t\tint count = 0;\n\t\t\t\t@Override\n\t\t\t\tpublic Object mapRow(ResultSet rs, int arg1) throws SQLException {\n\t\t\t\t\t\n\t\t\t\t\tMap<String, Object> map = new HashMap<String, Object>();\n\t\t\t\t\tmap.put(\"testid\", rs.getString(\"test_id\"));\n\t\t\t\t\tmap.put(\"startformat\", rs.getString(\"startformatt\"));\n\t\t\t\t\tmap.put(\"endformat\", rs.getString(\"endformatt\"));\t\n\t\t\t\t\tmap.put(\"facname\", rs.getString(\"facname\"));\n\t\t\t\t\tmap.put(\"quesid\", rs.getString(\"ques_master_id\"));\n\t\t\t\t\tmap.put(\"id\", rs.getString(\"id\"));\n\t\t\t\t\tmap.put(\"tsid\", rs.getString(\"id\"));\n\t\t\t\t\tmap.put(\"batch\", rs.getString(\"batch\"));\n\t\t\t\t\tmap.put(\"testdate\", rs.getString(\"testdate\"));\n\t\t\t\t\tmap.put(\"newtestdate\", rs.getString(\"newtestdate\"));\n\t\t\t\t\tmap.put(\"subid\", rs.getString(\"sub_id\"));\n\t\t\t\t\tmap.put(\"starthour\", rs.getString(\"starthour\"));\n\t\t\t\t\tmap.put(\"endhour\", rs.getString(\"endhour\"));\n\t\t\t\t\tmap.put(\"startminute\", rs.getString(\"startminute\"));\n\t\t\t\t\tmap.put(\"endminute\", rs.getString(\"endminute\"));\n\t\t\t\t\tmap.put(\"starttime\", rs.getString(\"start_time\"));\n\t\t\t\t\tmap.put(\"testname\", rs.getString(\"test_name\"));\n\t\t\t\t\tmap.put(\"username\", rs.getString(\"username\"));\n\t\t\t\t\tmap.put(\"starttest\", rs.getString(\"is_test_started\"));\n\t\t\t\t\tmap.put(\"participantstart\", rs.getString(\"is_participant_start\"));\n\t\t\t\t\tmap.put(\"endtime\", rs.getString(\"end_time\"));\n/*\t\t\t\t\t\n\t\t\t\t\tString submenuQuery = \"SELECT `part_id`,`imh_staus`,`username`,CONCAT(`username`,' ',CASE WHEN `imh_staus` = 0 \"\n\t\t\t\t\t\t\t+ \" THEN 'Certificate Not sent ' WHEN `imh_staus` = 1 THEN 'Certificate sent' \"\n\t\t\t\t\t\t\t+ \" ELSE 'Invalid 'END)status FROM `email_history`a \"\n\t\t\t\t\t\t\t+ \" JOIN `participants`b ON a.`part_id`=b.`participant_id` WHERE `ts_id` = \"+ rs.getString(\"id\");\t*/\n\t\t\t\t\t\n\t\t\t\t\tString submenuQuery = \" SELECT a.`ques_master_id`,`username`,`imh_staus`,`is_test_started`,a.`id`,a.`batch`,DATE_FORMAT(`testdate`,'%e/%c/%Y')testdate,a.`start_time`, a.`end_time`,a.`status`,b.`test_name`,`test_id`,\"\n\t\t\t\t\t\t\t+ \"CONCAT(`username`,' ',CASE WHEN `is_participant_start` = 2 THEN ' completed \\n' WHEN `is_participant_start` = 1 THEN 'Started \\n' ELSE 'Not started \\n'END)teststatus,\"\n\t\t\t\t\t\t\t+ \"`is_participant_start` FROM `test_schedule` a JOIN `question_master` b ON a.`ques_master_id` = b.`id` \"\n\t\t\t\t\t\t\t+ \"JOIN `course_scheduling`c ON c.`cs_id`= a.`batch` JOIN `participants_registration_course_details`e ON e.`course_id`= c.`cs_id` \"\n\t\t\t\t\t\t\t+ \" JOIN `participants`f ON f.`participant_id`=e.`participant_id` \"\n\t\t\t\t\t\t\t+ \"LEFT JOIN `test_participants`g ON g.`part_id`= f.`participant_id` AND g.`ts_id`=a.`id`\"\n\t\t\t\t\t\t\t+ \"JOIN `email_history`h ON h.`ts_id`= a.`id` WHERE a.`id`= \"+ rs.getString(\"id\");\n\t\t\t\t\t\n\t\t\t\t\t List<Object> submenuList = new ArrayList<Object>();\n\t\t\t\t\t submenuList = getPartStatusList(submenuQuery);\n\t\t\t\t\t map.put(\"submenuList\", submenuList);\n\t\t\t\t\t\n\t\t\t\t\tif(rs.getString(\"status\")!= null && rs.getString(\"status\").equals(\"1\")){\n\t\t\t\t\t\tmap.put(\"status\", \"Active\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tmap.put(\"status\", \"Inactive\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(rs.getString(\"is_test_started\")!= null && rs.getString(\"is_test_started\").equals(\"1\")){\n\t\t\t\t\t\tmap.put(\"teststarted\", \"Test Started\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tmap.put(\"teststarted\", \"Not started\");\n\t\t\t\t\t}\n\t\t\t\t\tmap.put(\"index\", count);\n\t\t\t\t\tcount++;\n\t\t\t\t\treturn map;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t});\n\t\t\t\n\t\t\n\t\t\t \n\t\t\t \n\t\t\tresponse.setResponseType(\"S\");\n\t\t\tresponse.setResponseObj(List);\n\t\t\tresponseInfo.setInventoryResponse(response);\n\t\t\treturn responseInfo;\n\t\t}", "public void createTempSpecialDayTrainSchedule(Timestamp date);", "public void generatePlan(Integer id,Date fromDate, Date toDate) throws Exception;", "@Override\r\n\tpublic List<Courseschedule> getCourseschedulesByClassroomId(int classroomId) {\n\t\tsession = sessionFactory.openSession();\r\n\t\tTransaction tran = session.beginTransaction();\r\n\t\tString hql = \"from Courseschedule where classroomId=:classroomId and state=:state\";\t\t\r\n\t\tList<Courseschedule> lists = session.createQuery(hql).setInteger(\"classroomId\", classroomId).setInteger(\"state\", 0).list();\r\n\t\ttran.commit();\r\n\t\tsession.close();\r\n\t\tlogger.debug(\"use the method named :getCourseschedulesByClassroomId(int classroomId)\");\r\n\t\tif (lists.size() > 0) {\r\n\t\t\treturn lists;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public void setSchedule(String timeframe) {\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic List<ScheduledFlights> retrieveScheduledFlights(String source, String destination) {\r\n\t\tQuery query = entityManager.createQuery(\"select s.scheduleId,s.source,s.destination,s.arrivaltime,s.departuretime,f.flightNumber,f.carrierName,f.seatCapacity from Schedule s JOIN ScheduledFlights sf ON s.scheduleId=sf.scheduleId JOIN Flight f on sf.flightId=f.flightNumber where schedule.source= :source AND schedule.destination=:destination\");\r\n\t\treturn query.getResultList();\r\n\t}", "@Override\r\n\tpublic boolean updateDate(ScheduleAdminModel scheduleAdminModel) throws ClassNotFoundException, SQLException {\n\t\r\n\t\tConnection connection=ConnectionManager.openConnection();\r\nPreparedStatement statement=\r\n connection.prepareStatement(\"update courses set start_date=?,end_date=? where course_name=?\");\r\nstatement.setString(1,scheduleAdminModel.getStartDate());\r\nstatement.setString(2,scheduleAdminModel.getEndDate());\r\nstatement.setString(3,scheduleAdminModel.getCourse_name());\r\n \r\n int rows=statement.executeUpdate();\r\n\tConnectionManager.closeConnection();\r\n\tif(rows>0)\r\n\t\treturn true;\r\n\t else \r\n\t return false;\r\n\t}", "void deschedule(ScheduledJob job);", "@Query(\"select :stopName from Timetable order by id\")\n List<Integer> selectStop(String stopName);", "public Date getScheduletime() {\r\n return scheduletime;\r\n }", "public List<Timetable> getAllTimetable() throws Exception;", "public abstract ArrayList<ScheduleTime> getScheduleForDay(int day, int month, int year);", "public void setSchedule(SpaceSchedule s) {\n\t\t\n\t}", "MMSchedule() {\n mScheduleID = MMUtilities.ID_DOES_NOT_EXIST;\n mOfMedicationID = 0;\n mForPersonID = 0;\n mTimeDue = 0;\n mStrategy = MMMedication.sSET_SCHEDULE_FOR_MEDICATION;\n }", "@Override\n public void fetchScheduled(RuleKey ruleKey) {\n }", "List<Schedule> selectByExampleWithRowbounds(ScheduleCriteria example, RowBounds rowBounds);", "Schedule getSchedule(String departure, String arrival, int depYear, int depMonth);", "public void setList(ScheduleInterface<Schedule> scheduleList){\n this.scheduleList = scheduleList;\n }", "int insert(Schedule record);", "private void reloadPlanTable() {\n\t\t\r\n\t}", "public Schedule getSchedule(String route, int direction){\r\n // A schedule to hold all the data returned from the query\r\n Schedule weekdayZero = new Schedule();\r\n // Fetch the route id given the route\r\n Cursor getData = getReadableDatabase().rawQuery(\"select _id from routes where route_long_name = '\" + route + \"'\", null);\r\n // Make sure to begin at the first element of the returned data\r\n getData.moveToFirst();\r\n // Store the Route Id\r\n int route_id = getData.getInt(0);\r\n // Calendar id: (90400,90448) - Monday To Friday\r\n final String query = \"select Routes.Route_long_Name, \" +\r\n \"Calendar._Id, Stops.Stop_Name, Stop_Times.Stop_Sequence, Stop_Times.Arrival_Time, routes.route_short_name \" +\r\n \"from Trips join Calendar on Trips.Service_Id=Calendar._Id \" +\r\n \"join Routes on Trips.Route_Id=Routes._Id \" +\r\n \"join Stop_Times on Trips._Id=Stop_Times.Trip_Id \" +\r\n \"join Stops on Stop_Times.Stop_Id=Stops._Id \" +\r\n \"where Calendar._Id in \" + getDayOfTheWeek() + \" \" +\r\n \"AND Trips.Route_Id = \" + route_id + \" \" +\r\n \"AND Trips.Direction_Id = \" + direction + \" \" +\r\n \"AND Stop_Times.Arrival_Time != '' \" +\r\n \"order by arrival_time asc\";\r\n getData.moveToFirst();\r\n getData = getReadableDatabase().rawQuery(query, null);\r\n while (getData.moveToNext()){\r\n weekdayZero.insertData(getData.getString(0), getData.getInt(1), getData.getString(2), getData.getInt(3)\r\n , getData.getString(4), getData.getString(5));\r\n }\r\n return weekdayZero;\r\n }", "public Date getScheduleTime() {\n return this.scheduleTime;\n }", "@Override\n\tpublic void setDateAndSchedule(String date, String schedule) {\n\n\t}", "public MonthlyValuesTable(Database database) \n {\n //Constructor calls DbTable's constructor\n super(database);\n setTableName(\"monthlyvalues\");\n }", "public Date getScheduleDate(){\r\n\t\treturn this.scheduleDate;\r\n\t}", "com.google.cloud.compute.v1.Scheduling getScheduling();", "TimerSchedule createTimerSchedule();", "public ApiSchedule[] getSchedules() {\n return this.schedules;\n }", "@Override\n\tpublic void setDateAndSchedule(String date, String schedule) {\n\t\t\n\t}", "public interface ITimetableDAO {\n\n /**\n * Get all the timetable element of <code>Timetable</code> object <br>\n *\n * @return all the list of <code>Timetable</code> object\n * @throws Exception\n */\n public List<Timetable> getAllTimetable() throws Exception;\n\n /**\n * Get all the list element has search of <code>Timetable</code> object<br>\n *\n * @param from is the date of <code>Timetable</code> object\n * @param to is the date of <code>Timetable</code> object\n * @return all the list has search of <code>Timetable</code> object\n * @throws Exception\n */\n public List<Timetable> getListSearch(String from, String to) throws Exception;\n\n /**\n * Add the all the element of Timetable to database\n *\n * @param date the date of Timetable object, it is an\n * <code>java.sql.Date</code>\n * @param slot the slot of Timetable object, it is an int\n * @param classes the classes of Timetable object, it is a string\n * @param teacher the teacher of Timetable object, it is a string\n * @param room the room of Timetable object, it is an int\n * @throws Exception\n */\n public void addTimetable(String date, String slot, String room, String teacher, String classes) throws Exception;\n\n /**\n * Function to check Timetable exist before add\n *\n * @param date the date of Timetable object, it is an\n * <code>java.sql.Date</code>\n * @param classes the slot of Timetable object, it is an int\n * @param room the room of Timetable object, it is a string\n * @return object of Timetable or null when check exist timetable\n * @throws Exception\n */\n public Timetable checkExistRoomTimeTable(String date, String classes, String room) throws Exception;\n\n /**\n * Paginate by number of timetable in <code>Timetable</code> object <br>\n *\n * @param pageIndex the index of page, it is an <code>int</code>\n * @param pageSize the size of page, it is an <code>int</code>\n * @return list of timetable, it is a <code>java.util.List</code> object.\n * @throws java.lang.Exception\n */\n public List<Timetable> pagging(int pageIndex, int pageSize) throws Exception;\n\n /**\n * Get number of result <code>Gallery</code> object by id\n *\n * @return number result of Gallery object, it is an int\n * @throws java.lang.Exception\n */\n public int numberOfResult() throws Exception;\n\n /**\n * Function to check Timetable exist before add\n *\n * @param date the date of Timetable object, it is an\n * <code>java.sql.Date</code>\n * @param classes the slot of Timetable object, it is an int\n * @param teacher the teacher of Timetable object, it is a string\n * @return object of Timetable or null when check exist timetable\n * @throws Exception\n */\n public Timetable checkExistTeacherTimeTable(String date, String classes, String teacher) throws Exception;\n\n}", "public void setScheduleTime(Date scheduleTime) {\n this.scheduleTime = scheduleTime;\n }", "@Scheduled(cron = \"0 30 06 * * *\",zone=\"America/New_York\")\n public void populateDatabase(){\n localDateTime = LocalDateTime.now();\n log.info(\"Executed now: \"+ localDateTime.toString());\n\n // Checks if table in database is empty\n // If not empty, clears the table and populates it with new data\n if(checkEmpty()==0)\n log.info(\"Empty Table\");\n else {\n deleteTableRecords();\n log.info(\"Table not Empty\");\n }\n\n URL url = null;\n\n // Get recent date, append it to URL and establish a connection\n String pattern = \"MM-dd-yyyy\";\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(pattern);\n Date date = Date.from(Instant.now().minus(Duration.ofDays(1)));\n\n\n String dateStr = simpleDateFormat.format(date);\n\n try {\n url = new URL(\"https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_daily_reports/\"+dateStr+\".csv\");\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n HttpURLConnection httpURLConnection = null;\n try {\n httpURLConnection = (HttpURLConnection) url.openConnection();\n } catch (IOException e) {\n e.printStackTrace();\n }\n int responseCode = 0;\n try {\n responseCode = httpURLConnection.getResponseCode();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n // On successful connection, read records line by line, store records in a table\n if(responseCode==200)\n {\n log.info(\"-- Successful Connection\");\n CSVReader reader = null;\n try {\n\n BufferedReader input = new BufferedReader(new InputStreamReader(httpURLConnection.getInputStream()),8192);\n reader = new CSVReader(input);\n String[] line;\n int skipFirstLine = 0;\n while ((line = reader.readNext()) != null)\n {\n if(skipFirstLine==0)\n {\n skipFirstLine++;\n continue;\n }\n\n DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern(\"yyyy-MM-dd HH:mm:ss\");\n\n Corona corona = new Corona();\n corona.setLastUpdate(LocalDateTime.parse(line[4],dateTimeFormatter));\n if(line[7].equals(\"\"))\n line[7]=\"0\";\n if(line[9].equals(\"\"))\n line[9]=\"0\";\n if(line[10].equals(\"\"))\n line[10]=\"0\";\n if(line[8].equals(\"\"))\n line[8]=\"0\";\n if(line[5].equals(\"\"))\n line[5]=\"0\";\n if(line[6].equals(\"\"))\n line[6]=\"0\";\n\n try {\n\n corona.setConfirmed(Long.valueOf(line[7]));\n corona.setRecovered(Long.valueOf(line[9]));\n corona.setActive(Long.valueOf(line[10]));\n corona.setDeaths(Long.valueOf(line[8]));\n corona.setLatitude(Double.valueOf(line[5]));\n corona.setLongitude(Double.valueOf(line[6]));\n } catch (NumberFormatException n)\n {\n n.printStackTrace();\n }\n corona.setCountry(line[3]);\n corona.setProvince(line[2]);\n corona.setCombinedKey(line[11]);\n\n\n\n coronaRepository.save(corona);\n log.info(corona.toString());\n\n\n }\n } catch (IOException | CsvValidationException e){\n e.printStackTrace();\n } finally {\n if(reader!=null)\n {\n try\n {\n reader.close();\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }\n }\n }\n }" ]
[ "0.6583093", "0.62134594", "0.614241", "0.6096163", "0.5869904", "0.5847323", "0.57736564", "0.5749311", "0.5730464", "0.5692395", "0.5691314", "0.5688622", "0.56733465", "0.5612722", "0.56103665", "0.5601378", "0.5594937", "0.5592374", "0.55869794", "0.5565921", "0.5544678", "0.5536762", "0.54946375", "0.5486974", "0.5463075", "0.54603523", "0.5455832", "0.54501116", "0.5445156", "0.5444004", "0.54084784", "0.53984827", "0.53917515", "0.53882813", "0.5388208", "0.5379494", "0.5379087", "0.53540117", "0.53484684", "0.53395474", "0.5337806", "0.53348553", "0.5326429", "0.531917", "0.5268467", "0.52664775", "0.52625597", "0.5256478", "0.5245691", "0.52455944", "0.5244061", "0.52287424", "0.52114916", "0.52114564", "0.5211055", "0.5206053", "0.5198744", "0.51842344", "0.51793087", "0.51495117", "0.5128515", "0.5107465", "0.510662", "0.51056135", "0.50985986", "0.5097996", "0.5095179", "0.5078455", "0.5071949", "0.5062537", "0.5048053", "0.5045186", "0.50360614", "0.5034012", "0.5032612", "0.5029762", "0.5028272", "0.5023831", "0.50128245", "0.50107193", "0.50062126", "0.49853772", "0.49811625", "0.4979578", "0.49694157", "0.4958413", "0.49560702", "0.49543408", "0.49509862", "0.49456567", "0.49427602", "0.49422622", "0.49398386", "0.4935916", "0.4927577", "0.49200827", "0.49151728", "0.49094823", "0.49054155", "0.49049369", "0.49020037" ]
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table schedule
public int getLimit() { return limit; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void generateSchedule(){\n\t\t\n\t}", "@Dao\npublic interface schedule_Dao {\n\n @Query(\"SELECT * FROM Schedule where student_id = :studentId\")\n List<Schedule> getSchedulesStudent(String studentId);\n\n\n\n @Query(\"SELECT COUNT(pkey) FROM Schedule where student_id = :student_id\")\n int getScheduleCount(String student_id);\n\n\n\n @Query(\"SELECT * FROM Schedule where student_id = :studentId and active = :active or active = :Active\")\n List<Schedule> getActiveSchedules(String active,String Active, String studentId);\n\n\n @Query(\"SELECT * FROM Schedule where `endtime_null` >= :date and `starttime_null` <= :date and student_id = :studentId and active = :active or active = :Active \")\n List<Schedule> getSelEvents(String active,String Active, String studentId, String date);\n\n\n @Query(\"SELECT * FROM Schedule where `endtime` >= :date and `starttime` <= :date and student_id = :studentId and active = :active or active = :Active \")\n List<Schedule> getSelEventTime(String active,String Active, String studentId, String date);\n\n\n @Insert\n void insertAll(Schedule... schedules);\n\n @Insert(onConflict = OnConflictStrategy.IGNORE)\n void insertOnConflict(Schedule... schedules);\n\n @Query(\"DELETE FROM Schedule\")\n public abstract int DeleteToken();\n\n @Query(\"DELETE FROM Schedule where pkey = :p_key and student_id = :studentId\")\n public abstract int DeleteSchedule(String p_key,String studentId );\n\n\n @Query(\"DELETE FROM Schedule where student_id= :studentId\")\n public abstract int DeleteScheduleAllUser(String studentId);\n\n\n}", "Schedule selectByPrimaryKey(Integer id);", "public interface JobScheduleMapper {\n @Select(\"select * from job_schedule where id = #{id}\")\n public JobSchedule findById(@Param(\"id\") long id);\n\n @Select(\"select status from job_schedule where id = #{id}\")\n public int getStatus(@Param(\"id\")long id);\n\n @Insert(\"insert into job_schedule (created_datetime, schedule_datetime, job_id, job_group_name, run_as, status) \" +\n \"values(#{created_datetime}, #{schedule_datetime}, #{job_id}, #{job_group_name}, #{run_as}, #{status})\")\n @Options(useGeneratedKeys = true, keyProperty = \"id\", keyColumn = \"id\")\n public void insert(JobSchedule jobSchedule);\n\n @Update(\"update job_schedule set status = #{status} where id = #{id}\")\n public void updateStatus(@Param(\"id\") long id, @Param(\"status\")int status);\n\n @Update(\"update job_schedule set status = \" + JobSchedule.JOB_SCHEDULE_STATUS_PENDING + \", retried = retried + 1 where id = #{id}\")\n public void retry(@Param(\"id\") long id);\n\n @Update(\"update job_schedule set next_job_schedule_id = #{nextId} where id = #{thisId}\")\n public void updateNextScheduleId(@Param(\"thisId\")long thisId, @Param(\"nextId\")long nextId);\n}", "Schedule createSchedule();", "java.lang.String getSchedule();", "public Schedule() {\n\t\t// TODO Auto-generated constructor stub\n\t}", "public void generateSchedule(){\r\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"yyyy-MM-dd HH:mm:ss\"); // Date formatter used when getting SQL records\r\n Database db = new Database();\r\n Connection connection = null;\r\n String sql = \"\";\r\n String report = \"\";\r\n \r\n // Retrieve the inputted consultant's id\r\n User user = (User) combo_user.getValue();\r\n int userID = user.getId();\r\n try{\r\n connection = db.jdbc_connection.connect();\r\n Statement statement = connection.createStatement(); // Set up statement\r\n \r\n sql = \"SELECT appointment.appointmentID, customer.customerName, appointment.title, appointment.description, appointment.location, appointment.contact, \" +\r\n \"appointment.type, appointment.url, appointment.start, appointment.end FROM appointment \" +\r\n \"INNER JOIN customer ON appointment.customerID=customer.customerID \" +\r\n \"WHERE userID = \" + userID + \" GROUP BY appointment.start\"; \r\n ResultSet results = statement.executeQuery(sql); \r\n \r\n while(results.next()) { \r\n String customer = results.getString(\"customerName\");\r\n String title = results.getString(\"title\");\r\n String description = results.getString(\"description\");\r\n String location = results.getString(\"location\");\r\n String contact = results.getString(\"contact\");\r\n String type = results.getString(\"type\");\r\n String url = results.getString(\"url\");\r\n String start = results.getString(\"start\");\r\n String end = results.getString(\"end\");\r\n \r\n \r\n // Convert the start and end DATETIMES to the user's current timezone \r\n java.time.LocalDateTime start_converted = convertToCurrentZone(java.time.LocalDateTime.parse(start.replace(\".0\", \"\"), formatter));\r\n String month = start_converted.getMonth().toString();\r\n int day = start_converted.getDayOfMonth();\r\n int hour = start_converted.getHour();\r\n String minute = String.valueOf(start_converted.getMinute());\r\n \r\n if(minute.length() == 1) minute += \"0\"; // Add following zeroes\r\n \r\n report += month + \" \" + day + \" at \" + hour + \":\" + minute + \" - appointment with \" + customer + \"\\n\";\r\n } \r\n }catch(Exception e) {\r\n System.out.println(e.getMessage());\r\n }finally {\r\n try {\r\n connection.close();\r\n } catch (Exception e2) { // Closing databse error handling\r\n System.err.println(e2.getMessage());\r\n }\r\n } \r\n \r\n text_schedule.setText(report);\r\n }", "public int getSchedule_id() {\r\n return schedule_id;\r\n }", "io.opencannabis.schema.commerce.CommercialOrder.OrderScheduling getScheduling();", "List<WorkingSchedule> getAll();", "@Override\n\t\tpublic List<ProgramScheduledBean> getAllScheduleProgram()\n\t\t\t\tthrows UniversityException {\n\t\t\treturn dao.getAllScheduleProgram();\n\t\t}", "public interface ScheduleDao {\n int crewTally();\n ArrayList<avail> getAllAvailibility();\n ArrayList<ShiftDetails> getShiftDetails();\n int updateShiftSwapStatus();\n}", "@Override\n\tpublic List<ScheduleTask> getScheduleTaskList() {\n\t\treturn (List<ScheduleTask>) find(\"from ScheduleTask\");\n\t}", "public List<UserRace> selectAllSchedule() {\n\t\tString sql = \"select \" + COLUMNS + \" FROM UserRace WHERE mode = '\"\n\t\t\t\t+ UserRace.MODE_SCHEDULE + \"'\";\n\t\treturn getJdbcTemplate().query(sql, new UserRaceRowMapper());\n\t}", "@Override\r\n\tpublic List<Courseschedule> getAllCourseschedules() {\n\t\tsession = sessionFactory.openSession();\r\n\t\tTransaction tran = session.beginTransaction();\r\n\t\tString hql = \"from Courseschedule where state=:state\";\r\n\t\tQuery query = session.createQuery(hql).setInteger(\"state\", 0);\r\n\t\tList<Courseschedule> lists = query.list();\r\n\t\ttran.commit();\r\n\t\tsession.close();\r\n\t\tlogger.debug(\"use the method named :getAllCourseschedules()\");\r\n\t\tif (lists.size() > 0) {\r\n\t\t\treturn lists;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "List<Schedule> selectByExample(ScheduleCriteria example);", "public static List<Schedule> fetchGeneratedSchedules() {\r\n if (!isComplete()) {\r\n return null;\r\n }\r\n\r\n return generatedSchedules;\r\n }", "@Override\n\tpublic void UpdateTableSchedule(Schedule current) {\n\t\tif (current == null)\n\t\t\treturn;\n\t\tCurrFitness = current.fitness;\n\t\tmyLabelSchedule.setText(\"Current Schedule Fitness: \" + CurrFitness);\n\t\tfor (int station = 1; station <= current.stations.size(); station++) {\n\t\t\tfor (int i = 0; i < dtm.getRowCount(); i++) {\n\t\t\t\tdtm.setValueAt(\"\", i, station);\n\t\t\t}\n\t\t\t// @Debug System.out.println(\"TableLength: \"+tableLength);\n\t\t\tStationSlot currentStation = current.stations.get(station - 1);\n\t\t\tif (currentStation.registeredCars.size() == 0) {\n\t\t\t\tcontinue;\n\t\t\t} else {\n\t\t\t\tLinkedList<CarSlot> cars = currentStation.registeredCars;\n\t\t\t\tfor (int i = 0; i < cars.size(); i++) {\n\t\t\t\t\tCarSlot car = cars.get(i);\n\t\t\t\t\tfloat start = car.startTime;\n\t\t\t\t\tfloat duration = car.duration;\n\t\t\t\t\tint rowNum = (int) (start * (60 / interval));\n\t\t\t\t\t// System.out.println(\"ColumNum: \"+rowNum);\n\t\t\t\t\twhile (duration > 0) {\n\t\t\t\t\t\tdtm.setValueAt(\"Car \" + car.name + \" [\" + car.priority + \"]\" + \" - \" + car.type, rowNum, station);\n\t\t\t\t\t\trowNum++;\n\t\t\t\t\t\tduration = (float) (duration - interval / 60f);\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n\tpublic List<ScheduledFlights> retrieveAllScheduledFlights() {\t\r\n\t\tTypedQuery<ScheduledFlights> query = entityManager.createQuery(\"select s from ScheduledFlights s, Flight f,Schedule sc where s.flight = f and s.schedule=sc\",ScheduledFlights.class);\r\n\t\tList<ScheduledFlights> flights = query.getResultList();\r\n\t\treturn flights;\r\n\t}", "public boolean generateSchedule(){\r\n return true;\r\n }", "public void existingSchedules(){\n \n scheduleModel = (DefaultTableModel) displayTable.getModel();\n \n currentSchedules = AccessDataFromXML.retrieveSchedules();\n for (Schedule schedule : currentSchedules){\n \n \n Object[] o = new Object[1];\n o[0] = schedule.getName();\n scheduleModel.addRow(o);\n }\n \n \n\n }", "public Schedule getSchedule() {\n\n return schedule;\n }", "private List<Schedules> getSchedulesList(){\r\n//\t\tList<Schedules> list = new ArrayList<Schedules>();\r\n//\t\tSchedules s1 = new Schedules(1, \"Baidu\", \"BUPT\", \"2013-09-11\", \"12:30\");\r\n//\t\tSchedules s2 = new Schedules(2, \"Sina\", \"BUPT\", \"2013-09-11\", \"13:50\");\r\n//\r\n//\t\tlist.add(s1);\r\n//\t\tlist.add(s2);\r\n\t\tif (scheduleList == null) {\r\n\t\t\tscheduleList = mAppContext.scheduleGetAll();\r\n\t\t}\r\n\t\treturn scheduleList;\r\n//\t\treturn list;\r\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\tpublic List<TimeTableBean> getTimeTable() {\n\t\treturn sessionFactory.openSession().createQuery(\"from TimeTableBean\").list();\r\n\t}", "@Override\n\tpublic List<ScheduleTask> getScheduleTaskList() {\n\t\treturn scheduleTaskDAO.getScheduleTaskList();\n\t}", "abstract public void computeSchedule();", "SchedulingPlay selectByPrimaryKey(Long id);", "public List<WorkoutSchedule> getSchedules() {\n if (schedules == null) {\n if (daoSession == null) {\n throw new DaoException(\"Entity is detached from DAO context\");\n }\n WorkoutScheduleDao targetDao = daoSession.getWorkoutScheduleDao();\n List<WorkoutSchedule> schedulesNew = targetDao._queryWorkout_Schedules(id);\n synchronized (this) {\n if(schedules == null) {\n schedules = schedulesNew;\n }\n }\n }\n return schedules;\n }", "private void refreshScheduleTable() {\n\t\tint gameIdx = 0;\n\t\tList<GameDetails> games = getGames();\n\t\tif (games != null) {\n\t\t\tfor (GameDetails game : games) {\n\t\t\t\tfor (int i = 0; i < 2; i++) {\n\t\t\t\t\tboolean isHome = (i == 0);\n\n\t\t\t\t\tTeamDetails team = (isHome ? game.getHomeTeam() : game.getAwayTeam()); \n\n\t\t\t\t\tboolean isSelected = false;\n\t\t\t\t\tboolean canSelect = true;\n\t\t\t\t\tif (getUiHandlers() != null) {\n\t\t\t\t\t\tisSelected = getUiHandlers().isTeamSelected(team);\n\t\t\t\t\t\tcanSelect = getUiHandlers().canSelectTeam(team);\n\t\t\t\t\t}\n\n\t\t\t\t\tString text = (isHome ? \"@ \" + team.getDisplayName() : team.getDisplayName());\n\n\t\t\t\t\tint row = rowFromGameIdx(gameIdx, isHome);\n\t\t\t\t\tint col = colFromGameIdx(gameIdx, isHome);\n\n\t\t\t\t\tsetScheduleCell(row, col, text, isSelected, canSelect);\t\n\t\t\t\t}\n\n\t\t\t\tgameIdx++;\n\t\t\t}\n\t\t}\n\n\t\t// Clear out any remaining cells (in case of bye weeks).\n\t\tfor (; gameIdx < NFLConstants.MAX_GAMES_PER_WEEK; gameIdx++) {\n\t\t\tfor (int i = 0; i < 2; i++) {\n\t\t\t\tboolean isHome = (i == 0);\n\t\t\t\t\n\t\t\t\tint row = rowFromGameIdx(gameIdx, isHome);\n\t\t\t\tint col = colFromGameIdx(gameIdx, isHome);\n\n\t\t\t\tsetScheduleCell(row, col, \"\", false, true);\n\t\t\t}\n\t\t}\n\t}", "public int getScheduleMethod() {\n return scheduleMethod;\n }", "private static Entity addScheduleDateDataEntities(final Schema schema) {\n Entity scheduleDateData = schema.addEntity(\"ScheduleDateData\");\n scheduleDateData.addIdProperty().primaryKey().autoincrement();\n scheduleDateData.addIntProperty(\"schedule_id\").notNull();\n scheduleDateData.addStringProperty(\"schedule_name\");\n scheduleDateData.addStringProperty(\"class_id\");\n scheduleDateData.addStringProperty(\"class_name\");\n scheduleDateData.addStringProperty(\"class_desc\");\n scheduleDateData.addStringProperty(\"schedule_type_id\");\n scheduleDateData.addStringProperty(\"schedule_type\");\n scheduleDateData.addStringProperty(\"schedule_start_date\");\n scheduleDateData.addStringProperty(\"schedule_start_time\");\n scheduleDateData.addStringProperty(\"schedule_end_time\");\n scheduleDateData.addLongProperty(\"schedule_start_time_long\");\n scheduleDateData.addLongProperty(\"schedule_end_time_long\");\n scheduleDateData.addIntProperty(\"schedule_monday\");\n scheduleDateData.addIntProperty(\"schedule_tuesday\");\n scheduleDateData.addIntProperty(\"schedule_wednesday\");\n scheduleDateData.addIntProperty(\"schedule_thursday\");\n scheduleDateData.addIntProperty(\"schedule_friday\");\n scheduleDateData.addIntProperty(\"schedule_saturday\");\n scheduleDateData.addIntProperty(\"schedule_sunday\");\n scheduleDateData.addStringProperty(\"schedule_frequency\");\n scheduleDateData.addIntProperty(\"is_cancelled\");\n scheduleDateData.addIntProperty(\"is_reservable\");\n scheduleDateData.addStringProperty(\"instructor_id\");\n scheduleDateData.addStringProperty(\"instructor_name\");\n scheduleDateData.addStringProperty(\"location_id\");\n scheduleDateData.addStringProperty(\"location_name\");\n\n return scheduleDateData;\n }", "public static String listScheduleIdSymbol(int tambahanBolehABs) {\n DBResultSet dbrs = null;\n String result = \"\";\n try {\n Date dtStart = new Date();\n Date dtEnd = new Date();\n String dtManual = \"\";\n boolean crossDay = false;\n //dtStart.setHours(dtStart.getHours()-tambahanBolehABs);\n dtStart = new Date(dtStart.getYear(), dtStart.getMonth(), (dtStart.getDate()), (dtStart.getHours() - tambahanBolehABs), dtStart.getMinutes(), dtStart.getSeconds());\n dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate()), (dtEnd.getHours() + tambahanBolehABs), dtEnd.getMinutes(), dtEnd.getSeconds());\n int jamMelebihiOneDay = 23;\n if (dtStart.getHours() == 0 || dtStart.getHours() == 23) {\n dtManual = \"23:\" + \"59:\" + \"59\";\n crossDay = true;\n jamMelebihiOneDay = jamMelebihiOneDay + tambahanBolehABs;\n }\n if (dtEnd.getHours() == 0) {\n dtManual = \"23:\" + \"59:\" + \"59\";\n crossDay = true;\n jamMelebihiOneDay = jamMelebihiOneDay + tambahanBolehABs;\n }\n\n// String dtManual=\"\";\n// if(dt.getHours()==0 || dt.getHours()+tambahanBolehABs>=23){\n// int idtManual = 24+tambahanBolehABs;\n// dtManual = idtManual+\":59:00\" ;\n// }else{\n// dt.setHours(dt.getHours()+tambahanBolehABs);\n// }\n\n String sql = \"SELECT * FROM \" + PstScheduleSymbol.TBL_HR_SCHEDULE_SYMBOL\n + \" WHERE \\\"00:00:00\\\" <=\" + PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT]\n + \" AND \" + PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN] + \"<= \\\"\"\n + \"23:59:00\"\n //+ (dtStart.getHours() == 0 || dtStart.getHours() == 23 || dtEnd.getHours() == 0 ? dtManual : Formater.formatDate(dtEnd, \"HH:mm:00\"))\n + \"\\\"\";\n //+ \" WHERE \" + \"(\"+PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN] +\" BETWEEN \\\"00:00:00\\\" AND \\\"\"+ (crossDay?dtManual:Formater.formatDate(dtStart, \"HH:mm:00\")) +\"\\\") OR (\"+PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT] +\" BETWEEN \\\"00:00:00\\\" AND \\\"\"+Formater.formatDate(dtEnd, \"HH:mm:00\")+\"\\\")\";\n\n dbrs = DBHandler.execQueryResult(sql);\n ResultSet rs = dbrs.getResultSet();\n while (rs.next()) {\n dtEnd = new Date();\n dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate()), (dtEnd.getHours() + tambahanBolehABs), dtEnd.getMinutes(), dtEnd.getSeconds());\n \n Date schTimeIn = rs.getTime(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN]);\n\n Date schTimeOut = rs.getTime(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT]);\n Date dtTmpSchTimeIn = new Date();\n Date dtTmpSchTimeOut = new Date();\n\n\n if (schTimeIn != null && schTimeOut != null) {\n schTimeOut = new Date(dtTmpSchTimeOut.getYear(), dtTmpSchTimeOut.getMonth(), dtTmpSchTimeOut.getDate(), schTimeOut.getHours(), schTimeOut.getMinutes());\n schTimeIn = new Date(dtTmpSchTimeIn.getYear(), dtTmpSchTimeIn.getMonth(), dtTmpSchTimeIn.getDate(), schTimeIn.getHours(), schTimeIn.getMinutes());\n\n Date dtCobaTimeOut = new Date(schTimeOut.getYear(), schTimeOut.getMonth(), (schTimeOut.getDate()), (schTimeOut.getHours() + tambahanBolehABs), schTimeOut.getMinutes(), schTimeOut.getSeconds());\n boolean melebihiHari=false;\n if (schTimeIn.getHours() == 0 || schTimeOut.getHours() == 0) {\n \n } else {\n if (dtCobaTimeOut.getDate() > schTimeIn.getDate()) {\n //dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate() + 1), (dtEnd.getHours()), dtEnd.getMinutes(), dtEnd.getSeconds());\n melebihiHari=true;\n }\n\n if ( (melebihiHari && dtEnd.getHours()<dtCobaTimeOut.getHours()) || schTimeIn.getTime() <= dtEnd.getTime() || (schTimeIn.getHours() > schTimeOut.getHours() && dtEnd.getTime() < schTimeOut.getTime())) {\n result = result + rs.getString(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_SCHEDULE_ID]) + \",\";\n }\n }\n\n\n\n\n\n }\n\n }\n if (result != null && result.length() > 0) {\n result = result.substring(0, result.length() - 1);\n }\n rs.close();\n return result;\n\n } catch (Exception e) {\n System.out.println(e);\n } finally {\n DBResultSet.close(dbrs);\n }\n return result;\n }", "public interface ScheduleDao {\r\n\tpublic Schedule createSchedule(Calendar scheduleDate) throws DAOException;\r\n\tpublic Schedule findScheduleById(long scheduleId) throws DAOException;\r\n\tpublic List<Schedule> findSchedulesByDate(Calendar scheduleDate) throws DAOException;\r\n\tpublic List<Schedule> findAllSchedules() throws DAOException;\r\n\tpublic void updateSchedule(long scheduleId, Calendar newScheduleDate) throws DAOException;\r\n\tpublic void deleteScheduleById(long scheduleId) throws DAOException;\r\n\tpublic void deleteAllSchedules() throws DAOException;\r\n}", "public String getSchedule() {\n return schedule;\n }", "public Schedule getSchedule() {\r\n\t\treturn schedule;\r\n\t}", "public ScheduleType getScheduleType();", "public interface ScheduleService {\n BasicSchedule getBasicScheduleByHostelIdAndRoomType(long hostelId, RoomType type);\n\n /**\n * 获得最近一年的酒店基本计划\n *\n * @param hostelId\n * @return\n */\n List<BasicSchedule> getBasisSchedulesByHostelId(long hostelId);\n\n void modifyBasisSchedule(BasicSchedule basicSchedule);\n\n /**\n * 获得最近一年的酒店特殊计划\n *\n * @param hostelId\n * @return\n */\n List<SpecialSchedule> getSpecialScheduleByHostelId(long hostelId);\n\n void modifySpecialSchedule(SpecialSchedule specialSchedule);\n\n void addSpecialSchedule(SpecialSchedule specialSchedule);\n\n void deleteSpecialSchedule(SpecialSchedule specialSchedule);\n\n SpecialSchedule getSpecialSchedule(long hostelId, RoomType roomType, Date date);\n}", "private void loadScheduleList() {\n\n if (listTbagendamentos != null && !listTbagendamentos.isEmpty()) {\n scheduleAgendamento.clear();\n\n for (Tbagendamento agendamento : listTbagendamentos) {\n DefaultScheduleEvent defaultScheduleEvent = new DefaultScheduleEvent();\n defaultScheduleEvent.setTitle(agendamento.getIdcliente().getNmcliente());\n\n Calendar dtDataInicial = new GregorianCalendar();\n dtDataInicial.setTime(agendamento.getTmdataagendamento());\n\n defaultScheduleEvent.setStartDate(dtDataInicial.getTime());\n\n Calendar dtDataFinal = new GregorianCalendar();\n dtDataFinal.setTime(agendamento.getTmdataagendamento());\n dtDataFinal.set(Calendar.MINUTE, dtDataFinal.get(Calendar.MINUTE) + 30);\n\n defaultScheduleEvent.setEndDate(dtDataFinal.getTime());\n defaultScheduleEvent.setData(agendamento.getIdagendamento());\n scheduleAgendamento.addEvent(defaultScheduleEvent);\n }\n }\n }", "public Schedule() {\r\n }", "public void setSchedule(Schedule schedule) {\r\n\t\tthis.schedule = schedule;\r\n\t}", "List<WorkingSchedule> getByPlaceId(Long placeId);", "public ProgramScheduled getProgramScheduleById(int scheduleId);", "public ArrayList<TrainScheduleEntity> viewTrainSchedule(String dayType);", "java.lang.String getSnapshotCreationSchedule();", "io.opencannabis.schema.commerce.CommercialOrder.SchedulingType getScheduling();", "@Override\r\n\tpublic void doInitialSchedules() {\n\t}", "void setSchedule(java.lang.String schedule);", "ScheduleStartType getScheduleStart();", "public abstract void schedule();", "public void setSchedule(Schedule newSchedule) {\n\n schedule = newSchedule;\n }", "@Mapper\npublic interface VirtualRepayFlowMapper {\n @DataSource(\"bigdata2_jdb\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE update_time >= #{from_time} and update_time < #{end_time} and id>#{id} limit 1000\")\n List<VirtualRepayFlow> find(@Param(\"from_time\") String from_time,\n @Param(\"end_time\") String end_time,\n @Param(\"id\") long id);\n\n\n @DataSource(\"dmp\")\n @Insert(\"INSERT INTO virtual_repay_flow (id,uuid,virtual_productid,to_user,amount,interest,repay_status,repay_time,create_time,update_time) values\" +\n \"(#{id},#{uuid},#{virtual_productid},#{to_user},#{amount},#{interest},#{repay_status},#{repay_time},#{create_time},#{update_time})\")\n void insert(VirtualRepayFlow virtualRepayFlow);\n\n @DataSource(\"dmp\")\n @Delete(\"DELETE FROM repay_flow where update_time<#{update_time}\")\n void delete(@Param(\"update_time\") String update_time);\n\n @DataSource(\"dmp\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE id=#{id}\")\n VirtualRepayFlow getById(@Param(\"id\") long id);\n\n\n @DataSource(\"dmp\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE uuid=#{uuid}\")\n VirtualRepayFlow getByUuid(@Param(\"uuid\") String uuid);\n}", "public abstract void maintenanceSchedule() ;", "@Override\n public List<SurveillantSchedule> getSurveillantSchedule() {\n return surveillantRepository.getSurveillantSchedule();\n }", "long getScheduleID() {return mScheduleID; }", "com.google.cloud.gkebackup.v1.BackupPlan.Schedule getBackupSchedule();", "public String getScheduleRow() {\n\t\treturn uSRow;\n\t}", "public void setSchedule_id(int schedule_id) {\r\n this.schedule_id = schedule_id;\r\n }", "public void printSchedule(){\n String\n format =\n \"%-20s%-10s%-15s%\" +\n \"-20s%-25s%-10s%\" +\n \"-15s%-15s%-15s%n\";\n\n System.out.printf(format,\n \"Водитель\", \"Номер А/М\",\"Машина\", \"Дата и время\",\n \"Задание\", \"Кол-во\",\n \"Расстояние\", \"Цена\", \"Примечание\");\n System.out.println();\n\n\n\n List<TimeTable> l = driverScheduleReaderDAO.getTimeTable();\n TimeTable tPrev =l.get(0);\n for (TimeTable t: l){\n\n if (!t.getDriverName().equals(tPrev.getDriverName())) {\n\n System.out.println(\"***\");\n tPrev = t;\n\n } else if (t!=l.get(0))t.setDriverName(\" \");\n\n\n\n\n System.out.printf(format,\n t.getDriverName(), t.getCarId(), t.getCarBrand(),\n t.getBusyTime(), t.getOrder(), t.getNumOfEl(),\n t.getDistance(), t.getPrice(), t.getNote()\n );\n\n }\n\n //int\n\n\n\n\n //вывести на экран\n //отельным классом посчитать шанс поломки и предупредить\n }", "public void schedule(String id, String[] schedule) {\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic List<ISchedule> getSchedules() throws IOException {\n\t\tfinal String sql = \"SELECT * from record\";\n\t\tList<? extends ISchedule> result = this.queryDataList(Schedule.class,ISchedule.Props.class, sql);\n\t\treturn (List<ISchedule>) result;\t\t\n\t}", "public List<AllTimeSeasonBean> getAllTimeRecord(){\n String q = \"select new com.main.pcblroyals.bean.AllTimeSeasonBean( \" +\n \"sum(case when g.teamScore > g.opponentScore then 1 else 0 end), \" +\n \"sum(case when g.teamScore = g.opponentScore then 1 else 0 end), \" +\n \"sum(case when g.teamScore < g.opponentScore then 1 else 0 end) \" +\n \") \" +\n \"from seasons s \" +\n \"join games g on s.id = g.season.id \";\n Query query = entityManager.createQuery(q);\n return (List<AllTimeSeasonBean>) query.getResultList();\n }", "@Override\n public String getEndPoint() {\n return \"/v1/json/schedule\";\n }", "@GetMapping\n public List<ScheduleDTO> getAllSchedules() {\n List<Schedule> scheduleList = scheduleService.getAllSchedules();\n\n List<ScheduleDTO> scheduleDTOList = scheduleList.stream()\n .map(ScheduleController::convertScheduleToScheduleDTO)\n .collect(Collectors.toList());\n return scheduleDTOList;\n }", "public interface ScheduleListDao extends GenericDao<ScheduleList, Long> {\n\t\n\tpublic List<ScheduleList> findShceduleList(String scheduleId); \n\t\n\t /**\n * 自服务项列表\n * @return\n */\n public Page findScheduleList(String pageSize);\n\t\n}", "public void storeRegularDayTripStationScheduleWithRS();", "@MapperScan\npublic interface DSSettingMapper {\n\n @Insert(\"INSERT INTO ds_setting (dsId, dsAppointment2,dsAppointment3,outCoachIds,status,modifyTime)\" +\n \" VALUES(#{dsId},#{dsAppointment2},#{dsAppointment3},#{outCoachIds},#{status},NOW())\")\n int insertDssetting(DSSetting dsSetting);\n\n @Update(\"UPDATE ds_setting SET dsAppointment2 = #{dsAppointment2},\" +\n \" dsAppointment3 = #{dsAppointment3}, outCoachIds = #{outCoachIds}, \" +\n \"status = #{status}, modifyTime = NOW() \" +\n \"WHERE dsId = #{dsId}\")\n int updateDssetting(DSSetting dsSetting);\n\n @Select(\"SELECT * FROM ds_setting WHERE dsId = #{dsId}\")\n DSSetting findOneDSSetting(@Param(\"dsId\") Long dsId);\n}", "public String getScheduleExpression() {\n return this.scheduleExpression;\n }", "@Override\n\tpublic List<SchedulerJobEntity> getAllScheduledJobs() throws SchedulerException {\n\t\treturn schedulerRepository.findAll();\n\t}", "@Override\n\t\tpublic oep_ResponseInfo getTestscheduledetails(String id) {\n\t\t\t\n\t\t\t\n\t\t\tString query = \" SELECT a.`ques_master_id`,`is_test_started`,a.`id`,`sub_id`,a.`batch`,DATE_FORMAT(`testdate`,'%m/%d/%Y')newtestdate,a.`start_time`, a.`end_time`,a.`status`,b.`test_name`,`test_id`,\"\n\t\t\t\t\t+ \"HOUR(a.`start_time`)starthour,MINUTE(a.`start_time`)startminute, HOUR(a.`end_time`)endhour,MINUTE(a.`end_time`)endminute,\"\n\t\t\t\t\t+ \" DATE_FORMAT(`testdate`,'%d/%m/%Y')testdate, SUBSTRING_INDEX(a.`start_time`,' ',-1)startformatt,SUBSTRING_INDEX(a.`end_time`,' ',-1)endformatt,\"\n\t\t\t\t\t+ \"GROUP_CONCAT(f.`username`,' ',CASE WHEN `is_participant_start` = 2 THEN ' completed \\n' WHEN `is_participant_start` = 1 THEN 'Started \\n' ELSE 'Not started \\n'END)username,\"\n\t\t\t\t\t+ \"`is_participant_start`,h.`username`facname FROM `test_schedule` a JOIN `question_master` b ON a.`ques_master_id` = b.`id` \"\n\t\t\t\t\t+ \"JOIN `course_scheduling`c ON c.`cs_id`= a.`batch` JOIN `participants_registration_course_details`e ON e.`course_id`= c.`cs_id` \"\n\t\t\t\t\t+ \" JOIN `participants`f ON f.`participant_id`=e.`participant_id` \"\n\t\t\t\t\t+ \"LEFT JOIN `test_participants`g ON g.`part_id`= f.`participant_id` AND g.`ts_id`=a.`id`\"\n\t\t\t\t\t+ \" JOIN `faculty_master`h ON h.`faculty_id` = c.`faculty_name` WHERE a.`id`= \"+id+\" \";\n\t\t\t\n\t\t\t\n\t\t\tlog.info(query);\n\t\t\t\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tList<Object> List = jdbcTemplate.query(query, new RowMapper() {\n\t\t\t\tint count = 0;\n\t\t\t\t@Override\n\t\t\t\tpublic Object mapRow(ResultSet rs, int arg1) throws SQLException {\n\t\t\t\t\t\n\t\t\t\t\tMap<String, Object> map = new HashMap<String, Object>();\n\t\t\t\t\tmap.put(\"testid\", rs.getString(\"test_id\"));\n\t\t\t\t\tmap.put(\"startformat\", rs.getString(\"startformatt\"));\n\t\t\t\t\tmap.put(\"endformat\", rs.getString(\"endformatt\"));\t\n\t\t\t\t\tmap.put(\"facname\", rs.getString(\"facname\"));\n\t\t\t\t\tmap.put(\"quesid\", rs.getString(\"ques_master_id\"));\n\t\t\t\t\tmap.put(\"id\", rs.getString(\"id\"));\n\t\t\t\t\tmap.put(\"tsid\", rs.getString(\"id\"));\n\t\t\t\t\tmap.put(\"batch\", rs.getString(\"batch\"));\n\t\t\t\t\tmap.put(\"testdate\", rs.getString(\"testdate\"));\n\t\t\t\t\tmap.put(\"newtestdate\", rs.getString(\"newtestdate\"));\n\t\t\t\t\tmap.put(\"subid\", rs.getString(\"sub_id\"));\n\t\t\t\t\tmap.put(\"starthour\", rs.getString(\"starthour\"));\n\t\t\t\t\tmap.put(\"endhour\", rs.getString(\"endhour\"));\n\t\t\t\t\tmap.put(\"startminute\", rs.getString(\"startminute\"));\n\t\t\t\t\tmap.put(\"endminute\", rs.getString(\"endminute\"));\n\t\t\t\t\tmap.put(\"starttime\", rs.getString(\"start_time\"));\n\t\t\t\t\tmap.put(\"testname\", rs.getString(\"test_name\"));\n\t\t\t\t\tmap.put(\"username\", rs.getString(\"username\"));\n\t\t\t\t\tmap.put(\"starttest\", rs.getString(\"is_test_started\"));\n\t\t\t\t\tmap.put(\"participantstart\", rs.getString(\"is_participant_start\"));\n\t\t\t\t\tmap.put(\"endtime\", rs.getString(\"end_time\"));\n/*\t\t\t\t\t\n\t\t\t\t\tString submenuQuery = \"SELECT `part_id`,`imh_staus`,`username`,CONCAT(`username`,' ',CASE WHEN `imh_staus` = 0 \"\n\t\t\t\t\t\t\t+ \" THEN 'Certificate Not sent ' WHEN `imh_staus` = 1 THEN 'Certificate sent' \"\n\t\t\t\t\t\t\t+ \" ELSE 'Invalid 'END)status FROM `email_history`a \"\n\t\t\t\t\t\t\t+ \" JOIN `participants`b ON a.`part_id`=b.`participant_id` WHERE `ts_id` = \"+ rs.getString(\"id\");\t*/\n\t\t\t\t\t\n\t\t\t\t\tString submenuQuery = \" SELECT a.`ques_master_id`,`username`,`imh_staus`,`is_test_started`,a.`id`,a.`batch`,DATE_FORMAT(`testdate`,'%e/%c/%Y')testdate,a.`start_time`, a.`end_time`,a.`status`,b.`test_name`,`test_id`,\"\n\t\t\t\t\t\t\t+ \"CONCAT(`username`,' ',CASE WHEN `is_participant_start` = 2 THEN ' completed \\n' WHEN `is_participant_start` = 1 THEN 'Started \\n' ELSE 'Not started \\n'END)teststatus,\"\n\t\t\t\t\t\t\t+ \"`is_participant_start` FROM `test_schedule` a JOIN `question_master` b ON a.`ques_master_id` = b.`id` \"\n\t\t\t\t\t\t\t+ \"JOIN `course_scheduling`c ON c.`cs_id`= a.`batch` JOIN `participants_registration_course_details`e ON e.`course_id`= c.`cs_id` \"\n\t\t\t\t\t\t\t+ \" JOIN `participants`f ON f.`participant_id`=e.`participant_id` \"\n\t\t\t\t\t\t\t+ \"LEFT JOIN `test_participants`g ON g.`part_id`= f.`participant_id` AND g.`ts_id`=a.`id`\"\n\t\t\t\t\t\t\t+ \"JOIN `email_history`h ON h.`ts_id`= a.`id` WHERE a.`id`= \"+ rs.getString(\"id\");\n\t\t\t\t\t\n\t\t\t\t\t List<Object> submenuList = new ArrayList<Object>();\n\t\t\t\t\t submenuList = getPartStatusList(submenuQuery);\n\t\t\t\t\t map.put(\"submenuList\", submenuList);\n\t\t\t\t\t\n\t\t\t\t\tif(rs.getString(\"status\")!= null && rs.getString(\"status\").equals(\"1\")){\n\t\t\t\t\t\tmap.put(\"status\", \"Active\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tmap.put(\"status\", \"Inactive\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(rs.getString(\"is_test_started\")!= null && rs.getString(\"is_test_started\").equals(\"1\")){\n\t\t\t\t\t\tmap.put(\"teststarted\", \"Test Started\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tmap.put(\"teststarted\", \"Not started\");\n\t\t\t\t\t}\n\t\t\t\t\tmap.put(\"index\", count);\n\t\t\t\t\tcount++;\n\t\t\t\t\treturn map;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t});\n\t\t\t\n\t\t\n\t\t\t \n\t\t\t \n\t\t\tresponse.setResponseType(\"S\");\n\t\t\tresponse.setResponseObj(List);\n\t\t\tresponseInfo.setInventoryResponse(response);\n\t\t\treturn responseInfo;\n\t\t}", "public void createTempSpecialDayTrainSchedule(Timestamp date);", "public void generatePlan(Integer id,Date fromDate, Date toDate) throws Exception;", "@Override\r\n\tpublic List<Courseschedule> getCourseschedulesByClassroomId(int classroomId) {\n\t\tsession = sessionFactory.openSession();\r\n\t\tTransaction tran = session.beginTransaction();\r\n\t\tString hql = \"from Courseschedule where classroomId=:classroomId and state=:state\";\t\t\r\n\t\tList<Courseschedule> lists = session.createQuery(hql).setInteger(\"classroomId\", classroomId).setInteger(\"state\", 0).list();\r\n\t\ttran.commit();\r\n\t\tsession.close();\r\n\t\tlogger.debug(\"use the method named :getCourseschedulesByClassroomId(int classroomId)\");\r\n\t\tif (lists.size() > 0) {\r\n\t\t\treturn lists;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public void setSchedule(String timeframe) {\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic List<ScheduledFlights> retrieveScheduledFlights(String source, String destination) {\r\n\t\tQuery query = entityManager.createQuery(\"select s.scheduleId,s.source,s.destination,s.arrivaltime,s.departuretime,f.flightNumber,f.carrierName,f.seatCapacity from Schedule s JOIN ScheduledFlights sf ON s.scheduleId=sf.scheduleId JOIN Flight f on sf.flightId=f.flightNumber where schedule.source= :source AND schedule.destination=:destination\");\r\n\t\treturn query.getResultList();\r\n\t}", "@Override\r\n\tpublic boolean updateDate(ScheduleAdminModel scheduleAdminModel) throws ClassNotFoundException, SQLException {\n\t\r\n\t\tConnection connection=ConnectionManager.openConnection();\r\nPreparedStatement statement=\r\n connection.prepareStatement(\"update courses set start_date=?,end_date=? where course_name=?\");\r\nstatement.setString(1,scheduleAdminModel.getStartDate());\r\nstatement.setString(2,scheduleAdminModel.getEndDate());\r\nstatement.setString(3,scheduleAdminModel.getCourse_name());\r\n \r\n int rows=statement.executeUpdate();\r\n\tConnectionManager.closeConnection();\r\n\tif(rows>0)\r\n\t\treturn true;\r\n\t else \r\n\t return false;\r\n\t}", "void deschedule(ScheduledJob job);", "@Query(\"select :stopName from Timetable order by id\")\n List<Integer> selectStop(String stopName);", "public Date getScheduletime() {\r\n return scheduletime;\r\n }", "public List<Timetable> getAllTimetable() throws Exception;", "public abstract ArrayList<ScheduleTime> getScheduleForDay(int day, int month, int year);", "public void setSchedule(SpaceSchedule s) {\n\t\t\n\t}", "MMSchedule() {\n mScheduleID = MMUtilities.ID_DOES_NOT_EXIST;\n mOfMedicationID = 0;\n mForPersonID = 0;\n mTimeDue = 0;\n mStrategy = MMMedication.sSET_SCHEDULE_FOR_MEDICATION;\n }", "@Override\n public void fetchScheduled(RuleKey ruleKey) {\n }", "List<Schedule> selectByExampleWithRowbounds(ScheduleCriteria example, RowBounds rowBounds);", "Schedule getSchedule(String departure, String arrival, int depYear, int depMonth);", "public void setList(ScheduleInterface<Schedule> scheduleList){\n this.scheduleList = scheduleList;\n }", "int insert(Schedule record);", "private void reloadPlanTable() {\n\t\t\r\n\t}", "public Schedule getSchedule(String route, int direction){\r\n // A schedule to hold all the data returned from the query\r\n Schedule weekdayZero = new Schedule();\r\n // Fetch the route id given the route\r\n Cursor getData = getReadableDatabase().rawQuery(\"select _id from routes where route_long_name = '\" + route + \"'\", null);\r\n // Make sure to begin at the first element of the returned data\r\n getData.moveToFirst();\r\n // Store the Route Id\r\n int route_id = getData.getInt(0);\r\n // Calendar id: (90400,90448) - Monday To Friday\r\n final String query = \"select Routes.Route_long_Name, \" +\r\n \"Calendar._Id, Stops.Stop_Name, Stop_Times.Stop_Sequence, Stop_Times.Arrival_Time, routes.route_short_name \" +\r\n \"from Trips join Calendar on Trips.Service_Id=Calendar._Id \" +\r\n \"join Routes on Trips.Route_Id=Routes._Id \" +\r\n \"join Stop_Times on Trips._Id=Stop_Times.Trip_Id \" +\r\n \"join Stops on Stop_Times.Stop_Id=Stops._Id \" +\r\n \"where Calendar._Id in \" + getDayOfTheWeek() + \" \" +\r\n \"AND Trips.Route_Id = \" + route_id + \" \" +\r\n \"AND Trips.Direction_Id = \" + direction + \" \" +\r\n \"AND Stop_Times.Arrival_Time != '' \" +\r\n \"order by arrival_time asc\";\r\n getData.moveToFirst();\r\n getData = getReadableDatabase().rawQuery(query, null);\r\n while (getData.moveToNext()){\r\n weekdayZero.insertData(getData.getString(0), getData.getInt(1), getData.getString(2), getData.getInt(3)\r\n , getData.getString(4), getData.getString(5));\r\n }\r\n return weekdayZero;\r\n }", "public Date getScheduleTime() {\n return this.scheduleTime;\n }", "@Override\n\tpublic void setDateAndSchedule(String date, String schedule) {\n\n\t}", "public MonthlyValuesTable(Database database) \n {\n //Constructor calls DbTable's constructor\n super(database);\n setTableName(\"monthlyvalues\");\n }", "public Date getScheduleDate(){\r\n\t\treturn this.scheduleDate;\r\n\t}", "com.google.cloud.compute.v1.Scheduling getScheduling();", "TimerSchedule createTimerSchedule();", "public ApiSchedule[] getSchedules() {\n return this.schedules;\n }", "@Override\n\tpublic void setDateAndSchedule(String date, String schedule) {\n\t\t\n\t}", "public interface ITimetableDAO {\n\n /**\n * Get all the timetable element of <code>Timetable</code> object <br>\n *\n * @return all the list of <code>Timetable</code> object\n * @throws Exception\n */\n public List<Timetable> getAllTimetable() throws Exception;\n\n /**\n * Get all the list element has search of <code>Timetable</code> object<br>\n *\n * @param from is the date of <code>Timetable</code> object\n * @param to is the date of <code>Timetable</code> object\n * @return all the list has search of <code>Timetable</code> object\n * @throws Exception\n */\n public List<Timetable> getListSearch(String from, String to) throws Exception;\n\n /**\n * Add the all the element of Timetable to database\n *\n * @param date the date of Timetable object, it is an\n * <code>java.sql.Date</code>\n * @param slot the slot of Timetable object, it is an int\n * @param classes the classes of Timetable object, it is a string\n * @param teacher the teacher of Timetable object, it is a string\n * @param room the room of Timetable object, it is an int\n * @throws Exception\n */\n public void addTimetable(String date, String slot, String room, String teacher, String classes) throws Exception;\n\n /**\n * Function to check Timetable exist before add\n *\n * @param date the date of Timetable object, it is an\n * <code>java.sql.Date</code>\n * @param classes the slot of Timetable object, it is an int\n * @param room the room of Timetable object, it is a string\n * @return object of Timetable or null when check exist timetable\n * @throws Exception\n */\n public Timetable checkExistRoomTimeTable(String date, String classes, String room) throws Exception;\n\n /**\n * Paginate by number of timetable in <code>Timetable</code> object <br>\n *\n * @param pageIndex the index of page, it is an <code>int</code>\n * @param pageSize the size of page, it is an <code>int</code>\n * @return list of timetable, it is a <code>java.util.List</code> object.\n * @throws java.lang.Exception\n */\n public List<Timetable> pagging(int pageIndex, int pageSize) throws Exception;\n\n /**\n * Get number of result <code>Gallery</code> object by id\n *\n * @return number result of Gallery object, it is an int\n * @throws java.lang.Exception\n */\n public int numberOfResult() throws Exception;\n\n /**\n * Function to check Timetable exist before add\n *\n * @param date the date of Timetable object, it is an\n * <code>java.sql.Date</code>\n * @param classes the slot of Timetable object, it is an int\n * @param teacher the teacher of Timetable object, it is a string\n * @return object of Timetable or null when check exist timetable\n * @throws Exception\n */\n public Timetable checkExistTeacherTimeTable(String date, String classes, String teacher) throws Exception;\n\n}", "public void setScheduleTime(Date scheduleTime) {\n this.scheduleTime = scheduleTime;\n }", "@Scheduled(cron = \"0 30 06 * * *\",zone=\"America/New_York\")\n public void populateDatabase(){\n localDateTime = LocalDateTime.now();\n log.info(\"Executed now: \"+ localDateTime.toString());\n\n // Checks if table in database is empty\n // If not empty, clears the table and populates it with new data\n if(checkEmpty()==0)\n log.info(\"Empty Table\");\n else {\n deleteTableRecords();\n log.info(\"Table not Empty\");\n }\n\n URL url = null;\n\n // Get recent date, append it to URL and establish a connection\n String pattern = \"MM-dd-yyyy\";\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(pattern);\n Date date = Date.from(Instant.now().minus(Duration.ofDays(1)));\n\n\n String dateStr = simpleDateFormat.format(date);\n\n try {\n url = new URL(\"https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_daily_reports/\"+dateStr+\".csv\");\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n HttpURLConnection httpURLConnection = null;\n try {\n httpURLConnection = (HttpURLConnection) url.openConnection();\n } catch (IOException e) {\n e.printStackTrace();\n }\n int responseCode = 0;\n try {\n responseCode = httpURLConnection.getResponseCode();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n // On successful connection, read records line by line, store records in a table\n if(responseCode==200)\n {\n log.info(\"-- Successful Connection\");\n CSVReader reader = null;\n try {\n\n BufferedReader input = new BufferedReader(new InputStreamReader(httpURLConnection.getInputStream()),8192);\n reader = new CSVReader(input);\n String[] line;\n int skipFirstLine = 0;\n while ((line = reader.readNext()) != null)\n {\n if(skipFirstLine==0)\n {\n skipFirstLine++;\n continue;\n }\n\n DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern(\"yyyy-MM-dd HH:mm:ss\");\n\n Corona corona = new Corona();\n corona.setLastUpdate(LocalDateTime.parse(line[4],dateTimeFormatter));\n if(line[7].equals(\"\"))\n line[7]=\"0\";\n if(line[9].equals(\"\"))\n line[9]=\"0\";\n if(line[10].equals(\"\"))\n line[10]=\"0\";\n if(line[8].equals(\"\"))\n line[8]=\"0\";\n if(line[5].equals(\"\"))\n line[5]=\"0\";\n if(line[6].equals(\"\"))\n line[6]=\"0\";\n\n try {\n\n corona.setConfirmed(Long.valueOf(line[7]));\n corona.setRecovered(Long.valueOf(line[9]));\n corona.setActive(Long.valueOf(line[10]));\n corona.setDeaths(Long.valueOf(line[8]));\n corona.setLatitude(Double.valueOf(line[5]));\n corona.setLongitude(Double.valueOf(line[6]));\n } catch (NumberFormatException n)\n {\n n.printStackTrace();\n }\n corona.setCountry(line[3]);\n corona.setProvince(line[2]);\n corona.setCombinedKey(line[11]);\n\n\n\n coronaRepository.save(corona);\n log.info(corona.toString());\n\n\n }\n } catch (IOException | CsvValidationException e){\n e.printStackTrace();\n } finally {\n if(reader!=null)\n {\n try\n {\n reader.close();\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }\n }\n }\n }" ]
[ "0.6583093", "0.62134594", "0.614241", "0.6096163", "0.5869904", "0.5847323", "0.57736564", "0.5749311", "0.5730464", "0.5692395", "0.5691314", "0.5688622", "0.56733465", "0.5612722", "0.56103665", "0.5601378", "0.5594937", "0.5592374", "0.55869794", "0.5565921", "0.5544678", "0.5536762", "0.54946375", "0.5486974", "0.5463075", "0.54603523", "0.5455832", "0.54501116", "0.5445156", "0.5444004", "0.54084784", "0.53984827", "0.53917515", "0.53882813", "0.5388208", "0.5379494", "0.5379087", "0.53540117", "0.53484684", "0.53395474", "0.5337806", "0.53348553", "0.5326429", "0.531917", "0.5268467", "0.52664775", "0.52625597", "0.5256478", "0.5245691", "0.52455944", "0.5244061", "0.52287424", "0.52114916", "0.52114564", "0.5211055", "0.5206053", "0.5198744", "0.51842344", "0.51793087", "0.51495117", "0.5128515", "0.5107465", "0.510662", "0.51056135", "0.50985986", "0.5097996", "0.5095179", "0.5078455", "0.5071949", "0.5062537", "0.5048053", "0.5045186", "0.50360614", "0.5034012", "0.5032612", "0.5029762", "0.5028272", "0.5023831", "0.50128245", "0.50107193", "0.50062126", "0.49853772", "0.49811625", "0.4979578", "0.49694157", "0.4958413", "0.49560702", "0.49543408", "0.49509862", "0.49456567", "0.49427602", "0.49422622", "0.49398386", "0.4935916", "0.4927577", "0.49200827", "0.49151728", "0.49094823", "0.49054155", "0.49049369", "0.49020037" ]
0.0
-1
ctx.setGlobalBlendMode(BlendMode.SRC_OVER); ctx.setFill(Color.BLACK); ctx.fillRect(0, 0, width, height);
private void draw() { ctx.clearRect(0, 0, width, height); for (ImageParticle p : particles) { p.opacity = p.remainingLife / p.life * 0.5; // Draw particle from image ctx.save(); ctx.translate(p.x, p.y); ctx.scale(p.size, p.size); //ctx.translate(p.image.getWidth() * (-0.5), p.image.getHeight() * (-0.5)); ctx.translate(-HALF_WIDTH, -HALF_HEIGHT); ctx.setGlobalAlpha(p.opacity); ctx.drawImage(p.image, 0, 0); ctx.restore(); //p.remainingLife--; p.remainingLife *= 0.98; //p.size *= 0.99; p.x += p.vX; p.y += p.vY; //regenerate particles if (p.remainingLife < 0 || p.size < 0 || p.opacity < 0.01) { if (running) { p.reInit(); } else { particles.remove(p); } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void draw() {\n background(0);\n}", "@Override\n public void blend(boolean blend) {\n if(blend) {\n GL11.glEnable(GL11.GL_BLEND);\n } else {\n GL11.glDisable(GL11.GL_BLEND);\n }\n }", "private void drawBackground() {\n\t\timgG2.setColor(Color.BLACK);\n\t\timgG2.fillRect(0,0,512, 512);\n\t\t\n\t\timgG2.setColor(Color.BLACK);\n\t\timgG2.fillRect(128, 0, 256, 512);\n\t}", "@Override\n public void paint(Graphics g) {\n AlphaComposite ac = AlphaComposite.getInstance(AlphaComposite.SRC_OVER,\n .8f);\n Color old = g.getColor();\n Graphics2D g2d = (Graphics2D) g;\n g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING,\n RenderingHints.VALUE_ANTIALIAS_ON);\n Composite composite = g2d.getComposite();\n g2d.setColor(new Color(0, 0, 0, 0));\n g2d.fillRect(0, 0, getWidth(), getHeight());\n g2d.setColor(Color.blue);\n g2d.setComposite(ac);\n g2d.fillPolygon(new int[]{3, 3, 7, 7}, new int[]{0, 8, 8, 0}, 4);\n g2d.fillPolygon(new int[]{0, 10, 5}, new int[]{8, 8, 12}, 3);\n g2d.setComposite(composite);\n g2d.setColor(old);\n\n }", "@Override\n public void fillRectangle(int x, int y, int width, int height) {\n Rectangle2D rect = new Rectangle2D.Float(x + transX, y + transY, width - 1, height - 1);\n\n checkState();\n getGraphics2D().setPaint(getColor(getSWTGraphics().getBackgroundColor()));\n getGraphics2D().fill(rect);\n }", "@Override\n\tprotected void draw(Canvas canvas) {\t\tcanvas.setColor(Color.DARK_GREEN);\n\t\tcanvas.drawRectangle(getBounds());\n\t\t\n/*\t\tRectangle originalClipping = canvas.getClipping();\n\t\tcanvas.setClipping(getBounds());\n\t\t\n\t\tTransformation originalTransformation = canvas.getTransformation();\n\n\t\tdrawWorld(new ShadowCanvas(canvas));\n\t\t\n\t\tcanvas.setAlpha(1.0f);\n\t\tcanvas.setTransformation(originalTransformation);\n\t\tcanvas.setClipping(getBounds());\n\t\t\n\t\tdrawWorld(canvas);\n\t\t\n\t\tcanvas.setClipping(originalClipping);\n*/\t}", "@Override\n\tpublic void drawForeground(Canvas canvas, int width, int height) {\n\t\t\n\t}", "void render(Graphics2D brush);", "public abstract void drawFill();", "@Override\n public void paintComponent (Graphics g)\n {\n ((Graphics2D) g).setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n g.setColor(BACKGROUND_COLOR);\n g.fillRect(0, 0, getHeight(), getHeight());\n g.setColor(color);\n g.fillOval(0, 0, 30, 30);\n }", "@Override\n public void init() {\n glEnable( GL_BLEND );\n glBlendFunc( GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA );\n glEnable( GL_LINE_SMOOTH );\n glEnable( GL_POINT_SMOOTH );\n }", "@Override\r\n protected void paintComponent(Graphics g) {\r\n\r\n Graphics2D g2d = (Graphics2D) g;\r\n\r\n g2d.setColor(new Color(52, 73, 94));\r\n g2d.fillRect(0, 0, getWidth(), getHeight());\r\n }", "@Override\n\tpublic void draw(Graphics g) {\n\t\tg.setColor(Color.ORANGE);\n\t\tg.fillRect(x, y, WIDTH, HEIGHT);\n\t}", "@Override\n public void fill(GL2 gl) {\n super.draw(gl);\n }", "@Override\n public void draw(GL2 gl) {\n super.fill(gl);\n }", "@Override\n public void draw(GL2 gl) {\n super.fill(gl);\n }", "public void wipe(){\n\t \tg2d.setColor(Color.yellow);\n g2d.fillRect(0,0, width, height);\n\t\t\n\n\t }", "@Override\n public void fill(GL2 gl) {\n draw(gl);\n }", "@Override\n public void fill() {\n graphicsEnvironmentImpl.fill(canvas);\n }", "@Override\n\tprotected void drawBackground(Graphics2D g2) {\n\t\tg2.setColor(BACKGROUND_FILL_COLOR);\n\t\tg2.fillRect(0, 0, this.getWidth(), this.getHeight());\n\t}", "void drawSky()\n {\n \tPaint color = canvas.getFill();\n \tcanvas.setFill(Color.DEEPSKYBLUE);\n \tcanvas.fillRect(0, 0, mainCanvas.getWidth(), mainCanvas.getHeight());\n \tcanvas.setFill(color);\n }", "@Override\n public void render() {\n Gdx.gl.glClearColor(0f, 0f, 0f, 1f);\n Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);\n Gdx.gl.glDisable(GL20.GL_BLEND);\n }", "void fill(int rgb);", "public static void paint(Graphics2D g) {\n Shape shape = null;\n Paint paint = null;\n Stroke stroke = null;\n Area clip = null;\n \n float origAlpha = 1.0f;\n Composite origComposite = g.getComposite();\n if (origComposite instanceof AlphaComposite) {\n AlphaComposite origAlphaComposite = \n (AlphaComposite)origComposite;\n if (origAlphaComposite.getRule() == AlphaComposite.SRC_OVER) {\n origAlpha = origAlphaComposite.getAlpha();\n }\n }\n \n\t Shape clip_ = g.getClip();\nAffineTransform defaultTransform_ = g.getTransform();\n// is CompositeGraphicsNode\nfloat alpha__0 = origAlpha;\norigAlpha = origAlpha * 1.0f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0 = g.getClip();\nAffineTransform defaultTransform__0 = g.getTransform();\ng.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\nclip = new Area(g.getClip());\nclip.intersect(new Area(new Rectangle2D.Double(0.0,0.0,48.0,48.0)));\ng.setClip(clip);\n// _0 is CompositeGraphicsNode\nfloat alpha__0_0 = origAlpha;\norigAlpha = origAlpha * 1.0f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0 = g.getClip();\nAffineTransform defaultTransform__0_0 = g.getTransform();\ng.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\n// _0_0 is CompositeGraphicsNode\nfloat alpha__0_0_0 = origAlpha;\norigAlpha = origAlpha * 1.0f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_0 = g.getClip();\nAffineTransform defaultTransform__0_0_0 = g.getTransform();\ng.transform(new AffineTransform(0.023640267550945282f, 0.0f, 0.0f, 0.022995369508862495f, 45.02649688720703f, 39.46533203125f));\n// _0_0_0 is CompositeGraphicsNode\nfloat alpha__0_0_0_0 = origAlpha;\norigAlpha = origAlpha * 0.40206185f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_0_0 = g.getClip();\nAffineTransform defaultTransform__0_0_0_0 = g.getTransform();\ng.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\n// _0_0_0_0 is ShapeNode\npaint = new LinearGradientPaint(new Point2D.Double(302.8571472167969, 366.64788818359375), new Point2D.Double(302.8571472167969, 609.5050659179688), new float[] {0.0f,0.5f,1.0f}, new Color[] {new Color(0, 0, 0, 0),new Color(0, 0, 0, 255),new Color(0, 0, 0, 0)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(2.7743890285491943f, 0.0f, 0.0f, 1.9697060585021973f, -1892.178955078125f, -872.8853759765625f));\nshape = new Rectangle2D.Double(-1559.2523193359375, -150.6968536376953, 1339.633544921875, 478.357177734375);\ng.setPaint(paint);\ng.fill(shape);\norigAlpha = alpha__0_0_0_0;\ng.setTransform(defaultTransform__0_0_0_0);\ng.setClip(clip__0_0_0_0);\nfloat alpha__0_0_0_1 = origAlpha;\norigAlpha = origAlpha * 0.40206185f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_0_1 = g.getClip();\nAffineTransform defaultTransform__0_0_0_1 = g.getTransform();\ng.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\n// _0_0_0_1 is ShapeNode\npaint = new RadialGradientPaint(new Point2D.Double(605.7142944335938, 486.64788818359375), 117.14286f, new Point2D.Double(605.7142944335938, 486.64788818359375), new float[] {0.0f,1.0f}, new Color[] {new Color(0, 0, 0, 255),new Color(0, 0, 0, 0)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(2.7743890285491943f, 0.0f, 0.0f, 1.9697060585021973f, -1891.633056640625f, -872.8853759765625f));\nshape = new GeneralPath();\n((GeneralPath)shape).moveTo(-219.61876, -150.68037);\n((GeneralPath)shape).curveTo(-219.61876, -150.68037, -219.61876, 327.65042, -219.61876, 327.65042);\n((GeneralPath)shape).curveTo(-76.74459, 328.55087, 125.78146, 220.48074, 125.78138, 88.45424);\n((GeneralPath)shape).curveTo(125.78138, -43.572304, -33.655437, -150.68036, -219.61876, -150.68037);\n((GeneralPath)shape).closePath();\ng.setPaint(paint);\ng.fill(shape);\norigAlpha = alpha__0_0_0_1;\ng.setTransform(defaultTransform__0_0_0_1);\ng.setClip(clip__0_0_0_1);\nfloat alpha__0_0_0_2 = origAlpha;\norigAlpha = origAlpha * 0.40206185f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_0_2 = g.getClip();\nAffineTransform defaultTransform__0_0_0_2 = g.getTransform();\ng.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\n// _0_0_0_2 is ShapeNode\npaint = new RadialGradientPaint(new Point2D.Double(605.7142944335938, 486.64788818359375), 117.14286f, new Point2D.Double(605.7142944335938, 486.64788818359375), new float[] {0.0f,1.0f}, new Color[] {new Color(0, 0, 0, 255),new Color(0, 0, 0, 0)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(-2.7743890285491943f, 0.0f, 0.0f, 1.9697060585021973f, 112.76229858398438f, -872.8853759765625f));\nshape = new GeneralPath();\n((GeneralPath)shape).moveTo(-1559.2523, -150.68037);\n((GeneralPath)shape).curveTo(-1559.2523, -150.68037, -1559.2523, 327.65042, -1559.2523, 327.65042);\n((GeneralPath)shape).curveTo(-1702.1265, 328.55087, -1904.6525, 220.48074, -1904.6525, 88.45424);\n((GeneralPath)shape).curveTo(-1904.6525, -43.572304, -1745.2157, -150.68036, -1559.2523, -150.68037);\n((GeneralPath)shape).closePath();\ng.setPaint(paint);\ng.fill(shape);\norigAlpha = alpha__0_0_0_2;\ng.setTransform(defaultTransform__0_0_0_2);\ng.setClip(clip__0_0_0_2);\norigAlpha = alpha__0_0_0;\ng.setTransform(defaultTransform__0_0_0);\ng.setClip(clip__0_0_0);\nfloat alpha__0_0_1 = origAlpha;\norigAlpha = origAlpha * 1.0f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_1 = g.getClip();\nAffineTransform defaultTransform__0_0_1 = g.getTransform();\ng.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\n// _0_0_1 is ShapeNode\npaint = new RadialGradientPaint(new Point2D.Double(25.0, 4.311681747436523), 19.996933f, new Point2D.Double(25.0, 4.311681747436523), new float[] {0.0f,0.25f,0.68f,1.0f}, new Color[] {new Color(143, 179, 217, 255),new Color(114, 159, 207, 255),new Color(52, 101, 164, 255),new Color(32, 74, 135, 255)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(0.01216483861207962f, 2.585073947906494f, -3.2504982948303223f, 0.015296213328838348f, 38.710994720458984f, -60.38692092895508f));\nshape = new RoundRectangle2D.Double(4.499479293823242, 4.50103759765625, 38.993865966796875, 39.00564193725586, 4.95554780960083, 4.980924129486084);\ng.setPaint(paint);\ng.fill(shape);\npaint = new LinearGradientPaint(new Point2D.Double(20.0, 4.0), new Point2D.Double(20.0, 44.0), new float[] {0.0f,1.0f}, new Color[] {new Color(52, 101, 164, 255),new Color(32, 74, 135, 255)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\nstroke = new BasicStroke(1.0f,0,1,4.0f,null,0.0f);\nshape = new RoundRectangle2D.Double(4.499479293823242, 4.50103759765625, 38.993865966796875, 39.00564193725586, 4.95554780960083, 4.980924129486084);\ng.setPaint(paint);\ng.setStroke(stroke);\ng.draw(shape);\norigAlpha = alpha__0_0_1;\ng.setTransform(defaultTransform__0_0_1);\ng.setClip(clip__0_0_1);\nfloat alpha__0_0_2 = origAlpha;\norigAlpha = origAlpha * 0.5f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_2 = g.getClip();\nAffineTransform defaultTransform__0_0_2 = g.getTransform();\ng.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\n// _0_0_2 is ShapeNode\npaint = new LinearGradientPaint(new Point2D.Double(25.0, -0.05076269432902336), new Point2D.Double(25.285715103149414, 57.71428680419922), new float[] {0.0f,1.0f}, new Color[] {new Color(255, 255, 255, 255),new Color(255, 255, 255, 0)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\nstroke = new BasicStroke(1.0f,0,1,4.0f,null,0.0f);\nshape = new RoundRectangle2D.Double(5.5017547607421875, 5.489577293395996, 36.996883392333984, 37.007320404052734, 3.013584613800049, 2.9943172931671143);\ng.setPaint(paint);\ng.setStroke(stroke);\ng.draw(shape);\norigAlpha = alpha__0_0_2;\ng.setTransform(defaultTransform__0_0_2);\ng.setClip(clip__0_0_2);\nfloat alpha__0_0_3 = origAlpha;\norigAlpha = origAlpha * 0.5f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_3 = g.getClip();\nAffineTransform defaultTransform__0_0_3 = g.getTransform();\ng.transform(new AffineTransform(0.19086800515651703f, 0.1612599939107895f, 0.1612599939107895f, -0.19086800515651703f, 7.2809157371521f, 24.306129455566406f));\n// _0_0_3 is CompositeGraphicsNode\norigAlpha = alpha__0_0_3;\ng.setTransform(defaultTransform__0_0_3);\ng.setClip(clip__0_0_3);\nfloat alpha__0_0_4 = origAlpha;\norigAlpha = origAlpha * 1.0f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_4 = g.getClip();\nAffineTransform defaultTransform__0_0_4 = g.getTransform();\ng.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\n// _0_0_4 is ShapeNode\norigAlpha = alpha__0_0_4;\ng.setTransform(defaultTransform__0_0_4);\ng.setClip(clip__0_0_4);\nfloat alpha__0_0_5 = origAlpha;\norigAlpha = origAlpha * 0.44444442f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_5 = g.getClip();\nAffineTransform defaultTransform__0_0_5 = g.getTransform();\ng.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\n// _0_0_5 is ShapeNode\npaint = new LinearGradientPaint(new Point2D.Double(31.0, 12.875), new Point2D.Double(3.2591991424560547, 24.893844604492188), new float[] {0.0f,1.0f}, new Color[] {new Color(255, 255, 255, 255),new Color(255, 255, 255, 0)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.535999596118927f, 5.498996734619141f));\nshape = new GeneralPath();\n((GeneralPath)shape).moveTo(0.91099966, 27.748999);\n((GeneralPath)shape).curveTo(28.15259, 29.47655, 10.984791, 13.750064, 32.036, 13.248998);\n((GeneralPath)shape).lineTo(37.325214, 24.364037);\n((GeneralPath)shape).curveTo(27.718748, 19.884726, 21.14768, 42.897034, 0.78599966, 29.373999);\n((GeneralPath)shape).lineTo(0.91099966, 27.748999);\n((GeneralPath)shape).closePath();\ng.setPaint(paint);\ng.fill(shape);\norigAlpha = alpha__0_0_5;\ng.setTransform(defaultTransform__0_0_5);\ng.setClip(clip__0_0_5);\nfloat alpha__0_0_6 = origAlpha;\norigAlpha = origAlpha * 1.0f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_6 = g.getClip();\nAffineTransform defaultTransform__0_0_6 = g.getTransform();\ng.transform(new AffineTransform(0.665929913520813f, 0.0f, 0.0f, 0.665929913520813f, 11.393279075622559f, 4.907034873962402f));\n// _0_0_6 is ShapeNode\npaint = new RadialGradientPaint(new Point2D.Double(32.5, 16.5625), 14.4375f, new Point2D.Double(32.5, 16.5625), new float[] {0.0f,1.0f}, new Color[] {new Color(255, 255, 255, 255),new Color(255, 255, 255, 0)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\nshape = new GeneralPath();\n((GeneralPath)shape).moveTo(46.9375, 16.5625);\n((GeneralPath)shape).curveTo(46.9375, 24.536112, 40.47361, 31.0, 32.5, 31.0);\n((GeneralPath)shape).curveTo(24.526388, 31.0, 18.0625, 24.536112, 18.0625, 16.5625);\n((GeneralPath)shape).curveTo(18.0625, 8.588889, 24.526388, 2.125, 32.5, 2.125);\n((GeneralPath)shape).curveTo(40.47361, 2.125, 46.9375, 8.588889, 46.9375, 16.5625);\n((GeneralPath)shape).closePath();\ng.setPaint(paint);\ng.fill(shape);\norigAlpha = alpha__0_0_6;\ng.setTransform(defaultTransform__0_0_6);\ng.setClip(clip__0_0_6);\nfloat alpha__0_0_7 = origAlpha;\norigAlpha = origAlpha * 1.0f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_7 = g.getClip();\nAffineTransform defaultTransform__0_0_7 = g.getTransform();\ng.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\n// _0_0_7 is ShapeNode\npaint = new LinearGradientPaint(new Point2D.Double(39.0, 26.125), new Point2D.Double(36.375, 20.4375), new float[] {0.0f,1.0f}, new Color[] {new Color(27, 31, 32, 255),new Color(186, 189, 182, 255)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.535999596118927f, -1.5010031461715698f));\nstroke = new BasicStroke(4.0f,1,0,4.0f,null,0.0f);\nshape = new GeneralPath();\n((GeneralPath)shape).moveTo(33.036, 14.998998);\n((GeneralPath)shape).lineTo(46.036, 43.999);\ng.setPaint(paint);\ng.setStroke(stroke);\ng.draw(shape);\norigAlpha = alpha__0_0_7;\ng.setTransform(defaultTransform__0_0_7);\ng.setClip(clip__0_0_7);\nfloat alpha__0_0_8 = origAlpha;\norigAlpha = origAlpha * 1.0f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_8 = g.getClip();\nAffineTransform defaultTransform__0_0_8 = g.getTransform();\ng.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\n// _0_0_8 is ShapeNode\npaint = new Color(255, 255, 255, 255);\nshape = new GeneralPath();\n((GeneralPath)shape).moveTo(33.036, 14.998998);\n((GeneralPath)shape).lineTo(46.036, 43.999);\ng.setPaint(paint);\ng.fill(shape);\npaint = new LinearGradientPaint(new Point2D.Double(42.90625, 42.21875), new Point2D.Double(44.8125, 41.40625), new float[] {0.0f,0.64444447f,1.0f}, new Color[] {new Color(46, 52, 54, 255),new Color(136, 138, 133, 255),new Color(85, 87, 83, 255)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.535999596118927f, -1.5010031461715698f));\nstroke = new BasicStroke(2.0f,1,0,4.0f,null,0.0f);\nshape = new GeneralPath();\n((GeneralPath)shape).moveTo(33.036, 14.998998);\n((GeneralPath)shape).lineTo(46.036, 43.999);\ng.setPaint(paint);\ng.setStroke(stroke);\ng.draw(shape);\norigAlpha = alpha__0_0_8;\ng.setTransform(defaultTransform__0_0_8);\ng.setClip(clip__0_0_8);\nfloat alpha__0_0_9 = origAlpha;\norigAlpha = origAlpha * 1.0f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_9 = g.getClip();\nAffineTransform defaultTransform__0_0_9 = g.getTransform();\ng.transform(new AffineTransform(1.272613286972046f, 0.0f, 0.0f, 1.272613286972046f, 12.072080612182617f, -6.673644065856934f));\n// _0_0_9 is ShapeNode\npaint = new Color(255, 255, 255, 255);\nshape = new GeneralPath();\n((GeneralPath)shape).moveTo(15.5, 24.75);\n((GeneralPath)shape).lineTo(11.728554, 24.19539);\n((GeneralPath)shape).lineTo(9.451035, 27.075687);\n((GeneralPath)shape).lineTo(8.813057, 23.317446);\n((GeneralPath)shape).lineTo(5.3699408, 22.041456);\n((GeneralPath)shape).lineTo(8.747095, 20.273342);\n((GeneralPath)shape).lineTo(8.896652, 16.604443);\n((GeneralPath)shape).lineTo(11.621825, 19.26993);\n((GeneralPath)shape).lineTo(15.157373, 18.278416);\n((GeneralPath)shape).lineTo(13.464468, 21.69389);\n((GeneralPath)shape).lineTo(15.5, 24.75);\n((GeneralPath)shape).closePath();\ng.setPaint(paint);\ng.fill(shape);\norigAlpha = alpha__0_0_9;\ng.setTransform(defaultTransform__0_0_9);\ng.setClip(clip__0_0_9);\nfloat alpha__0_0_10 = origAlpha;\norigAlpha = origAlpha * 1.0f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_10 = g.getClip();\nAffineTransform defaultTransform__0_0_10 = g.getTransform();\ng.transform(new AffineTransform(0.5838837027549744f, 0.5838837027549744f, -0.5838837027549744f, 0.5838837027549744f, 24.48128318786621f, 9.477374076843262f));\n// _0_0_10 is ShapeNode\npaint = new Color(255, 255, 255, 255);\nshape = new GeneralPath();\n((GeneralPath)shape).moveTo(15.5, 24.75);\n((GeneralPath)shape).lineTo(11.728554, 24.19539);\n((GeneralPath)shape).lineTo(9.451035, 27.075687);\n((GeneralPath)shape).lineTo(8.813057, 23.317446);\n((GeneralPath)shape).lineTo(5.3699408, 22.041456);\n((GeneralPath)shape).lineTo(8.747095, 20.273342);\n((GeneralPath)shape).lineTo(8.896652, 16.604443);\n((GeneralPath)shape).lineTo(11.621825, 19.26993);\n((GeneralPath)shape).lineTo(15.157373, 18.278416);\n((GeneralPath)shape).lineTo(13.464468, 21.69389);\n((GeneralPath)shape).lineTo(15.5, 24.75);\n((GeneralPath)shape).closePath();\ng.setPaint(paint);\ng.fill(shape);\norigAlpha = alpha__0_0_10;\ng.setTransform(defaultTransform__0_0_10);\ng.setClip(clip__0_0_10);\nfloat alpha__0_0_11 = origAlpha;\norigAlpha = origAlpha * 1.0f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_11 = g.getClip();\nAffineTransform defaultTransform__0_0_11 = g.getTransform();\ng.transform(new AffineTransform(0.5791025757789612f, 0.12860369682312012f, -0.12860369682312012f, 0.5791025757789612f, 5.244583606719971f, 16.59849739074707f));\n// _0_0_11 is ShapeNode\npaint = new Color(255, 255, 255, 255);\nshape = new GeneralPath();\n((GeneralPath)shape).moveTo(15.5, 24.75);\n((GeneralPath)shape).lineTo(11.728554, 24.19539);\n((GeneralPath)shape).lineTo(9.451035, 27.075687);\n((GeneralPath)shape).lineTo(8.813057, 23.317446);\n((GeneralPath)shape).lineTo(5.3699408, 22.041456);\n((GeneralPath)shape).lineTo(8.747095, 20.273342);\n((GeneralPath)shape).lineTo(8.896652, 16.604443);\n((GeneralPath)shape).lineTo(11.621825, 19.26993);\n((GeneralPath)shape).lineTo(15.157373, 18.278416);\n((GeneralPath)shape).lineTo(13.464468, 21.69389);\n((GeneralPath)shape).lineTo(15.5, 24.75);\n((GeneralPath)shape).closePath();\ng.setPaint(paint);\ng.fill(shape);\norigAlpha = alpha__0_0_11;\ng.setTransform(defaultTransform__0_0_11);\ng.setClip(clip__0_0_11);\nfloat alpha__0_0_12 = origAlpha;\norigAlpha = origAlpha * 1.0f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_12 = g.getClip();\nAffineTransform defaultTransform__0_0_12 = g.getTransform();\ng.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.005668648984283209f, 1.9989968538284302f));\n// _0_0_12 is ShapeNode\npaint = new LinearGradientPaint(new Point2D.Double(31.994285583496094, 16.859249114990234), new Point2D.Double(37.7237434387207, 16.859249114990234), new float[] {0.0f,0.7888889f,1.0f}, new Color[] {new Color(238, 238, 236, 255),new Color(255, 255, 255, 255),new Color(238, 238, 236, 255)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\nshape = new GeneralPath();\n((GeneralPath)shape).moveTo(32.9375, 11.9375);\n((GeneralPath)shape).curveTo(32.87939, 11.943775, 32.84168, 11.954412, 32.78125, 11.96875);\n((GeneralPath)shape).curveTo(32.480507, 12.044301, 32.22415, 12.283065, 32.09375, 12.5625);\n((GeneralPath)shape).curveTo(31.963346, 12.841935, 31.958935, 13.12817, 32.09375, 13.40625);\n((GeneralPath)shape).lineTo(35.84375, 21.75);\n((GeneralPath)shape).curveTo(35.837093, 21.759354, 35.837093, 21.771896, 35.84375, 21.78125);\n((GeneralPath)shape).curveTo(35.853104, 21.787907, 35.865646, 21.787907, 35.875, 21.78125);\n((GeneralPath)shape).curveTo(35.884354, 21.787907, 35.896896, 21.787907, 35.90625, 21.78125);\n((GeneralPath)shape).curveTo(35.912907, 21.771896, 35.912907, 21.759354, 35.90625, 21.75);\n((GeneralPath)shape).curveTo(36.14071, 21.344227, 36.483208, 21.082874, 36.9375, 20.96875);\n((GeneralPath)shape).curveTo(37.18631, 20.909716, 37.44822, 20.917711, 37.6875, 20.96875);\n((GeneralPath)shape).curveTo(37.696854, 20.975407, 37.709396, 20.975407, 37.71875, 20.96875);\n((GeneralPath)shape).curveTo(37.725407, 20.959396, 37.725407, 20.946854, 37.71875, 20.9375);\n((GeneralPath)shape).lineTo(33.96875, 12.59375);\n((GeneralPath)shape).curveTo(33.824844, 12.242701, 33.48375, 11.983006, 33.125, 11.9375);\n((GeneralPath)shape).curveTo(33.06451, 11.929827, 32.99561, 11.931225, 32.9375, 11.9375);\n((GeneralPath)shape).closePath();\ng.setPaint(paint);\ng.fill(shape);\norigAlpha = alpha__0_0_12;\ng.setTransform(defaultTransform__0_0_12);\ng.setClip(clip__0_0_12);\norigAlpha = alpha__0_0;\ng.setTransform(defaultTransform__0_0);\ng.setClip(clip__0_0);\norigAlpha = alpha__0;\ng.setTransform(defaultTransform__0);\ng.setClip(clip__0);\ng.setTransform(defaultTransform_);\ng.setClip(clip_);\n\n\t}", "private void drawFill(Graphics2D g2, boolean pressed, int x, int y, int w, int h)\r\n/* 114: */ {\r\n/* 115: */ Color lowerRight;\r\n/* 116: */ Color upperLeft;\r\n/* 117: */ Color lowerRight;\r\n/* 118:158 */ if (pressed)\r\n/* 119: */ {\r\n/* 120:159 */ Color upperLeft = MetalLookAndFeel.getControlShadow();\r\n/* 121:160 */ lowerRight = PlasticLookAndFeel.getControlHighlight();\r\n/* 122: */ }\r\n/* 123: */ else\r\n/* 124: */ {\r\n/* 125:162 */ upperLeft = PlasticLookAndFeel.getControl();\r\n/* 126:163 */ lowerRight = PlasticLookAndFeel.getControlHighlight().brighter();\r\n/* 127: */ }\r\n/* 128:165 */ g2.setPaint(new GradientPaint(x, y, upperLeft, x + w, y + h, lowerRight));\r\n/* 129:166 */ g2.fillRect(x, y, w, h);\r\n/* 130: */ }", "void glClearColor(float red, float green, float blue, float alpha);", "@Override\n public void draw(GraphicsContext gc) {\n gc.setFill(getFillColor());\n gc.setStroke(getStrokeColor());\n gc.setLineWidth(getStrokeWidth());\n gc.fillRect(getX1(), getY1(), getX2() - getX1(), getX2() - getX1());\n gc.strokeRect(getX1(), getY1(), getX2() - getX1(), getX2() - getX1());\n }", "protected void drawBlack(java.awt.Graphics2D g, float a) {\r\n Color oldColor = g.getColor();\r\n g.setColor(Color.BLACK);\r\n g.setComposite(AlphaComposite.SrcOver.derive(a));\r\n g.fillRect(0, 0, GamePanel.WIDTH, GamePanel.HEIGHT);\r\n g.setComposite(AlphaComposite.SrcOver.derive(1.0f));\r\n g.setColor(oldColor);\r\n }", "private void drawFrameBufferContents(GameCanvas.BlendState blend) {\r\n\t\tcanvas.beginCustom(blend, GameCanvas.ChannelState.ALL);\r\n\t\tTexture fbo_t = fbo.getColorBufferTexture();\r\n\t\tfloat fbo_x = camera.position.x - canvas.getWidth() / 2;\r\n\t\tfloat fbo_y = camera.position.y - canvas.getHeight() / 2 + fbo_t.getHeight();\r\n\t\tcanvas.draw(fbo_t, Color.WHITE, fbo_x, fbo_y, fbo_t.getWidth(), -fbo_t.getHeight());\r\n\t\tcanvas.endCustom();\r\n\t}", "@Override\n\tpublic void draw(GraphicsContext gc) {\n\t\tgc.setFill(this.color.getColor());\n\t\tgc.fillRect(MyPoint.point[0], MyPoint.point[1], this.width, this.height);\n\t}", "@Override\r\n\tpublic void draw(Graphics g) {\n\t\tg.setColor(Color.green);\r\n\t\tg.fillRect(getX(), getY(), getWidth(), getHeight());\r\n\t}", "public void highlight(){\n myRectangle.setFill(HIGHLIGHT);\n }", "private void drawFill(Graphics2D g2, boolean pressed, int x, int y, int w, int h)\r\n/* 218: */ {\r\n/* 219: */ Color lowerRight;\r\n/* 220: */ Color upperLeft;\r\n/* 221: */ Color lowerRight;\r\n/* 222:250 */ if (pressed)\r\n/* 223: */ {\r\n/* 224:251 */ Color upperLeft = MetalLookAndFeel.getControlShadow();\r\n/* 225:252 */ lowerRight = PlasticLookAndFeel.getControlHighlight();\r\n/* 226: */ }\r\n/* 227: */ else\r\n/* 228: */ {\r\n/* 229:254 */ upperLeft = PlasticLookAndFeel.getControl();\r\n/* 230:255 */ lowerRight = PlasticLookAndFeel.getControlHighlight().brighter();\r\n/* 231: */ }\r\n/* 232:257 */ g2.setPaint(new GradientPaint(x, y, upperLeft, x + w, y + h, lowerRight));\r\n/* 233:258 */ g2.fillOval(x, y, w, h);\r\n/* 234: */ }", "@Override\r\n\tpublic void render(Graphics g) {\n\t\tg.setColor(Color.yellow);\r\n\t\tg.fillRect((int) getX(), (int) getY(), 5, 10);\r\n\t}", "private void fadeBuffer(Graphics g) {\n g.setColor(new Color(0,0,0,FADE_RATE));\n g.fillRect(0,0,width,height);\n }", "@Override\n\tpublic void render(Graphics g, int x, int y) {\n\t\tg.setColor(Color.cyan);\n\t\tg.fillRect(x, y, this.getWidth(), this.getHeight());\n\t}", "void draw(GraphicsContext context);", "@Override\r\n\tpublic void paintComponent(Graphics g)\r\n {\r\n\t\tsuper.paintComponent(g);\r\n\t\tg.setColor(getForeground());\r\n\t\tg.fillOval(0,0, this.getWidth(),this.getHeight());\r\n }", "@Override\n\tpublic void draw(Graphics g) {\n\t\tg.setColor(Color.orange);\n\t\tg.fillRect(getX(), getY(), getW(), getH());\n\t}", "public void black() {\n g2.setPaint(Color.black);\r\n }", "protected void drawColorFill(java.awt.Graphics2D g, float a, Color c) {\r\n Color oldColor = g.getColor();\r\n g.setColor(c);\r\n g.setComposite(AlphaComposite.SrcOver.derive(a));\r\n g.fillRect(0, 0, GamePanel.WIDTH, GamePanel.HEIGHT);\r\n g.setComposite(AlphaComposite.SrcOver.derive(1.0f));\r\n g.setColor(oldColor);\r\n }", "public void fillRect(Color c, Rectangle2D rect2d);", "@Override\r\n\tpublic void draw(Graphics g) {\n\t\tg.setColor(this.color);\r\n\t\tg.fillOval((int)x, (int)y, side, side);\r\n\t\tg.setColor(this.color2);\r\n\t\tg.fillOval((int)x+5, (int)y+2, side/2, side/2);\r\n\t}", "private void drawsegment_plain_alpha(float leftadd,\n float rghtadd,\n int ytop,\n int ybottom) {\n ytop *= SCREEN_WIDTH;\n ybottom *= SCREEN_WIDTH;\n \n int pr = m_fill & 0xFF0000;\n int pg = m_fill & 0xFF00;\n int pb = m_fill & 0xFF;\n \n // int p = m_index;\n float iaf = iaadd;\n \n while (ytop < ybottom) {\n int xstart = (int) (xleft + PIXEL_CENTER);\n if (xstart < 0)\n xstart = 0;\n \n int xend = (int) (xrght + PIXEL_CENTER);\n if (xend > SCREEN_WIDTH)\n xend = SCREEN_WIDTH;\n \n float xdiff = (xstart + PIXEL_CENTER) - xleft;\n float iz = izadd * xdiff + zleft;\n int ia = (int) (iaf * xdiff + aleft);\n xstart += ytop;\n xend += ytop;\n \n //int ma0 = 0xFF000000;\n \n for ( ; xstart < xend; xstart++ ) {\n if (noDepthTest || (iz <= m_zbuffer[xstart])) {\n // don't set zbuffer when not fully opaque\n //m_zbuffer[xstart] = iz;\n \n int alpha = ia >> 16;\n int mr0 = m_pixels[xstart];\n /*\n if (argbSurface) {\n ma0 = (((mr0 >>> 24) * alpha) << 16) & 0xFF000000;\n if (ma0 == 0) ma0 = alpha << 24;\n }\n */\n int mg0 = mr0 & 0xFF00;\n int mb0 = mr0 & 0xFF;\n mr0 &= 0xFF0000;\n \n mr0 = mr0 + (((pr - mr0) * alpha) >> 8);\n mg0 = mg0 + (((pg - mg0) * alpha) >> 8);\n mb0 = mb0 + (((pb - mb0) * alpha) >> 8);\n \n m_pixels[xstart] = 0xFF000000 | \n (mr0 & 0xFF0000) | (mg0 & 0xFF00) | (mb0 & 0xFF);\n \n // m_stencil[xstart] = p;\n }\n iz += izadd;\n ia += iaadd;\n }\n ytop += SCREEN_WIDTH;\n xleft += leftadd;\n xrght += rghtadd;\n zleft += zleftadd;\n }\n }", "@Override\n public void draw(ModernComponent c, Graphics2D g2, IntRect rect, Props props) {\n\n g2.setColor(FILL);\n\n fill(c, g2, rect, props);\n\n g2.setColor(BORDER);\n outline(c, g2, rect, props);\n }", "public void draw(Graphics2D g_)\n {\n // put your code here\n g_.setColor(col);\n g_.fillRect(rX, rY, x, y);\n }", "void glClear(int mask);", "@Override\n protected void paintComponent(Graphics g) {\n\n Graphics2D g2d = (Graphics2D) g.create();\n g2d.setRenderingHint(\n RenderingHints.KEY_ANTIALIASING,\n RenderingHints.VALUE_ANTIALIAS_ON);\n g2d.setComposite(AlphaComposite.getInstance(\n AlphaComposite.SRC_OVER, opa));\n g2d.setColor(color);\n if (!round) {\n g2d.fillRect(0, 0, getWidth(), getHeight());\n } else {\n g2d.fillRoundRect(0, 0, getWidth(), getHeight(), corner, corner);\n }\n }", "protected void preRenderCallback(EntityLivingBase par1EntityLivingBase, float par2){\n \tGL11.glEnable(GL11.GL_BLEND);\n \tGL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);\n }", "@Override\n\tpublic void draw() {\n\t\tSystem.out.println(\"绘制圆形\");\n\t}", "@Override\n\tprotected void Draw(GameTime gameTime)\n\t{\n\t\tgetGraphicsDevice().Clear(Color.CornflowerBlue);\n\t\t\n\t\tspriteBatch.Begin();\n\t\tspriteBatch.Draw(background, new Vector2(0,0), Color.White);\n\t\tspriteBatch.End();\n\t\t\n\t\t// TODO: Add your drawing code here\n\t\t\n\t\tsuper.Draw(gameTime);\n\t}", "void drawGrass()\n {\n \tPaint color = canvas.getFill();\n \tcanvas.setFill(Color.GREEN);\n \tcanvas.fillRect(0, mainCanvas.getHeight()-30, mainCanvas.getWidth(), 30);\n \tcanvas.setFill(color);\n }", "public void paint (Graphics g) {\n super.paint(g);\n // g.setColor(Color.BLUE);\n // g.drawRect(0, 0, 100, 100);\n }", "public void drawFill(int[] rgb) {\n\t\tparent.fill(rgb[0], rgb[1], rgb[2]);\n\t}", "public void fillMode1Rect(int x0, int y0, int width, int height, int color) {\n assert ((x0 >= 0) && (x0 < 320)) && ((y0 >= 0) && (y0 < 200)) && ((color >= 0) && (color < 4));\n assert (((x0 + width) <= 320) && ((y0 + height) <= 200));\n\n int x1 = x0 + width;\n int y1 = y0 + height;\n for (int y = y0; y < y1; y++) {\n for (int x = x0; x < x1; x++) {\n int pos = y * 80 + (x >>> 2);\n screenBuffer[pos] = (byte) packPixelMode1(screenBuffer[pos], x & 0x03, color);\n }\n }\n }", "public void draw() {\n\tbackground(bg_count); // set background to something\n\tbg_count = bg_count + bg_dir;\n\tif (bg_count >= 255) {\n\t bg_dir = -1;\n\t} else if (bg_count <= 0) {\n\t bg_count = 0;\n\t bg_dir = 1;\n\t}\n\tellipse_x = ellipse_x + ellipse_x_dir;\n\tellipse_y = ellipse_y - ellipse_y_dir;\n\n\tif (ellipse_x > width) {\n\t ellipse_x_dir = -1;\n\t ellipse_x = width - 1;\n\t} else if (ellipse_x < 0) {\n\t ellipse_x_dir = 1;\n\t ellipse_x = 0;\n\t}\n\tif (ellipse_y > height) {\n\t ellipse_y_dir = -1;\n\t ellipse_y = height - 1;\n\t} else if (ellipse_y < 0) {\n\t ellipse_y_dir = 1;\n\t ellipse_y = 0;\n\t}\n\n\tfill(0, 64, 0);\n\t// x y w h\n\trect(400, 300, 200, 100);\n\n\tfill(212, 111, 249);\n\t\n\tstrokeWeight(4.0f);\n\n\t// x y r1 r2 // can set to mouseX, mouseY\n\tellipse(ellipse_x, ellipse_y, 30, 30);\n\n\t// some draw methods associated with PApplet:\n\t// background(int)\n\t// stroke(int, int, int)\n\t// fill(int)\n\t// ellipse(x, y, radius_1, radius_2)\n\t// noFill()\n\n\t// text(str, x, y)\n }", "public void PRCRender() {\n if(rollOver) {\n object.getStyle().setFillColorFloat(20);\n } else if(dragging) {\n object.getStyle().setFillColorFloat(5);\n } else {\n object.style.setFillColorFloat(100);\n }\n object.render();\n }", "public void drawFilled (Graphics g)\n {\n g.setColor (color2);\n g.fillRect (xStart, yStart, width2, height2);\n }", "@Override\n public void clip() {\n graphicsEnvironmentImpl.clip(canvas);\n }", "@Override\n\t\t\tprotected void paintComponent(Graphics g) {\n\t\t\t\tGraphics2D g2d = (Graphics2D) g;\n\t\t g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING,\n\t\t RenderingHints.VALUE_ANTIALIAS_ON);\n\t\t \n\t\t GradientPaint gp = new GradientPaint(0, 0,\n\t\t Const.BACKGROUND_COLOR.brighter(), 0, getHeight(),\n\t\t Color.BLUE);\n\t\t \n\t\t g2d.setPaint(gp);\n\t\t g2d.fillRect(0, 0, getWidth(), getHeight());\n\n\t\t\t\tsuper.paintComponent(g);\n\t\t\t}", "@Override\n\tpublic void render(float delta) {\n\t\tbatch.begin();\n\t\tbatch.draw(background, 0, 0);\n\t\tbatch.end();\n\t\t\n\t\tstage.act(delta);\n\t\tstage.draw();\n\t\t\n\t}", "@Override\r\n\tpublic void draw(Graphics g) {\n\t\tg.setColor(Color.PINK);\r\n\t\tg.fillRect(getX(), getY(), getWidth(), getHeight());\r\n\t\t\r\n\t}", "private static void highlight(Graphics2D g, int x, int y, int startX){\r\n g.setColor(Color.RED);\r\n g.fillRect(startX * x + 1, startX * y + 1, startX - 1, startX - 1);\r\n }", "public void drawRect(int x, int y, int width, int height, int color);", "private void drawNone(){\n drawAbstract(R.color.white);\n }", "public void resetColor(){\n myRectangle.setFill(PADDLE_COLOR);\n }", "private void paintRectangleWithBevel(Graphics2D g2d, int width, int height,\n\t\t\tColor c) {\n\t\tif (drawingBorders) {\n\t\t\twidth = width - 1;\n\t\t\theight = height - 1;\n\t\t}\n\n\t\tGeneralPath path = new GeneralPath();\n\t\tpath.moveTo(0, 0);\n\t\tpath.lineTo(width - 1, 0);\n\t\tpath.lineTo(width - 1, height - 1);\n\t\tpath.lineTo(0, height - 1);\n\t\tpath.closePath();\n\n\t\tPaint oldPaint = g2d.getPaint();\n\t\tStroke oldStroke = g2d.getStroke();\n\n\t\tg2d.setPaint(c);\n\t\tg2d.fill(path);\n\n\t\tg2d.setStroke(new BasicStroke(1, BasicStroke.CAP_BUTT,\n\t\t\t\tBasicStroke.JOIN_MITER));\n\n\t\t// Draw highlight (Northeast)\n\t\tpath = new GeneralPath();\n\t\tpath.moveTo(0, 0);\n\t\tpath.lineTo(width - 1, 0);\n\t\tpath.lineTo(width - 1, height - 1);\n\t\tColor highlightColour = new Color((c.getRed() * blendFactor + 255)\n\t\t\t\t/ (blendFactor + 1), (c.getGreen() * blendFactor + 255)\n\t\t\t\t/ (blendFactor + 1), (c.getBlue() * blendFactor + 255)\n\t\t\t\t/ (blendFactor + 1));\n\t\tg2d.setPaint(highlightColour);\n\t\tg2d.draw(path);\n\n\t\t// Draw shadow (Southwest)\n\t\tpath = new GeneralPath();\n\t\tpath.moveTo(0, 0);\n\t\tpath.lineTo(0, height - 1);\n\t\tpath.lineTo(width - 1, height - 1);\n\t\tColor shadowColour = new Color((c.getRed() * blendFactor)\n\t\t\t\t/ (blendFactor + 1), (c.getGreen() * blendFactor)\n\t\t\t\t/ (blendFactor + 1), (c.getBlue() * blendFactor)\n\t\t\t\t/ (blendFactor + 1));\n\t\tg2d.setPaint(shadowColour);\n\t\tg2d.draw(path);\n\n\t\tg2d.setPaint(oldPaint);\n\t\tg2d.setStroke(oldStroke);\n\n\t}", "private void drawBackground(Graphics2D g2d, ScreenParameters screenParameters) {\n Composite defaultComposite = g2d.getComposite();\n g2d.setComposite(LOW_OPACITY);\n g2d.drawImage(background, 0, 0, screenParameters.x, screenParameters.y, null);\n g2d.setComposite(defaultComposite);\n }", "public void paint(Graphics2D g){\n g.setColor(color);\n g.fill(shape);\n }", "public void drawFill(int[] rgb) {\n\t\tfill(rgb[0], rgb[1], rgb[2]);\n\t}", "@Override\n public void fillRect(double x, double y, double width, double height) {\n graphicsEnvironmentImpl.fillRect(canvas, x, y, width, height);\n }", "public void draw(Graphics2D g2){\n g2.setColor(color);\n g2.fillOval(x,y, w, w);\n }", "public void paint (Graphics g) {\r\n super.paint (g);\r\n\r\n Graphics2D g2d = (Graphics2D) g;\r\n\r\n g2d.setPaint (new GradientPaint (5, 30, Color.BLUE, 35, 100, \r\n Color.YELLOW, true));\r\n g2d.fill (new Ellipse2D.Double (5, 30, 65, 100));\r\n\r\n g2d.setPaint (Color.RED);\r\n g2d.setStroke (new BasicStroke (10.0f));\r\n g2d.draw (new Rectangle2D.Double (80, 30, 65, 100));\r\n\r\n BufferedImage buffImage = new BufferedImage (10, 10, \r\n BufferedImage.TYPE_INT_RGB);\r\n\r\n Graphics2D gg = buffImage.createGraphics ();\r\n\r\n gg.setColor (Color.YELLOW);\r\n gg.fillRect (0, 0, 10, 10);\r\n\r\n gg.setColor (Color.BLACK);\r\n gg.drawRect (1, 1, 6, 6);\r\n\r\n gg.setColor (Color.BLUE);\r\n gg.fillRect (1, 1, 3, 3);\r\n\r\n gg.setColor (Color.RED);\r\n gg.fillRect (4, 4, 3, 3);\r\n\r\n g2d.setPaint (new TexturePaint (buffImage, new Rectangle (10, 10)));\r\n g2d.fill (new RoundRectangle2D.Double (155, 30, 75, 100, 50, 50));\r\n\r\n g2d.setPaint (Color.WHITE);\r\n g2d.setStroke (new BasicStroke (6.0f));\r\n g2d.draw (new Arc2D.Double (240, 30, 75, 100, 0, 270, Arc2D.PIE));\r\n\r\n float dashes [] = {10};\r\n\r\n g2d.setPaint (Color.YELLOW);\r\n g2d.setStroke (new BasicStroke (4, BasicStroke.CAP_ROUND, \r\n BasicStroke.JOIN_ROUND, 10, dashes, 0));\r\n g2d.draw (new Line2D.Double (320, 30, 395, 150));\r\n }", "@Override\n\tpublic void draw(Graphics g) {\n\t\tg.setColor(Color.BLUE);\n\t\tif(mSource.getPortrait() != null)\n\t\t\tg.drawImage(mSource.getPortrait(), mX, mY, mWidth, mHeight, null);\n\t\telse \n\t\t\tg.fillRect(mX, mY, mWidth, mHeight);\n\t}", "@Override\n public void render(Renderable renderable)\n {\n context.setBlending(false, GL20.GL_SRC_ALPHA, GL20.GL_ONE_MINUS_SRC_ALPHA);\n context.setCullFace(GL20.GL_BACK);\n context.setDepthTest(GL20.GL_LEQUAL, 0.0f, 50.0f);\n context.setDepthMask(true);\n super.render(renderable);\n }", "protected void paintBorderGlow(Graphics2D g2,\n Shape clipShape, int width, int height) {\n int steps = getBrushSteps();\n\n boolean inside = isRenderInsideShape();\n\n g2.setPaint(getBrushColor());\n g2.translate(offset.getX(), offset.getY());\n\n if (isShouldFillShape()) {\n // set the inside/outside mode\n if (inside) {\n g2.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_ATOP, 1f));\n Area a1 = new Area(new Rectangle(\n (int) -offset.getX() - 20,\n (int) -offset.getY() - 20,\n width + 40, height + 40));\n Area a2 = new Area(clipShape);\n a1.subtract(a2);\n g2.fill(a1);\n } else {\n g2.setComposite(AlphaComposite.getInstance(AlphaComposite.DST_OVER, 1f));\n g2.fill(clipShape);\n }\n }\n\n float brushAlpha = 1f / steps;\n g2.setComposite(AlphaComposite.getInstance(AlphaComposite.DST_OVER, brushAlpha));\n\n // draw the effect\n for (float i = 0; i < steps; i = i + 1f) {\n float brushWidth = i * effectWidth / steps;\n g2.setStroke(new BasicStroke(brushWidth,\n BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL));\n g2.draw(clipShape);\n }\n g2.translate(-offset.getX(), -offset.getY());\n\n }", "public void Draw() {\n \tapp.fill(this.r,this.g,this.b);\n\t\tapp.ellipse(posX, posY, 80, 80);\n\n\t}", "public void erase() {\n g2.setPaint(Color.white);\r\n }", "@Override\n\tpublic void draw(Graphics2D window) {\n\t\twindow.setColor(SnobbyGreen);\n\t\twindow.fillRect(getXPos(), getYPos(), size, height);\n\t\t//System.out.println(\"transition\");\n\t}", "@Override\n protected void dispatchDraw(Canvas canvas) {\n canvas.drawRect(mBgFadeRect, mBgFadePaint);\n\n super.dispatchDraw(canvas);\n }", "void draw();", "public void fillRect(int x, int y, int width, int height);", "private void drawBackground(Graphics2D g2) {\n\t\t\tg2.fillRect(0, 0, WIDTHBG, HEIGHTBG);\n\t\t}", "public void drawPrimitive(Canvas tempCanvas, int x, int y, float height, float width, Paint paint);", "@Override\n\tvoid draw(Graphics g) {\n\t\tg.setColor(needsHighlight() ? selectColor : Color.GRAY);\n\t\tsetBbox(x, y, x2, y2);\n\t\tif (x < x2 && y < y2)\n\t\t\tg.fillRect(x, y, x2 - x, y2 - y);\n\t\telse if (x > x2 && y < y2)\n\t\t\tg.fillRect(x2, y, x - x2, y2 - y);\n\t\telse if (x < x2 && y > y2)\n\t\t\tg.fillRect(x, y2, x2 - x, y - y2);\n\t\telse\n\t\t\tg.fillRect(x2, y2, x - x2, y - y2);\n\t}", "protected void paint2D (Graphics2D g2) {\n\t AffineTransform tform = AffineTransform.getTranslateInstance( 0, 0);\n\t tform.scale(0.1, 0.1); \n\t //set the properties of g2\n\t g2.setTransform( tform);\n\t g2.setColor( Color.BLUE); \n\t }", "@Override\n\t\tpublic void render()\n\t\t{\n\t\t\tif(color.alpha() > 0)\n\t\t\t{\n\t\t\t\tbind();\n\t\t\t\tGL11.glBindTexture(GL11.GL_TEXTURE_2D, 0);\n\t\t\t\tGL11.glBegin(GL11.GL_TRIANGLE_STRIP);\n\t\t\t\t\tfloat screenWidth = WindowManager.controller().width();\n\t\t\t\t\tfloat screenHeight = WindowManager.controller().height();\n\t\t\t\t\tGL11.glVertex2f(0, 0);\n\t\t\t\t\tGL11.glVertex2f(screenWidth, 0);\n\t\t\t\t\tGL11.glVertex2f(0, screenHeight);\n\t\t\t\t\tGL11.glVertex2f(screenWidth, screenHeight);\n\t\t\t\tGL11.glEnd();\n\t\t\t\trelease();\n\t\t\t}\n\t\t}", "public void fillRect(int offX, int offY, int width, int height, int colour) {\n\tif (offX + width - camX < 0)\r\n\t return;\r\n\tif (offY + height - camY < 0)\r\n\t return;\r\n\tif (offX - camX > pW)\r\n\t return;\r\n\tif (offY - camY > pH)\r\n\t return;\r\n\r\n\tfor (int y = 0; y < height; y++) {\r\n\t for (int x = 0; x < width; x++) {\r\n\t\tsetPixel(x + offX, y + offY, colour);\r\n\t }\r\n\t}\r\n }", "@Override\n public void clear_area(int x1, int y1, int x2, int y2) {\n graphics.setColor(getBackGround());\n graphics.fillRect(x1, y1, x2 - x1, y2 - y1);\n graphics.setColor(getForeGround());\n }", "@Override\n\tpublic void paint(Graphics2D g) {\n\t\tg.setColor(Color.WHITE);\n\t\tg.drawOval(this.x,this.y, width,height);\n\t\tg.fillOval(this.x,this.y, width,height);\n\t}", "@Override\r\npublic void mousePressed(MouseEvent arg0) {\n\t\r\n\tb1.setBackground(Color.pink);\r\n\t\r\n}", "protected void drawNight(java.awt.Graphics2D g, float a) {\r\n Color oldColor = g.getColor();\r\n g.setColor(Color.BLUE);\r\n g.setComposite(AlphaComposite.SrcOver.derive(a));\r\n g.fillRect(0, 0, GamePanel.WIDTH, GamePanel.HEIGHT);\r\n g.setComposite(AlphaComposite.SrcOver.derive(1.0f));\r\n g.setColor(oldColor);\r\n }", "public void render(Graphics g) \n\t{\n\t g.setColor(new Color(r.nextInt()+255));\n\t g.fillRect((int)x,(int) y, 32, 32);\n\t}", "public void flush(){\r\n\t\tColor tempcol = screengraphics.getColor();\r\n\t\tscreengraphics.setColor(backgroundcolor);\r\n\t\tscreengraphics.fillRect(0, 0, sizex, sizey);\r\n\t\tscreengraphics.dispose();\r\n\t\tstrategy.show();\r\n\t\tscreengraphics =(Graphics2D) strategy.getDrawGraphics();\r\n\t\tscreengraphics.setColor(backgroundcolor);\r\n\t\tscreengraphics.fillRect(0, 0, sizex, sizey);\r\n\t\tscreengraphics.dispose();\r\n\t\tstrategy.show();\r\n\t\tscreengraphics =(Graphics2D) strategy.getDrawGraphics();\r\n\t\tscreengraphics.setColor(tempcol);\r\n\t\t\r\n\t}", "@Override\n\tpublic void draw() {\n\t\tSystem.out.println(\"绘制三角形\");\t\n\t}", "public static void makeBackgroundGray(){\r\n\t\tStdDraw.clear(StdDraw.LIGHT_GRAY);\r\n\t}", "@Override\r\n\tpublic void paintComponent (Graphics g) {\r\n\t\tsuper.paintComponent(g);\r\n\t\tg.drawImage(background, 0, 0, 800, 660, null);\r\n\t}", "public GLGraphics fillRect(float x, float y, float w, float h) {\n\t\treturn renderRect(true, x, y, w, h);\n\t}", "public void draw(Canvas canvas, int _x, int _y){\n Matrix m = new Matrix();\n m.preScale(1, -1);\n Bitmap mirror = Bitmap.createBitmap(crossSection, 0, 0, length, height, m, false);\n\n //Use the cross section and its mirror to mask the wood texture\n Bitmap frameImage = woodFrames[currentFrame].copy(Bitmap.Config.ARGB_8888, true);\n\n Canvas c = new Canvas(frameImage);\n Paint maskPaint = new Paint();\n maskPaint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.DST_IN));\n c.drawBitmap(crossSection, 0, height, maskPaint);\n c.drawBitmap(mirror, 0, 0, maskPaint);\n\n //Draw the result to the canvas\n //canvas.drawBitmap(crossSection, _x, _y, null);\n //canvas.drawBitmap(mirror, _x, _y - height, null);\n canvas.drawBitmap(frameImage, x, y - height, null);\n canvas.drawBitmap(cutMarks, x - cutOffset.x, y - height - cutOffset.y, null);\n\n currentFrame ++;\n if(currentFrame == numFrames) currentFrame = 0;\n\n }", "private Texture createRectangularTexture(int width, int height) {\r\n\t\tPixmap pixmap = new Pixmap(width, height, Pixmap.Format.RGBA8888);\r\n\t\tpixmap.setColor(Color.CLEAR);\r\n\t\tpixmap.fillRectangle(0,0, pixmap.getWidth(), pixmap.getHeight());\r\n\t\treturn new Texture(pixmap);\r\n\t}", "protected void paintComponent(Graphics g) {\n g.setColor(Color.WHITE);\n g.fillRect(0, 0, getWidth(), getHeight());\n }" ]
[ "0.6812493", "0.63180286", "0.6279813", "0.61759675", "0.61723655", "0.61564845", "0.61431897", "0.610823", "0.609285", "0.6092661", "0.6084718", "0.6073342", "0.6072947", "0.606069", "0.6052326", "0.6052326", "0.5954853", "0.5910265", "0.58951896", "0.5891207", "0.58793855", "0.5875856", "0.58728665", "0.5852684", "0.5845501", "0.5820683", "0.5809022", "0.5792227", "0.57851815", "0.5747905", "0.57234", "0.57205963", "0.5717697", "0.57155836", "0.56944263", "0.5692238", "0.56912154", "0.5688619", "0.56792516", "0.56620157", "0.56560814", "0.5653807", "0.56384754", "0.563658", "0.560736", "0.5593491", "0.5592148", "0.5589279", "0.55730903", "0.5566827", "0.5563089", "0.5553045", "0.5548617", "0.55444133", "0.5542184", "0.55334926", "0.5528188", "0.55260235", "0.5525823", "0.5524858", "0.55194324", "0.55085105", "0.55026466", "0.55024505", "0.550237", "0.54908735", "0.5485929", "0.5479615", "0.54783976", "0.5466753", "0.5463495", "0.54618686", "0.5460452", "0.5442986", "0.5441783", "0.543092", "0.5424068", "0.54215825", "0.5419499", "0.5415411", "0.54145175", "0.54115903", "0.5403429", "0.5400351", "0.5393343", "0.53917056", "0.5389597", "0.5375202", "0.5375177", "0.5374706", "0.53685063", "0.5357496", "0.5355139", "0.53536755", "0.5345689", "0.534377", "0.5333469", "0.53323", "0.53320885", "0.5330381", "0.53248036" ]
0.0
-1
TODO Autogenerated method stub
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.create_activity); // 把当前Activity加入到CloseApplication的Activitylist中 CloseApplication.getInstance().addActivity(this); /* * 获得系统时间及时区,时间的输出格式是12时制 */ // SimpleDateFormat sd = new SimpleDateFormat("yyyy/MM/dd hh:mm"); // final String date = sd.format(new java.util.Date()); // 获得控件的Id create_rl3 = (RelativeLayout)findViewById(R.id.create_rl3); create_txt1 = (TextView)findViewById(R.id.create_txt1); create_name = (EditText)findViewById(R.id.create_name); create_password = (EditText)findViewById(R.id.create_password); create_password_enter = (EditText)findViewById(R.id.create_password_enter); create_note = (EditText)findViewById(R.id.create_note); create_back = (Button)findViewById(R.id.create_back); create_ok = (Button)findViewById(R.id.create_ok); // 为顶部返回按键绑定监听器 create_back.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { Intent intent = new Intent(); intent.setClass(CreateActivity.this,HomeActivity.class); CreateActivity.this.startActivity(intent); finish(); } }); // 为选择分类按键绑定监听器 create_rl3.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { //此处直接new一个Dialog对象出来,在实例化的时候传入主题 final Dialog dialog = new Dialog(CreateActivity.this, R.style.MyDialog); //设置它的ContentView dialog.setContentView(R.layout.dialog_classify); dialog.show(); // 获得控件的Id Button k1 = (Button)dialog.findViewById(R.id.k1); Button k2 = (Button)dialog.findViewById(R.id.k2); Button k3 = (Button)dialog.findViewById(R.id.k3); Button k4 = (Button)dialog.findViewById(R.id.k4); Button k5 = (Button)dialog.findViewById(R.id.k5); Button k6 = (Button)dialog.findViewById(R.id.k6); // 为网站论坛绑定监听器 k1.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { create_txt1.setText("--网站论坛--"); dialog.dismiss(); // 为保存按键绑定监听器 create_ok.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { editData("web","网站论坛"); } }); } }); // 为聊天社区绑定监听器 k2.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { create_txt1.setText("--聊天社区--"); dialog.dismiss(); // 为保存按键绑定监听器 create_ok.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { editData("chat","聊天社区"); } }); } }); // 为游戏账户绑定监听器 k3.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { create_txt1.setText("--游戏账户--"); dialog.dismiss(); // 为保存按键绑定监听器 create_ok.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { editData("game","游戏账户"); } }); } }); // 为银行账户绑定监听器 k4.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { create_txt1.setText("--银行账户--"); dialog.dismiss(); // 为保存按键绑定监听器 create_ok.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { editData("bank","银行账户"); } }); } }); // 为邮箱账户绑定监听器 k5.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { create_txt1.setText("--邮箱账户--"); dialog.dismiss(); // 为保存按键绑定监听器 create_ok.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { editData("email","邮箱账户"); } }); } }); // 为其他绑定监听器 k6.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { create_txt1.setText("--其他--"); dialog.dismiss(); // 为保存按键绑定监听器 create_ok.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { editData("others","其他"); } }); } }); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public String getField(String key) { return gp.getValue(key); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
FIXME the new post logic should be like below, But I got a file for deleting the new posted card after it was posted.
public void newPostTimeline(TimeLine timeline) { List<TimeLine> timelines = loadTimelines(SystemProperty.ALL, currentUser); timeLineSheet.refreshAll(timelines); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void postNewPost() {\n if (mIsReplyOnBulletin) {\n OperationManager operationManager = OperationManager.getInstance(NewPostActivity.this);\n operationManager.postNewReply(etNewPostMsg.getText().toString(),\n getIntent().getExtras().getLong(EXTRA_POST_ID), NewPostActivity.this);\n } else {\n OperationManager operationManager = OperationManager.getInstance(NewPostActivity.this);\n operationManager.postNewBulletin(etNewPostSubject.getText().toString()\n , etNewPostMsg.getText().toString(), mFilesAdapter.getData(), NewPostActivity.this);\n\n }\n finish();\n }", "public void submitCard() {\n String description = cardDescription.getText().toString();\n String tag = LTAPIConstants.NAME_TO_TAG.get(cardTag.getSelectedItem().toString());\n String locationText = autoCompView.getText().toString();\n String CardAuthor = author.getText().toString();\n boolean test = photoFile == null;\n LTLog.debug(LOG_TAG, \"danjie: \" + test);\n String emptyComplain = buildSubmitEmptyComplain(\n Utils.isEmptyString(description), \"-1\".equals(tag),\n Utils.isEmptyString(locationText), photoFile == null,\n Utils.isEmptyString(CardAuthor));\n if (!Utils.isEmptyString(emptyComplain)) {\n ShowToast(emptyComplain);\n return;\n }\n TripCard tCard = ((NewTripCardActivity) getActivity()).getCurrentTripCard();\n if (Utils.isEnglishchar(description.trim().charAt(0))) {\n tCard.setDescriptionLang(\"en\");\n } else {\n tCard.setDescriptionLang(\"zh\");\n }\n// tCard.setTitle(cardTitle.getText().toString());\n tCard.setDescription(cardDescription.getText().toString());\n tCard.setCountry(location.getCountryCode());\n tCard.setCardAuthor(CardAuthor);\n tCard.setLocationFullName(locationText);\n tCard.setStatus(1);\n tCard.setGooglelocationid(location.getLocationId());\n // Associate the meal with the current user\n tCard.setAuthor(ParseUser.getCurrentUser());\n\n // Add the rating\n tCard.setTag(LTAPIConstants.NAME_TO_TAG.get(cardTag.getSelectedItem().toString()));\n\n // If the user added a photo, that data will be\n // added in the CameraFragment\n\n // Save the meal and return\n tCard.saveInBackground(new SaveCallback() {\n @Override\n public void done(ParseException e) {\n if (e == null) {\n getActivity().setResult(Activity.RESULT_OK);\n getActivity().finish();\n } else {\n debugShowToast(\"Error saving: \" + e.getMessage());\n }\n }\n });\n }", "@PostMapping(\"/cards\")\n StarbucksCard newCard() {\n StarbucksCard newcard = new StarbucksCard();\n\n Random random = new Random();\n int num = random.nextInt(900000000) + 100000000;\n int code = random.nextInt(900) + 100;\n\n newcard.setCardNumber(String.valueOf(num));\n newcard.setCardCode(String.valueOf(code));\n newcard.setBalance(20.00);\n newcard.setActivated(false);\n newcard.setStatus(\"New Card\");\n return repository.save(newcard);\n }", "@Override\n\tpublic void deletePost(Post post) {\n\n\t}", "@Override\n public void onClick(View view) {\n if(!lastIntent.getBooleanExtra(\"isNew\", true)) {\n if (isValidPost(editTitle.getText().toString(), editDescription.getText().toString(), editBody.getText().toString(), editDeadline.getText().toString(), editPayment.getText().toString())) {\n String key = lastIntent.getBundleExtra(\"post\").getString(\"id\");\n Post post = new Post(editTitle.getText().toString(), editDeadline.getText().toString(), editPayment.getText().toString(), editDescription.getText().toString(), editBody.getText().toString(), mUser.getUid(), key);\n Map<String, Object> postValues = post.toMap();\n Map<String, Object> childUpdates = new HashMap<>();\n Map<String, Object> userUpdates = new HashMap<>();\n\n childUpdates.put(\"/posts/\" + key, postValues);\n userUpdates.put(\"/users/\" + FirebaseAuth.getInstance().getCurrentUser().getUid() + \"/posts/\" + key, postValues);\n\n mDatabase.updateChildren(childUpdates);\n mDatabase.updateChildren(userUpdates);\n\n startActivity(new Intent(getApplicationContext(), HomeWithDrawer.class));\n }\n }\n\n //Otherwise we will create a a new post. Find a way to simplify these two blocks!!\n else {\n if (isValidPost(editTitle.getText().toString(), editDescription.getText().toString(), editBody.getText().toString(), editDeadline.getText().toString(), editPayment.getText().toString())) {\n\n String key = mDatabase.child(\"posts\").push().getKey();\n //System.out.println(\"Make Post Description: \" + editDescription.getText().toString());\n Post post = new Post(editTitle.getText().toString(), editDeadline.getText().toString(), editPayment.getText().toString(), editDescription.getText().toString(), editBody.getText().toString(), mUser.getUid(), key);\n Map<String, Object> postValues = post.toMap();\n Map<String, Object> childUpdates = new HashMap<>();\n Map<String, Object> userUpdates = new HashMap<>();\n childUpdates.put(\"/posts/\" + key, postValues);\n userUpdates.put(\"/users/\" + FirebaseAuth.getInstance().getCurrentUser().getUid() + \"/posts/\" + key, postValues);\n\n mDatabase.updateChildren(childUpdates);\n mDatabase.updateChildren(userUpdates);\n\n Intent listenerIntent = new Intent(getApplicationContext(), NotificationListener.class);\n\n postBundle = new Bundle();\n postBundle.putString(\"postId\", key);\n postBundle.putString(\"postTitle\", editTitle.getText().toString());\n listenerIntent.putExtra(\"requestInfo\", postBundle);\n\n //Starts the NotificationListener for the post described by the postBundle.\n startService(listenerIntent);\n startActivity(new Intent(getApplicationContext(), HomeWithDrawer.class));\n }\n }\n }", "CompletableFuture<PostResponse> createNewPost(Post post);", "@PostMapping(\"/posts\")\n ResponseEntity<?> createPost(@RequestBody Post post) {\n post.setOwner(SecurityContextHolder.getContext().getAuthentication().getName());\n post.setDateCreated(LocalDateTime.now());\n\n EntityModel<Post> newPost = modelAssembler.toModel(postRepository.save(post));\n return ResponseEntity.created(newPost.getRequiredLink(IanaLinkRelations.SELF).toUri()).body(newPost);\n }", "private void user_post(String uid) {\n Calendar calForDate = Calendar.getInstance();\n SimpleDateFormat currentDate = new SimpleDateFormat(\"dd-MMM-yyy\");\n String saveCurrentDate = currentDate.format(calForDate.getTime());\n\n // pic up current time\n Calendar calForTime = Calendar.getInstance();\n SimpleDateFormat currentTime = new SimpleDateFormat(\"HH:mm\");\n String saveCurrentTime = currentTime.format(calForTime.getTime());\n\n String random_key = uid + saveCurrentDate + saveCurrentTime;\n\n String post_text = et_post_text.getText().toString().trim();\n\n if (TextUtils.isEmpty(post_text)){\n Toast.makeText(getActivity(), \"Write your post first\", Toast.LENGTH_SHORT).show();\n return;\n }else {\n UploadPostModel uploadPostModel = new UploadPostModel(post_text,uid,saveCurrentTime,saveCurrentDate);\n databaseReference.child(random_key).setValue(uploadPostModel);\n et_post_text.setText(\"\");\n }\n }", "private void verifyPost() {\n if(TextUtils.isEmpty(newArticleTitle)){\n articleTitle.setError(\"Your post requires a title!\");\n articleTitle.requestFocus();\n return;\n }\n\n if(TextUtils.isEmpty(newArticleContent)){\n articleContent.setError(\"Your post requires a some content!\");\n articleContent.requestFocus();\n return;\n }\n\n // Pass in the calling activity such that official and team news are separated\n databaseReference = FirebaseDatabase.getInstance().getReference(callingActivity);\n\n String postId = databaseReference.push().getKey();\n\n NewsPost newsPost = new NewsPost(newArticleTitle, newArticleContent,\n newArticlePosterUsername, newArticlePosterProfileImage, dayDate, dayTime);\n\n databaseReference.child(postId).setValue(newsPost);\n\n // Close the activity\n finish();\n }", "public void onClick(View v) {\n post.setTitle(titleEditText.getText().toString());\n post.setContent(descriptionEditText.getText().toString());\n post.setImageUrl((String) gallery.getSelectedItem());\n\n PostAction.curatePost(post, jsonForSelectedSharers(), PostCurateActivity.this, true, new PostAction.OnActionComplete() {\n\n @Override\n public void onActionComplete(Post in, Post out) {\n Intent i = new Intent();\n i.putExtra(\"postToAdd\", out);\n i.putExtra(\"postToRemove\", in);\n PostCurateActivity.this.setResult(TabPostsListActivity.RESULT_ADD_CURATED_AND_REMOVE_CURABLE, i);\n PostCurateActivity.this.finish();\n }\n });\n }", "protected void newPost() {\n\t\tIntent intent = new Intent(this, EditTopicActivity.class);\n\t\tintent.putExtra(EditPostActivity.IS_NEW, true);\n\n\t\tstartActivity(intent);\n\t}", "@RequestMapping(value = \"/card/\", method = RequestMethod.POST)\n public ResponseEntity<Void> createCard(@RequestBody Card card, UriComponentsBuilder ucBuilder) {\n \tcard.setNbDispo(card.getNbItem());\n card.setDate(new Date(System.currentTimeMillis()));\n if (cardService.isCardExist(card)) {\n \tlogger.warn( \"A Card with name \" + card.getNameFr() + \" already exist\" );\n return new ResponseEntity<Void>(HttpStatus.CONFLICT);\n }\n cardService.saveCard(card);\n HttpHeaders headers = new HttpHeaders();\n headers.setLocation(ucBuilder.path(\"/card/{id}\").buildAndExpand(card.getId()).toUri());\n return new ResponseEntity<Void>(headers, HttpStatus.CREATED);\n }", "public void postDelete(int post_no) {\n\t\ttry (Connection conn = ConnectionProvider.getConnection()) {\n\t\t\tboardDao.postDelete(conn, post_no);\n\t\t} catch (SQLException e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}", "@Override\r\n\tpublic boolean releasePost(Post post) {\n\t\tpostDao=new PostDaoImpl(TransactionManager.connection);\r\n\t\tif(postDao.insert(post)>0)\r\n\t\t\treturn true;\r\n\t\telse\r\n\t\t\treturn false;\r\n\t}", "@Override\n\tpublic Post updatePost(Post post) {\n\t\treturn null;\n\t}", "private void myNewCard( String name, String image, String desc, float price, int pid,String bulkdescription ) {\n\n firebaseImgAddresses = model.getProductimages();\n\n FirebaseAuth mAuth = FirebaseAuth.getInstance();\n\n SubCardsmodel movie = new SubCardsmodel(pid,name,image,desc,price,bulkdescription, mAuth.getCurrentUser().getEmail(),shopname,shopmobile,firebaseImgAddresses);\n //referring to movies node and setting the values from movie object to that location\n System.out.println(\"card and model \" + card + movie.getCardname());\n mDatabaseReference.child(\"Products\").child(card).push().setValue(movie);\n progressDialog.dismiss();\n\n// editAt(model.getCardname());\n\n\n Intent intent = new Intent(EditSubCard.this, DeleteSubCardView.class);\n intent.putExtra(\"cardname\",card);\n\n startActivity(intent);\n\n\n\n\n }", "@Override\r\n\tpublic boolean cancelPost(Post post) {\n\t\tpostDao=new PostDaoImpl(TransactionManager.connection);\r\n\t\tif(postDao.delete(post)>0)\r\n\t\t\treturn true;\r\n\t\telse\r\n\t\t\treturn false;\t\r\n\t}", "private void sendPost() {\n Map<String,Object> values = new HashMap<>();\n values.put(Constants.MANAGEMENT,management);\n values.put(Constants.GENERAL_INFORMATION,generalnformation);\n values.put(Constants.SYMPTOMS,symptoms);\n\n FireBaseUtils.mDatabaseDiseases.child(caseStudyUrl).child(url).updateChildren(values);\n Toast.makeText(DiseaseEditActivity.this, \"Item Posted\",LENGTH_LONG).show();\n finish();\n }", "protected abstract void sendNewPost(Discussion discussion, Post post);", "private void addCard() {\n Intent intent = new Intent(this, NewCard.class);\n intent.putExtra(\"cardSetId\", cardSetId);\n startActivity(intent);\n }", "private void deletePost() {\n /*Retrofit will make a implementation for this method automatically\n * There for we simple call method make making API using retrofit instance*/\n Call<Void> call = jsonPlaceHolderAPI.deletePost(5);\n call.enqueue(new Callback<Void>() {\n @SuppressLint(\"SetTextI18n\")\n @Override\n @EverythingIsNonNull\n public void onResponse(Call<Void> call, Response<Void> response) {\n textResult.setText(\"CODE: \" + response.code());\n }\n\n @Override\n @EverythingIsNonNull\n public void onFailure(Call<Void> call, Throwable t) {\n textResult.setText(t.getMessage());\n }\n });\n }", "@Test (groups = \"create_post\")\n public void LTest_Delete_Post_success(){\n\n System.out.println(\"Delete PostID# \"+ createdPost);\n System.out.println(\"Request to: \" + resourcePath + \"/\" + createdPost);\n\n given()\n .spec(RequestSpecs.generateToken())\n //.body(testPost)\n .when()\n .delete(resourcePath + \"/\" + createdPost)\n .then()\n .body(\"message\", equalTo(\"Post deleted\"))\n .and()\n .statusCode(200)\n .spec(ResponseSpecs.defaultSpec());\n }", "@Override\n\tpublic void deletePost(Scanner sc) {\n\t\tgetPostByMemberId();\n\t\tSystem.out.print(\"삭제할 번호를 입력해 주세요 :\");\n\t\tdao.deletePost(sc.nextInt());\n\t}", "private void createPost() {\n PostModel model = new PostModel(23, \"New Title\", \"New Text\");\n Call<PostModel> call = jsonPlaceHolderAPI.createPost(model);\n call.enqueue(new Callback<PostModel>() {\n @Override\n @EverythingIsNonNull\n public void onResponse(Call<PostModel> call, Response<PostModel> response) {\n if (!response.isSuccessful()) {\n textResult.setText(response.code());\n return;\n }\n PostModel postResponse = response.body();\n String content = \"\";\n assert postResponse != null;\n content += \"Code: \" + response.code() + \"\\n\";\n content += \"ID: \" + postResponse.getId() + \"\\n\";\n content += \"User ID: \" + postResponse.getUserId() + \"\\n\";\n content += \"Title: \" + postResponse.getUserId() + \"\\n\";\n content += \"Body: \" + postResponse.getText();\n textResult.append(content);\n }\n\n @Override\n @EverythingIsNonNull\n public void onFailure(Call<PostModel> call, Throwable t) {\n textResult.setText(t.getMessage());\n }\n });\n }", "public de.uni_koblenz.jgralabtest.schemas.gretl.pddsl.Card createCard();", "@PostMapping(\"/addPost\")\n public ResponseEntity addNewPost(@RequestBody Post post){\n postService.postNewInfo(post);\n return new ResponseEntity(HttpStatus.OK);\n }", "public void postReview(Review review)\n\t{\n\t\t// The new review ID is the last review ID + 1\n\t\treview.setId(list.get(list.size()-1).getId() + 1);\n\t\t\n\t\t// Add the review to the list\n\t\tlist.add(review);\n\t}", "void post(Post post) {\n if (post instanceof Video) {\n vd.compressVideo((Video) post);\n } else if (post instanceof Image) {\n id.decorateImage((Image) post);\n } else if (post instanceof Text) {\n tg.checkGrammar((Text) post);\n }\n }", "@PostMapping(\"/\")\n private ResponseEntity<Post> createPost(@RequestBody Post post) {\n User user = getCurrentUser();\n post.setCreated(new Date());\n post.setUserId(user.getId());\n post = postService.add(post);\n\n return new ResponseEntity<>(post, HttpStatus.OK);\n }", "void savePost(Post post);", "public void deleteCard(int cardId)\n {\n dbObj=new dbFlashCards(uid);\n dbObj.deleteCard(cardId, packId);\n \n \n }", "Post save(Post post) throws Exception;", "private void cards() {\n newUserCard();\n editTypeCard();\n changePasswordCard();\n }", "@Override\n public void onClick(View v) {\n InputMethodManager inputManager = (InputMethodManager)getActivity().getSystemService(Context.INPUT_METHOD_SERVICE);\n\n inputManager.hideSoftInputFromWindow((null == getActivity().getCurrentFocus()) ? null : getActivity().getCurrentFocus().getWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS);\n String post = editText_post.getText().toString().trim();\n\n\n\n\n //To remove the text writtrn in the edit text box\n\n if (!TextUtils.isEmpty(post)) {\n\n progressBar.setVisibility(View.VISIBLE);\n //This is used to get the user id\n final String id=databaseReference1.push().getKey();\n\n Date today = new Date();\n SimpleDateFormat format = new SimpleDateFormat(\"dd-MM-yyyy hh:mm a\");\n String dateToStr = format.format(today);\n final Post post1= new Post(post,name,id,dateToStr);\n\n\n\n if(imageUri!=null){\n storageReference.child(name+id+\".jpg\").putFile(imageUri)\n .addOnSuccessListener(new OnSuccessListener<UploadTask.TaskSnapshot>() {\n @Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n\n databaseReference1.child(id).setValue(post1);\n Toast.makeText(context,\"Post added\",Toast.LENGTH_SHORT).show();\n editText_post.setText(\"\");\n progressBar.setVisibility(View.INVISIBLE);\n postImage.setImageResource(0);\n\n NotificationManagerCompat notificationManager = NotificationManagerCompat.from(context);\n\n // notificationId is a unique int for each notification that you must define\n notificationManager.notify(notificationId, mBuilder.build());\n }\n });\n\n\n }\n\n if(imageUri==null){\n\n databaseReference1.child(id).setValue(post1);\n Toast.makeText(context,\"Post added\",Toast.LENGTH_SHORT).show();\n editText_post.setText(\"\");\n progressBar.setVisibility(View.INVISIBLE);\n postImage.setImageResource(0);\n\n NotificationManagerCompat notificationManager = NotificationManagerCompat.from(context);\n\n // notificationId is a unique int for each notification that you must define\n notificationManager.notify(notificationId, mBuilder.build());\n\n }\n\n //Set value method is used to write the data inside the database\n //Using custom Java class(Post) will automatically ensures that data is written inside the\n //database in nested tree form\n //setvalue() method overwrites the data written at the specified location\n //taking an object at once\n\n\n } else {\n Toast.makeText(context, \"Add both post and image\", Toast.LENGTH_SHORT).show();\n editText_post.setText(\"\");\n postImage.setImageResource(0);\n }\n }", "public boolean delete(String cardid);", "@Override\n public Post createPost(Post post, String token) throws TokenException {\n User user = sender.getUserFromUserAPI(token);\n if (user == null) {\n logger.info(\"Invalid token: \"+ token +\" User could not be retrieved\");\n throw new TokenException(\"Invalid Token.\");};\n post.setUserId(user.getUserId());\n post.setUser(user);\n Post savedPost = postRepository.save(post);\n return savedPost;\n }", "@Override\n\tvoid post() {\n\t\t\n\t}", "@Override\n\tpublic Post createPost(Post post) {\n\t\treturn postDao.createPost(post);\n\t}", "Card dealOneCard();", "@Override\n\tpublic void createCard(Card card) {\n\t\t/* begin transaction */ \n\t\tSession session = getCurrentSession(); \n\t\tsession.beginTransaction(); \n\n\t\t/* persist */ \n\t\tsession.save(card); \n\n\t\t/* commit */ \n\t\tsession.getTransaction().commit();\n\t}", "public void onClick(View v) {\n String itemString = newItem.getText().toString();\n String descString = newDesc.getText().toString();\n String contactString = newContact.getText().toString();\n String categoryString = newCategory.getSelectedItem().toString();\n // get the bitmap from the imageview\n Bitmap bitmap = ((BitmapDrawable)postImageView.getDrawable()).getBitmap();\n ByteArrayOutputStream stream = new ByteArrayOutputStream();\n // Compress image to lower quality scale 1\n bitmap.compress(Bitmap.CompressFormat.WEBP, 1, stream);\n byte[] image = stream.toByteArray();\n // if the image exceeds the allowable number of bytes\n if (image.length >= max)\n {\n // set byte array to default image\n image = noImg;\n // give appropriate comment to user\n // Code from:\n // http://developer.android.com/guide/topics/ui/notifiers/toasts.html\n Context context = getApplicationContext();\n CharSequence text = \"Image too big. Go to My Posts and choose another!\";\n int duration = Toast.LENGTH_LONG;\n Toast toast = Toast.makeText(context, text, duration);\n toast.show();\n\n }\n // Construct new post\n Posts newPost = new Posts(itemString, descString, categoryString, image, contactString);\n // Push post to parse\n parse.pushPost(newPost);\n finish();\n }", "@PutMapping(\"/\")\n private ResponseEntity<Post> updatePost(@RequestBody Post post) {\n User user = getCurrentUser();\n Post oldPost = postService.findById(post.getId()).orElse(null);\n\n if (oldPost == null && !user.getId().equals(post.getId()))\n return ResponseEntity.notFound().build();\n\n if (oldPost != null) {\n oldPost.setCreated(new Date());\n oldPost.setSubject(post.getSubject());\n oldPost.setContent(post.getContent());\n\n postService.add(oldPost);\n return new ResponseEntity<>(oldPost, HttpStatus.OK);\n } else\n return ResponseEntity.badRequest().build();\n }", "public PostPO clickOnNewPost() {\n\t\tnewPost.click();\n\t\treturn new PostPO();\n\t}", "@Test\n\tpublic void createPreviewDeletePost() throws Exception {\n getDriver().findElement(By.linkText(\"Posts\")).click();\n getDriver().findElement(By.linkText(\"Add New\")).click();\n\n String title = \"Sample Title\";\n WebElement titleBox = getDriver().findElement(By.id(\"title\"));\n titleBox.sendKeys(title);\n assertEquals(title, titleBox.getAttribute(\"value\"), \"Assert post title\");\n \n getDriver().switchTo().frame(\"content_ifr\");\n \n String text = \"Dummy text\";\n WebElement content = getDriver().findElement(By.id(\"tinymce\"));\n content.sendKeys(text);\n assertEquals(text, content.getText(), \"Assert post content\");\n \n // Once an iframe is handled, switch back to default content (dom root)\n getDriver().switchTo().defaultContent();\n \n //Clicking on Publish Button\n getDriver().findElement(By.id(\"publish\")).click();\n \n // Get current window name\n String mainWin = getDriver().getWindowHandle();\n \n // Click post preview button\n getDriver().findElement(By.id(\"post-preview\")).click();\n \n for (String handle: getDriver().getWindowHandles()) {\n if (!handle.equals(mainWin)) {\n getDriver().switchTo().window(handle);\n getDriver().close();\n }\n }\n \n // Switch to main window\n getDriver().switchTo().window(mainWin);\n \n // Assert that the new window was closed\n assertEquals(getDriver().getWindowHandles().size(), 1, \"Verifying preview window is closed or not\");\n \n // CLicking on Move Trash\n getDriver().findElement(By.linkText(\"Move to Trash\")).click();\n }", "@Override\n\tpublic void editPost(Scanner sc) {\n\t\tPost p = new Post();\n\t\tgetPostByMemberId();\n\t\tSystem.out.print(\"수정할 번호를 입력해 주세요 >>\");\n\t\tp.setPostId(sc.nextInt());\n\t\tsc.nextLine();\n\t\tp.setMemberId(cur.getId());\n\t\tSystem.out.print(\"제목을 수정해 주세요 :\");\n\t\tp.setPostName(sc.nextLine());\n\t\tSystem.out.print(\"내용을 수정해 주세요 :\");\n\t\tp.setContent(sc.nextLine());\n\t\tdao.updatePost(p);\n\t}", "public void savePost(VBeatPostModel post) {\n AppLocalDB.getInstance().db.postDao().insertAll(post);\n }", "@FormUrlEncoded\n @POST(\"/v2/cards/create.json\")\n void create(@Field(\"card_data\") CardData data, Callback<CardCreate> cb);", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == ADD_CARD_REQUEST_CODE && resultCode == RESULT_OK) {\n Bundle extras = data.getExtras();\n String newQuestion = extras.getString(\"question\");\n String newAnswer = extras.getString(\"answer\");\n String wrongAnswer1 = extras.getString(\"wrong_answer1\");\n String wrongAnswer2 = extras.getString(\"wrong_answer2\");\n\n database.insertCard(new Flashcard(newQuestion, newAnswer, wrongAnswer1, wrongAnswer2));\n allFlashCards = database.getAllCards();\n\n resetAnswerButtonStates();\n setAnswerButtonsAndQuestion(newQuestion, newAnswer, wrongAnswer1, wrongAnswer2);\n currentDisplayIndex = allFlashCards.size() - 1;\n } else if (requestCode == EDIT_CARD_REQUEST_CODE && resultCode == RESULT_OK) {\n Bundle extras = data.getExtras();\n String question = extras.getString(\"question\");\n String answer = extras.getString(\"answer\");\n String wrong1 = extras.getString(\"wrong_answer1\");\n String wrong2 = extras.getString(\"wrong_answer2\");\n\n Flashcard currentCard = allFlashCards.get(currentDisplayIndex);\n currentCard.setQuestion(question);\n currentCard.setAnswer(answer);\n currentCard.setWrongAnswer1(wrong1);\n currentCard.setWrongAnswer2(wrong2);\n database.updateCard(currentCard);\n allFlashCards = database.getAllCards();\n\n resetAnswerButtonStates();\n setAnswerButtonsAndQuestion(question, answer, wrong1, wrong2);\n }\n }", "public boolean addPost (Message post) {\n Logger.write(\"VERBOSE\", \"DB\", \"addPost(...)\");\n \n try {\n execute(DBStrings.addPost.replace(\"__SIG__\", post.getSig())\n .replace(\"__msgText__\", post.POSTgetText())\n .replace(\"__time__\", Long.toString(post.getTimestamp()))\n .replace(\"__recieverKey__\", post.POSTgetWall())\n .replace(\"__sendersKey__\", Crypto.encodeKey(getSignatory(post))));\n String[] visibleTo = post.POSTgetVisibleTo();\n for (int i = 0; i < visibleTo.length; i++)\n execute(DBStrings.addPostVisibility.replace(\"__postSig__\", post.getSig()).replace(\"__key__\", visibleTo[i]));\n return true;\n } catch (java.sql.SQLException e) {\n Logger.write(\"ERROR\", \"DB\", \"SQLException: \" + e);\n return false;\n }\n }", "@Override\n\tpublic void remove(Post entity) {\n\t\t\n\t}", "@PostMapping(\"/removePost/{postID}\")\n public String removePostFromBoard(@RequestParam String boardID,\n @PathVariable(value = \"postID\") String postID) {\n ResponseEntity<Board> result = boardController.removePost(boardID, postID);\n if (result.getStatusCode().is2xxSuccessful() && result.getBody() != null)\n return \"redirect:/viewBoard/\" + boardID;\n\n return \"redirect:/viewPost/\" + postID;\n }", "@RequestMapping(value=\"/fpost/new\",method = RequestMethod.POST)\r\n\tpublic ResponseEntity<Fpost> addNewFpost(@RequestBody Fpost fpost) {\r\n\t\tSystem.out.println(\"Adding new fpost\");\r\n\t\t\t\r\n\t\t\tboolean b =fpostDAO.add(fpost);\r\n\t\t\tif(b) System.out.println(\"fpost added Successfully\");\r\n\t\t\telse System.out.println(\"fpost NOT added\");\r\n\t\t\t\r\n\t\treturn new ResponseEntity<Fpost>(fpost, HttpStatus.OK);\r\n\t}", "@Test\n\tpublic void postTest() {\n\t\tnew WebDriverWait(driver, 15).until(\n\t\t\t ExpectedConditions.presenceOfElementLocated(By.cssSelector(\"a[onclick*='tdlikecid418']\"))\n\t\t\t);//since the share throught part is load slower than the other parts, so it need wait until it diplayed then commit the test\n\t\t\n\t\t//input the idea\n\t\tdriver.findElement(By.id(\"txtShare\")).sendKeys(\"Unique@@\");\n\t\t//click share button\n\t\tdriver.findElement(By.id(\"btnShareComment\")).click();\n\t\t//look for the lastest idea shared\n\t\tWebElement shareContent=driver.findElement(By.xpath(\"/html/body/div[2]/table/tbody/tr[2]/td/table/tbody/tr/td[1]/table/tbody/tr[3]/td/table/tbody/tr[2]/td/div[1]/table/tbody/tr/td/div/div/table/tbody/tr/td/table/tbody/tr[8]/td/table/tbody/tr[2]/td[2]\"));\n\t\ttry {\n\t\t\t//the lastest on post should be the one above\n\t\t\tassertTrue(shareContent.getText().contains(\"Unique@@\"));\n\t\t} catch (NoSuchElementException nseex) {\n\t\t\tfail();\n\t\t}\n\t}", "public void addCard(Card card) {\r\n SQLiteDatabase db = this.getWritableDatabase();\r\n \r\n ContentValues values = new ContentValues();\r\n values.put(COL_ACCOUNT, card.getAccount()); \r\n values.put(COL_USERNAME, card.getUsername()); \r\n values.put(COL_PASSWORD, card.getPassword()); \r\n values.put(COL_URL, card.getUrl()); \r\n values.put(COL_DELETED, card.getDeleted()); \r\n values.put(COL_HIDE_PWD, card.getHidePwd()); \r\n values.put(COL_REMIND_ME, card.getRemindMe()); \r\n values.put(COL_UPDATED_ON, card.getUpdatedOn()); \r\n values.put(COL_COLOR, String.valueOf(card.getColor()));\r\n values.put(COL_REMIND_ME_DAYS, card.getRemindMeDays());\r\n \r\n db.insert(TABLE_CARDS, null, values);\r\n db.close(); \r\n }", "boolean postReimbursementToDataBase(int amount, String description, int author, int statusId, int typeId);", "private void getNewCard(TextField[] inputs, int index) {\n VBox editMenu = new VBox();\n editMenu.setAlignment(Pos.CENTER);\n String[] labelText = {\"Front of card:\", \"Back of card:\"};\n Label[] labels = new Label[labelText.length];\n for (int i = 0; i < 2; i++) {\n labels[i] = new Label(labelText[i]);\n labels[i].setFont(Font.font(TEXT_SIZE));\n editMenu.getChildren().add(labels[i]);\n VBox.setMargin(labels[i], new Insets(5, 0, 5, 0));\n inputs[i].setFont(Font.font(TEXT_SIZE));\n editMenu.getChildren().add(inputs[i]);\n VBox.setMargin(inputs[i], new Insets(5, 0, 5, 0));\n }\n Label lblWarning = new Label();\n Button btnSubmit = createButton(\"Submit\", TEXT_SIZE, 10);\n btnSubmit.setMaxWidth(BUTTON_WIDTH);\n editMenu.getChildren().add(btnSubmit);\n editMenu.getChildren().add(lblWarning);\n VBox.setMargin(btnSubmit, new Insets(10, 0, 0, 0));\n btnSubmit.setOnAction(e -> {\n String front = inputs[0].getText();\n String back = inputs[1].getText();\n if (front.length() == 0 || back.length() == 0) {\n lblWarning.setText(\"Please enter card text.\");\n } else {\n lblWarning.setText(\"\");\n FlashCard newCard = new FlashCard(front, back);\n if (index == customDeck.size()) {\n customDeck.add(newCard);\n } else {\n customDeck.set(index, newCard);\n }\n updateCards(listCustomDeck);\n saveCustomDeck();\n parentPane.setRight(editCardsMenu);\n parentPane.setCenter(listCustomDeck);\n }\n });\n parentPane.setRight(null);\n parentPane.setCenter(editMenu);\n }", "@Test(enabled=false)\n\tpublic void createPostCheckBodyContents() {\n\t\tPosts posts = new Posts(\"4\", \"Packers\", \"Favre\");\n\t\t\n\t\tgiven().\n\t\twhen().contentType(ContentType.JSON).\n\t\tbody(posts).\n\t\tpost(\"http://localhost:3000/posts/\").\n\t\tthen().\n\t\tstatusCode(201).\n\t\tbody(\"id\", is(posts.getId())).\n\t\tbody(\"title\",is(posts.getTitle())).\n\t\tbody(\"author\",is(posts.getAuthor()));\n\t}", "public void saveCard(card cardToBeSaved)\n {\n dbObj=new dbFlashCards(uid);\n dbObj.saveCard(packId, cardToBeSaved.getCardId(), cardToBeSaved.getFront(),cardToBeSaved.getBack());\n \n \n }", "public void createCard(final WebsiteInterface.WebsiteResult verification){\n Response.Listener<JSONObject> createCard = setResponse(verification);\n //start the network request\n NetworkRequest networkRequest = new NetworkRequest(this.appContext);\n //Set the api endpoint\n String api = WebsiteInterface.CREATE_CARD;\n //set method to be POST request\n int method = networkRequest.getMethod(\"POST\");\n try {\n //set the body of the json post request\n JSONObject toPost = new JSONObject(\n \"{\\\"id\\\": \"+ id + \", \\\"front\\\": \"+ question + \", \\\"back\\\": \"+ answer + \"}\"\n );\n //send the network request to the Volley queue\n networkRequest.addToRequestQueue(new JsonObjectRequest(\n method,\n api,\n toPost,\n createCard,\n error\n ));\n } catch (JSONException e) {\n Log.e(\"FlashCard insertcard\", e.getMessage());\n }\n }", "public boolean addPost(Post post) throws SQLException\n {\n boolean isAdded=false;\n try\n {\n database = dbH.getReadableDatabase();\n dbH.openDataBase();\n ContentValues values = new ContentValues();\n values.put(\"postBody\", post.getPostBody());\n values.put(\"postedBy\", post.getPostedBy());\n values.put(\"postedAt\", post.getPostedAt());\n values.put(\"postID\", post.getPostID());\n values.put(\"image\" , post.getBitmap());\n\n isAdded=database.insert(\"Post\", null, values)>0;\n\n }\n catch(SQLException e)\n {\n e.printStackTrace();\n }\n finally{\n if(database!=null && database.isOpen())\n dbH.close();\n }\n return isAdded;}", "@Test(enabled=true)\n\tpublic void createCompletePost() {\n\t\tPosts posts = new Posts(\"5\", \"Lakers\", \"Horry\");\n\t\t\n\t\tString id =\n\n\t\tgiven()\n\t\t.contentType(ContentType.JSON)\n\t\t.body(posts)\n\t\t.when()\n\t\t.post(\"http://localhost:3000/posts/\")\n\t\t.then()\n\t\t.statusCode(201)\n\t\t.extract()\n\t\t.path(\"id\");\n\t\t\n\t\tgiven()\n\t\t.pathParams(\"id\", id)\n\t\t.when().get(\"http://localhost:3000/posts/{id}\")\n\t\t.then()\n\t\t.statusCode(200)\n\t\t.body(\"id\", is(posts.getId()))\n\t\t.body(\"title\",is(posts.getTitle()))\n\t\t.body(\"author\",is(posts.getAuthor()));\n\t}", "@Override\n\tpublic void addPost(Scanner sc) {\n\t\tPost p = new Post();\n\t\tp.setMemberId(cur.getId());\n\t\tsc.nextLine();\n\t\tSystem.out.print(\"제목: \");\n\t\tp.setPostName(sc.nextLine());\n\t\tSystem.out.print(\"내용: \");\n\t\tp.setContent(sc.nextLine());\n\t\tdao.insertPost(p);\n\t}", "public PostDTO refreshPost(PostDTO currentPost) {\n postId = currentPost.getId();\n this.currentPost = ctrl.getPost(postId);\n return this.currentPost;\n }", "@Override\n protected void validateSave(Fornecedor post) {\n\n }", "public void addCard(Card card) {\n myCards.add(card);\n cardNumber = myCards.size();// reset the number of cards\n }", "private void generateNewCards()\n {\n // Set the card sets to be drafted from.\n setsForDraft = new ArrayList<>();\n setsForDraft.add(M19_CARD_TABLE);\n\n // Generates sealed pool and places in openedCardPool.\n drawPacksFromSets();\n\n // Initialize a selectedCardPool that is empty, for the user to move cards into when desired.\n selectedCardPool = new ArrayList<>();\n }", "@RequestMapping(value = \"/newPost\", method = RequestMethod.POST)\n\tpublic String setNewPost(@ModelAttribute(\"post\") @Valid Post post, BindingResult result, ModelMap model) {\n\n\t\tif (result.hasErrors()) {\n\t\t\tSystem.out.println(\"There are errors newPost\");\n\t\t\tmodel.addAttribute(\"allpostTypes\", postService.AllPostType());\n\t\t\treturn \"/admin/post/newPost\";\n\t\t}\n\n\t\tpost = createPost(post);\n\n\t\tLike like = new Like();\n\t\tlike.setPost(post);\n\t\tlikeService.saveLike(like);\n\n\t\tUser user = userService.findUserByUsername(getPrincipal());\n\t\tpost.setUser(user);\n\t\tpostService.updatePost(post);\n\n\t\tmodel.addAttribute(\"operationmessage\",\n\t\t\t\tmessageSource.getMessage(\"message.newpost.success\", null, LocaleContextHolder.getLocale()));\n\t\treturn \"redirect:/profile/\" + getPrincipal();\n\t}", "@Override\r\n\tpublic void deletePost(Post post) {\n\t\tgetHibernateTemplate().delete(post);\r\n\t}", "@PostMapping(\"/posts/create\")\n public String createPost(\n Model model,\n @RequestParam(name = \"title\") String title,\n @RequestParam(name = \"body\") String body,\n @RequestParam(name = \"team\") String teamIDString,\n @RequestParam(name = \"sport\") String sportIDString) {\n\n long teamID = Long.parseLong(teamIDString);\n long sportID = Long.parseLong(sportIDString);\n\n Team thisTeam = teamRepository.findOne(teamID);\n Sport thisSport = sportRepository.findOne(sportID);\n\n\n// Which user is being assigned to this post?\n\n User foundUser = (User) SecurityContextHolder.getContext().getAuthentication().getPrincipal();\n User dbUser = userRepository.findOne(foundUser.getId());\n\n\n\n\n// Now it's time to actually make the post.\n\n Post post = new Post();\n post.setTitle(title);\n post.setBody(body);\n post.setSport(thisSport);\n post.setTeam(thisTeam);\n post.setAuthor(dbUser);\n\n postRepository.save(post);\n\n// After post is created, give user options to do something next\n\n Post createdPost = postRepository.findOne(post.getId());\n model.addAttribute(\"createdPost\", createdPost);\n\n\n// Send email commented out for now so I don't send an email every time\n\n// emailService.prepareAndSend(post, \"Congratulations James! You have been hired for this position\", \"You have been hired for this position: 1007A McDonalds Region Manager\");\n\n return \"posts/create-success\";\n }", "public void push(Card newCard)\n\t{\n\t\tcard.add(newCard);\n\t}", "public void post(ActionEvent actionEvent) throws IOException, ClassNotFoundException {\n Post post;\n if (postPic != null) {\n post = new Post(thisUser.getUser().getUsername(), title.getText()\n , description.getText(), new Date(), thisUser.getUser().getProfileImage(), postPic);\n post.setPostPicAddress(file.toString());\n } else {\n post = new Post(thisUser.getUser().getUsername(), title.getText()\n , description.getText(), new Date(), thisUser.getUser().getProfileImage());\n post.setPostPicAddress(\"No postPic\");\n }\n\n post.setOwner(thisUser.getUser().getUsername());\n\n CommandSender commandSender = new CommandSender(CommandType.NEWPOST\n , post);\n\n Client.getObjectOutputStream().writeObject(commandSender);\n\n thisUser.setSearchedUser(thisUser.getUser());\n Main.loadAPage(actionEvent\n , \"../FXMLs/MyProfile.fxml\"\n , \"SBUgram - Your Profile\"\n );\n\n }", "private void UpdateCardFromDoc(Doc doc, CardData newCard) {\n newCard.setTitle(doc.getTitle());\n //newCard.setTopics()\n\n Img img = doc.getImg(); // Doc description\n if (img !=null && img.getUrl() != null) {\n\n Image image = new Image(); // image view\n image.setUrl(img.getUrl());\n\n // TODO: if width or height is zero, the\n // cacher will throw an error.\n if (img.getSize() !=null) {\n image.setHeight(img.getSize().getHeight());\n image.setWidth(img.getSize().getWidth());\n }\n\n newCard.setImg(image);\n }\n newCard.setId(doc.getId());\n newCard.setAuthor(doc.getAuthor());\n newCard.setDate(doc.getDate());\n newCard.setUrl(doc.getUrl());\n newCard.setText(doc.getText());\n\n newCard.setPrismaticActivity(doc.getPrismaticActivity());\n\n if (doc.getFeed() != null) {\n newCard.setFeedName(doc.getFeed().getTitle());\n newCard.setFeedUrl(doc.getFeed().getUrl());\n newCard.setFeedHighResImage(doc.getFeed().getHighResImage());\n newCard.setFeedImage(doc.getFeed().getImage());\n\n }\n }", "private void onCreateCardSuccess(Response response) throws IOException {\n Gson gson = new Gson();\n Type type = new TypeToken<Map<String, Object>>(){}.getType();\n\n Map<String, Object> responseMap = gson.fromJson(\n Objects.requireNonNull(response.body()).string(), type\n );\n\n\n paymentMethodId = Objects.requireNonNull(responseMap.get(\"id\")).toString();\n\n //Create new payment method for Parse\n PaymentMethods pay = new PaymentMethods();\n pay.setStripeId(paymentMethodId);\n pay.setBrand(card.getBrand().toString());\n pay.setExpMonth(card.getExpMonth());\n pay.setExpYear(card.getExpYear());\n pay.setLast4(card.getLast4());\n pay.setUser(ParseUser.getCurrentUser());\n pay.saveInBackground(new SaveCallback() {\n @Override\n public void done(ParseException e) {\n if(e == null) {\n Toast.makeText(getApplicationContext(), \"New Card Added.\", Toast.LENGTH_LONG).show();\n Intent i = new Intent(getApplicationContext(), MainActivity.class);\n startActivity(i);\n }\n else\n {\n Toast.makeText(getApplicationContext(), \"Card Failed to add to database.\", Toast.LENGTH_LONG).show();\n e.printStackTrace();\n }\n }\n });\n\n }", "public static void addedPost(PostXML postXML) {\n }", "public void create(Post post) {\r\n jdbcOp.update(SQL_INSERT_TICKET,\r\n post.getCustomerName(),\r\n post.getSubject(), \r\n post.getBody(),\r\n post.getCategories());\r\n// for (String role : user.getRoles()) {\r\n// jdbcOp.update(SQL_INSERT_ROLE,\r\n// user.getUsername(),\r\n// role); \r\n }", "public void takeACard(Card card){\n hand.add(card);\n }", "@Override\n public void onComplete(@NonNull Task<DocumentReference> task) {\n creatingPost = false;\n }", "public static Result postAddPaper() {\n Form<PaperFormData> formData = Form.form(PaperFormData.class).bindFromRequest();\n Paper info1 = new Paper(formData.get().title, formData.get().authors, formData.get().pages,\n formData.get().channel);\n info1.save();\n return redirect(routes.PaperController.listProject());\n }", "public void add (Card newCard)\n {\n firstLink = new Link(newCard, firstLink);\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == CREATE_NEW_POST) {\n if (resultCode == RESULT_OK) {\n String user = data.getStringExtra(PostingActivity.USER);\n String subject = data.getStringExtra(PostingActivity.SUBJECT);\n String question = data.getStringExtra(PostingActivity.QUESTION);\n\n Post post = new Post(user, subject, question);\n postQuestion(post);\n }\n }\n }", "@Override\n public void onPostDeleted(final Post post) {\n manager.addCallback(new CallbackManager.Callback<BaseGlobalPostListFragment>() {\n @Override\n public void execute(BaseGlobalPostListFragment object) {\n if (object.postsAdapter.removePost(post)) {\n object.offset--;\n }\n }\n });\n }", "@Override\n public void addPostCommand(String postCommand) {\n }", "private void postRequest() {\n\t\tSystem.out.println(\"post request, iam playing money\");\n\t}", "public void addPartnerCard(Card card);", "public Builder clearPost() {\n copyOnWrite();\n instance.clearPost();\n return this;\n }", "public void postButtonPressed(View view){\n if (isOnline()) {\n Toast.makeText(this, getResources().getString(R.string.sharing_facebook_toast), Toast.LENGTH_SHORT).show();\n mPendingAction = true;\n Session session = Session.getActiveSession();\n if (session == null) {\n session = new Session(getApplicationContext());\n Session.OpenRequest openSessionRequest = new Session.OpenRequest(this);\n }\n else{\n if (session.getState().equals(SessionState.CREATED)){\n // Session is not opened or closed, session is created but not opened.\n session = new Session(this);\n Session.setActiveSession(session);\n session.openForPublish(new Session.OpenRequest(this).setCallback(callback).setPermissions(PERMISSION));\n }\n else{\n onSessionStateChange(session, session.getState(), null);\n }\n }\n Session.setActiveSession(session);\n }else{\n Toast.makeText(this, getResources().getString(R.string.sharing_facebook_toast_no_internet), Toast.LENGTH_SHORT).show();\n\n }\n\n }", "@Test (groups = \"create_post\")\n public void DTest_Show_Post_success(){\n\n System.out.println(\"Show PostID# \"+ createdPost);\n System.out.println(\"Generated Post Title: \"+ createdTitle);\n System.out.println(\"Generated Post Content: \"+ createdContent);\n System.out.println(\"Request to: \" + resourcePath + \"/\" + createdPost);\n\n given()\n .spec(RequestSpecs.generateToken())\n .get(String.format(\"%s/%s\",resourcePath,createdPost.toString()))\n .then()\n .body(\"data.id\", equalTo(createdPost))\n .and()\n .body(\"data.title\", equalTo(createdTitle))\n .and()\n .body(\"data.content\", equalTo(createdContent))\n .and()\n .statusCode(200)\n .spec(ResponseSpecs.defaultSpec());\n }", "private void doUpdatePost(PostInfo post, TopicInfo topic, WebScriptRequest req, \r\n JSONObject json)\r\n {\n if (json.containsKey(\"title\"))\r\n {\r\n String title = (String)json.get(\"title\");\r\n post.setTitle(title);\r\n if (title.length() > 0)\r\n {\r\n topic.setTitle(title);\r\n }\r\n }\r\n \r\n // Contents is on the post\r\n if (json.containsKey(\"content\"))\r\n {\r\n post.setContents((String)json.get(\"content\"));\r\n }\r\n \r\n // Tags are on the topic\r\n if (json.containsKey(\"tags\"))\r\n {\r\n topic.getTags().clear();\r\n \r\n List<String> tags = getTags(json);\r\n if (tags != null)\r\n {\r\n topic.getTags().addAll(tags);\r\n }\r\n }\r\n \r\n // Save the topic and the post\r\n discussionService.updateTopic(topic);\r\n discussionService.updatePost(post);\r\n }", "public Post(String user, String postContent, String webAddress) {\n this.orderPosted = nextOrderPosted;\n nextOrderPosted++;\n this.user = user;\n this.postContent = postContent;\n this.webAddress = webAddress;\n// this.myAuthor=myAuthor;\n\n }", "public Post createTestPostObject(Course course) {\n Post post = new Post(makeRandomString(), makeRandomString(), course,\n new Date(), new Date());\n return postRepository.save(post);\n }", "public void updateCardList(List<Entry> activityFeed) {\n\n List<Entry> newEntrytoAddList = new ArrayList<>();\n List<Entry> entriesToRemove = new ArrayList<>();\n\n //check if it is first run or refreshing list\n\n\n if (messagesHistory != null) {\n //remove deleted projects\n for (Entry entry : messagesHistory) {\n boolean stillExist = false;\n for (Entry entryFeed : activityFeed) {\n\n if (Objects.equals(entryFeed.getUpdated(), entry.getUpdated())) {\n stillExist = true;\n }\n }\n if (!stillExist) {\n entriesToRemove.add(entry);\n }\n }\n\n //add only new project\n for (Entry newEntry : activityFeed) {\n boolean duplicate = false;\n for (Entry currentEntry : messagesHistory) {\n if (Objects.equals(currentEntry.getUpdated(), newEntry.getUpdated())) {\n duplicate = true;\n }\n }\n if (!duplicate) {\n newEntrytoAddList.add(newEntry);\n }\n }\n\n\n //delete entries\n for (Entry toDelete : entriesToRemove) {\n cardView.remove(toDelete);\n }\n //add new entries\n for (Entry item : newEntrytoAddList) {\n cardView.add(0, item);\n new Handler().postDelayed(() -> {\n cardView.notifyInserted(0);\n rv.scrollToPosition(0);\n }, 500);\n\n }\n\n\n }\n boolean toNotify = false;\n if (cardView.getItemCount() == 0) {\n\n toNotify = true;\n messages.addAll(activityFeed);\n }\n\n //save cards history for later comparing if old entry were deleted or new were added\n messagesHistory = new ArrayList<>(messages);\n Handler handler = new Handler();\n boolean finalToNotify = toNotify;\n handler.postDelayed(() -> {\n if (finalToNotify) {\n cardView.notifyDataSetChanged();\n }\n AnimationUtil.stopRefreshAnimation(swipeRefreshLayout);\n }, 1000);\n }", "@Override\n\tpublic void savePost(String categoryId, String forumId, String topicId,\n\t\t\tPost post, boolean isNew, MessageBuilder messageBuilder)\n\t\t\tthrows Exception {\n\n\t}", "public void DeleteMyPost(AppiumDriver driver) throws InterruptedException {\n ClickButton(profile);\n ClickButton(posts);\n MobileElement firstPost= (MobileElement) driver.findElementsById(\"com.humansoftsolution.ugu.debug:id/video_news_feed_content\").get(0);\n firstPost.click();\n for(int i=1;i<10;i++)\n {\n // MobileElement options = (MobileElement) driver.findElementsByAccessibilityId(\"Image Description\");\n Thread.sleep(1000);\n options.click();\n ClickButton(delete);\n ClickButton(confirmDeleting);\n }\n driver.navigate().back();\n driver.navigate().back();\n driver.navigate().back();\n driver.navigate().back();\n\n }", "private void updatePostPut() {\n PostModel model = new PostModel(12, null, \"This is the newest one.\");\n Call<PostModel> call = jsonPlaceHolderAPI.putPosts(5, model);\n call.enqueue(new Callback<PostModel>() {\n @Override\n @EverythingIsNonNull\n public void onResponse(Call<PostModel> call, Response<PostModel> response) {\n if (!response.isSuccessful()) {\n textResult.setText(response.code());\n return;\n }\n PostModel postResponse = response.body();\n String content = \"\";\n assert postResponse != null;\n content += \"Code: \" + response.code() + \"\\n\";\n content += \"ID: \" + postResponse.getId() + \"\\n\";\n content += \"User ID: \" + postResponse.getUserId() + \"\\n\";\n content += \"Title: \" + postResponse.getTitle() + \"\\n\";\n content += \"Body: \" + postResponse.getText();\n textResult.append(content);\n }\n\n @Override\n @EverythingIsNonNull\n public void onFailure(Call<PostModel> call, Throwable t) {\n textResult.setText(t.getMessage());\n }\n });\n }", "@Override\n public Long deletePost(Long postId, String token) throws TokenException, UnauthorizeActionException, PostNotExistException {\n User user = sender.getUserFromUserAPI(token);\n if (user == null) {\n logger.info(\"Invalid token: \" + token + \" User could not be found\");\n throw new TokenException(\"Invalid Token.\");};\n Post savedPost = postRepository.findById(postId).orElse(null);\n if(savedPost==null)\n {\n logger.info(\"Post not found for this postId: \" + postId + \" Delete operation could not be performed\");\n throw new PostNotExistException(\"Post Doesn't Exist.\");};\n if (savedPost.getUserId().longValue() != user.getUserId().longValue()) throw new UnauthorizeActionException(\"Unauthorized Action.\");\n sender.deleteCommentsOfPost(savedPost.getPostId());\n postRepository.delete(savedPost);\n return savedPost.getPostId();\n }", "private void myNewCard(String name) {\n DeleteCardsModel movie = new DeleteCardsModel(name);\n //referring to movies node and setting the values from movie object to that location\n final String attribute = movie.getCardname();\n System.out.println(\"attribute is\" + attribute);\n\n mDatabaseReference.child(\"Products\").addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n\n for (final DataSnapshot snapshot: dataSnapshot.getChildren()){\n String parent = snapshot.getKey();\n\n mDatabaseReference.child(\"Products\").child(parent).addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n for (final DataSnapshot datasnapshot: dataSnapshot.getChildren()){\n String UID = datasnapshot.getKey();\n String card_name = datasnapshot.child(\"cardname\").getValue(String.class);\n\n if(card_name.toLowerCase().contains(attribute.toLowerCase())) {\n System.out.println(\"UID is \" + UID);\n System.out.println(\"is this the cardname?\" + card_name);\n System.out.println(\"The category is \" + category);\n\n mDatabaseReference.child(\"Products\").child(category).child(UID).removeValue();\n Intent intent = new Intent(DeleteSubCard.this, DeleteCardView.class);\n intent.putExtra(\"show\",category);\n startActivity(intent);\n\n }\n\n\n\n\n\n }\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n });\n\n\n\n }\n\n\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n });\n\n\n\n\n }", "public void wallDelete(int ownerId, int postId) {\n }", "public String onPostPers() {\n \r\n JobOffer c=categoryMetier.findJobOfferById(idCategorySelected);\r\n filDiscussion.setCategory(c);\r\n filDiscussion.setDateDiscussion(new java.util.Date());\r\n\r\n this.filDiscussionMetier.update(this.filDiscussion);\r\n return\"Forum\";\r\n }", "@Override\n public void modifyPost(List<Post> posts, int type) {\n\n\t}", "Paper addNewPaper(PaperForm form, Long courseId)throws Exception;", "public void createPost( BlogPost post );" ]
[ "0.6731729", "0.6381987", "0.6091299", "0.6058018", "0.60184944", "0.59692276", "0.59400046", "0.58768976", "0.5866848", "0.58325016", "0.5826749", "0.5808101", "0.5755651", "0.57330847", "0.57314384", "0.5686733", "0.5617013", "0.56160164", "0.5585265", "0.55829537", "0.5558626", "0.55508095", "0.5526258", "0.5523733", "0.5520691", "0.5497086", "0.54800904", "0.54771215", "0.5458044", "0.5450736", "0.54393756", "0.54381156", "0.5410065", "0.53894126", "0.53831404", "0.53552634", "0.5352077", "0.5351936", "0.53505635", "0.53432477", "0.5325838", "0.52955824", "0.5293064", "0.52863884", "0.5275818", "0.52695274", "0.5269398", "0.5264049", "0.5263735", "0.52601427", "0.52564245", "0.5241598", "0.52241683", "0.5221039", "0.52151287", "0.5210689", "0.52066493", "0.5202393", "0.51966023", "0.5191169", "0.5187848", "0.5186731", "0.51842827", "0.51797736", "0.51774085", "0.51759875", "0.5173905", "0.5167042", "0.51645666", "0.51636505", "0.5161229", "0.5160445", "0.5158628", "0.51514566", "0.5148603", "0.5139807", "0.51392984", "0.51164484", "0.51100004", "0.51075774", "0.50983", "0.5095503", "0.5092518", "0.5070255", "0.5067496", "0.5048817", "0.5045368", "0.50437397", "0.5040171", "0.5032863", "0.50305074", "0.50294876", "0.5026243", "0.5020069", "0.50191444", "0.501545", "0.5014774", "0.501107", "0.5010617", "0.5007029", "0.50039303" ]
0.0
-1
Metodo que permite configurar los servicios y peticiones que se realicen durante la ejecucion de la aplicacion
@Override protected void configure(HttpSecurity http) throws Exception { http .authorizeRequests() .antMatchers(resources).permitAll() .antMatchers("/","/index", "/usuarioForm").permitAll() .anyRequest().authenticated() .and() .formLogin() .loginPage("/login") .permitAll() .defaultSuccessUrl("/usuarioForm") .failureUrl("/login?error=true") .usernameParameter("username") .passwordParameter("password") .and() .csrf().disable() .logout() .permitAll() .logoutSuccessUrl("/login?logout"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void setupServicesAndParameters(){\n\t\t//replace services in use, e.g.:\n\t\t/*\n\t\tMap<String, ArrayList<String>> systemInterviewServicesMap = new HashMap<>();\n\t\t\n\t\t//CONTROL DEVICES\n\t\tArrayList<String> controlDevice = new ArrayList<String>();\n\t\t\tcontrolDevice.add(MyDeviceControlService.class.getCanonicalName());\n\t\tsystemInterviewServicesMap.put(CMD.CONTROL, controlDevice);\n\t\t\n\t\t//BANKING\n\t\tArrayList<String> banking = new ArrayList<String>();\n\t\t\tbanking.add(MyBankingService.class.getCanonicalName());\n\t\tsystemInterviewServicesMap.put(CMD.BANKING, banking);\n\t\t\t\n\t\tInterviewServicesMap.loadCustom(systemInterviewServicesMap);\n\t\t*/\n\t\t\n\t\t//defaults\n\t\tStart.setupServicesAndParameters();\n\t\t\n\t\t//add\n\t\t//e.g.: ParameterConfig.setHandler(PARAMETERS.ALARM_NAME, Config.parentPackage + \".parameters.AlarmName\");\n\t}", "private void initConfigServices() {\n List<ServiceDTO> customizedConfigServices = getCustomizedConfigService();\n\n if (customizedConfigServices != null) {\n setConfigServices(customizedConfigServices);\n return;\n }\n\n // update from meta service\n this.tryUpdateConfigServices();\n this.schedulePeriodicRefresh();\n }", "private void initService() {\r\n\t}", "public interface ConfigService {\n\n\n /**\n * eureka配置\n *\n * @param sb\n * @param addr\n */\n void eureka(StringBuilder sb, String addr);\n\n /**\n * redis配置\n *\n * @param sb\n * @param addr\n */\n void redis(StringBuilder sb, String addr);\n\n\n /**\n * 数据源配置\n *\n * @param sb\n */\n void thymeleafAndDatasource(StringBuilder sb);\n\n\n /**\n * 关于mybatis的配置\n *\n * @param sb\n * @param packages\n */\n void mybatis(StringBuilder sb, String packages);\n\n\n /**\n * 分页插件配置\n *\n * @param sb\n */\n void pagehelper(StringBuilder sb);\n\n /**\n * 生成application.yml\n *\n * @param name\n */\n void application(String name);\n\n\n /**\n * 生成application-xxx.yml\n *\n * @param branch\n * @param packages\n */\n void applicationBranch(String branch, String packages);\n\n\n /**\n * log文件\n *\n */\n void logBack();\n}", "private void iniciar() {\r\n\t\tprincipal = new Principal();\r\n\t\tgestionCientificos=new GestionCientificos();\r\n\t\tgestionProyectos=new GestionProyectos();\r\n\t\tgestionAsignado= new GestionAsignado();\r\n\t\tcontroller= new Controller();\r\n\t\tcientificoServ = new CientificoServ();\r\n\t\tproyectoServ = new ProyectoServ();\r\n\t\tasignadoA_Serv = new AsignadoA_Serv();\r\n\t\t\r\n\t\t/*Se establecen las relaciones entre clases*/\r\n\t\tprincipal.setControlador(controller);\r\n\t\tgestionCientificos.setControlador(controller);\r\n\t\tgestionProyectos.setControlador(controller);\r\n\t\tgestionAsignado.setControlador(controller);\r\n\t\tcientificoServ.setControlador(controller);\r\n\t\tproyectoServ.setControlador(controller);\r\n\t\t\r\n\t\t/*Se establecen relaciones con la clase coordinador*/\r\n\t\tcontroller.setPrincipal(principal);\r\n\t\tcontroller.setGestionCientificos(gestionCientificos);\r\n\t\tcontroller.setGestionProyectos(gestionProyectos);\r\n\t\tcontroller.setGestionAsignado(gestionAsignado);\r\n\t\tcontroller.setCientificoService(cientificoServ);\r\n\t\tcontroller.setProyectoService(proyectoServ);\r\n\t\tcontroller.setAsignadoService(asignadoA_Serv);\r\n\t\t\t\t\r\n\t\tprincipal.setVisible(true);\r\n\t}", "public void service_INIT(){\n }", "public Servicio(String servicio){\n nombreServicio = servicio;\n }", "protected void setup() {\n\t\tDFAgentDescription dfd = new DFAgentDescription();\n\t\tdfd.setName(getAID());\n\t\tServiceDescription sd = new ServiceDescription();\n\t\tsd.setType(\"paciente\");\n\t\tsd.setName(getName());\n\t\tdfd.addServices(sd);\n\t\ttry {\n\t\t\tDFService.register(this, dfd);\n\t\t} catch (FIPAException fe) {\n\t\t\tfe.printStackTrace();\n\t\t}\n\t\t\n\t\t// atualiza lista de monitores e atuadores\n\t\taddBehaviour(new UpdateAgentsTempBehaviour(this, INTERVALO_AGENTES));\n\t\t\n\t\t// ouve requisicoes dos atuadores e monitores\n\t\taddBehaviour(new ListenBehaviour());\n\t\t\n\t\t// adiciona comportamento de mudanca de temperatura\n\t\taddBehaviour(new UpdateTemperatureBehaviour(this, INTERVALO_ATUALIZACAO));\n\t\t\n\t\t// adiciona comportamento de mudanca de hemoglobina\t\t\n\t\taddBehaviour(new UpdateHemoglobinaBehaviour(this, INTERVALO_ATUALIZACAO));\n\t\t\n\t\t// adiciona comportamento de mudanca de bilirrubina\n\t\taddBehaviour(new UpdateBilirrubinaBehaviour(this, INTERVALO_ATUALIZACAO));\n\n\t\t// adiciona comportamento de mudanca de pressao\t\t\n\t\taddBehaviour(new UpdatePressaoBehaviour(this, INTERVALO_ATUALIZACAO));\n\t\t\n\t}", "public interface ProcesoVENService extends Service {\n\n\t/**\n\t * Ejecuta procedimiento generico\n\t * @param nombreExecute\n\t * @param criteria\n\t */\n\tpublic void executeGenerico(String nombreExecute, Map criteria) ;\n\t\n\t/**Actualiza calensarios\n\t * @param calendario\n\t * @param usuario\n\t */\n\tpublic void updateCalendario(Calendario calendario, Usuario usuario);\n\t\n\t/**devuelve lista de calendarios\n\t * @param criteria\n\t * @return\n\t */\n\tpublic List getCalendarios(Map criteria);\n\t\n\t/**\n\t * devuelve el calendario\n\t * @param criteria\n\t * @return\n\t */\n\tpublic Calendario getCalendario(Map criteria);\n\t\n /**\n * devuelve los feriados d euna zona\n * @param criteria\n * @return\n */\n public List getFeriadoZona(Map criteria);\n\t\n\t/**\n\t * Actualiza feriados de una zona\n\t * @param feriadoZona\n\t * @param usuario\n\t */\n\tpublic void updateFeriadoZona(FeriadoZona feriadoZona, Usuario usuario);\n\t\n\t/**\n\t * Inserta los feriados de una zona\n\t * @param feriadoZona\n\t * @param usuario\n\t */\n\tpublic void insertFeriadoZona(FeriadoZona feriadoZona, Usuario usuario);\n\t\n\t/**\n\t * elimina los feriados d euna zona\n\t * @param feriadoZona\n\t * @param usuario\n\t */\n\tpublic void deleteFeriadoZona(FeriadoZona feriadoZona, Usuario usuario);\n\n\t/**\n\t * Metodo que trae las zonas de una region\n\t * @param feriadoRegion\n\t * @return\n\t */\n\tpublic List getZonasRegion(String feriadoRegion);\n\n\t/**\n\t * Retorna el indicador de habilitacion RUV\n\t * @param criteria\n\t * @return\n\t */\n\tpublic String getIndicadorHabilitacionRuv(Map criteria);\n\n\t/**\n\t * Genera la informacion para el reporte RUV\n\t * @param map\n\t */\n\tpublic void executeGeneracionReporteRUV(Map map);\n\t\n\t/**\n\t * Genera los archivos de libro de ventas - detalles SII\n\t * @param map\n\t */\n\tpublic void executeGenerarArchivosLibroVentasDetalleSII(Map map);\n\t\n}", "public void inicia() { \r\n\t\tventana=new VentanaMuestraServicios(this);\r\n\t\tventana.abre();\r\n\t}", "public DepControlar() {\n \n initComponents();\n depservice = new DepService();\n }", "private WebServicesFabrica(){}", "public JerseyConfig() {\n\t\tregister(StudentService.class);\n\t\tregister(PromotionService.class);\n\t\tregister(GroupService.class);\n\t\tregister(RoleService.class);\n\t\tregister(RightService.class);\n\t\tregister(AccountService.class);\n\t\tregister(TimesheetService.class);\n\t\tthis.configureSwagger();\n\t}", "@Autowired\n public MicroServiceStrategy(DisableAction desabilitarAcao\n ) {\n //Regras para entidade MicroService passadas dentro do construtor \n //Injetadas pelo Spring com a anotação @Autowired \n \n \n /* Criando uma lista para conter as regras de negocio de MicroService\n * quando a operacao for salvar\n */\n List<IStrategy> rnsSalvarMicroService = new ArrayList<IStrategy>();\n /* Adicionando as regras a serem utilizadas na operacao salvar do MicroService */\n rnsSalvarMicroService.add(desabilitarAcao);\n\n /* Criando uma lista para conter as regras de negocio de MicroService\n * quando a operacao for alterar\n */\n List<IStrategy> rnsAlterarMicroService = new ArrayList<IStrategy>();\n /* Adicionando as regras a serem utilizadas na operacao alterar do MicroService */\n rnsAlterarMicroService.add(desabilitarAcao);\n\n\n /* Criando uma lista para conter as regras de negocio de mainConfiguration\n * quando a operacao for alterar\n */\n List<IStrategy> rnsConsultarMicroService = new ArrayList<IStrategy>();\n /* Adicionando as regras a serem utilizadas na operacao consultar do MicroService */\n rnsConsultarMicroService.add(desabilitarAcao);\n\n /* Criando uma lista para conter as regras de negocio de mainConfiguration\n * quando a operacao for excluir\n */\n List<IStrategy> rnsExcluirMicroService = new ArrayList<IStrategy>();\n /* Adicionando as regras a serem utilizadas na operacao excluir do MicroService */\n rnsExcluirMicroService.add(desabilitarAcao);\n\n /* Criando uma lista para conter as regras de negocio de mainConfiguration\n * quando a operacao for visualizar\n */\n List<IStrategy> rnsVisualizarMicroService = new ArrayList<IStrategy>();\n /* Adicionando as regras a serem utilizadas na operacao visualizar do MicroService */\n rnsVisualizarMicroService.add(desabilitarAcao);\n\n /* Criando uma lista para conter as regras de negocio de mainConfiguration\n * quando a operacao for desativar\n */\n List<IStrategy> rnsDesativarMicroService = new ArrayList<IStrategy>();\n /* Adicionando as regras a serem utilizadas na operacao desativar do MicroService */\n rnsDesativarMicroService.add(desabilitarAcao);\n\n /*\n * Adiciona a listra de regras na operacao salvar no mapa do MicroService \n */\n rnsMicroService.put(\"SALVAR\", rnsSalvarMicroService);\n /*\n * Adiciona a listra de regras na operacao alterar no mapa do MicroService \n */\n rnsMicroService.put(\"ALTERAR\", rnsAlterarMicroService);\n /*\n * Adiciona a listra de regras na operacao alterar no mapa do MicroService \n */\n rnsMicroService.put(\"CONSULTAR\", rnsConsultarMicroService);\n /*\n * Adiciona a listra de regras na operacao excluir no mapa do MicroService \n */\n rnsMicroService.put(\"EXCLUIR\", rnsExcluirMicroService);\n /*\n * Adiciona a listra de regras na operacao visualizar no mapa do MicroService \n */\n rnsMicroService.put(\"VISUALIZAR\", rnsVisualizarMicroService);\n /*\n * Adiciona a listra de regras na operacao desativar no mapa do MicroService \n */\n rnsMicroService.put(\"DESATIVAR\", rnsDesativarMicroService);\n\n }", "public InitService() {\n super(\"InitService\");\n }", "public ControlMuestraServicios( ServicioConsulta servicioConsulta) {\r\n\t\tthis.servicioConsulta=servicioConsulta;\r\n\t\t\r\n\t}", "private RepositorioOrdemServicoHBM() {\n\n\t}", "public ControladorCatalogoServicios() {\r\n }", "protected void initializeServices() throws Exception {\n String fileName = this.getClass().getSimpleName() + \"Output.csv\";\r\n outputFile = new File(fileName); // located in current run dir \r\n getOutputFile().delete(); // delete any previous version\r\n \r\n // Configure system properties for Velo to work properly (can also be provided as runtime args)\r\n System.setProperty(\"logfile.path\", \"./velo.log\");\r\n if(repositoryPropertiesFile == null) {\r\n System.setProperty(\"repository.properties.path\", \"./repository.properties\");\r\n } else {\r\n System.setProperty(\"repository.properties.path\", repositoryPropertiesFile.getAbsolutePath()); \r\n }\r\n \r\n // Initialize the spring container\r\n if(cmsServicesFile == null && tifServicesFile == null) {\r\n SpringContainerInitializer.loadBeanContainerFromClasspath(null);\r\n \r\n } else {\r\n List<String> beanFilePaths = new ArrayList<String>();\r\n if(cmsServicesFile != null) {\r\n beanFilePaths.add(\"file:\" + cmsServicesFile.getAbsolutePath());\r\n }\r\n if(tifServicesFile != null) {\r\n beanFilePaths.add(\"file:\" + tifServicesFile.getAbsolutePath());\r\n }\r\n SpringContainerInitializer.loadBeanContainerFromFilesystem(beanFilePaths.toArray(new String[beanFilePaths.size()]));\r\n }\r\n \r\n // set the service classes\r\n securityManager = CmsServiceLocator.getSecurityManager();\r\n resourceManager = CmsServiceLocator.getResourceManager();\r\n searchManager = CmsServiceLocator.getSearchManager();\r\n notificationManager = CmsServiceLocator.getNotificationManager();\r\n \r\n if(tifServicesFile != null) {\r\n jobLaunchService = TifServiceLocator.getJobLaunchingService();\r\n codeRegistry = TifServiceLocator.getCodeRegistry();\r\n machineRegistry = TifServiceLocator.getMachineRegistry();\r\n scriptRegistry = TifServiceLocator.getScriptRegistry();\r\n jobConfigService = TifServiceLocator.getJobConfigService();\r\n veloWorkspace = TifServiceLocator.getVeloWorkspace();\r\n }\r\n \r\n \r\n securityManager.login(username, password);\r\n\r\n }", "private ServiceManage() {\r\n\t\tInitialThreads();\r\n\t}", "private void configureServices(Environment environment){\n DaoCountry country = new DaoCountry(hibernateBundle.getSessionFactory());\n DaoAddress address = new DaoAddress(hibernateBundle.getSessionFactory());\n\n environment.jersey().register(new ServiceCountry(country));\n environment.jersey().register(new ServiceAddress(address));\n }", "public CMSFormClientServices() {\n // Set up the configuration manager.\n config = new ConfigMgr(\"form.cfg\");\n }", "public ClienteServicio() {\n }", "@Override\n protected void reconfigureService() {\n }", "public void service() {\n\t}", "public void InitService() {\n\t\ttry {\r\n\t\t\tgetCommManager().register(this); \r\n\t\t} catch (CommunicationException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void initialize() throws Exception{\r\n\t\tfor (Constraint c:constraints){\r\n\t\t\tconstraintMap.put(c.getModel(), c);\r\n\t\t}\r\n\t\tservices.add(this);\r\n\t\t//System.out.println(\"constraints=\"+constraintMap);\r\n\t\tif (LightStr.isEmpty(dsId)){\r\n\t\t\tif (BeanFactory.getBeanFactory().getDataService(\"default\")==null) dsId=\"default\"; else dsId=LightUtil.getHashCode();\r\n\t\t}\r\n\t\tBeanFactory.getBeanFactory().addDataService(dsId, this);\r\n\t}", "public void initApiService() {\n apiService = ApiUtils.getAPIService();\n }", "public interface PortadorService {\n\n @POST(\"api/portador/login/auth\")\n Call<FazerLoginPortadorResponse> login(@Body FazerLoginPortador fazerLoginPortador);\n\n @POST(\"api/portador/login\")\n Call<CriarLoginResponse> criarLogin(@Body PortadorLogin portadorLogin);\n\n @GET(\"api/portador/credencial/{documento}/pessoa/{tipoPessoa}/processadora/{idProcessadora}/instituicao/{idInstituicao}\")\n Call<GetCredenciaisResponse> listaCredenciais(\n @Path(\"documento\") String documento,\n @Path(\"tipoPessoa\") long tipoPessoa,\n @Path(\"idProcessadora\") long idProcessadora,\n @Path(\"idInstituicao\") long idInstituicao,\n @Header(\"AuthorizationPortador\") String token\n );\n\n @GET(\"api/portador/credencial/{idCredencial}/detalhes\")\n Call<Credencial> credencialDetalhes(\n @Path(\"idCredencial\") long idCredencial,\n @Header(\"AuthorizationPortador\") String token\n );\n\n @GET(\"api/portador/login/logout\")\n Call<ResponseBody> logout();\n\n @PUT(\"api/portador/login/trocar-email\")\n Call<ItsPayResponse> trocarEmail(@Body TrocarEmail trocarEmail, @Header(\"AuthorizationPortador\") String token);\n\n @PUT(\"api/portador/login/trocar-senha\")\n Call<ItsPayResponse> trocarSenha(@Body TrocarSenhaPortador trocarSenhaPortador, @Header(\"AuthorizationPortador\") String token);\n\n @GET(\"api/portador/login/{idProcessadora}/{idInstituicao}/buscar-email/{documento}\")\n Call<BuscarEmailResponse> buscarEmail(@Path(\"idProcessadora\") long idProcessadora,\n @Path(\"idInstituicao\") long idInstituicao,\n @Path(\"documento\") String documento,\n @Header(\"AuthorizationPortador\") String token);\n\n //{periodo} - Valores aceitos 15, 30 ou 45.\n @GET(\"api/portador/credencial/{idCredencial}/extrato/data_inicial/{dataInicial}/data_final/{dataFinal}\")\n Call<LinhaExtratoCredencial[]> extratoPeriodo(@Path(\"idCredencial\") long idCredencial,\n @Path(\"dataInicial\") String dataInicial,\n @Path(\"dataFinal\") String dataFinal,\n @Header(\"AuthorizationPortador\") String token);\n\n //{periodo} - Valores aceitos 15, 30 ou 45.\n @GET(\"api/portador/credencial/{idCredencial}/extrato/periodo/{periodo}\")\n Call<LinhaExtratoCredencial[]> extratoCredencial(@Path(\"idCredencial\") long idCredencial,\n @Path(\"periodo\") String periodo,\n @Header(\"AuthorizationPortador\") String token);\n\n @GET(\"api/plastico/abrir/mobile/{idPlastico}\")\n Call<ResponseBody> abrirPlastico(@Path(\"idPlastico\") long idPlastico,\n @Header(\"AuthorizationPortador\") String token);\n\n /**\n * @param portadorCredencialRequest a credencial deve ser criptografada com SHA512\n * @param token\n * @return\n */\n @POST(\"api/portador/credencial/info-portador\")\n Call<PortadorCredencial> getPortadorCredencial(@Body GetInfoPortadorCredencialRequest portadorCredencialRequest,\n @Header(\"AuthorizationPortador\") String token);\n\n @POST(\"api/portador/conta/transferencia\")\n Call<ResponseBody> transferenciaOutroCartao(@Body TransferenciaMesmaInstituicao request,\n @Header(\"AuthorizationPortador\") String token);\n\n @POST(\"api/portador/conta/transferencia/conta/corrente\")\n Call<ResponseBody> transferenciaContaCorrente(@Body TransferenciaContaCorrente request,\n @Header(\"AuthorizationPortador\") String token);\n\n @GET(\"api/banco\")\n Call<Banco[]> listaBancos(@Header(\"AuthorizationPortador\") String token);\n\n @POST(\"api/boleto/carga/gerar-linha-digitavel\")\n Call<BoletoCarga> gerarLinhaDigitavel(@Body GerarBoletoCarga request,\n @Header(\"AuthorizationPortador\") String token);\n\n @POST(\"api/boleto/carga/enviar-boleto-email\")\n Call<ResponseBody> enviarBoletoEmail(@Body GerarBoletoCarga request,\n @Header(\"AuthorizationPortador\") String token);\n\n @GET(\"api/portador/credencial/virtual/conta/{idConta}\")\n Call<GetCredenciaisResponse> listaCartoesVirtuais(@Path(\"idConta\") long idConta,\n @Header(\"AuthorizationPortador\") String token);\n\n @POST(\"api/gerador/credencial\")\n Call<CredencialGerada> novoCartaoVirtual(@Body GerarCredencialRequest request,\n @Header(\"AuthorizationPortador\") String token);\n\n @GET(\"api/portador/credencial/status-habilitacao/{idCredencial}\")\n Call<CredencialStatus> listaStatusHabilitacao(@Path(\"idCredencial\") long idCredencial,\n @Header(\"AuthorizationPortador\") String token);\n\n @POST(\"api/portador/credencial/trocar-estado\")\n Call<ResponseBody> trocarEstado(@Body TrocarEstadoCredencialRequest request,\n @Header(\"AuthorizationPortador\") String token);\n\n\n @POST(\"api/portador/credencial/avisar-perda\")\n Call<ResponseBody> avisarPerda(@Body AvisarPerdaOuRouboRequest request,\n @Header(\"AuthorizationPortador\") String token);\n\n @POST(\"api/portador/credencial/avisar-roubo\")\n Call<ResponseBody> avisarRoubo(@Body AvisarPerdaOuRouboRequest request,\n @Header(\"AuthorizationPortador\") String token);\n\n @POST(\"api/portador/credencial/trocar-pin\")\n Call<Boolean> trocarSenhaCartao(@Body TrocarPinRequest request,\n @Header(\"AuthorizationPortador\") String token);\n\n @GET(\"api/portador/conta/buscar-tarifas/conta/{idConta}\")\n Call<GetPerfilTarifarioResponse> listaTarifas(@Path(\"idConta\") long idConta,\n @Header(\"AuthorizationPortador\") String token);\n\n @GET(\"api/portador/credencial/{documento}/pessoa/{tipoPessoa}/processadora/{idProc}/instituicao/{idInst}/desbloqueadas\")\n Call<GetCredenciaisResponse> listaCredenciaisLoja(\n @Path(\"documento\") String documento,\n @Path(\"tipoPessoa\") long tipoPessoa,\n @Path(\"idProc\") long idProcessadora,\n @Path(\"idInst\") long idInstituicao,\n @Header(\"AuthorizationPortador\") String token\n );\n\n @GET(\"api/mktplace/portador/pedido/pessoa/{documento}/processadora/{idProcessadora}/instituicao/{idInstituicao}\")\n Call<Pedido[]> buscarPedidos(@Path(\"documento\") String documento,\n @Path(\"idProcessadora\") long idProcessadora,\n @Path(\"idInstituicao\") long idInstituicao,\n @Header(\"AuthorizationPortador\") String token);\n\n @GET(\"api/mktplace/portador/pedido/{idPedido}\")\n Call<PedidoDetalhe> buscarPedidoDetalhe(\n @Path(\"idPedido\") long idPedido,\n @Header(\"AuthorizationPortador\") String token);\n\n @GET(\"api/mktplace/portador/parceiro-produto/{idProcessadora}/{idInstituicao}/\")\n Call<ArrayList<ParceiroResponse>> getParceiros(@Path(\"idProcessadora\") long idProcessadora,\n @Path(\"idInstituicao\") long idInstituicao,\n @Header(\"AuthorizationPortador\") String token);\n\n @GET(\"api/mktplace/administrativo/imagem/sku/{idImagem}\")\n Call<ResponseBody> abrirImagemProduto(@Path(\"idImagem\") long idImagem,\n @Header(\"AuthorizationPortador\") String token);\n\n @GET(\"api/mktplace/portador/formas-envio/{idParceiro}/endereco/{idEndereco}\")\n Call<GetFormasEnvioResponse[]> getFormasEnvio(@Path(\"idParceiro\") long idParceiro,\n @Path(\"idEndereco\") long idEndereco,\n @Header(\"AuthorizationPortador\") String token);\n\n @GET(\"api/endereco/{documento}/pessoa/{tipoPessoa}/processadora/{idProc}/instituicao/{idInst}/status/{status}/\")\n Call<EnderecoPessoa[]> getEnderecoPortador(@Path(\"documento\") String documento,\n @Path(\"tipoPessoa\") long tipoPessoa,\n @Path(\"idProc\") long idProc,\n @Path(\"idInst\") long idInst,\n @Path(\"status\") long status,\n @Header(\"AuthorizationPortador\") String token);\n\n @POST(\"api/mktplace/portador/pedido\")\n Call<Integer> efetuarPedido(@Body FazerPedidoMKTPlace request,\n @Header(\"AuthorizationPortador\") String token);\n\n @GET(\"api/mktplace/portador/parcelas/{idParceiro}/valor/{valorCarrinho}\")\n Call<ParcelasResponse> getParcelamento(@Path(\"idParceiro\") long idParceiro,\n @Path(\"valorCarrinho\") double valorCarrinho,\n @Header(\"AuthorizationPortador\") String token);\n}", "public frmPesquisaServico() {\n initComponents();\n listarServicos();\n }", "public interface RESTService {\n\n /**\n * Check Voter Services\n **/\n\n //TODO to check this is work or not\n //@GET(Config.REGISTER) Call<User> registerUser(@Header(\"uuid\") String uuid,\n // @QueryMap Map<String, String> body);\n\n @GET(Config.REGISTER) Call<User> registerUser(@QueryMap Map<String, String> body);\n\n /**\n * Maepaysoh services\n **/\n\n //candidate\n @GET(Config.CANDIDATE_LIST_URL) Call<CandidateListReturnObject> getCandidateList(\n @QueryMap Map<String, String> optionalQueries);\n\n @GET(Config.CANDIDATE_URL + \"/{id}\") Call<JsonObject> getCandidate(@Path(\"id\") String id,\n @QueryMap Map<String, String> optionalQueries);\n\n //geo location\n @GET(Config.GEO_LOCATION_URL) Call<GeoReturnObject> getLocationList(\n @QueryMap Map<String, String> optionalQueries);\n\n @GET(Config.GEO_LOCATION_SEARCH) Call<JsonObject> searchLocation(\n @QueryMap Map<String, String> optionalQueries);\n\n //party\n @GET(Config.PARTY_LIST_URL) Call<PartyReturnObject> getPartyList(\n @QueryMap Map<String, String> optionalQueries);\n\n @GET(Config.PARTY_LIST_URL + \"/{id}\") Call<JsonObject> getPartyDetail(@Path(\"id\") String id);\n\n //OMI service\n @GET(Config.MOTION_DETAIL_URL) Call<JsonObject> getMotionDetail(@Query(\"mpid\") String mpId);\n\n @GET(Config.MOTION_COUNT) Call<JsonObject> getMotionCount(@Query(\"mpid\") String mpId);\n\n @GET(Config.QUESTION_DETAIL_URL) Call<JsonObject> getQuestionDetail(@Query(\"mpid\") String mpId);\n\n @GET(Config.QUESTION_COUNT) Call<JsonObject> getQuestionCount(@Query(\"mpid\") String mpId);\n\n @GET(Config.QUESTION_MOTION) Call<JsonObject> getQuestionAndMotion(@Query(\"mpid\") String mpId);\n\n @GET(Config.COMPARE_QUESTION) Call<JsonElement> getCompareQuestion(\n @Query(\"first\") String first_candidate_id, @Query(\"second\") String second_candidate_id);\n\n @GET(Config.CANDIDTE_AUTO_SEARCH) Call<ArrayList<CandidateSearchResult>> searchCandidate(\n @Query(\"q\") String keyWord, @QueryMap Map<String, Integer> options);\n\n @GET(Config.CANDIDATE_COUNT) Call<JsonObject> getCandidateCount(@Query(\"party\") String party_id);\n\n @GET(Config.CURRENT_COUNT) Call<JsonObject> getCurrentCount();\n\n @GET(Config.FAQ_LIST_URL) Call<FAQListReturnObject> listFaqs(\n @QueryMap Map<String, String> options);\n\n @GET(Config.FAQ_SEARCH) Call<FAQListReturnObject> searchFaq(@Query(\"q\") String keyWord,\n @QueryMap Map<String, String> options);\n\n @GET(\"/faq/{faq_id}\") Call<FAQDetailReturnObject> searchFaqById(@Path(\"faq_id\") String faqId,\n @QueryMap Map<String, String> options);\n\n @GET(Config.APP_VERSIONS) Call<JsonObject> checkUpdate();\n}", "@PostConstruct\n\tpublic void config() {\n\t\tthis.configureSwaggerV1();\n\t}", "public void service(){\n Serv_ID = 0;\n Serv_Emp_ID = 0;\n Serv_Event_ID = 0;\n Serv_Grant_ID = 0;\n Serv_Proj_ID = 0;//add project creation\n Serv_Date = \"currrent_date\";\n Serv_Type = \"\";\n Serv_Desc = \"\";\n Serv_Mon_Val = 0.00;\n Serv_Hours = 0;\n }", "public void conectarServicio(){\n\t\tIntent intent = new Intent(this,CalcularServicio.class);\n\t\tbindService(intent, mConexion, Context.BIND_AUTO_CREATE);\n\t\tmServicioUnido = true;\n\t}", "Fog_Services createFog_Services();", "public void StartAllServices()\n\t{\n\t\tm_oCommServ.StartCmdService(m_oConfig.CmdPort()); //Giving introducer port here\n\t\t// bring up the heartbeat receiver\n\t\tm_oCommServ.StartHeartBeatRecvr();\n\t\t//breing up the file report recvr\n\t\tm_oCommServ.StartFileReportRecvr();\n\t}", "@Override\n protected void configure() {\n bind(OperationPerformingService.class);\n }", "private void startBootstrapServices() {\n traceBeginAndSlog(\"StartWatchdog\");\n Watchdog watchdog = Watchdog.getInstance();\n watchdog.start();\n traceEnd();\n if (MAPLE_ENABLE) {\n this.mPrimaryZygotePreload = SystemServerInitThreadPool.get().submit($$Lambda$SystemServer$UyrPns7R814gZEylCbDKhe8It4.INSTANCE, \"PrimaryZygotePreload\");\n }\n Slog.i(TAG, \"Reading configuration...\");\n traceBeginAndSlog(\"ReadingSystemConfig\");\n SystemServerInitThreadPool.get().submit($$Lambda$YWiwiKm_Qgqb55C6tTuq_n2JzdY.INSTANCE, \"ReadingSystemConfig\");\n traceEnd();\n traceBeginAndSlog(\"StartInstaller\");\n this.installer = (Installer) this.mSystemServiceManager.startService(Installer.class);\n traceEnd();\n traceBeginAndSlog(\"DeviceIdentifiersPolicyService\");\n this.mSystemServiceManager.startService(DeviceIdentifiersPolicyService.class);\n traceEnd();\n traceBeginAndSlog(\"UriGrantsManagerService\");\n this.mSystemServiceManager.startService(UriGrantsManagerService.Lifecycle.class);\n traceEnd();\n traceBeginAndSlog(\"StartActivityManager\");\n ActivityTaskManagerService atm = this.mSystemServiceManager.startService(ActivityTaskManagerService.Lifecycle.class).getService();\n this.mActivityManagerService = ActivityManagerService.Lifecycle.startService(this.mSystemServiceManager, atm);\n this.mActivityManagerService.setSystemServiceManager(this.mSystemServiceManager);\n this.mActivityManagerService.setInstaller(this.installer);\n this.mWindowManagerGlobalLock = atm.getGlobalLock();\n traceEnd();\n traceBeginAndSlog(\"StartPowerManager\");\n try {\n this.mPowerManagerService = (PowerManagerService) this.mSystemServiceManager.startService(\"com.android.server.power.HwPowerManagerService\");\n } catch (RuntimeException e) {\n Slog.w(TAG, \"create HwPowerManagerService failed\");\n this.mPowerManagerService = (PowerManagerService) this.mSystemServiceManager.startService(PowerManagerService.class);\n }\n traceEnd();\n traceBeginAndSlog(\"StartThermalManager\");\n this.mSystemServiceManager.startService(ThermalManagerService.class);\n traceEnd();\n try {\n Slog.i(TAG, \"PG Manager service\");\n this.mPGManagerService = PGManagerService.getInstance(this.mSystemContext);\n } catch (Throwable e2) {\n reportWtf(\"PG Manager service\", e2);\n }\n traceBeginAndSlog(\"InitPowerManagement\");\n this.mActivityManagerService.initPowerManagement();\n traceEnd();\n traceBeginAndSlog(\"StartRecoverySystemService\");\n this.mSystemServiceManager.startService(RecoverySystemService.class);\n traceEnd();\n RescueParty.noteBoot(this.mSystemContext);\n traceBeginAndSlog(\"StartLightsService\");\n try {\n this.mSystemServiceManager.startService(\"com.android.server.lights.LightsServiceBridge\");\n } catch (RuntimeException e3) {\n Slog.w(TAG, \"create LightsServiceBridge failed\");\n this.mSystemServiceManager.startService(LightsService.class);\n }\n traceEnd();\n traceBeginAndSlog(\"StartSidekickService\");\n if (SystemProperties.getBoolean(\"config.enable_sidekick_graphics\", false)) {\n this.mSystemServiceManager.startService(WEAR_SIDEKICK_SERVICE_CLASS);\n }\n traceEnd();\n traceBeginAndSlog(\"StartDisplayManager\");\n this.mDisplayManagerService = (DisplayManagerService) this.mSystemServiceManager.startService(DisplayManagerService.class);\n traceEnd();\n try {\n this.mSystemServiceManager.startService(\"com.android.server.security.HwSecurityService\");\n Slog.i(TAG, \"HwSecurityService start success\");\n } catch (Exception e4) {\n Slog.e(TAG, \"can't start HwSecurityService service\");\n }\n traceBeginAndSlog(\"WaitForDisplay\");\n this.mSystemServiceManager.startBootPhase(100);\n traceEnd();\n String cryptState = (String) VoldProperties.decrypt().orElse(\"\");\n if (ENCRYPTING_STATE.equals(cryptState)) {\n Slog.w(TAG, \"Detected encryption in progress - only parsing core apps\");\n this.mOnlyCore = true;\n } else if (ENCRYPTED_STATE.equals(cryptState)) {\n Slog.w(TAG, \"Device encrypted - only parsing core apps\");\n this.mOnlyCore = true;\n }\n HwBootCheck.bootSceneEnd(100);\n HwBootFail.setBootTimer(false);\n HwBootCheck.bootSceneStart(105, 900000);\n if (!this.mRuntimeRestart) {\n MetricsLogger.histogram((Context) null, \"boot_package_manager_init_start\", (int) SystemClock.elapsedRealtime());\n }\n traceBeginAndSlog(\"StartPackageManagerService\");\n try {\n Watchdog.getInstance().pauseWatchingCurrentThread(\"packagemanagermain\");\n this.mPackageManagerService = PackageManagerService.main(this.mSystemContext, this.installer, this.mFactoryTestMode != 0, this.mOnlyCore);\n Watchdog.getInstance().resumeWatchingCurrentThread(\"packagemanagermain\");\n this.mFirstBoot = this.mPackageManagerService.isFirstBoot();\n this.mPackageManager = this.mSystemContext.getPackageManager();\n Slog.i(TAG, \"Finish_StartPackageManagerService\");\n traceEnd();\n if (!this.mRuntimeRestart && !isFirstBootOrUpgrade()) {\n MetricsLogger.histogram((Context) null, \"boot_package_manager_init_ready\", (int) SystemClock.elapsedRealtime());\n HwBootCheck.addBootInfo(\"[bootinfo]\\nisFirstBoot: \" + this.mFirstBoot + \"\\nisUpgrade: \" + this.mPackageManagerService.isUpgrade());\n HwBootCheck.bootSceneStart(101, JobStatus.DEFAULT_TRIGGER_MAX_DELAY);\n HwBootFail.setBootTimer(true);\n }\n HwBootCheck.bootSceneEnd(105);\n if (!this.mOnlyCore && !SystemProperties.getBoolean(\"config.disable_otadexopt\", false)) {\n traceBeginAndSlog(\"StartOtaDexOptService\");\n try {\n Watchdog.getInstance().pauseWatchingCurrentThread(\"moveab\");\n OtaDexoptService.main(this.mSystemContext, this.mPackageManagerService);\n } catch (Throwable th) {\n Watchdog.getInstance().resumeWatchingCurrentThread(\"moveab\");\n traceEnd();\n throw th;\n }\n Watchdog.getInstance().resumeWatchingCurrentThread(\"moveab\");\n traceEnd();\n }\n traceBeginAndSlog(\"StartUserManagerService\");\n this.mSystemServiceManager.startService(UserManagerService.LifeCycle.class);\n traceEnd();\n traceBeginAndSlog(\"InitAttributerCache\");\n AttributeCache.init(this.mSystemContext);\n traceEnd();\n traceBeginAndSlog(\"SetSystemProcess\");\n this.mActivityManagerService.setSystemProcess();\n traceEnd();\n traceBeginAndSlog(\"InitWatchdog\");\n watchdog.init(this.mSystemContext, this.mActivityManagerService);\n traceEnd();\n this.mDisplayManagerService.setupSchedulerPolicies();\n traceBeginAndSlog(\"StartOverlayManagerService\");\n this.mSystemServiceManager.startService(new OverlayManagerService(this.mSystemContext, this.installer));\n traceEnd();\n traceBeginAndSlog(\"StartSensorPrivacyService\");\n this.mSystemServiceManager.startService(new SensorPrivacyService(this.mSystemContext));\n traceEnd();\n if (SystemProperties.getInt(\"persist.sys.displayinset.top\", 0) > 0) {\n this.mActivityManagerService.updateSystemUiContext();\n ((DisplayManagerInternal) LocalServices.getService(DisplayManagerInternal.class)).onOverlayChanged();\n }\n this.mSensorServiceStart = SystemServerInitThreadPool.get().submit($$Lambda$SystemServer$oG4I04QJrkzCGs6IcMTKU2211A.INSTANCE, START_SENSOR_SERVICE);\n } catch (Throwable th2) {\n Watchdog.getInstance().resumeWatchingCurrentThread(\"packagemanagermain\");\n throw th2;\n }\n }", "@Override\n public void configurarContexto(Presentador presentador) {\n\n }", "public void setServiceName(java.lang.String param){\n localServiceNameTracker = true;\n \n this.localServiceName=param;\n \n\n }", "@Override\n public void configure() throws Exception {\n BankAccountManagementService bankAccountManagementService = services.get(BankAccountManagementService.class);\n UserManagementService userManagementService = services.get(UserManagementService.class);\n ObjectMapper mapper = JsonMapperFactory.getObjectMapper();\n if (this.filePathAString == null) {\n throw new Exception(\"No config file provided, please set the cashmanager.config.localfile property\");\n }\n LocalFileDTO fileConfig = mapper.readValue(new File(filePathAString), LocalFileDTO.class);\n this.preferences = new HashMap<String, String>(fileConfig.preferences);\n fileConfig.accounts.forEach((account) ->\n bankAccountManagementService.registerNewAcount(account.getId(), account.getBalance())\n );\n fileConfig.users.forEach((user) ->\n userManagementService.registerUser(user.getId(), user.getPassword())\n );\n }", "public static Kernel start(int port)\n {\n Kernel app = Kernel.newInstance();\n Container container = app.getContainer();\n\n // Forms\n container.add(new ServiceDefinition<>(AnnualReviewType.class));\n container.add(new ServiceDefinition<>(UserType.class));\n\n // Managers\n container.add(new ServiceDefinition<>(AccessDecisionManager.class, YuconzAccessDecisionManager.class));\n container.add(new ServiceDefinition<>(YuconzAuthenticationManager.class));\n container.add(new ServiceDefinition<>(Hibernate.class));\n container.add(new ServiceDefinition<>(LogManager.class))\n .addMethodCallDefinitions(new MethodCallDefinition(\n \"setAuthenticationManager\",\n new ServiceReference<>(YuconzAuthenticationManager.class)\n ));\n container.add(new ServiceDefinition<>(RecordManager.class));\n container.add(new ServiceDefinition<>(AnnualReviewManager.class));\n container.add(new ServiceDefinition<>(FormManager.class));\n\n container.add(new ServiceDefinition<>(AuthorisationManager.class))\n .addMethodCallDefinitions(new MethodCallDefinition(\n \"setAuthenticationManager\",\n new ServiceReference<>(YuconzAuthenticationManager.class)\n ));\n\n // Resolvers\n container.add(new ServiceDefinition<>(UserResolver.class));\n container.add(new ServiceDefinition<>(RecordResolver.class));\n\n // JTwig Functions\n container.add(new ServiceDefinition<>(CurrentUserFunction.class)).addTag(\"jtwig.function\");\n container.add(new ServiceDefinition<>(CurrentRoleFunction.class)).addTag(\"jtwig.function\");\n container.add(new ServiceDefinition<>(FormRenderFunction.class)).addTag(\"jtwig.function\");\n container.add(new ServiceDefinition<>(FormStartRenderFunction.class)).addTag(\"jtwig.function\");\n container.add(new ServiceDefinition<>(FormEndRenderFunction.class)).addTag(\"jtwig.function\");\n container.add(new ServiceDefinition<>(ActivePageFunction.class)).addTag(\"jtwig.function\");\n container.add(new ServiceDefinition<>(IsGrantedFunction.class)).addTag(\"jtwig.function\");\n container.add(new ServiceDefinition<>(RangeFunction.class)).addTag(\"jtwig.function\");\n container.add(new ServiceDefinition<>(ServiceFunction.class)).addTag(\"jtwig.function\");\n container.add(new ServiceDefinition<>(LocalDateFunction.class)).addTag(\"jtwig.function\");\n\n // Voters\n container.add(new ServiceDefinition<>(PersonalDetailsVoter.class)).addTag(\"authentication.voter\");\n container.add(new ServiceDefinition<>(RecordVoter.class)).addTag(\"authentication.voter\");\n container.add(new ServiceDefinition<>(AnnualReviewVoter.class)).addTag(\"authentication.voter\");\n container.add(new ServiceDefinition<>(AuthorisationVoter.class)).addTag(\"authentication.voter\");\n\n container.getServiceDefinition(FrameworkServer.class).setConfigurationReference(new PlainReference<>(new Configuration()\n {\n @Override\n public int getPort()\n {\n return port;\n }\n }));\n\n app.boot();\n\n Router router = container.get(Router.class);\n\n // Records\n router.registerController(AppController.class);\n router.registerController(StaticController.class);\n router.registerController(AuthenticationController.class);\n router.registerController(DashboardController.class);\n router.registerController(EmployeesController.class);\n router.registerController(RecordController.class);\n router.registerController(AnnualReviewController.class);\n\n FormManager formManager = container.get(FormManager.class);\n\n formManager.getRenderers().removeIf(r -> r.getClass().equals(ChoiceRenderer.class));\n formManager.addRenderer(CustomChoiceRenderer.class);\n formManager.addRenderer(DateRenderer.class);\n\n app.start();\n\n return app;\n }", "@Override\n\tpublic void onStartup(ServletContext servletContext)\n\t\t\tthrows ServletException {\n\t\tsuper.onStartup(servletContext);//master line where whole framework works\n\t\t//configure global objects/tasks if required\n\t}", "public void contextInitialized(ServletContextEvent contextEvent) {\n super.serviceInitialization(contextEvent,SERVICE_NAME);\n }", "@Override\n protected ProdutoServicoImpl getservice() {\n return produtoService;\n }", "private List<ServiceDTO> getCustomizedConfigService() {\n String configServices = System.getProperty(\"apollo.configService\");\n if (Strings.isNullOrEmpty(configServices)) {\n // 2. Get from OS environment variable\n configServices = System.getenv(\"APOLLO_CONFIGSERVICE\");\n }\n if (Strings.isNullOrEmpty(configServices)) {\n // 3. Get from server.properties\n configServices = Foundation.server().getProperty(\"apollo.configService\", null);\n }\n\n if (Strings.isNullOrEmpty(configServices)) {\n return null;\n }\n\n logger.warn(\"Located config services from apollo.configService configuration: {}, will not refresh config services from remote meta service!\", configServices);\n\n // mock service dto list\n String[] configServiceUrls = configServices.split(\",\");\n List<ServiceDTO> serviceDTOS = Lists.newArrayList();\n\n for (String configServiceUrl : configServiceUrls) {\n configServiceUrl = configServiceUrl.trim();\n ServiceDTO serviceDTO = new ServiceDTO();\n serviceDTO.setHomepageUrl(configServiceUrl);\n serviceDTO.setAppName(ServiceNameConsts.APOLLO_CONFIGSERVICE);\n serviceDTO.setInstanceId(configServiceUrl);\n serviceDTOS.add(serviceDTO);\n }\n\n return serviceDTOS;\n }", "public Configuration() {\n\t\tpackages(\"apiservice.services\");\n\t\tregister(CORSFilter.class);\n\t\tregister(AuthenticationFilter.class);\n\t}", "public interface PointAService {\r\n\r\n\t/**\r\n\t * Initialisation function called directly after construction\r\n\t * \r\n\t * @param pParams\r\n\t * Map containing parameters specified in PointAConfig.xml\r\n\t */\r\n\tpublic void init(Map<String, String> pParams, Application pApp) throws Exception;\r\n}", "@PostConstruct\r\n\tpublic void init(){\r\n\t\tconta = new Conta();\r\n\t\tservice = new ContaService();\r\n\t\tconta.setDataAbertura(Calendar.getInstance());\r\n\t}", "Service(){\r\n\t\tserviceName =\"x\";\r\n\t\tserviceID = 0;\r\n\t\tserviceFee = 0.0;\r\n\t\tserviceDescrp = \"zztop\";\r\n\t}", "private AuthService() {\n configureAccessTokens();\n configure();\n ConfigurationWatcher.registerListener(this, JOSSO_GATEWAY_CONFIGURATION.getAbsolutePath());\n ConfigurationWatcher.registerListener(this, FOUNDATION_CONFIGURATION.getAbsolutePath());\n log.debug(\"AuthService listening for changes to \" + JOSSO_GATEWAY_CONFIGURATION + \" and \" + FOUNDATION_CONFIGURATION);\n }", "private RecipleazBackendService() {\n }", "public interface JSONRestconfService {\n /**\n * The data tree root path.\n */\n String ROOT_PATH = null;\n\n /**\n * Issues a restconf PUT request to the configuration data store.\n *\n * @param uriPath the yang instance identifier path, eg \"opendaylight-inventory:nodes/node/device-id\".\n * To specify the root, use {@link ROOT_PATH}.\n * @param payload the payload data in JSON format.\n * @throws OperationFailedException if the request fails.\n */\n void put(String uriPath, @Nonnull String payload) throws OperationFailedException;\n\n /**\n * Issues a restconf POST request to the configuration data store.\n *\n * @param uriPath the yang instance identifier path, eg \"opendaylight-inventory:nodes/node/device-id\".\n * To specify the root, use {@link ROOT_PATH}.\n * @param payload the payload data in JSON format.\n * @throws OperationFailedException if the request fails.\n */\n void post(String uriPath, @Nonnull String payload) throws OperationFailedException;\n\n /**\n * Issues a restconf DELETE request to the configuration data store.\n *\n * @param uriPath the yang instance identifier path, eg \"opendaylight-inventory:nodes/node/device-id\".\n * To specify the root, use {@link ROOT_PATH}.\n * @throws OperationFailedException if the request fails.\n */\n void delete(String uriPath) throws OperationFailedException;\n\n /**\n * Issues a restconf GET request to the given data store.\n *\n * @param uriPath the yang instance identifier path, eg \"opendaylight-inventory:nodes/node/device-id\".\n * To specify the root, use {@link ROOT_PATH}.\n * @param datastoreType the data store type to read from.\n * @return an Optional containing the data in JSON format if present.\n * @throws OperationFailedException if the request fails.\n */\n Optional<String> get(String uriPath, LogicalDatastoreType datastoreType)\n throws OperationFailedException;\n\n /**\n * Invokes a yang-defined RPC.\n *\n * @param uriPath the path representing the RPC to invoke, eg \"toaster:make-toast\".\n * @param input the input in JSON format if the RPC takes input.\n * @return an Optional containing the output in JSON format if the RPC returns output.\n * @throws OperationFailedException if the request fails.\n */\n Optional<String> invokeRpc(@Nonnull String uriPath, Optional<String> input) throws OperationFailedException;\n\n /**\n * Issues a restconf PATCH request to the configuration data store.\n *\n * @param uriPath the yang instance identifier path, eg \"opendaylight-inventory:nodes/node/device-id\".\n * To specify the root, use {@link ROOT_PATH}.\n * @param payload the payload data in JSON format.\n * @return an Optional containing the patch response data in JSON format.\n * @throws OperationFailedException if the request fails.\n */\n Optional<String> patch(@Nonnull String uriPath, @Nonnull String payload) throws OperationFailedException;\n}", "public void setServiceName(String serviceName){\n this.serviceName = serviceName;\n }", "@PostConstruct\r\n public void inicializar() {\r\n try {\r\n anioDeclaracion = 0;\r\n existeDedPatente = false;\r\n deducciones = false;\r\n detaleExoDedMul = new ArrayList<String>();\r\n activaBaseImponible = 0;\r\n verBuscaPatente = 0;\r\n inicializarValCalcula();\r\n datoGlobalActual = new DatoGlobal();\r\n patenteActual = new Patente();\r\n patenteValoracionActal = new PatenteValoracion();\r\n verPanelDetalleImp = 0;\r\n habilitaEdicion = false;\r\n numPatente = \"\";\r\n buscNumPat = \"\";\r\n buscAnioPat = \"\";\r\n catDetAnio = new CatalogoDetalle();\r\n verguarda = 0;\r\n verActualiza = 0;\r\n verDetDeducciones = 0;\r\n verBotDetDeducciones = 0;\r\n listarAnios();\r\n } catch (Exception ex) {\r\n LOGGER.log(Level.SEVERE, null, ex);\r\n }\r\n }", "public void testSetService() throws Exception {\n }", "ProgramActuatorService createProgramActuatorService();", "public void init() {\r\n\tlog.info(\"OsylManagerServiceImpl service init() \");\r\n\t// register functions\r\n\tfor (Iterator<String> i = functionsToRegister.iterator(); i.hasNext();) {\r\n\t String function = i.next();\r\n\t functionManager.registerFunction(function);\r\n\t}\r\n }", "@Override\n\tpublic void configure(CServiceParameter arg0)\n\t{\n\n\t}", "Service newService();", "private static StandardServiceRegistry configureServiceRegistry() {\n return new StandardServiceRegistryBuilder()\n .applySettings(getProperties())\n .build();\n }", "@ServiceInit\n public void init() {\n }", "ServiceConfig getServiceConfig();", "ServiceConfig getServiceConfig();", "public static void main(final String[] args) throws Exception {\n Resource.setDefaultUseCaches(false);\n Integer SERVER_PORT = Integer.parseInt(ManejadorPropiedades.leerPropiedad(\"app_cfg.properties\", \"app.port\"));\n String SERVER_HOST = ManejadorPropiedades.leerPropiedad(\"app_cfg.properties\", \"app.host\");\n String CONTEXT_PATH = ManejadorPropiedades.leerPropiedad(\"app_cfg.properties\", \"app.context_path\");\n \n final Server server = new Server(SERVER_PORT);\n System.setProperty(AppConfig.SERVER_PORT, SERVER_PORT.toString());\n System.setProperty(AppConfig.SERVER_HOST, SERVER_HOST);\n System.setProperty(AppConfig.CONTEXT_PATH, CONTEXT_PATH);\n \n\n // Configuring Apache CXF servlet and Spring listener \n final ServletHolder servletHolder = new ServletHolder(new CXFServlet());\n final ServletContextHandler context = new ServletContextHandler();\n context.setContextPath(\"/\");\n context.addServlet(servletHolder, \"/\" + CONTEXT_PATH + \"/*\");\n context.addEventListener(new ContextLoaderListener());\n context.setInitParameter(\"contextClass\", AnnotationConfigWebApplicationContext.class.getName());\n context.setInitParameter(\"contextConfigLocation\", AppConfig.class.getName());\n \n FilterHolder filterHolder = context.addFilter(CrossOriginFilter.class,\"/*\",EnumSet.allOf(DispatcherType.class));\n filterHolder.setInitParameter(CrossOriginFilter.ALLOWED_ORIGINS_PARAM,\"*\");\n filterHolder.setInitParameter(CrossOriginFilter.ALLOWED_HEADERS_PARAM,\"Content-Type,Authorization,X-Requested-With,Content-Length,Accept,Origin\");\n filterHolder.setInitParameter(CrossOriginFilter.ALLOWED_METHODS_PARAM,\"GET,PUT,POST,DELETE,OPTIONS\");\n filterHolder.setInitParameter(CrossOriginFilter.PREFLIGHT_MAX_AGE_PARAM,\"5184000\");\n filterHolder.setInitParameter(CrossOriginFilter.ALLOW_CREDENTIALS_PARAM,\"true\");\n\n\n // Configuring Swagger as static web resource\n final ServletHolder swaggerHolder = new ServletHolder(new DefaultServlet());\n final ServletContextHandler swagger = new ServletContextHandler();\n swagger.setContextPath(\"/swagger\");\n swagger.addServlet(swaggerHolder, \"/*\");\n swagger.setResourceBase(new ClassPathResource(\"/webapp\").getURI().toString());\n\n final HandlerList handlers = new HandlerList();\n handlers.addHandler(swagger);\n handlers.addHandler(context);\n\n server.setHandler(handlers);\n server.start();\n server.join();\n }", "private void initServices() {\n PortletServiceFactory factory = SportletServiceFactory.getInstance();\n // Get instance of password manager service\n try {\n this.userManager =\n (UserManagerService)\n factory.createPortletService(UserManagerService.class, null, true);\n } catch (Exception e) {\n _log.error(\"Unable to get instance of password manager service!\", e);\n }\n }", "@PostConstruct\n public void init() {\n ApiClient client = Config.fromToken(url, token, validateSSL);\n io.kubernetes.client.Configuration.setDefaultApiClient(client);\n }", "private void servicesManager(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\r\n\t\t// Extract service and command\r\n\t\tif ( req.getPathInfo().length() > 0 ) {\r\n\t\t\tString path = req.getPathInfo().substring(1);\r\n\t\t\tif ( path.indexOf(\"/\") > 0 ) {\r\n\t\t\t\tString service = path.substring(0, path.indexOf(\"/\"));\r\n\t\t\t\tString cmd = path.substring(path.indexOf(\"/\")+1);\r\n\t\t\t\t// Search service manager and execute it \r\n\t\t\t\tServiceJSManager serv = this.services.get(service);\r\n\t\t\t\tif ( serv != null ) {\r\n\t\t\t\t\tServiceJSResponse r;\r\n\t\t\t\t\tthis.dsp.startProcessing(req);\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tr = serv.execute(this.dsp,cmd,req.getParameterMap());\r\n\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\t// TODO: manage exception\r\n\t\t\t\t\t\tthrow new ServletException(e);\r\n\t\t\t\t\t} finally {\r\n\t\t\t\t\t\tthis.dsp.endProcessing();\r\n\t\t\t\t\t}\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tif (LOG != null && LOG.isDebugEnabled() ) LOG.debug(\"packaging response: %s\",req.getRequestURI());\r\n\t\t\t\t\t\tthis.serviceResponser(r, resp);\r\n\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\te = null;\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t// TODO: service unknown\r\n\t\t\r\n\t\t\r\n\t\tString out = \"DONE\\n\\r\"\r\n\t\t\t\t+\"XXX\";\r\n\t\tresp.setContentLength(out.length());\r\n\t\tresp.setContentType(\"text/plain\");\r\n\t\tresp.getWriter().println(out);\r\n\t\tresp.getWriter().close();\r\n\t}", "public abstract void setServiceName(String serviceName);", "public DoctoresResource() {\n servDoctores = new ServicioDoctores();\n }", "@PostConstruct\n public void init() {\n configureSwagger();\n }", "@Override\n\tpublic void loadService() {\n\t\t\n\t}", "public RestDataservice() {\n super();\n setkType(KomodoType.DATASERVICE);\n }", "public PAServiceImpl (BundleContext bc) {\n this.bc = bc;\n \n // Read the default configuration file\n // TODO: Refactor the XSD schema and XML data file name constructors\n configReader = new XMLConfigParser(\n CWD_PATH + FILE_SEP + CONF_DIR + FILE_SEP + \"plugins.xml\",\n CWD_PATH + FILE_SEP + CONF_DIR + FILE_SEP + \"plugins.xsd\");\n // ... and retrieve all available metrics configurations\n if (configReader != null) {\n metricConfigurations = configReader.getMetricsConfiguration();\n }\n \n // Collect information about pre-existing metric services\n this.collectMetricsInfo();\n \n // Attach this object as a listener for metric services\n try {\n bc.addServiceListener(this, SREF_FILTER_METRIC);\n } catch (InvalidSyntaxException e) {\n logError(INVALID_FILTER_SYNTAX);\n }\n \n // Register an extension to the Equinox console, in order to\n // provide commands for managing metric services\n bc.registerService(\n CommandProvider.class.getName(),\n new PACommandProvider(this) ,\n null);\n }", "public static void main(String[] argv)\r\n {\r\n //Fazer isto depois para múltiplos web services\r\n InsulinDoseCalculator service = null;\r\n try {\r\n //service = new InsulinDoseCalculatorService(new URL(\"http://liis-lab.dei.uc.pt:8080/Server?wsdl\")).getInsulinDoseCalculatorPort();\r\n //service = new InsulinDoseCalculatorService(new URL(\"http://qcs12.dei.uc.pt:8080/insulin?wsdl\")).getInsulinDoseCalculatorPort();\r\n //service = new InsulinDoseCalculatorService(new URL(\"http://qcs18.dei.uc.pt:8080/insulin?wsdl\")).getInsulinDoseCalculatorPort();14\r\n service = new InsulinDoseCalculatorService(new URL(\"http://localhost:9000/InsulinDoseCalculator?wsdl\")).getInsulinDoseCalculatorPort();\r\n //service = new InsulinDoseCalculatorService(new URL(\"http://vm-sgd17.dei.uc.pt:80/InsulinDoseCalculator?wsdl\")).getInsulinDoseCalculatorPort();\r\n } catch (MalformedURLException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n //InsulinDoseCalculator service = new InsulinDoseCalculatorService().getInsulinDoseCalculatorPort();\r\n menu(service);\r\n }", "private static void setupOsgi() {\r\n FrameworkStarter.getInstance().start();\r\n }", "private spark.Service configureSparkService () {\n LOG.info(\"Analysis server will listen for HTTP connections on port {}.\", config.serverPort());\n spark.Service sparkService = spark.Service.ignite();\n sparkService.port(config.serverPort());\n\n // Specify actions to take before the main logic of handling each HTTP request.\n sparkService.before((req, res) -> {\n // Record when the request started, so we can measure elapsed response time.\n req.attribute(REQUEST_START_TIME_ATTRIBUTE, Instant.now());\n\n // Set CORS headers to allow requests to this API server from a frontend hosted on a different domain.\n // This used to be hardwired to Access-Control-Allow-Origin: * but that leaves the server open to XSRF\n // attacks when authentication is disabled (e.g. when running locally).\n res.header(\"Access-Control-Allow-Origin\", config.allowOrigin());\n // For caching, signal to the browser that responses may be different based on origin.\n // TODO clarify why this is important, considering that normally all requests come from the same origin.\n res.header(\"Vary\", \"Origin\");\n\n // The default MIME type is JSON. This will be overridden by the few controllers that do not return JSON.\n res.type(\"application/json\");\n\n // Do not require authentication for internal API endpoints contacted by workers or for OPTIONS requests.\n // FIXME those internal endpoints should be hidden from the outside world by the reverse proxy.\n // Or now with non-static Spark we can run two HTTP servers on different ports.\n String method = req.requestMethod();\n String pathInfo = req.pathInfo();\n boolean authorize = pathInfo.startsWith(\"/api\") && !\"OPTIONS\".equalsIgnoreCase(method);\n if (authorize) {\n // Determine which user is sending the request, and which permissions that user has.\n // This method throws an exception if the user cannot be authenticated.\n UserPermissions userPermissions = authentication.authenticate(req);\n // Store the resulting permissions object in the request so it can be examined by any handler.\n req.attribute(USER_PERMISSIONS_ATTRIBUTE, userPermissions);\n }\n });\n\n sparkService.after((req, res) -> {\n // Firing an event after the request allows us to report the response time,\n // but may fail to record requests experiencing authentication problems.\n Instant requestStartTime = req.attribute(REQUEST_START_TIME_ATTRIBUTE);\n Duration elapsed = Duration.between(requestStartTime, Instant.now());\n eventBus.send(new HttpApiEvent(req.requestMethod(), res.status(), req.pathInfo(), elapsed.toMillis())\n .forUser(UserPermissions.from(req)));\n });\n\n // Handle CORS preflight requests (which are OPTIONS requests).\n // See comment above about Access-Control-Allow-Origin\n sparkService.options(\"/*\", (req, res) -> {\n // Cache the preflight response for up to one day (the maximum allowed by browsers)\n res.header(\"Access-Control-Max-Age\", \"86400\");\n res.header(\"Access-Control-Allow-Methods\", \"GET,PUT,POST,DELETE,OPTIONS\");\n // Allowing credentials is necessary to send an Authorization header\n res.header(\"Access-Control-Allow-Credentials\", \"true\");\n res.header(\"Access-Control-Allow-Headers\", \"Accept,Authorization,Content-Type,Origin,\" +\n \"X-Requested-With,Content-Length,X-Conveyal-Access-Group\"\n );\n return \"OK\";\n });\n\n // Allow client to fetch information about the backend build version.\n sparkService.get(\n \"/version\",\n (Request req, Response res) -> SoftwareVersion.instance,\n JsonUtil.objectMapper::writeValueAsString\n );\n\n // Can we consolidate all these exception handlers and get rid of the hard-wired \"BAD_REQUEST\" parameters?\n\n sparkService.exception(AnalysisServerException.class, (e, request, response) -> {\n respondToException(e, request, response, e.type, e.message, e.httpCode);\n });\n\n sparkService.exception(IOException.class, (e, request, response) -> {\n respondToException(e, request, response, BAD_REQUEST, e.toString(), 400);\n });\n\n sparkService.exception(FileUploadException.class, (e, request, response) -> {\n respondToException(e, request, response, BAD_REQUEST, e.toString(), 400);\n });\n\n sparkService.exception(NullPointerException.class, (e, request, response) -> {\n respondToException(e, request, response, UNKNOWN, e.toString(), 400);\n });\n\n sparkService.exception(RuntimeException.class, (e, request, response) -> {\n respondToException(e, request, response, RUNTIME, e.toString(), 400);\n });\n\n return sparkService;\n }", "public void connect() { \t\n \tbindService(IChatService.class, apiConnection);\n }", "@PostConstruct\n protected void init() {\n super.init();\n if (screeningService == null) {\n throw new PortalServiceConfigurationException(\"screeningService is not configured correctly.\");\n }\n if (enrollmentService == null) {\n throw new PortalServiceConfigurationException(\"enrollmentService is not configured correctly.\");\n }\n if (helpService == null) {\n throw new PortalServiceConfigurationException(\"helpService must be configured.\");\n }\n\n if (eventService == null) {\n throw new PortalServiceConfigurationException(\"eventService must be configured.\");\n }\n\n if (lookupService == null) {\n throw new PortalServiceConfigurationException(\"lookupService must be configured.\");\n }\n }", "public void onStart() {\n Configuration curatorDiscoveryConf = Configuration.root().getConfig(\"curator.service.discovery\");\n\n if (curatorDiscoveryConf == null) {\n Logger.info(\"Curator Discovery settings not found.\");\n } else {\n serviceName = curatorDiscoveryConf.getString(\"name\", \"Play2CuratorService\");\n serviceDescription = curatorDiscoveryConf.getString(\"description\", \"Play2 Curator Service\");\n servicePath = curatorDiscoveryConf.getString(\"path\", \"/play2-curator-service-discovery-plugin\");\n autoRegister = curatorDiscoveryConf.getBoolean(\"autoregister\", Boolean.TRUE);\n uriSpecParam = curatorDiscoveryConf.getString(\"uri.spec\", \"{scheme}://{address}:{port}\");\n uriSpecSslParam = curatorDiscoveryConf.getString(\"ssl.uri.spec\", \"{scheme}://{address}:{ssl-port}\");\n\n Logger.info(\"CuratorServiceDiscoveryPlugin Settings:\");\n Logger.info(\" * serviceName: \" + serviceName);\n Logger.info(\" * serviceDescription: \" + serviceDescription);\n Logger.info(\" * servicePath: \" + servicePath);\n Logger.info(\" * autoRegister: \" + autoRegister);\n Logger.info(\" * uriSpec: \" + uriSpecParam);\n Logger.info(\" * uriSpecSsl: \" + uriSpecSslParam);\n\n zooServers = curatorDiscoveryConf.getString(\"zooServers\", \"localhost:2181\");\n Logger.info(\" * zooKeeper servers: \" + zooServers);\n\n if (zooServers.toLowerCase().contains(\"mock\")) {\n try {\n mockZooKeeper = new TestingServer(2181);\n zooServers = mockZooKeeper.getConnectString();\n Logger.info(\"Mock ZooKeeper started at: \" + zooServers);\n } catch (Exception e) {\n Logger.error(\"Could not start mock ZooKeeper server on port 2181: \" + e.getMessage());\n return;\n }\n }\n\n Logger.info(\"Curator Discovery settings found. ZooKeeper servers: \" + zooServers);\n if (autoRegister) {\n int port = 0;\n String sPort = Configuration.root().getString(\"http.port\");\n if (sPort != null) {\n try {\n port = Integer.parseInt(sPort);\n Logger.info(\" * port: \" + port);\n } catch (NumberFormatException nfe) {\n Logger.debug(\"port is not valid\");\n }\n }\n\n sPort = Configuration.root().getString(\"https.port\");\n int sslPort = 0;\n if (sPort != null) {\n try {\n sslPort = Integer.parseInt(sPort);\n Logger.info(\" * sslPort: \" + sslPort);\n } catch (NumberFormatException nfe) {\n Logger.debug(\"ssl-port is not valid\");\n }\n }\n if (port == 0 && sslPort == 0) {\n Logger.error(\"Can't register service. Port / sslPort not set\");\n } else {\n register(serviceName, serviceDescription, port, sslPort);\n }\n }\n }\n }", "private void setService(Service service) {\n this.service = service;\n }", "protected void setup() {\n\t\t\t\t\tDFAgentDescription dfd = new DFAgentDescription();\n\t\t\t\t\tdfd.setName(getAID());\n\t\t\t\t\tServiceDescription sd = new ServiceDescription();\n\t\t\t\t\tsd.setType(\"wHOST\");\n\t\t\t\t\tsd.setName(\"wumpus-host-\" + Math.random());\n\t\t\t\t\tdfd.addServices(sd);\n\t\t\t\t\t\n\t\t\t\t\ttry {\n\t\t\t\t\t\tDFService.register(this, dfd);\n\t\t\t\t\t\thostMap = new WumpusMapHost();\n\t\t\t\t\t\tSystem.out.println(\"Registered as a host in the DF Service.\");\n\t\t\t\t\t\tlogic = new WumpusLogic();\n\t\t\t\t\t\tlogic.setHostMap(hostMap.getMap());\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tcatch (FIPAException fe) {\n\t\t\t\t\t\tfe.printStackTrace();\n\t\t\t\t\t}\n\t\t\n\t\t// Printing out a message stating that the agent is ready for service.\n\t\tSystem.out.println(\"Wumpus host \"+getAID().getName()+\" is ready.\");\n\t\t\n\t\taddBehaviour(new TickerBehaviour(this, 1000) {\n\t\t\tprotected void onTick() {\n\t\t\t\tmyAgent.addBehaviour(new HandleRequest());\n\t\t\t}\n\t\t});\n\t \t\n\t\t\n\t}", "public InitService(String name) {\n super(\"InitService\");\n }", "public interface ConfigService {\n\n /**\n * 获取合适条件分页属性数据\n *\n * @param proName\n * @param groupId\n * @param page\n * @param length\n * @return\n */\n TableVO<List<ConfigPropertyVO>> getConfigPropertyPage(String proName, long groupId, int page, int length);\n\n /**\n * 新增 or 更新属性数据\n *\n * @param propertyDO\n * @return\n */\n BusinessWrapper<Boolean> saveConfigProperty(ConfigPropertyDO propertyDO);\n\n /**\n * 删除指定id的属性数据\n *\n * @param id\n * @return\n */\n BusinessWrapper<Boolean> delConfigProperty(long id);\n\n /**\n * 获取合适条件分页属性组数据\n *\n * @param groupName\n * @param page\n * @param length\n * @return\n */\n TableVO<List<ConfigPropertyGroupDO>> getConfigPropertyGroupPage(String groupName, int page, int length);\n\n /**\n * 保存 or 更新属性组数据\n *\n * @param groupDO\n * @return\n */\n BusinessWrapper<Boolean> saveConfigPropertyGroup(ConfigPropertyGroupDO groupDO);\n\n /**\n * 删除指定id的属性组数据\n *\n * @param id\n * @return\n */\n BusinessWrapper<Boolean> delConfigPropertyGroup(long id);\n\n /**\n * 获取合适条件分页服务器组属性组数据\n *\n * @param groupId\n * @param page\n * @param length\n * @return\n */\n TableVO<List<ServerGroupPropertiesVO>> getGroupPropertyPageByGroupId(long groupId, int page, int length);\n\n /**\n * 获取合适条件分页服务器组属性组数据\n *\n * @param groupId\n * @param serverId\n * @param page\n * @param length\n * @return\n */\n TableVO<List<ServerGroupPropertiesVO>> getGroupPropertyPageByServerId(long groupId, long serverId, int page, int length);\n\n /**\n * 新增 or 更新服务器组属性组数据\n *\n * @param groupPropertiesVO\n * @return\n */\n BusinessWrapper<Boolean> saveServerPropertyGroup(ServerGroupPropertiesVO groupPropertiesVO);\n\n /**\n * 删除指定服务器组&属性组数据\n *\n * @param serverGroupPropertiesDO\n * @return\n */\n BusinessWrapper<Boolean> delServerPropertyGroup(ServerGroupPropertiesDO serverGroupPropertiesDO);\n\n /**\n * 查询指定服务器组id的属性组\n *\n * @param groupId\n * @return\n */\n List<ConfigPropertyGroupDO> getPropertyGroupByGroupId(long groupId);\n\n /**\n * 生成指定服务器组&属性组的配置文件\n *\n * @param serverGroupId\n * @param propertyGroupId\n * @return\n */\n // BusinessWrapper<String> createServerPropertyFile(long serverGroupId, long propertyGroupId);\n\n /**\n * 预览指定服务器组&属性组的配置文件\n *\n * @param serverGroupId\n * @param propertyGroupId\n * @return\n */\n List<PreviewConfig> previewServerPropertyFile(long serverGroupId, long propertyGroupId);\n\n /**\n * 加载指定服务器组&属性组的本地属性配置文件\n *\n * @param serverGroupId\n * @param propertyGroupId\n * @return\n */\n // BusinessWrapper<String> launchServerPropertyFile(long serverGroupId, long propertyGroupId);\n\n /**\n * 获取文件组\n *\n * @param groupName\n * @param page\n * @param length\n * @return\n */\n TableVO<List<ConfigFileGroupDO>> getConfigFileGroupPage(String groupName, int page, int length);\n\n /**\n * 保存 or 更新文件组信息\n *\n * @param configFileGroupDO\n * @return\n */\n BusinessWrapper<Boolean> saveConfigFileGroup(ConfigFileGroupDO configFileGroupDO);\n\n /**\n * 删除指定id的文件组信息\n *\n * @param id\n * @return\n */\n BusinessWrapper<Boolean> delConfigFileGroup(long id);\n\n /**\n * 获取文件\n *\n * @param configFileDO\n * @param page\n * @param length\n * @return\n */\n TableVO<List<ConfigFileVO>> getConfigFilePage(ConfigFileDO configFileDO, int page, int length);\n\n List<ConfigFileDO> getConfigFile();\n\n\n /**\n * 保存 or 更新文件信息\n *\n * @param configFileDO\n * @return\n */\n BusinessWrapper<Boolean> saveConfigFile(ConfigFileDO configFileDO);\n\n /**\n * 删除指定id的文件信息\n *\n * @param id\n * @return\n */\n BusinessWrapper<Boolean> delConfigFile(long id);\n\n /**\n * 创建 or 更新指定id的文件\n *\n * @param id\n * @return\n */\n BusinessWrapper<Boolean> createConfigFile(long id);\n\n\n /**\n * 查询不重复的文件路径\n *\n * @param fileGroupid\n * @return\n */\n List<ConfigFileDO> queryFilePath(long fileGroupid);\n\n\n /**\n * 创建 or 更新指定名称的文件\n *\n * @param fileName\n * @return\n */\n boolean createConfigFileByName(String fileName);\n\n /**\n * 创建并更新指定名称的配置文件(废弃)\n *\n * @param fileName\n * @return\n */\n void createAndInvokeConfigFile(String fileName, int envType);\n\n\n /**\n * 用户相关的配置文件自动同步和执行script\n */\n void invokeUserConfig();\n\n /**\n * 执行命令\n *\n * @param id\n * @return\n */\n BusinessWrapper<String> invokeConfigFileCmd(long id);\n\n\n /**\n * 预览本地内容\n *\n * @param id\n * @return\n */\n BusinessWrapper<String> launchConfigFile(long id);\n\n\n /**\n * 获取服务器组的属性\n *\n * @param serverGroupDO\n * @param key\n * @return\n */\n String acqConfigByServerGroupAndKey(ServerGroupDO serverGroupDO, String key);\n\n\n /**\n * 保存服务器组的属性\n *\n * @param serverGroupDO\n * @param key\n * @param value\n * @return\n */\n boolean saveConfigServerGroupValue(ServerGroupDO serverGroupDO, String key, String value);\n\n /**\n * 获取服务器属性\n *\n * @param serverDO\n * @param key\n * @return\n */\n\n\n String acqConfigByServerAndKey(ServerDO serverDO, String key);\n\n /**\n * 新增服务器的配置文件变更\n */\n void invokeServerConfig(ServerVO serverVO);\n\n /**\n * 新增服务器的配置文件变更\n *\n * @param serverGroupId\n * @param envType\n */\n void invokeServerConfig(long serverGroupId, int envType);\n\n /**\n * 删除服务器的配置文件变更\n */\n void invokeDelServerConfig(long serverGroupId, int envType);\n\n /**\n * 新增配置项的配置文件变更\n */\n void invokeConfig(long configPropertyGroupId, long serverGroupId, boolean isAddConfig);\n\n /**\n * 保存Getway主机配置文件\n *\n * @param file\n * @return\n */\n boolean saveGetwayHostFileConfigFile(String file);\n\n /**\n * 获取ansible所有主机列表文件\n *\n * @return\n */\n String getAnsibleHostsAllPath();\n\n\n BusinessWrapper<Boolean> saveFilePlaybook(ConfigFilePlaybookDO configFilePlaybookDO);\n\n List<ConfigFilePlaybookVO> getFilePlaybookPage();\n\n BusinessWrapper<Boolean> delFilePlaybook(long id);\n\n PlaybookLogVO doPlaybook(long id, int doType);\n\n PlaybookLogVO getPlaybookLog(long logId);\n\n PlaybookLogVO getPlaybookLog(PlaybookLogDO playbookLogDO);\n\n TableVO<List<PlaybookLogVO>> getPlaybookLogPage(String playbookName, String username, int page, int length);\n\n BusinessWrapper<Boolean> delPlaybookLog(long id);\n\n\n}", "@Before\n public void setupService() {\n }", "public void processVCAPServices() {\n\t\tif (!BluemixContextManager.getInstance().isRunningOnBluemix()) {\n\t\t\treturn;\n\t\t}\n\n\t\tJsonJavaObject sysEnv = getVcapServices();\n\t\tif (sysEnv == null) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (sysEnv.containsKey(serviceName)) {\n\t\t\tJsonJavaArray services = sysEnv.getAsArray(serviceName);\n\t\t\tJsonJavaObject service = (JsonJavaObject) services.get(0);\n\t\t\tJsonJavaObject credentials = (JsonJavaObject) service\n\t\t\t\t\t.get(\"credentials\");\n\t\t\tsetBaseUrl((String) credentials.get(\"url\"));\n\t\t\tsetUsername((String) credentials.get(\"username\"));\n\t\t\tsetPassword((String) credentials.get(\"password\"));\n\n\t\t}\n\t}", "@Override\n protected void setup() {\n DFAgentDescription dfd = new DFAgentDescription();\n ServiceDescription sd = new ServiceDescription();\n sd.setType(\"ControladorAgent\");\n sd.setName(getName());\n sd.setOwnership(\"soonho\");\n dfd.setName(getAID());\n dfd.addServices(sd);\n try {\n DFService.register(this, dfd);\n ControladorBehaviour comportamento = new ControladorBehaviour(this);\n addBehaviour(comportamento);\n } catch (FIPAException e) {\n myLogger.log(Logger.SEVERE, \"Agent \" + getLocalName() + \" - Cannot register with DF\", e);\n doDelete();\n }\n }", "@PostConstruct\n\tpublic void inicializar() {\n\t}", "public interface AutioSettingService {\n /***\n * 语音设置\n * @param pd\n * @return\n * @throws Exception\n */\n PageData saveInfo(PageData pd) throws Exception;\n\n /***\n * 语音设置查询\n * @param pd\n * @return\n * @throws Exception\n */\n PageData queryInfo(PageData pd) throws Exception;\n\n}", "public void configure() {\n\t\tfrom(\"seda:vxf.onboard?multipleConsumers=true\")\n\t\t.doTry()\n\t\t.bean(new MANOController(),\"onBoardVxFToMANOProvider\") //returns exception or nothing\n\t\t.log(\"VNFD Onboarded Successfully\")\n\t\t.doCatch(Exception.class)\n\t\t.log(\"VNFD Onboarding failed!\");\n\n\t\tfrom(\"seda:nsd.onboard?multipleConsumers=true\")\n\t\t.doTry()\n\t\t.bean(new MANOController(),\"onBoardNSDToMANOProvider\") //returns exception or nothing\n\t\t.log(\"NSD Onboarded Successfully\")\n\t\t.doCatch(Exception.class)\n\t\t.log(\"NSD Onboarding failed!\");\t\t\n\n\t\t\n\t\tfrom(\"seda:nsd.deploy?multipleConsumers=true\")\n\t\t.doTry()\n\t\t.bean(new MANOController(),\"deployNSDToMANOProvider\") //returns exception or nothing\n\t\t.log(\"NS deployed Successfully\").stop()\n\t\t.doCatch(Exception.class)\n\t\t.log(\"NS deployment failed!\").stop();\t\t\n\n\t\tfrom(\"seda:nsd.deployment.complete?multipleConsumers=true\")\n\t\t.doTry()\n\t\t.bean(new MANOController(),\"terminateNSFromMANOProvider\") //returns exception or nothing\n\t\t.log(\"NS completed Successfully\")\n\t\t.doCatch(Exception.class)\n\t\t.log(\"NS completion failed!\").stop();\n\n\t\tfrom(\"seda:nsd.deployment.delete?multipleConsumers=true\")\n\t\t.doTry()\n\t\t.bean(new MANOController(),\"deleteNSFromMANOProvider\") //returns exception or nothing\n\t\t.log(\"NS deleted Successfully\")\n\t\t.doCatch(Exception.class)\n\t\t.log(\"NS deletion failed!\").stop();\n\t\t\n\t\t//from(\"timer://checkAndDeployTimer?delay=2m&period=120000\").bean(new MANOController(),\"checkAndDeployExperimentToMANOProvider\").stop();\n\t\t//from(\"timer://checkAndTerminateTimer?delay=2m&period=120000\").bean(new MANOController(),\"checkAndTerminateExperimentToMANOProvider\").stop();\n\t\t\n\t\tfrom(\"timer://checkAndUpdateRunningDeploymentDescriptors?delay=1m&period=120000\").bean(MANOController.class,\"checkAndUpdateRunningDeploymentDescriptors\").stop();\n\t\t\n\t}", "public PizzaService() {\n this.pizzas = new ArrayList<>();\n counter = 0;\n pizzaIOHandler = new PizzaIOHandler();\n }", "private void config() {\n\t}", "private void pararServicioPomodoro(){\n Intent pararServicio = new Intent(this,ServicioPomodoro.class);\n pararServicio.setAction(\"intentParar\");\n startService(pararServicio);\n tiempo.stop();\n tiempo.setBase(SystemClock.elapsedRealtime());\n }", "public abstract void setServiceType(String serviceType);", "public interface IConfiguration extends ISessionAwareObject {\n\n\tString ENV_SOPECO_HOME = \"SOPECO_HOME\";\n\n\tString CONF_LOGGER_CONFIG_FILE_NAME = \"sopeco.config.loggerConfigFileName\";\n\n\tString CONF_SCENARIO_DESCRIPTION_FILE_NAME = \"sopeco.config.measurementSpecFileName\";\n\n\tString CONF_SCENARIO_DESCRIPTION = \"sopeco.config.measurementSpecification\";\n\n\tString CONF_MEASUREMENT_CONTROLLER_URI = \"sopeco.config.measurementControllerURI\";\n\n\tString CONF_MEASUREMENT_CONTROLLER_CLASS_NAME = \"sopeco.config.measurementControllerClassName\";\n\n\tString CONF_APP_NAME = \"sopeco.config.applicationName\";\n\n\tString CONF_MAIN_CLASS = \"sopeco.config.mainClass\";\n\n\tString CONF_MEC_ACQUISITION_TIMEOUT = \"sopeco.config.MECAcquisitionTimeout\";\n\n\n\tString CONF_MEC_SOCKET_RECONNECT_DELAY = \"sopeco.config.mec.reconnectDelay\";\n\n\tString CONF_HTTP_PROXY_HOST = \"sopeco.config.httpProxyHost\";\n\t\n\tString CONF_HTTP_PROXY_PORT = \"sopeco.config.httpProxyPort\";\n\n\t\n\tString CONF_DEFINITION_CHANGE_HANDLING_MODE = \"sopeco.config.definitionChangeHandlingMode\";\n\tString DCHM_ARCHIVE = \"archive\";\n\tString DCHM_DISCARD = \"discard\";\n\n\tString CONF_SCENARIO_DEFINITION_PACKAGE = \"sopeco.config.xml.scenarioDefinitionPackage\";\n\t/** Holds the path to the root folder of SoPeCo. */\n\tString CONF_APP_ROOT_FOLDER = \"sopeco.config.rootFolder\";\n\tString CONF_EXPERIMENT_EXECUTION_SELECTION = \"sopeco.engine.experimentExecutionSelection\";\n\t/**\n\t * Holds the path to the plugins folder, relative to the root folder of\n\t * SoPeCo.\n\t */\n\tString CONF_PLUGINS_DIRECTORIES = \"sopeco.config.pluginsDirs\";\n\n\tString CLA_EXTENSION_ID = \"org.sopeco.config.commandlinearguments\";\n\n\t/** Folder for configuration files relative to the application root folder */\n\tString DEFAULT_CONFIG_FOLDER_NAME = \"config\";\n\n\tString DEFAULT_CONFIG_FILE_NAME = \"sopeco-defaults.conf\";\n\n\tString DIR_SEPARATOR = \":\";\n\t\n\tString EXPERIMENT_RUN_ABORT = \"org.sopeco.experiment.run.abort\";\n\n\t/**\n\t * Export the configuration as a key-value map. Both, the default ones and the ones in the\n\t * system environment are included.\n\t * \n\t * @return a key-value representation of the configuration\n\t * \n\t * @deprecated Use {@code exportConfiguration()} and {@code exportDefaultConfiguration}.\n\t */\n\t@Deprecated\n\tMap<String, Object> getProperties();\n\t\n\t/**\n\t * Exports the configuration as a key-value map. The default configuration and the ones\n\t * defined in the system environment are not included. \n\t * \n\t * @return a key-value representation of the configuration\n\t */\n\tMap<String, Object> exportConfiguration();\n\t\n\t/**\n\t * Exports the default configuration as a key-value map. The actual configuration and the ones\n\t * defined in the system environment are not included. \n\t * \n\t * @return a key-value representation of the configuration\n\t */\n\tMap<String, Object> exportDefaultConfiguration();\n\t\n\t/**\n\t * Imports the configuration as a key-value map. \n\t * \n\t * @param config a key-value map representation of the configuration\n\t */\n\tvoid importConfiguration(Map<String, Object> config);\n\t\n\t/**\n\t * Imports the default configuration as a key-value map. \n\t * \n\t * @param config a key-value map representation of the configuration\n\t */\n\tvoid importDefaultConfiguration(Map<String, Object> config);\n\t\n\t/**\n\t * Overwrites the configuration with the given configuration. \n\t * \n\t * @param config a key-value map representation of the configuration\n\t */\n\tvoid overwriteConfiguration(Map<String, Object> config);\n\t\n\t/**\n\t * Overwrites the default configuration with the given configuration. \n\t * \n\t * @param config a key-value map representation of the default configuration\n\t */\n\tvoid overwriteDefaultConfiguration(Map<String, Object> config);\n\t\n\t/**\n\t * Returns the configured value of the given property in SoPeCo.\n\t * \n\t * It first looks up the current SoPeCo configuration, if there is no value\n\t * defined there, looks up the system properties, if no value is defined\n\t * there, then loads it from the default values; in case of no default\n\t * value, returns null.\n\t * \n\t * @param key\n\t * property key\n\t * @return Returns the configured value of the given property in SoPeCo.\n\t */\n\tObject getProperty(String key);\n\n\t/**\n\t * Returns the configured value of the given property as a String.\n\t * \n\t * This method calls the {@link Object#toString()} of the property value and\n\t * is for convenience only. If the given property is not set, it returns\n\t * <code>null</code>.\n\t * \n\t * @param key\n\t * property key\n\t * \n\t * @see #getProperty(String)\n\t * @return Returns the configured value of the given property as a String.\n\t */\n\tString getPropertyAsStr(String key);\n\n\t/**\n\t * Returns the configured value of the given property as a Boolean value.\n\t * \n\t * This method uses the {@link #getPropertyAsStr(String)} and interprets\n\t * values 'yes' and 'true' (case insensitive) as a Boolean <code>true</code>\n\t * value and all other values as <code>false</code>. If the value of the\n\t * given property is <code>null</code> it returns the passed default value.\n\t * \n\t * @param key\n\t * property key\n\t * @param defaultValue\n\t * the default value returned in case of a null property value\n\t * \n\t * @return the value of the given property as a boolean\n\t * \n\t * @see #getProperty(String)\n\t */\n\tboolean getPropertyAsBoolean(String key, boolean defaultValue);\n\n\t/**\n\t * Returns the configured value of the given property as a Long value.\n\t * \n\t * This method uses the {@link Long.#parseLong(String)} to interpret the\n\t * values. If the value of the given property is <code>null</code> it\n\t * returns the passed default value.\n\t * \n\t * @param key\n\t * property key\n\t * @param defaultValue\n\t * the default value returned in case of a null property value\n\t * \n\t * @return the value of the given property as a long\n\t * \n\t * @see #getProperty(String)\n\t */\n\tlong getPropertyAsLong(String key, long defaultValue);\n\n\t/**\n\t * Returns the configured value of the given property as a Double value.\n\t * \n\t * This method uses the {@link Double.#parseLong(String)} to interpret the\n\t * values. If the value of the given property is <code>null</code> it\n\t * returns the passed default value.\n\t * \n\t * @param key\n\t * property key\n\t * @param defaultValue\n\t * the default value returned in case of a null property value\n\t * \n\t * @return the value of the given property as a double\n\t * \n\t * @see #getProperty(String)\n\t */\n\tdouble getPropertyAsDouble(String key, double defaultValue);\n\n\t/**\n\t * Returns the configured value of the given property as an Integer value.\n\t * \n\t * This method uses the {@link Integer.#parseInt(String)} to interpret the\n\t * values. If the value of the given property is <code>null</code> it\n\t * returns the passed default value.\n\t * \n\t * @param key\n\t * property key\n\t * @param defaultValue\n\t * the default value returned in case of a null property value\n\t * \n\t * @return the value of the given property as an int\n\t * \n\t * @see #getProperty(String)\n\t */\n\tint getPropertyAsInteger(String key, int defaultValue);\n\n\t/**\n\t * Sets the value of a property for the current run.\n\t * \n\t * @param key\n\t * property key\n\t * @param value\n\t * property value\n\t */\n\tvoid setProperty(String key, Object value);\n\n\t/**\n\t * Clears the value of the given property in all layers of configuration,\n\t * including the system property environment.\n\t * \n\t * @param key the property\n\t */\n\tvoid clearProperty(String key);\n\n\t/**\n\t * Returns the default value (ignoring the current runtime configuration)\n\t * for a given property.\n\t * \n\t * @param key\n\t * porperty key\n\t * \n\t * @return Returns the default value for a given property.\n\t */\n\tObject getDefaultValue(String key);\n\n\t/**\n\t * Processes the given command line arguments, the effects of which will\n\t * reflect in the global property values.\n\t * \n\t * @param args\n\t * command line arguments\n\t * @throws ConfigurationException\n\t * if there is any problem with command line arguments\n\t */\n\tvoid processCommandLineArguments(String[] args) throws ConfigurationException;\n\n\t/**\n\t * Loads default configurations from a file name. If the file name is not an\n\t * absolute path, the file is searched in the following places:\n\t * <ol>\n\t * <li>the {@value #DEFAULT_CONFIG_FOLDER_NAME} directory,</li>\n\t * <li>current folder,</li>\n\t * <li>the {@value #DEFAULT_CONFIG_FOLDER_NAME} directory in classpath,</li>\n\t * <li>and finaly the classpath.</li>\n\t * </ol>\n\t * where classpath is determined by the system class loader. See\n\t * {@link #loadDefaultConfiguration(ClassLoader, String)} for loading\n\t * default configuration providing a class loader.\n\t * \n\t * The configuration is loaded in an incremental fashion; i.e., the loaded\n\t * configuration will be added to (and overriding) the existing default\n\t * configuration.\n\t * <p>\n\t * See {@link #getAppRootDirectory()} and {@link #getDefaultValue(String)}.\n\t * \n\t * @param fileName\n\t * the name of a properties file\n\t * @throws ConfigurationException\n\t * if initializing the configuration fails\n\t * \n\t */\n\tvoid loadDefaultConfiguration(String fileName) throws ConfigurationException;\n\n\t/**\n\t * Loads default configurations from a file name. If the file name is not an\n\t * absolute path, the file is searched in the following places:\n\t * <ol>\n\t * <li>the {@value #DEFAULT_CONFIG_FOLDER_NAME} directory,</li>\n\t * <li>current folder,</li>\n\t * <li>the {@value #DEFAULT_CONFIG_FOLDER_NAME} directory in classpath,</li>\n\t * <li>and finaly the classpath.</li>\n\t * </ol>\n\t * where classpath is determined by the given class loader.\n\t * \n\t * The configuration is loaded in an incremental fashion; i.e., the loaded\n\t * configuration will be added to (and overriding) the existing default\n\t * configuration.\n\t * <p>\n\t * See {@link #getAppRootDirectory()} and {@link #getDefaultValue(String)}.\n\t * \n\t * @param classLoader\n\t * an instance of a class loader\n\t * @param fileName\n\t * the name of a properties file\n\t * @throws ConfigurationException\n\t * if initializing the configuration fails\n\t */\n\tvoid loadDefaultConfiguration(ClassLoader classLoader, String fileName) throws ConfigurationException;\n\n\t/**\n\t * Loads user-level configurations from a file name. If the file name is not\n\t * an absolute path, the file is searched in the following places:\n\t * <ol>\n\t * <li>the {@value #DEFAULT_CONFIG_FOLDER_NAME} directory,</li>\n\t * <li>current folder,</li>\n\t * <li>the {@value #DEFAULT_CONFIG_FOLDER_NAME} directory in classpath,</li>\n\t * <li>and finaly the classpath.</li>\n\t * </ol>\n\t * where classpath is determined by the system class loader. See\n\t * {@link #loadConfiguration(ClassLoader, String)} for loading default\n\t * configuration providing a class loader.\n\t * \n\t * The configuration is loaded in an incremental fashion; i.e., the loaded\n\t * configuration will be added to (and overriding) the existing default\n\t * configuration.\n\t * <p>\n\t * See {@link #getAppRootDirectory()} and {@link #getDefaultValue(String)}.\n\t * \n\t * @param fileName\n\t * the name of a properties file\n\t * @throws ConfigurationException\n\t * if initializing the configuration fails\n\t */\n\tvoid loadConfiguration(String fileName) throws ConfigurationException;\n\n\t/**\n\t * Loads user-level configurations from a file name. If the file name is not\n\t * an absolute path, the file is searched in the following places:\n\t * <ol>\n\t * <li>the {@value #DEFAULT_CONFIG_FOLDER_NAME} directory,</li>\n\t * <li>current folder,</li>\n\t * <li>the {@value #DEFAULT_CONFIG_FOLDER_NAME} directory in classpath,</li>\n\t * <li>and finally the classpath.</li>\n\t * </ol>\n\t * where classpath is determined by the given class loader.\n\t * \n\t * The configuration is loaded in an incremental fashion; i.e., the loaded\n\t * configuration will be added to (and overriding) the existing default\n\t * configuration.\n\t * <p>\n\t * See {@link #getAppRootDirectory()} and {@link #getDefaultValue(String)}.\n\t * \n\t * @param classLoader\n\t * an instance of a class loader\n\t * @param fileName\n\t * the name of a properties file\n\t * @throws ConfigurationException\n\t * if initializing the configuration fails\n\t */\n\tvoid loadConfiguration(ClassLoader classLoader, String fileName) throws ConfigurationException;\n\n\t/**\n\t * Performs any post processing of configuration settings that may be\n\t * required.\n\t * \n\t * This method can be called after manually making changes to the\n\t * configuration values. It should be called automatically after a call to\n\t * {@link IConfiguration#loadConfiguration(String)}.\n\t */\n\tvoid applyConfiguration();\n\n\t/**\n\t * Sets the value of scenario description file name.\n\t * \n\t * @param fileName\n\t * file name\n\t * @see #CONF_SCENARIO_DESCRIPTION_FILE_NAME\n\t */\n\tvoid setScenarioDescriptionFileName(String fileName);\n\n\t/**\n\t * Sets the sceanrio description as the given object. This property in\n\t * effect overrides the value of scenario description file name (\n\t * {@link IConfiguration#CONF_SCENARIO_DESCRIPTION_FILE_NAME}).\n\t * \n\t * @param sceanrioDescription\n\t * an instance of a scenario description\n\t * @see #CONF_SCENARIO_DESCRIPTION\n\t */\n\tvoid setScenarioDescription(Object sceanrioDescription);\n\n\t/**\n\t * Sets the measurement controller URI.\n\t * \n\t * @param uriStr\n\t * a URI as an String\n\t * @throws ConfigurationException\n\t * if initializing the configuration fails\n\t * @see #CONF_MEASUREMENT_CONTROLLER_URI\n\t */\n\tvoid setMeasurementControllerURI(String uriStr) throws ConfigurationException;\n\n\t/**\n\t * Sets the measurement controller class name. This also sets the\n\t * measurement controller URI to be '<code>class://[CLASS_NAME]</code>'.\n\t * \n\t * @param className\n\t * the full name of the class\n\t * @see #CONF_MEASUREMENT_CONTROLLER_CLASS_NAME\n\t */\n\tvoid setMeasurementControllerClassName(String className);\n\n\t/**\n\t * Sets the application name for this executable instance.\n\t * \n\t * @param appName\n\t * an application name\n\t */\n\tvoid setApplicationName(String appName);\n\n\t/**\n\t * Sets the main class that runs this thread. This will also be used in\n\t * finding the root folder\n\t * \n\t * @param mainClass\n\t * class to be set as main class\n\t */\n\tvoid setMainClass(Class<?> mainClass);\n\n\t/**\n\t * Sets the logger configuration file name and triggers logger\n\t * configuration.\n\t * \n\t * @param fileName\n\t * a file name\n\t */\n\tvoid setLoggerConfigFileName(String fileName);\n\n\t/**\n\t * @return Returns the application root directory.\n\t */\n\tString getAppRootDirectory();\n\n\t/**\n\t * Sets the application root directory to the given folder.\n\t * \n\t * @param rootDir\n\t * path to a folder\n\t */\n\tvoid setAppRootDirectory(String rootDir);\n\n\t/**\n\t * @return Returns the application's configuration directory.\n\t */\n\tString getAppConfDirectory();\n\n\t/**\n\t * @return Returns the value of scenario description file name.\n\t * \n\t * @see #CONF_SCENARIO_DESCRIPTION_FILE_NAME\n\t */\n\tString getScenarioDescriptionFileName();\n\n\t/**\n\t * @return returns the sceanrio description as the given object.\n\t * \n\t * @see #CONF_SCENARIO_DESCRIPTION\n\t */\n\tObject getScenarioDescription();\n\n\t/**\n\t * @return Returns the measurement controller URI.\n\t * \n\t * @see #CONF_MEASUREMENT_CONTROLLER_URI\n\t */\n\tURI getMeasurementControllerURI();\n\n\t/**\n\t * @return Returns the measurement controller URI as a String.\n\t * \n\t * @see #CONF_MEASUREMENT_CONTROLLER_URI\n\t */\n\tString getMeasurementControllerURIAsStr();\n\n\t/**\n\t * @return Returns the measurement controller class name.\n\t * \n\t * @see #CONF_MEASUREMENT_CONTROLLER_CLASS_NAME\n\t */\n\tString getMeasurementControllerClassName();\n\n\t/**\n\t * @return Returns the application name for this executable instance.\n\t */\n\tString getApplicationName();\n\n\t/**\n\t * @return Returns the main class that runs this thread. This value must\n\t * have been set by a call to\n\t * {@link IConfiguration#setMainClass(Class)}.\n\t */\n\tClass<?> getMainClass();\n\n\t/**\n\t * Writes the current configuration values into a file.\n\t * \n\t * @param fileName\n\t * the name of the file\n\t * @throws IOException\n\t * if exporting the configuration fails\n\t */\n\tvoid writeConfiguration(String fileName) throws IOException;\n\n\t/**\n\t * Overrides the values of this configuration with those of the given\n\t * configuration.\n\t * \n\t * @param configuration\n\t * with the new values\n\t */\n\t void overwrite(IConfiguration configuration);\n\n\t /**\n\t * Adds a new command-line extension to the configuration component. \n\t * \n\t * The same extension will not be added twice. \n\t * \n\t * @param extension a command-line extension\n\t */\n\t void addCommandLineExtension(ICommandLineArgumentsExtension extension);\n\t \n\t /**\n\t * Removes a new command-line extension from the configuration component. \n\t * \n\t * @param extension a command-line extension\n\t */\n\t void removeCommandLineExtension(ICommandLineArgumentsExtension extension);\n}", "public Service(){\n\t\t\n\t}", "@Override\n\t\tpublic void init(final DaemonContext daemonContext) throws Exception {\n\t\t\tloadConfigFile(null);\n\t\t\t// create service options from configuration\n\t\t\tfinal VertxOptions vertxOptions = createVertxOptions(clustered);\t\t\n\t\t\tfinal DeploymentOptions deploymentOptions = createDeploymentOptions();\n\t\t\t// configure and start the service manager\n\t\t\tserviceManager = new ServiceManager(newHashSet(new VertxService(newArrayList(), vertxOptions, deploymentOptions, new SingleNodeLoadBalancer())));\t\t\n\t\t\tsuper.init(daemonContext);\n\t\t}", "public void setIdPtoServicio(String idPtoServicio);", "private FournisseurArboTraficService() {\r\n\t\tsuper();\r\n\t}", "@Override\r\n\tprotected void init() {\r\n\t\tList<Configuracao> configs = servico.listarTodos();\r\n\t\tif (!configs.isEmpty()) {\r\n\t\t\tentidade = configs.get(0);\t// deve haver apenas um registro\r\n\t\t} else {\r\n\t\t\tcreateConfiguracao();\r\n\t\t}\r\n\t\t\r\n carregarTemas();\r\n\t}", "static private synchronized void initServices() {\n if (_eiService == null) {\n try {\n _eiService = (ExtensionInstallerService)ServiceManager.lookup(\"javax.jnlp.ExtensionInstallerService\");\n _basicService = (BasicService)ServiceManager.lookup(\"javax.jnlp.BasicService\");\n _downloadService = (DownloadService)ServiceManager.lookup(\"javax.jnlp.DownloadService\");\n } catch(UnavailableServiceException use) {\n Config.trace(\"Unable to locate service: \" + use);\n }\n }\n\n // We cannot really use this, since it breaks lazy loading. When resources for all locales\n // are in place it should be ok. Or we need another solution.\n //_resources = ResourceBundle.getBundle(\"jnlp/JreInstaller/resources/strings\");\n try {\n URL bundle = (new Config()).getClass().getClassLoader().getResource(\"jnlp/sample/JreInstaller/resources/strings.properties\");\n _resources = new PropertyResourceBundle(bundle.openStream());\n } catch(Throwable t) {\n Config.trace(\"Unable to load resources: \" + t);\n }\n }" ]
[ "0.7456803", "0.6501117", "0.6466256", "0.6443109", "0.63076454", "0.6250123", "0.6245984", "0.6217951", "0.6168657", "0.61645544", "0.61319923", "0.612641", "0.60805416", "0.60514075", "0.6024679", "0.6019522", "0.59967935", "0.59851223", "0.5957202", "0.59420234", "0.59001446", "0.5893996", "0.58846235", "0.5867536", "0.58516926", "0.58285683", "0.5819441", "0.5819156", "0.58146787", "0.58040726", "0.5796176", "0.57932496", "0.5767114", "0.5758676", "0.57520103", "0.57245326", "0.5720538", "0.5708753", "0.5701448", "0.5689143", "0.56879866", "0.56548357", "0.56499857", "0.5642869", "0.56397593", "0.5639265", "0.5636304", "0.5630277", "0.56256044", "0.56252444", "0.5619521", "0.56166744", "0.56166", "0.5609006", "0.56029254", "0.56018513", "0.5589297", "0.5571668", "0.5571335", "0.5565956", "0.5564669", "0.55609727", "0.5558772", "0.5558772", "0.5552607", "0.55521053", "0.5547684", "0.55458856", "0.5534536", "0.55199903", "0.55162704", "0.55147076", "0.55133975", "0.551251", "0.55120546", "0.5501495", "0.5492497", "0.5476894", "0.54709476", "0.5465897", "0.546405", "0.54640394", "0.5463714", "0.54550827", "0.545336", "0.5442525", "0.54403955", "0.5438966", "0.5438872", "0.5436661", "0.54354036", "0.5433774", "0.543345", "0.54290855", "0.5420434", "0.5418778", "0.54113054", "0.54106003", "0.54092157", "0.5406906", "0.54050446" ]
0.0
-1
List instanceIds = data.stream().map(e > e.getInstanceId()).collect(Collectors.toList()); batchDeleteByInstanceIdw(instanceIds);
@Override public void batchAdd(List<CmdbIpConfPoolEntity> data) { confPoolMapper.batchAdd(data); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int batchDelete(List<Integer> ids);", "public void deleteBatch(List<Integer> list) {\n\t\tEmployeeExample employeeExample=new EmployeeExample();\n\t\tCriteria createCriteria = employeeExample.createCriteria();\n\t\tcreateCriteria.andEmpIdIn(list);\n\t\temployeeMapper.deleteByExample(employeeExample);\n\t}", "@DELETE\n @ApiOperation(\"Forcefully stop processes\")\n @javax.ws.rs.Path(\"/bulk\")\n @WithTimer\n public void batchKill(@ApiParam List<UUID> instanceIdList) {\n instanceIdList.forEach(this::kill);\n }", "@Override\n\tpublic void deleteInBatch(Iterable<Audit> entities) {\n\t\t\n\t}", "int deleteByPrimaryKeyBulk(@Param(\"ids\") List<Long> ids);", "public java.util.List<Long> deleteByHoppyIds(java.util.List<Long> hoppyIds) throws DataAccessException;", "@Override\n public AutoScalingData terminateWithIds(List<String> ids)\n {\n log.info(\"Asked to terminate IDs: [%s]\", String.join(\",\", ids));\n\n if (ids.isEmpty()) {\n return new AutoScalingData(new ArrayList<>());\n }\n\n try {\n final String project = envConfig.getProjectId();\n final String zone = envConfig.getZoneName();\n final String managedInstanceGroupName = envConfig.getManagedInstanceGroupName();\n\n List<String> before = getRunningInstances();\n\n InstanceGroupManagersDeleteInstancesRequest requestBody =\n new InstanceGroupManagersDeleteInstancesRequest();\n requestBody.setInstances(namesToInstances(ids));\n\n Compute computeService = createComputeService();\n Compute.InstanceGroupManagers.DeleteInstances request =\n computeService\n .instanceGroupManagers()\n .deleteInstances(project, zone, managedInstanceGroupName, requestBody);\n\n Operation response = request.execute();\n Operation.Error err = waitForOperationEnd(computeService, response);\n if (err == null || err.isEmpty()) {\n List<String> after = null;\n // as the waitForOperationEnd only waits for the operation to be scheduled\n // this loop waits until the requested machines actually go down (or up to a\n // certain amount of retries in checking)\n for (int i = 0; i < RUNNING_INSTANCES_MAX_RETRIES; i++) {\n after = getRunningInstances();\n if (after.size() == (before.size() - ids.size())) {\n break;\n }\n log.info(\"Machines not down yet, waiting\");\n Thread.sleep(POLL_INTERVAL_MS);\n }\n before.removeAll(after); // keep only the ones no more present\n return new AutoScalingData(before);\n } else {\n log.error(\"Unable to terminate instances: %s\", err.toPrettyString());\n }\n }\n catch (Exception e) {\n log.error(e, \"Unable to terminate any instances.\");\n }\n\n return new AutoScalingData(new ArrayList<>());\n }", "String batchRemoveAggr(List<String> datumList);", "@Override\n protected Response doBatchDelete(Long[] ids) {\n return null;\n }", "@Override\n protected Response doBatchDelete(Long[] ids) {\n return null;\n }", "@Override\n protected Response doBatchDelete(Long[] ids) {\n return null;\n }", "@Transactional\n\tpublic void deleteBatch(List<Integer> ids) {\n\t\temployeeMapper.deleteBatch(ids);\n\t}", "public abstract void delete(Iterable<Long> ids);", "@Override\r\n\tpublic void batchDelete(String[] ids) {\n\t\tfor(int i=0;i<ids.length;i++)\r\n\t\t\tdelete(ids[i]);\t\r\n\t}", "@Override\r\n\tpublic void deleteAllInBatch() {\n\t\t\r\n\t}", "@Override\n\tpublic void deleteAllInBatch() {\n\t\t\n\t}", "@Override\n\tpublic void deleteAllInBatch() {\n\t\t\n\t}", "@Override\r\n\tpublic void deleteBatchNos(List<String> contractnos) {\n\t\tsuper.baseMapper.deleteBatchNos(contractnos);\r\n\t}", "@Override\n\tprotected Response doBatchDelete(Long[] ids) {\n\t\treturn null;\n\t}", "@Override\r\n\tpublic CustomResult deleteBatch(String[] ids) throws Exception{\n\t\tint i = materialConsumeMapper.deleteBatch(ids);\r\n\t\tif(i>0){\r\n\t\t\treturn CustomResult.ok();\r\n\t\t}else{\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "@Override\n\tpublic void delete(List<Long> ids) {\n\t}", "@Override\n\tpublic void deleteInBatch(Iterable<Translator> entities) {\n\t\t\n\t}", "int deleteByExample(DataSyncExample example);", "int deleteByExample(CollectExample example);", "@Override\n\tpublic int batchRemove(Long[] id) {\n\t\treturn sysEquipmentGroupMapper.batchRemove(id);\n\t}", "public int batchDelete(String[] list) {\n\treturn projectmapper.batchDelete(list);\n}", "@Override\n\tpublic ResultWrapper<Boolean> deleteMultiple(Map<String, List<Integer>> map) {\n\t\tResultWrapper<Boolean> rs = new ResultWrapper<Boolean>();\n\t\tList<Integer> listofIds = map.get(\"deleteMultiple\");\n\t\tIterator<Integer> itr = listofIds.iterator();\n\t\ttry {\n\t\t\twhile (itr.hasNext()) {\n\t\t\t\tInteger todoId = itr.next();\n\t\t\t\ttodosRepo.deleteById(todoId);\n\t\t\t}\n\t\t\trs.succeedDeleted(true);\n\t\t\treturn rs;\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\trs.fail(false, \" Exception Occurs \"+e);\n\t\t\treturn rs;\n\t\t}\n\n\t}", "int deleteByExample(BpmInstanciaHistoricaExample example);", "int deleteByPrimaryKey(String batchNo);", "@Override\n\tpublic int batchDeleteInfo(List<Integer> list) {\n\t\treturn tBankInfoMapper.batchDeleteInfo(list);\n\t}", "public static boolean deleteReqList(String keyList[]) {\r\n\tif (keyList.length >0){\r\n\t\tint size = keyList.length;\r\n\t\tfor(int i = 0; i<size; i++){\r\n\t\t\tLong id = Long.valueOf(keyList[i]);\r\n\t\t\tif (updateStatusGroupReq(id, Constant.GROUP_FREE_REQ)){\r\n\t\t\t\treqDao.deleteReq(id);\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\treturn true;\r\n}", "int deleteByExample(EventsWaitsSummaryByInstanceExample example);", "private void deleteFloatingReplies()\n\t{\n\t\tList<DBObject> groupList = groups.find().toArray();\n\t\t\n\t\tfor(DBObject group : groupList)\n\t\t{\n\t\t\tDBCollection c = getGroupColl((String) group.get(\"customID\"));\n\t\t\tList<DBObject> list = c.find(QueryBuilder.start(\"target.messageID\").notEquals(\"\").get()).toArray();\n\t\t\t\n\t\t\tfor(DBObject reply : list)\n\t\t\t{\n\t\t\t\tif(c.findOne(MongoUtils.queryID(((DBObject)reply.get(\"target\")).get(\"messageID\").toString())) == null) {\n\t\t\t\t\tc.remove(reply);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "@Override\n\tpublic String deleteBatch(List<? extends Number> ids, Model m) throws Exception {\n\t\treturn null;\n\t}", "@Override\n\tpublic String deleteBatch(List<? extends Number> ids, Model m) throws Exception {\n\t\treturn null;\n\t}", "public int deleteBatchByPK(Long[] pkArray){\n \tif(pkArray==null||pkArray.length<=0)\n \t\treturn 0;\n \tint rows = 0;\n \trows = super.deleteBatch(\"Resourcesvalue.deleteByPK\", pkArray);\n \treturn rows;\n }", "int deleteByExample(TbSnapshotExample example);", "@Synchronized\r\n public void cleanTransferModelRecordsPeriodically() {\r\n try {\r\n ArrayList<Long> arrayList = getTransferModelsListIds();\r\n ArrayList<String> arrayListToDelete = new ArrayList<>();\r\n if (!arrayList.isEmpty() && arrayList.size() > 20) {\r\n for (int i = 19; i < arrayList.size(); i++) {\r\n arrayListToDelete.add(arrayList.get(i) + \"\");\r\n }\r\n String[] itemIds = arrayListToDelete.toArray(new String[arrayListToDelete.size()]);\r\n if (itemIds != null && itemIds.length > 0) {\r\n databaseHandler.getWritableDatabase();\r\n databaseHandler.deleteData(TableTransferModel.TABLE_NAME, TableTransferModel.id + \"=?\", itemIds);\r\n }\r\n }\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n FirebaseCrashlytics.getInstance().recordException(e);\r\n }\r\n }", "public boolean batchDelete(List<Serializable> footPointIds) {\n\t\tfor (Serializable id : footPointIds) {\n\t\t\tdelete((Long) id);\n\t\t}\n\t\treturn true;\n\t}", "public void delete(Long[] ids) throws ProcessingException;", "@Override\n\tpublic int deleteBatch(String[] idArr) {\n\t\treturn 0;\n\t}", "int deleteByExample(TagDataExample example);", "int deleteByExample(BlacklistExample example);", "@Override\r\n\tpublic void deleteInBatch(Iterable<Employee> arg0) {\n\t\t\r\n\t}", "public boolean bulkDelete(EntityManager em, Class clazz,\n\t\t\tCollection<Long> ids);", "@Override\n\tpublic boolean doRemoveBatch(Set<Integer> ids) throws Exception\n\t{\n\t\treturn false;\n\t}", "public int deleteBatchByPK(Long[] pkArray){\n \tif(pkArray==null||pkArray.length<=0)\n \t\treturn 0;\n \tint rows = 0;\n \trows = super.deleteBatch(\"Rolesvalue.deleteByPK\", pkArray);\n \treturn rows;\n }", "int deleteByExample(HotspotLogExample example);", "int deleteByExample(SeGroupExample example);", "@Override\n\tpublic String deleteBatch(List<Map<String, Object>> entityMap)\n\t\t\tthrows DataAccessException {\n\t\treturn null;\n\t}", "void deleteMulti(String[] pids);", "public Collection<Long> removeBatch(String key) {\n if (index.containsKey(key))\n return index.remove(key);\n else return Collections.emptySet();\n }", "@Test\r\n\tpublic void retrieveAll() {\r\n\t\tList<Opinion> opinions = IntStream.range(0, BATCH_SIZE).mapToObj(i -> {\r\n\t\t\tOpinion currentOpinion = new Opinion(\"Student B\", \"B is for batch\");\r\n\t\t\tservice.save(currentOpinion);\r\n\t\t\treturn currentOpinion;\r\n\t\t}).collect(Collectors.toList());\r\n\r\n\t\tassertEquals(service.count(), BATCH_SIZE);\r\n\r\n\t\topinions.forEach(op -> service.delete(op));\r\n\t}", "public List<InstanceStateChange> destroyInstances(List<String> instances_ids) {\n if(instances_ids.size() > 0) {\n TerminateInstancesRequest terminateInstancesRequest = new TerminateInstancesRequest();\n terminateInstancesRequest.setInstanceIds(instances_ids);\n\n TerminateInstancesResult result = ec2.terminateInstances(terminateInstancesRequest);\n System.out.println(\"delete instances: \" + result);\n List<InstanceStateChange> terminatedInstances = result.getTerminatingInstances();\n System.out.println(\"terminatedInstanceslist: \" + terminatedInstances);\n return terminatedInstances;\n }\n return null;\n\n\n }", "int deleteByExample(ConfigDataExample example);", "int deleteByExample(TSourceChannelsExample example);", "public NodeSet deleteDataInstances() throws JNCException {\n this.dataInstances = null;\n String path = \"data-instances\";\n return delete(path);\n }", "@Override\r\n\tpublic void delete(List<MonitoredSupermarket> msList, int userId) throws SQLException {\r\n\t\tcon = ConnectionPoolManager.getPoolManagerInstance().getConnectionFromPool();\r\n\t\tPreparedStatement ps = null;\r\n\r\n\t\tString query = \"delete from monitored_supermarket where id_user = ? and id_supermarket = ?\";\r\n\r\n\t\tint insertsNumber = msList.size();\r\n\t\t\r\n\t\ttry{\r\n\t\t\tps = con.prepareStatement(query);\r\n\r\n\t\t\tfor(int i = 0; i < insertsNumber; i++){\r\n\t\t\t\t\r\n\t\t\t\ttry {\r\n\t\t\t\t\tps.setInt(1, userId);\r\n\t\t\t\t\tps.setInt(2, msList.get(i).getId_supermarket().getId_supermarket());\r\n\t\t\t\t\tps.executeUpdate();\r\n\t\t\t\t}catch (SQLException e) {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t} \t\r\n\t\t\t}\r\n\t\t} finally{\r\n\t\t\tConnectionPoolManager.getPoolManagerInstance().returnConnectionToPool(con);\r\n\t\t}\r\n\t\t\r\n\t\treturn;\r\n\r\n\t}", "void delete(List<ViewResourcesMappingPK> list) throws Exception;", "@Override\n\tpublic int batchDeleteAsksByIds(Integer[] idIntegerArr) {\n\t\treturn 0;\n\t}", "int deleteByExample(ForumpostExample example);", "int deleteByExample(GatewayLogExample example);", "public void deleteMulti(String ids);", "int deleteByExample(KaiwaExample example);", "int deleteByExample(FactRoomLogExample example);", "@Delete\n Single<Integer> delete(Collection<Motivator> motivators);", "int deleteByExample(AbumExample example);", "int deleteByExample(GrpTagExample example);", "public void doDelete ( RunData data)\n\t{\n\t\tSessionState state = ((JetspeedRunData)data).getPortletSessionState (((JetspeedRunData)data).getJs_peid ());\n\n\t\t// cancel copy if there is one in progress\n\t\tif(! Boolean.FALSE.toString().equals(state.getAttribute (STATE_COPY_FLAG)))\n\t\t{\n\t\t\tinitCopyContext(state);\n\t\t}\n\n\t\t// cancel move if there is one in progress\n\t\tif(! Boolean.FALSE.toString().equals(state.getAttribute (STATE_MOVE_FLAG)))\n\t\t{\n\t\t\tinitMoveContext(state);\n\t\t}\n\n\t\tParameterParser params = data.getParameters ();\n\n\t\tList Items = (List) state.getAttribute(STATE_DELETE_ITEMS);\n\n\t\t// Vector deleteIds = (Vector) state.getAttribute (STATE_DELETE_IDS);\n\n\t\t// delete the lowest item in the hireachy first\n\t\tHashtable deleteItems = new Hashtable();\n\t\t// String collectionId = (String) state.getAttribute (STATE_COLLECTION_ID);\n\t\tint maxDepth = 0;\n\t\tint depth = 0;\n\n\t\tIterator it = Items.iterator();\n\t\twhile(it.hasNext())\n\t\t{\n\t\t\tBrowseItem item = (BrowseItem) it.next();\n\t\t\tdepth = ContentHostingService.getDepth(item.getId(), item.getRoot());\n\t\t\tif (depth > maxDepth)\n\t\t\t{\n\t\t\t\tmaxDepth = depth;\n\t\t\t}\n\t\t\tList v = (List) deleteItems.get(new Integer(depth));\n\t\t\tif(v == null)\n\t\t\t{\n\t\t\t\tv = new Vector();\n\t\t\t}\n\t\t\tv.add(item);\n\t\t\tdeleteItems.put(new Integer(depth), v);\n\t\t}\n\n\t\tboolean isCollection = false;\n\t\tfor (int j=maxDepth; j>0; j--)\n\t\t{\n\t\t\tList v = (List) deleteItems.get(new Integer(j));\n\t\t\tif (v==null)\n\t\t\t{\n\t\t\t\tv = new Vector();\n\t\t\t}\n\t\t\tIterator itemIt = v.iterator();\n\t\t\twhile(itemIt.hasNext())\n\t\t\t{\n\t\t\t\tBrowseItem item = (BrowseItem) itemIt.next();\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tif (item.isFolder())\n\t\t\t\t\t{\n\t\t\t\t\t\tContentHostingService.removeCollection(item.getId());\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tContentHostingService.removeResource(item.getId());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch (PermissionException e)\n\t\t\t\t{\n\t\t\t\t\taddAlert(state, rb.getString(\"notpermis6\") + \" \" + item.getName() + \". \");\n\t\t\t\t}\n\t\t\t\tcatch (IdUnusedException e)\n\t\t\t\t{\n\t\t\t\t\taddAlert(state,RESOURCE_NOT_EXIST_STRING);\n\t\t\t\t}\n\t\t\t\tcatch (TypeException e)\n\t\t\t\t{\n\t\t\t\t\taddAlert(state, rb.getString(\"deleteres\") + \" \" + item.getName() + \" \" + rb.getString(\"wrongtype\"));\n\t\t\t\t}\n\t\t\t\tcatch (ServerOverloadException e)\n\t\t\t\t{\n\t\t\t\t\taddAlert(state, rb.getString(\"failed\"));\n\t\t\t\t}\n\t\t\t\tcatch (InUseException e)\n\t\t\t\t{\n\t\t\t\t\taddAlert(state, rb.getString(\"deleteres\") + \" \" + item.getName() + \" \" + rb.getString(\"locked\"));\n\t\t\t\t}// try - catch\n\t\t\t\tcatch(RuntimeException e)\n\t\t\t\t{\n\t\t\t\t\tlogger.debug(\"ResourcesAction.doDelete ***** Unknown Exception ***** \" + e.getMessage());\n\t\t\t\t\taddAlert(state, rb.getString(\"failed\"));\n\t\t\t\t}\n\t\t\t}\t// for\n\n\t\t}\t// for\n\n\t\tif (state.getAttribute(STATE_MESSAGE) == null)\n\t\t{\n\t\t\t// delete sucessful\n\t\t\tstate.setAttribute (STATE_MODE, MODE_LIST);\n\n\t\t\tif (((String) state.getAttribute (STATE_SELECT_ALL_FLAG)).equals (Boolean.TRUE.toString()))\n\t\t\t{\n\t\t\t\tstate.setAttribute (STATE_SELECT_ALL_FLAG, Boolean.FALSE.toString());\n\t\t\t}\n\n\t\t}\t// if-else\n\n\t}", "int deleteByExample(MWeixinCodeDTOCriteria example);", "int deleteByExample(BehaveLogExample example);", "@Override\r\n\tpublic void deleteBatch(Integer[] bankcardid) {\n\t\tbankcardMapper.deleteBatch(bankcardid);\r\n\t}", "List<MongoDBEntry<K, V>> removeExpiredData(byte[] lastKey);", "void delete(Iterable<? extends T> entities);", "int deleteByExample(CptDataStoreExample example);", "int deleteByExample(ScheduleCriteria example);", "private static void deleteInstance(String[] args,String command,List<ExampleServer> servers) {\n \n if (args.length != 1) {\n System.err.println(\"syntax error (expected delete <name>): \" + command);\n return;\n }\n \n final String serviceName = args[0];\n ExampleServer server = Iterables.find(servers,server1 -> server1.getThisInstance().getName()\n .endsWith(serviceName),null);\n if (server == null) {\n System.err.println(\"No servers found named: \" + serviceName);\n return;\n }\n \n servers.remove(server);\n CloseableUtils.closeQuietly(server);\n System.out.println(\"Removed a random instance of: \" + serviceName);\n }", "public void queryDataFromDatabase() {\n AppDatabase database = Room.databaseBuilder(this, AppDatabase.class, DB_NAME).allowMainThreadQueries().build();\n runningdao = database.getRunningdataDAO();\n List<Runningdata> runningdata_list = runningdao.getAllRuningdata();\n for (int i = 0; i < runningdata_list.size(); i++) {\n int oldId = runningdata_list.get(i).getId();\n String oldStarttime = runningdata_list.get(i).getStarttime();\n double oldDistance = runningdata_list.get(i).getDistance();\n double oldCalorie = runningdata_list.get(i).getCalorie();\n System.out.println(\"Database shows here: \"+\"i:\"+i+\"oldId:\"+oldId +\"oldStarttime\"+oldStarttime+\"oldDistance\"+oldDistance+\"oldCalorie\"+oldCalorie);\n }\n // delete data from database by ID\n //runningdao.deleteById(10);\n }", "@Delete\n Single<Integer> delete(Motivator... motivators);", "int deleteByExample(HuoDongExample example);", "public void removeDups(Instance instance) {\n ArrayList<Instance> toRemove = backRelation.get(instance);\n if(toRemove == null)\n return;\n for (Instance remove : toRemove) {\n relatedInstances.get(remove).remove(instance);\n toLink.remove(remove.getId());\n }\n backRelation.remove(instance);\n\n }", "@Test\n void deleteUserBatchesRemainSuccess() {\n GenericDao anotherDao = new GenericDao( Batch.class );\n /* user id 2 in the test database has two associated batches */\n User userWithBatch = (User) genericDao.getById(2);\n /* store the associated batches for this user */\n Set<Batch> batches = (Set<Batch>) userWithBatch.getBatches();\n logger.debug(\"The user's batches: \" + batches);\n\n /*\n * -disassociate the batches (this is the only way I can see to not delete the orphan records)\n * -delete the user\n * -confirm deletion\n */\n userWithBatch.setBatches(null);\n\n genericDao.delete(userWithBatch);\n\n assertNull(genericDao.getById(2));\n\n /*\n * try to retrieve the batches based on id\n * confirm they have not been removed from the database\n */\n for (Batch batch : batches) {\n logger.debug(\"test batch id: \" + batch.getId());\n Batch testBatch = (Batch) anotherDao.getById(batch.getId());\n logger.debug(\"Test batch retrieved from db: \" + testBatch);\n assertNotNull(testBatch);\n }\n }", "int deleteByExample(ChronicCheckExample example);", "@Override\n public void handleDelete(MemoryBatchMessage msg, String dpSchemaName) {\n System.out.println(\"Primary keys of the deletion are \" + msg.getDpSinkRecords().keySet()\n .stream().map(pk -> \"'\" + pk.getCompositeValue() + \"'\").collect(Collectors.joining(\", \")));\n MongoCollection<Document> collection = MongoDBHelper.INSTANCE.getCollection(\"test\", \"c1\");\n }", "@Override\r\n\tpublic void delete(Iterable<? extends Candidat> entities) {\n\r\n\t}", "int deleteByExample(SurveystatusPkeyExample example);", "private void removeInstances(final BwEvent master,\n final UpdateEventResult uc,\n final Collection<BwEventProxy> overrides,\n final Collection<BwDateTime> rids) throws CalFacadeException {\n for (BwDateTime dt: rids) {\n removeInstance(master, uc, overrides, dt.getDate());\n }\n }", "public boolean batchDel(String keyIds) {\n\t\treturn false;\n\t}", "@Override\n\tpublic String deleteBatch() throws Exception {\n\t\treturn null;\n\t}", "public void multiDeleteSPEntries(List<SalePurchase> spEntriesParam) {\n\t\tfor(SalePurchase st : spEntriesParam){\n\t\t\tsalePurchaseEntries.remove(st.getSPId());\n\t\t}\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\tprivate static void deleteTagInstances(PersistenceManager pm, Key k) {\r\n\t\tfinal Query q = pm.newQuery(Dish.class);\r\n\t\tq.setFilter(\"tags.contains(:tagKey)\");\r\n\t\tfinal List<Dish> dishes = (List<Dish>) q.execute(k);\r\n\r\n\t\tfor (Dish d : dishes) {\r\n\t\t\td.removeTag(k);\r\n\t\t\tpm.makePersistent(d);\r\n\t\t}\r\n\t}", "public void deleteAll();", "@PostMapping(\"/adminDeleteShows\")\n public String adminDeleteShows(@RequestParam(required = false, value=\"deleteList\") Long[] deleteList, Model model){\n String nextPage = \"adminShowList\";\n\n if (deleteList != null && deleteList.length > 0){\n for (Long showId : deleteList) {\n Show show = showRepo.findById(showId).get();\n if (show != null){\n List<Watching> watchings = watchingRepo.findByShow(show);\n if (watchings != null){\n for (Watching watch : watchings) {\n watchingRepo.delete(watch);\n }\n }\n showRepo.delete(show);\n }\n }\n }\n model.addAttribute(\"showList\", showRepo.findAll());\n return nextPage;\n }", "int deleteByExample(OnlineExample example);", "public int deleteBatchByPK(String[] pkArray){\n \tif(pkArray==null||pkArray.length<=0)\n \t\treturn 0;\n \tint rows = 0;\n \tLong[] arrs = new Long[pkArray.length];\n\t\tfor(int i=0;i<pkArray.length;i++){\n\t\t\tif(pkArray[i]!=null)\n\t\t\t\tarrs[i] = new Long(Long.parseLong(pkArray[i]));\n\t\t}\n\t\trows = this.deleteBatchByPK(arrs);\n\t\treturn rows;\n }", "public int deleteBatchByPK(String[] pkArray){\n \tif(pkArray==null||pkArray.length<=0)\n \t\treturn 0;\n \tint rows = 0;\n \tLong[] arrs = new Long[pkArray.length];\n\t\tfor(int i=0;i<pkArray.length;i++){\n\t\t\tif(pkArray[i]!=null)\n\t\t\t\tarrs[i] = new Long(Long.parseLong(pkArray[i]));\n\t\t}\n\t\trows = this.deleteBatchByPK(arrs);\n\t\treturn rows;\n }", "int deleteByExample(SysIdExample example);", "int deleteAllComponents(RecordSet inputRecords);", "int deleteByExample(DeviceExample example);", "int deleteByExample(XdSpxxExample example);", "int deleteByExample(UTbInvCategoryExample example);" ]
[ "0.6830648", "0.63208914", "0.6190081", "0.6033839", "0.60065776", "0.59801954", "0.5921059", "0.5850288", "0.5842845", "0.5842845", "0.5842845", "0.5799654", "0.57843083", "0.57810044", "0.5761892", "0.5753171", "0.5753171", "0.57466924", "0.5709072", "0.5697131", "0.568546", "0.5666976", "0.5657924", "0.56480616", "0.5622858", "0.56122005", "0.5610007", "0.5596713", "0.5579428", "0.5553978", "0.55529165", "0.5543649", "0.55408424", "0.55227005", "0.55227005", "0.55135113", "0.5485778", "0.5477717", "0.54712296", "0.5468469", "0.54526055", "0.54383624", "0.54122853", "0.53747326", "0.535883", "0.5355744", "0.5350162", "0.5341713", "0.53335935", "0.5332777", "0.5311783", "0.5301432", "0.5286615", "0.5285261", "0.5282745", "0.5271838", "0.5271431", "0.5249337", "0.5244404", "0.52337986", "0.5233464", "0.5226129", "0.5224135", "0.5218458", "0.5217496", "0.5213692", "0.5208203", "0.52037215", "0.51930404", "0.51886857", "0.51742595", "0.5171924", "0.5171395", "0.5169318", "0.51690274", "0.5168161", "0.51575845", "0.51573104", "0.5156468", "0.515205", "0.51504785", "0.51394606", "0.51374465", "0.51373506", "0.51368874", "0.51338255", "0.513287", "0.513204", "0.5130665", "0.51302487", "0.51235336", "0.5118432", "0.5109287", "0.5103706", "0.51000816", "0.51000816", "0.50969493", "0.5094054", "0.50860643", "0.50788987", "0.5070416" ]
0.0
-1
add a rule to the list first in list is highest match priority
public void addRule(String pattern, RemapRuleType remapType, String opStr) { rules.add(new RemapRule(pattern, remapType, opStr)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "IRuleset add(IRuleset rule);", "public void add_rule(Rule rule) throws Exception;", "private PrismRule addRule(PrismRule lastRule, PrismRule newRule) {\n\n if (lastRule == null) {\n m_rules = newRule;\n } else {\n lastRule.m_next = newRule;\n }\n return newRule;\n }", "protected void addRule(BinaryRule rule) {\n\t\tif (rule.getPurity() >= mMinimumPurity)\n\t\t\tthis.mBinaryRules.add(rule);\n\t}", "public void addRule(Rule r) {\r\n\t\tIterator<Rule> it = rules.iterator();\r\n\t\t\r\n\t\twhile(it.hasNext()) {\r\n\t\t\tRule rule = it.next();\r\n\t\t\tif(rule.getRuleName().equals(r.getRuleName()))\r\n\t\t\t\tit.remove();\r\n\t\t}\r\n\t\trules.add(r);\r\n\t\tnew BuildRules(r, this).calculate();;\r\n\t}", "IRuleset add(IRuleset...rules);", "public RETEReasoner addRules(List rules) {\n List combined = new List( this.rules );\n combined.addAll( rules );\n setRules( combined );\n return this;\n }", "public DaprSubscriptionBuilder addRule(String path, String match, int priority) {\n if (rules.stream().anyMatch(e -> e.getPriority() == priority)) {\n throw new RuntimeException(\n String.format(\n \"a rule priority of %d is already used for topic %s on pubsub %s\",\n priority, this.topic, this.pubsubName));\n }\n rules.add(new TopicRule(path, match, priority));\n return this;\n }", "private Rule honorRules(InstanceWaypoint context){\n \t\t\n \t\tStyle style = getStyle(context);\n \t\tRule[] rules = SLD.rules(style);\n \t\t\n \t\t//do rules exist?\n \t\t\n \t\tif(rules == null || rules.length == 0){\n \t\t\treturn null;\n \t\t}\n \t\t\n \t\t\n \t\t//sort the elserules at the end\n \t\tif(rules.length > 1){\n \t\t\trules = sortRules(rules);\n \t\t}\n \t\t\n \t\t//if rule exists\n \t\tInstanceReference ir = context.getValue();\n \t\tInstanceService is = (InstanceService) PlatformUI.getWorkbench().getService(InstanceService.class);\n \t\tInstance inst = is.getInstance(ir);\n \t\t\t\n \t\tfor (int i = 0; i < rules.length; i++){\n \t\t\t\n \t\t\tif(rules[i].getFilter() != null){\t\t\t\t\t\t\n \t\t\t\t\n \t\t\t\tif(rules[i].getFilter().evaluate(inst)){\n \t\t\t\t\treturn rules[i];\n \t\t\t\t}\n \t\t\t}\n \t\t\t\n \t\t\t//if a rule exist without a filter and without being an else-filter,\n \t\t\t//the found rule applies to all types\n \t\t\telse{\n \t\t\t\tif(!rules[i].isElseFilter()){\n \t\t\t\t\treturn rules[i];\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t\t\n \t\t//if there is no appropriate rule, check if there is an else-rule\n \t\tfor (int i = 0; i < rules.length; i++){\n \t\t\tif(rules[i].isElseFilter()){\n \t\t\t\treturn rules[i];\n \t\t\t}\n \t\t}\n \t\t\n \t \n \t\t//return null if no rule was found\n \t\treturn null;\n \t\n \t}", "void setRule(Rule rule);", "Rule createRule();", "Rule createRule();", "Rule createRule();", "public void addExceptionRules(Collection<PatternActionRule> rules) {\n\t\tthis.patternActionRules.addAll(rules);\n\t\tCollections.sort(this.patternActionRules);\n\t}", "public void addRule(String rulename, Rule rule, SpriteGroup[] obedients)\r\n\t{\r\n\t\tmyRuleBook.put(rulename, rule);\r\n\t\tmyRuleMap.put(rule, obedients);\r\n\t}", "ExprListRule createExprListRule();", "@Override\n public int compareTo(FirewallRule rule) {\n return this.priority - rule.priority;\n }", "@Test\r\n public void testAddRule() throws Exception{\r\n System.out.println(\"addRule\");\r\n RuleSetImpl instance = new RuleSetImpl(\"Test\", true);\r\n instance.addRule(new RegExRule(\".*\", \"string\"));\r\n instance.addRule(new RegExRule(\"a.*\", \"aString\"));\r\n List<Rule> rules = instance.getRules();\r\n assertTrue(rules.size()==2);\r\n }", "static void SPT_rule(List<T_JOB> job) {\n Collections.sort(job);\n }", "public Taboo(List<T> rules) {\n\t\trule = new HashMap<>();\n\t\tfor(int i = 0; i < rules.size() - 1; i++) {\n\t\t\tif(rules.get(i) == null || rules.get(i+1) == null) continue;\n\t\t\tint hash = rules.get(i).hashCode();\n\t\t\tif(rule.containsKey(hash)) {\n\t\t\t\trule.get(hash).add(rules.get(i+1));\n\t\t\t}else {\n\t\t\t\tSet<T> val = new HashSet<>();\n\t\t\t\tval.add(rules.get(i+1));\n\t\t\t\trule.put(hash, val); \t\n\t\t\t}\n\t\t}\n\t}", "Rule getRule();", "public boolean addRule( Rule r ) {\n\t\tif( !validRule(r) ) {\n\t\t\treturn false;\n\t\t}\n\t\trules.add(r);\n\t\treturn true;\n\t}", "private void applyTheRule() throws Exception {\n System.out.println();\n System.out.println();\n System.out.println();\n System.out.println(\"IM APPLYING RULE \" + this.parameter.rule + \" ON MODEL: \" + this.resultingModel.path);\n System.out.println();\n if (parameter.rule.equals(\"1\")) {\n Rule1.apply(resultingModel);\n System.out.println();\n }\n\n if (parameter.rule.equals(\"2\")) {\n Rule2.apply(resultingModel);\n System.out.println();\n }\n\n if (parameter.rule.equals(\"3\")) {\n Rule3.all(resultingModel);\n System.out.println();\n }\n\n if (parameter.rule.equals(\"3a\")) {\n Rule3.a(resultingModel);\n\n }\n\n if (parameter.rule.equals(\"3b\")) {\n Rule3.b(resultingModel);\n }\n\n if (parameter.rule.equals(\"3c\")) {\n Rule3.c(resultingModel);\n }\n\n if (parameter.rule.equals(\"4\")) {\n Rule4.all(resultingModel);\n }\n\n if (parameter.rule.equals(\"4a\")) {\n Rule4.a(resultingModel);\n }\n\n if (parameter.rule.equals(\"4b\")) {\n Rule4.b(resultingModel);\n }\n\n if (parameter.rule.equals(\"4c\")) {\n Rule4.c(resultingModel);\n }\n\n if (parameter.rule.equals(\"r1\")) {\n Reverse1.apply(resultingModel, parameter.aggregateBy);\n }\n\n if (parameter.rule.equals(\"r2\")) {\n Reverse2.apply(resultingModel, parameter.aggregateBy);\n }\n\n if (parameter.rule.equals(\"r3\")) {\n Reverse3.apply(resultingModel, parameter.aggregateBy);\n }\n\n if (parameter.rule.equals(\"r3a\")) {\n Reverse3.a(resultingModel);\n }\n\n if (parameter.rule.equals(\"r3b\")) {\n Reverse3.b(resultingModel);\n }\n\n if (parameter.rule.equals(\"r3c\")) {\n Reverse3.c(resultingModel);\n }\n\n if (parameter.rule.equals(\"r4\")) {\n Reverse4.all(resultingModel);\n }\n\n if (parameter.rule.equals(\"r4a\")) {\n Reverse4.a(resultingModel);\n }\n\n if (parameter.rule.equals(\"r4b\")) {\n Reverse4.b(resultingModel);\n }\n\n if (parameter.rule.equals(\"r4c\")) {\n Reverse4.c(resultingModel);\n }\n\n if (parameter.rule.equals(\"5\")){\n Rule5.apply(resultingModel);\n }\n\n System.out.println(\"IM DONE APPLYING RULE \" + this.parameter.rule + \" ON MODEL: \" + this.resultingModel.path);\n\n this.resultingModel.addRule(parameter);\n //System.out.println(this.resultingModel.name);\n this.resultingModel.addOutputInPath();\n }", "public void setRule(int rule) {\n\t\tthis.rule = rule;\n\t}", "private void createRules(List<PatternToken> elemList,\n List<PatternToken> tmpPatternTokens, int numElement) {\n String shortMessage = \"\";\n if (this.shortMessage != null && this.shortMessage.length() > 0) {\n shortMessage = this.shortMessage.toString();\n } else if (shortMessageForRuleGroup != null && shortMessageForRuleGroup.length() > 0) {\n shortMessage = this.shortMessageForRuleGroup.toString();\n }\n if (numElement >= elemList.size()) {\n AbstractPatternRule rule;\n if (tmpPatternTokens.size() > 0) {\n rule = new PatternRule(id, language, tmpPatternTokens, name,\n message.toString(), shortMessage,\n suggestionsOutMsg.toString(), phrasePatternTokens.size() > 1, interpretPosTagsPreDisambiguation);\n rule.addTags(ruleTags);\n rule.addTags(ruleGroupTags);\n rule.addTags(categoryTags);\n rule.setSourceFile(sourceFile);\n } else if (regex.length() > 0) {\n int flags = regexCaseSensitive ? 0 : Pattern.CASE_INSENSITIVE|Pattern.UNICODE_CASE;\n String regexStr = regex.toString();\n if (regexMode == RegexpMode.SMART) {\n // Note: it's not that easy to add \\b because the regex might look like '(foo)' or '\\d' so we cannot just look at the last character\n regexStr = replaceSpacesInRegex(regexStr);\n }\n if (ruleAntiPatterns.size() > 0 || rulegroupAntiPatterns.size() > 0) {\n throw new RuntimeException(\"<regexp> rules currently cannot be used together with <antipattern>. Rule id: \" + id + \"[\" + subId + \"]\");\n }\n rule = new RegexPatternRule(id, name, message.toString(), shortMessage, suggestionsOutMsg.toString(), language, Pattern.compile(regexStr, flags), regexpMark);\n rule.setSourceFile(sourceFile);\n } else {\n throw new IllegalStateException(\"Neither '<pattern>' tokens nor '<regex>' is set in rule '\" + id + \"'\");\n }\n setRuleFilter(filterClassName, filterArgs, rule);\n prepareRule(rule);\n rules.add(rule);\n } else {\n PatternToken patternToken = elemList.get(numElement);\n if (patternToken.hasOrGroup()) {\n // When creating a new rule, we finally clear the backed-up variables. All the elements in\n // the OR group should share the values of backed-up variables. That's why these variables\n // are backed-up.\n List<Match> suggestionMatchesBackup = new ArrayList<>(suggestionMatches);\n List<Match> suggestionMatchesOutMsgBackup = new ArrayList<>(suggestionMatchesOutMsg);\n int startPosBackup = startPos;\n int endPosBackup = endPos;\n List<DisambiguationPatternRule> ruleAntiPatternsBackup = new ArrayList<>(ruleAntiPatterns);\n for (PatternToken patternTokenOfOrGroup : patternToken.getOrGroup()) {\n List<PatternToken> tmpElements2 = new ArrayList<>();\n tmpElements2.addAll(tmpPatternTokens);\n tmpElements2.add(ObjectUtils.clone(patternTokenOfOrGroup));\n createRules(elemList, tmpElements2, numElement + 1);\n startPos = startPosBackup;\n endPos = endPosBackup;\n suggestionMatches = suggestionMatchesBackup;\n suggestionMatchesOutMsg = suggestionMatchesOutMsgBackup;\n ruleAntiPatterns.addAll(ruleAntiPatternsBackup);\n }\n }\n tmpPatternTokens.add(ObjectUtils.clone(patternToken));\n createRules(elemList, tmpPatternTokens, numElement + 1);\n }\n }", "public RuleSet (RuleList rulelist, SensorList sList) {\n \n this.references = new ArrayList();\n this.rulelist = rulelist;\n this.totalProb = -1.0;\n this.id = counter.incrementAndGet();\n this.indexesOfPrec = new ArrayList();\n this.precedences = new ArrayList ();\n this.sList = sList;\n }", "public void pruneRules_greedy() {\n LOGGER.info(\"STARTED Postpruning\");\n AttributeValue defClass = getDefaultRuleClass();\n int defError = getDefaultRuleError(defClass);\n boolean removeTail=false;\n for (Iterator<ExtendRule> it = extendedRules.iterator(); it.hasNext();) {\n\n ExtendRule rule = it.next();\n rule.updateQuality();\n if (LOGGER.isLoggable(Level.FINE)) {\n LOGGER.log(Level.FINE, \"#Rule {0}\", rule.toString());\n }\n \n if (removeTail)\n {\n it.remove();\n }\n else if (rule.getAntecedentLength() == 0) {\n it.remove();\n } \n else if (rule.getRuleQuality().getA() == 0)\n {\n it.remove();\n }\n else\n {\n int supportingTransactions = rule.removeTransactionsCoveredByAntecedent(true);\n AttributeValue newDefClass = getDefaultRuleClass();\n int newDefError = getDefaultRuleError(newDefClass);\n if (defError<=newDefError)\n {\n //adding the current rule did not decrease the errors compared to a default rule\n it.remove();\n removeTail=true;\n }\n else{\n LOGGER.log(Level.FINE, \"{0} transactions, RULE {1} KEPT\", new Object[]{supportingTransactions, rule.getRID()});\n defClass = newDefClass;\n defError = newDefError;\n } \n }\n \n \n\n\n }\n LOGGER.fine(\"Creating new Extend rule within narrow rule procedure\");\n extendedRules.add(createNewDefaultRule(defClass));\n LOGGER.info(\"FINISHED Postpruning\");\n }", "public Vector match(boolean test) {\r\n Vector matchList = new Vector() ;\r\n Enumeration enum2 = ruleList.elements() ;\r\n // System.out.println(enum2.toString());\r\n while (enum2.hasMoreElements()) {\r\n Rule testRule = (Rule)enum2.nextElement() ;\r\n if (test) testRule.check() ; // test the rule antecedents\r\n if (testRule.truth == null) continue ;\r\n // fire the rule only once for now\r\n if ((testRule.truth.booleanValue() == true) &&\r\n (testRule.fired == false)) matchList.addElement(testRule) ;\r\n }\r\n displayConflictSet(matchList) ;\r\n return matchList ;\r\n }", "public AscendingRules() {}", "private void applyRules(boolean install, FlowRule rule) {\n FlowRuleOperations.Builder ops = FlowRuleOperations.builder();\n\n ops = install ? ops.add(rule) : ops.remove(rule);\n flowRuleService.apply(ops.build(new FlowRuleOperationsContext() {\n @Override\n public void onSuccess(FlowRuleOperations ops) {\n log.trace(\"HP Driver: - applyRules onSuccess rule {}\", rule);\n }\n\n @Override\n public void onError(FlowRuleOperations ops) {\n log.trace(\"HP Driver: applyRules onError rule: \" + rule);\n }\n }));\n }", "public void addRules(int index, ContextRule value) {\n value.getClass();\n ensureRulesIsMutable();\n this.rules_.add(index, value);\n }", "public void addRule(final Rule rule)\n {\n if (rule == null)\n {\n throw new NullPointerException(\"rule MUST NOT be null\");\n }\n\n this.rules.add(rule);\n }", "List<? extends Rule> getRules();", "private Rule[] sortRules(Rule[] rules){\n \t\t\n \t\tArrayList<Rule> temp = new ArrayList<Rule>();\n \t\t\n \t\tfor(int i = 0; i < rules.length; i++){\n \t\t\t\n \t\t\tif(!rules[i].isElseFilter()){\n \t\t\t\ttemp.add(rules[i]);\n \t\t\t}\n \t\t}\n \t\t\n \t\tfor(int i = 0; i < rules.length; i++){\n \t\t\t\n \t\t\tif(rules[i].isElseFilter()){\n \t\t\t\ttemp.add(rules[i]);\n \t\t\t}\n \t\t\t\n \t\t}\n \t\t\n \t\tRule[] newRules = new Rule[temp.size()];\t\t\n \t\treturn temp.toArray(newRules);\n \t}", "public static List<ExtendRule> removeRedundantExtendedRules_transactionBased(List<ExtendRule> rules) {\n LOGGER.info(\"STARTED removeRedundantExtendedRules - transaction based\");\n LOGGER.info(\"Rules on start:\" + rules.size());\n ExtendRule defRule = rules.get(rules.size()-1);\n if (defRule.getAntecedent().getItems().size()>0)\n {\n LOGGER.warning(\"Default rule is not last rule. Returning null. Last rule:\" + defRule.toString() );\n \n return null;\n }\n Consequent defClass = defRule.getConsequent(); \n for (Iterator<ExtendRule> it = rules.iterator(); it.hasNext();) { \n ExtendRule PRCandidate = it.next();\n // PRCandidate = go through all rules with default class in the consequent\n if (!PRCandidate.getConsequent().toString().equals(defClass.toString()))\n {\n\n }\n // skip default rule\n else if (PRCandidate.equals(defRule))\n {\n \n } \n else{\n Set<Transaction> suppTran = PRCandidate.getAntecedent().getSupportingTransactions();\n // get transactions only CORRECTLY classified by the candidate rule\n Set<Transaction> consTran = PRCandidate.getConsequent().getSupportingTransactions();\n suppTran.retainAll(consTran);\n\n // Check if transactions correctly classified by pruning candidate intersect with transactions covered by those rules below prunCand in the rule list that assign to different than default class. If there are no such transactions PRCandidate can be removed\n boolean nonEmptyIntersection=false;\n boolean positionBelowPRCand = false;\n for (Iterator<ExtendRule> innerIt = rules.iterator(); innerIt.hasNext();) {\n ExtendRule candidateClash = innerIt.next();\n // candidateClash is PRCandidate, which would always evaluate to overlap!\n if (candidateClash.equals(PRCandidate))\n {\n positionBelowPRCand = true;\n continue;\n }\n if (!positionBelowPRCand) continue;\n // candidateClash = go through all rules with OTHER than default class in consequent \n if (candidateClash.getConsequent().toString().equals(defClass.toString()))\n {\n continue;\n }\n\n // check if transactions covered by PRCandidate intersect with transactions covered by candidateClash \n\n for (Transaction t : candidateClash.getAntecedent().getSupportingTransactions())\n {\n\n if (suppTran.contains(t))\n {\n nonEmptyIntersection=true;\n }\n break;\n } \n if (nonEmptyIntersection)\n {\n //go to next PRCandidate \n break;\n } \n }\n if (nonEmptyIntersection == false)\n {\n //no other rule with different consequent covering at least one shared transaction was found\n //this rule can be removed\n LOGGER.fine(\"Removing rule:\" + PRCandidate.toString());\n it.remove();\n } \n }\n \n }\n LOGGER.info(\"Rules on finish:\" + rules.size());\n LOGGER.info(\"FINISHED removeRedundantExtendedRules - transaction based\");\n return rules;\n }", "@Override\n public StreamRule<ItemCollection> defineRule() {\n return s -> s.peek(p -> {\n if (p.getPrecio() > ((Integer) this.getParameters().get(\"precio\")).intValue()) {\n p.setPrecio(DiscountedPriceRule.PRICE_99);\n }\n });\n }", "java.lang.String getRule();", "@Override\r\n\tpublic Identifier addRouting(RoutingRule rule) {\n\t\t\r\n\t\tIdentifier i = Identifier.routing(TimeBasedUUID.getUUIDAsString());\r\n\t\troutingTable.put(i, rule);\r\n\t\treturn i;\r\n\t}", "public Rule selectRule(Vector ruleSet) {\r\n Enumeration enum2 = ruleSet.elements() ;\r\n long numClauses ;\r\n Rule nextRule ;\r\n\r\n Rule bestRule = (Rule)enum2.nextElement() ;\r\n long max = bestRule.numAntecedents() ;\r\n while (enum2.hasMoreElements()) {\r\n nextRule = (Rule)enum2.nextElement() ;\r\n if ((numClauses = nextRule.numAntecedents()) > max) {\r\n max = numClauses ;\r\n bestRule = nextRule ;\r\n }\r\n }\r\n return bestRule ;\r\n }", "public void setRule(java.lang.String rule) {\n this.rule = rule;\n }", "public static List<ExtendRule> removeRedundantExtendedRules_rangeBased(List<ExtendRule> rules) {\n LOGGER.info(\"STARTED removeRedundantExtendedRules - range based\");\n LOGGER.info(\"Rules on start:\" + rules.size());\n ExtendRule defRule = rules.get(rules.size()-1);\n Consequent defClass = defRule.getConsequent(); \n for (Iterator<ExtendRule> it = rules.iterator(); it.hasNext();) { \n ExtendRule PRCandidate = it.next();\n // PRCandidate = go through all rules with default class in the consequent\n if (!PRCandidate.getConsequent().toString().equals(defClass.toString()))\n {\n continue;\n }\n // skip default rule\n if (PRCandidate.equals(defRule))\n {\n continue;\n } \n ArrayList<RuleMultiItem> PR_items = PRCandidate.getAntecedent().getItems();\n //create hashmap for fast access\n HashMap<Attribute,RuleMultiItem> PR_itemsMap = new HashMap();\n for (RuleMultiItem rmi : PR_items)\n {\n PR_itemsMap.put(rmi.getAttribute(), rmi);\n }\n \n // check if there is no other rule classifying to different class that shares part of the region\n // matched by the antecedent of PRCandidate \n boolean clashingRuleFound=false;\n boolean positionBelowPRCand = false;\n for (Iterator<ExtendRule> innerIt = rules.iterator(); innerIt.hasNext();) {\n ExtendRule candidateClash = innerIt.next();\n // candidateClash is PRCandidate, which would always evaluate to overlap!\n\n if (candidateClash.equals(PRCandidate))\n {\n positionBelowPRCand=true;\n continue;\n }\n // candidateClash = go through all rules with OTHER than default class in consequent \n if (candidateClash.getConsequent().toString().equals(defClass.toString()))\n {\n continue;\n }\n if (!positionBelowPRCand) continue;\n \n // check if at leat one literal in PRCandidate has empty intersection with Clash on shared attribute\n \n //in case there is no shared attribute, the intersection is non empty\n ArrayList<RuleMultiItem> literalsInClashOnSharedAtt = new ArrayList();\n for (RuleMultiItem clash_rmi : candidateClash.getAntecedent().getItems())\n {\n if (PR_itemsMap.containsKey(clash_rmi.getAttribute()))\n {\n literalsInClashOnSharedAtt.add(clash_rmi);\n }\n } \n if (literalsInClashOnSharedAtt.isEmpty())\n {\n clashingRuleFound =true;\n break;\n }\n // if there is NO intersection on at leat one of the shared attributes => no CLASH\n // ELSE => CLASH\n boolean attLeastOneAttDisjunct=true;\n for (RuleMultiItem clash_rmi : literalsInClashOnSharedAtt)\n {\n //PRCandidate has a literal created over the same attribute\n RuleMultiItem machingPR_RMI = PR_itemsMap.get(clash_rmi.getAttribute());\n\n //do values in the candidate clash intersect with values in PRCandidate?\n \n for (AttributeValue v : machingPR_RMI.getAttributeValues())\n {\n if (clash_rmi.getAttributeValues().contains(v))\n {\n attLeastOneAttDisjunct=false;\n }\n }\n if (attLeastOneAttDisjunct) // if we have non-empty intersection on one att we do not have to test the other ones, rule matches different part of the data space\n {\n //go to next PRCandidate \n break;\n } \n } \n if (!attLeastOneAttDisjunct)\n {\n //go to next PRCandidate \n clashingRuleFound=true;\n break;\n } \n }\n if (clashingRuleFound == false)\n {\n //no other rule with different consequent covering at least one shared value was found\n //this rule can be removed\n LOGGER.fine(\"Removing rule:\" + PRCandidate.toString());\n it.remove();\n } \n }\n LOGGER.info(\"Rules on finish:\" + rules.size());\n LOGGER.info(\"FINISHED removeRedundantExtendedRules - range based\");\n return rules;\n }", "@SuppressWarnings(\"unchecked\")\n\tprivate void setRules() {\n\t\tthis.result = Result.START;\n\t\t// Create all initial rule executors, and shuffle them if needed.\n\t\tthis.rules = new LinkedList<>();\n\t\tModule module = getModule();\n\t\tfor (Rule rule : module.getRules()) {\n\t\t\tRuleStackExecutor executor = (RuleStackExecutor) getExecutor(rule, getSubstitution());\n\t\t\texecutor.setContext(module);\n\t\t\tthis.rules.add(executor);\n\t\t}\n\t\tif (getRuleOrder() == RuleEvaluationOrder.RANDOM || getRuleOrder() == RuleEvaluationOrder.RANDOMALL) {\n\t\t\tCollections.shuffle((List<RuleStackExecutor>) this.rules);\n\t\t}\n\t}", "private void addBeforeRule(AroundProcesser<AggMaschineVO> processer)\r\n {\n\t\t\r\n\t processer.addBeforeRule(new BDPKLockSuperVORule());\r\n\t processer.addBeforeRule(new BizLockRule());\r\n\t processer.addBeforeRule(new VersionValidateRule());\r\n\t processer.addBeforeRule(new BDReferenceCheckerRule());\r\n\t processer.addBeforeRule(new FireEventRule(\"1005\"));\r\n\t processer.addBeforeRule(new NotifyVersionChangeWhenDataDeletedRule());\r\n }", "private Test addTest(PrismRule rule, Test lastTest, Test newTest) {\n\n if (rule.m_test == null) {\n rule.m_test = newTest;\n } else {\n lastTest.m_next = newTest;\n }\n return newTest;\n }", "public int replaceRule(String key, Map ph, XQueue in) {\n int id = ruleList.getID(key);\n if (id == 0) // can not replace the default rule\n return -1;\n else if (id > 0) { // for a normal rule\n if (ph == null || ph.size() <= 0)\n throw(new IllegalArgumentException(\"Empty property for rule\"));\n if (!key.equals((String) ph.get(\"Name\"))) {\n new Event(Event.ERR, name + \": name not match for rule \" + key +\n \": \" + (String) ph.get(\"Name\")).send();\n return -1;\n }\n if (getStatus() == NODE_RUNNING)\n throw(new IllegalStateException(name + \" is in running state\"));\n long tm = System.currentTimeMillis();\n long[] meta = new long[RULE_TIME+1];\n long[] ruleInfo = ruleList.getMetaData(id);\n Map rule = initRuleset(tm, ph, meta);\n if (rule != null && rule.containsKey(\"Name\")) {\n StringBuffer strBuf = ((debug & DEBUG_DIFF) <= 0) ? null :\n new StringBuffer();\n Map h = (Map) ruleList.set(id, rule);\n if (h != null) {\n MessageFilter filter = (MessageFilter) h.remove(\"Filter\");\n if (filter != null)\n filter.clear();\n AssetList list = (AssetList) h.remove(\"TaskList\");\n if (list != null)\n cleanupTasks(list);\n h.clear();\n }\n tm = ruleInfo[RULE_PID];\n for (int i=0; i<RULE_TIME; i++) { // update metadata\n switch (i) {\n case RULE_SIZE:\n break;\n case RULE_COUNT:\n if (tm == meta[RULE_PID]) // same rule type\n break;\n default:\n ruleInfo[i] = meta[i];\n }\n if ((debug & DEBUG_DIFF) > 0)\n strBuf.append(\" \" + ruleInfo[i]);\n }\n if ((debug & DEBUG_DIFF) > 0)\n new Event(Event.DEBUG, name + \"/\" + key + \" ruleInfo:\" +\n strBuf).send();\n return id;\n }\n else\n new Event(Event.ERR, name + \" failed to init rule \"+key).send();\n }\n else if (cfgList != null && cfgList.containsKey(key)) {\n return super.replaceRule(key, ph, in);\n }\n return -1;\n }", "public void addRules(ContextRule value) {\n value.getClass();\n ensureRulesIsMutable();\n this.rules_.add(value);\n }", "private void setCurrentRule(){\n\tfor(int i=0; i<ConditionTree.length;i++){\n\t\tif(ConditionTree[i][1].equals(\"-\")){\n\t\t\tcurrentRule = ConditionTree[i][0];\n\t\t\tcurrentRuleIndex = i;\n\t\t}\n\t}\n}", "public void sortKnowledgeBase()\n {\n int i;\n Random random;\n String aPredicate;\n StringTokenizer tokenizer;\n //------------\n random = new Random();\n i = 0;\n while (i < knowledgeBase.size())\n {\n aPredicate = knowledgeBase.get(i).commitments.get(0).predicate;\n tokenizer = new StringTokenizer(aPredicate,\"(), \");\n if(tokenizer.nextToken().equals(\"secuencia\"))\n knowledgeBase.get(i).priority = random.nextInt(100);\n //end if\n else\n knowledgeBase.get(i).priority = random.nextInt(10000);\n //end else\n i = i + 1;\n }//end while\n Collections.sort(knowledgeBase);\n }", "public void setRule(final String rule) {\r\n this.rule = rule;\r\n }", "public void reduce(List<T> list) {\n\t\tfor(int i = 1; i < list.size(); i++) {\n\t\t\tif(list.get(i) == null || list.get(i-1) == null) continue;\n\t\t\tint hash = list.get(i-1).hashCode();\n\t\t\tif(!rule.containsKey(hash)) continue;\n\t\t\tif(rule.get(hash).contains(list.get(i))) {\n\t\t\t\tlist.remove(i);\ti--;\n\t\t\t}\n\t\t}\n\t}", "private List<PricingRule> orderPricingRules(Set<PricingRule> pricingRules) {\n \tList<PricingRule> pricingRulesList = pricingRules.stream().collect(Collectors.toList());\n \tCollections.sort(pricingRulesList, new Comparator<PricingRule>() {\n\t\t\tpublic int compare(PricingRule o1, PricingRule o2) {\n\t\t\t\treturn ((o2.getClass().getAnnotation(PricingRuleOrder.class).value()) - (o1.getClass().getAnnotation(PricingRuleOrder.class).value()));\n\t\t\t}\n\t\t});\n\t\treturn pricingRulesList;\n }", "public void setRule(IRule rule)\n\t{\n\t\tthis.rule = rule;\n\t}", "public void setRules(List<T> rules) {\n\t\tthis.rules = rules;\n\t}", "protected void processTemporalRule(){\n RuleThread currntThrd;\n Thread currntThrdParent; // the parent of the current thread;\n int currntOperatingMode;\n int currntThrdPriority ;\n\n if( temporalRuleQueue.getHead()!= null){\n\n //If the rule thread is the top level, trigger the rule.\n currntThrd=temporalRuleQueue.getHead();\n while(currntThrd!= null){\n currntThrdPriority = currntThrd.getPriority ();\n currntThrdParent = currntThrd.getParent();\n\n if (currntThrd.getOperatingMode() == RuleOperatingMode.READY\n && !(currntThrd.getParent() == applThrd ||\n currntThrd.getParent().getClass().getName().equals(\"EventDispatchThread\")||\n currntThrd.getParent().getName ().equals (Constant.LEDReceiverThreadName)\n )){\n if(ruleSchedulerDebug)\n\t\t \t\t System.out.println(\"Changing mode of \"+currntThrd.getName()+\"from READY to EXE\");\n\n currntThrd.setOperatingMode(RuleOperatingMode.EXE);\n\t\t\t\t currntThrd.setScheduler(this);\n currntThrd.start();\n int rulePriority = 0;\n currntThrdParent = currntThrd;\n if(currntThrdParent instanceof RuleThread){\n rulePriority = currntThrd.getRulePriority();\n }\n currntThrd = currntThrd.next;\n while(currntThrd != null && currntThrd instanceof RuleThread &&\n currntThrd.getRulePriority() == rulePriority\n \t\t\t\t\t\t\t && currntThrd.getParent() == currntThrdParent ){\n if(ruleSchedulerDebug)\n \t\t\t System.out.print(\" start child thread =>\");\n\n currntThrd.print();\n currntThrd.setScheduler(this);\n if(\tcurrntThrd.getOperatingMode()== RuleOperatingMode.READY ){\n currntThrd.setOperatingMode(RuleOperatingMode.EXE);\n currntThrd.start();\n }\n \t\t\t\t\tcurrntThrd = currntThrd.next;\n }\n }\n // case 1.2:\n else if (currntThrd != null &&\tcurrntThrd.getOperatingMode() == RuleOperatingMode.EXE){\n \t\t\t\tcurrntThrd = currntThrd.next;\n\n }\n // case 1.3:\n\t\t\t\telse if (currntThrd != null && currntThrd.getOperatingMode() == RuleOperatingMode.WAIT){\n\t\t\t\t if(currntThrd.next == null){\n currntThrd.setOperatingMode(RuleOperatingMode.EXE);\n\n// ;\n // All its childs has been completed.\n // This currntThread's operating mode will be changed to FINISHED.\n }\n\t\t\t\t\telse{\n // check whether its neighbor is its child\n\t\t\t\t\t\tif(currntThrd.next.getParent() == currntThrdParent){\n if(ruleSchedulerDebug){\n\t \t\t\t\t\t System.out.println(\"\\n\"+currntThrd.getName()+\" call childRecurse \"+currntThrd.next.getName());\n\t\t \t\t\t\t\tcurrntThrd.print();\n }\n\n childRecurse(currntThrd, temporalRuleQueue);\n }\n }\n currntThrd = currntThrd.next;\n }\n // case 1.4:\n\t\t\t\telse if (currntThrd != null && currntThrd.getOperatingMode() == RuleOperatingMode.FINISHED){\n if(ruleSchedulerDebug){\n\t\t\t\t\t System.out.println(\"delete \"+currntThrd.getName() +\" rule thread from rule queue.\");\n\t\t\t\t\t\tcurrntThrd.print();\n }\n processRuleList.deleteRuleThread(currntThrd,temporalRuleQueue);\n \tcurrntThrd = currntThrd.next;\n }\n else{\n \t\t\t\tcurrntThrd = currntThrd.next;\n }\n }\n }\n }", "private static void resolveParserRule(ParserRule rule, Map<String, Rule> rules) throws IngridParserException {\n // For each alternative line..\n for (Alternative alternative : rule.alternatives) {\n // For each element on the line..\n for (int i = 0; i < alternative.elements.size(); ++i) {\n RuleReference ref = alternative.elements.get(i);\n\n // Rule referenced in this alternative element\n Rule element = ref.rule;\n\n if (element instanceof UnresolvedRule) {\n // Lexer rules were resolved first, so they are ready to be referenced\n if (rules.containsKey(element.name)) {\n Rule lookedUpRule = rules.get(element.name);\n alternative.elements.set(i, new RuleReference(lookedUpRule, ref.quantity));\n } else {\n // Special EOF token might not be defined, but is a valid reference\n if (element.name.equals(\"EOF\")) {\n // We can ignore this rule\n alternative.elements.remove(i);\n --i;\n continue;\n }\n\n throw new IngridParserException(\n \"Couldn't resolve rule '\" + element.name + \"' (inside \" + rule.name + \")\");\n }\n } else if (element instanceof QuantifierRule) {\n if (i == 0) {\n throw new IngridParserException(\n \"Quantifier suffix found with no previous reference\");\n }\n\n // Apply quantifier to previous element of alternative\n alternative.elements.get(i - 1).quantity = ((QuantifierRule) element).quantity;\n // Remove quantifier itself\n alternative.elements.remove(i);\n --i;\n }\n }\n }\n }", "private void actOnRules() {\r\n\r\n\t\tfor(String key: myRuleBook.keySet())\r\n\t\t{\r\n\r\n\t\t\tRule rule = myRuleBook.get(key);\r\n\t\t\tSpriteGroup[] obedients = myRuleMap.get(rule);\r\n\r\n\t\t\tif(rule.isSatisfied(obedients))\r\n\t\t\t{\r\n\t\t\t\trule.enforce(obedients);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void setRules(ArrayList<Rule> rules) {\n\t\tthis.rules = rules;\n\t}", "public void setRule(RuleDefinition.Builder rule) {\r\n\t\t\tthis.rule = rule;\r\n\t\t}", "public Rule chooseRandomRule () {\n \n double a = Math.random();\n \n double c = 0.0;\n \n for (int i = 0; i < this.size(); i++) {\n \n c = c + this.getRule(i).getProb();\n \n if (c > a) {\n \n return this.getRule(i);\n }\n }\n \n return this.getRule(this.size()-1);\n \n }", "AssignmentRule createAssignmentRule();", "public void setRule(int r)\n { \n rule = r;\n repaint();\n }", "public RuleBuilder endRule(double weight) {\n if( literals.size() > 0 ) {\n mlnText.rules.add(new MLNText.Rule(weight, literals));\n }\n return new RuleBuilder();\n }", "public T addRule(final String css) {\n rules.add(css);\n return (T)this;\n }", "public List<Rule> defaultRuleList(TacticTypeEnum tacticType) {\n List<Rule> ruleList = new ArrayList<>();\n List<RangeCondition> rangeConditions = rangeConditionTemplate.conditionsFromBaseAndIntervalWithMaxValue(0, 10,\n 4, 10, ConditionUnitEnum.PERCENT);\n Collections.reverse(rangeConditions);\n List<Operation> operations = operationTemplate.operationsFromBaseAndInterval(1000, 200, 10, 2,\n TradeUnitEnum.YUAN);\n operations.add(operationTemplate.ignore());\n operations.add(operationTemplate.sell30Pct());\n operations.add(operationTemplate.sellAll());\n operations.sort(Comparators.OPERATION_TRADE_VALUE_COMPARATOR);\n for (int i = 0; i < rangeConditions.size(); i++) {\n ruleList.add(of(tacticType, rangeConditions.get(i), null, operations.get(i)));\n }\n return ruleList;\n }", "ArgMapListRule createArgMapListRule();", "static List<Rule> parseRule(String rule) {\r\n ArrayList<Rule> list = new ArrayList<>();\r\n\r\n int splitIndex = rule.indexOf(\":\");\r\n String lhs = rule.substring(0, splitIndex).trim();\r\n String rhs = rule.substring(splitIndex + 1).trim();\r\n\r\n String[] split = rhs.split(\"[|]\");\r\n for (String part : split) {\r\n list.add(new Rule(lhs, part.trim()));\r\n }\r\n\r\n return list;\r\n }", "public MethodBuilder rule(String rule) {\n\t\tthis.rule = rule;\n\t\treturn this;\n\t}", "StatementRule createStatementRule();", "private void addAfterRule(AroundProcesser<AggMaschineVO> processer)\r\n {\n\t \r\n\t\t\r\n\t processer.addAfterRule(new FireEventRule(\"1006\"));\r\n\t\t\r\n\t processer.addAfterRule(new WriteBusiLogRule(\"delete\"));\r\n }", "public HashMap<String,Rule> get_rules_to_action() throws Exception;", "public void addRule(Character identifier, String definition){\n if(isNonterminal(identifier)){\n String s = identifier+\"\";\n identifier = s.charAt(0);\n rules.put(identifier, definition.toLowerCase());\n }\n else{\n throw new RuntimeException();\n }\n }", "public boolean addRules( ArrayList<Rule> ruleList ) {\n\t\tfor( int i=0; i < ruleList.size(); i++ ) {\n\t\t\tif( !validRule(ruleList.get(i)) ) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\tthis.rules = ruleList;\n\t\treturn true;\n\t}", "public void includeCommitmentsFromRule(Rule aRule)\n {\n int j;\n int x;\n int y;\n String commitmentType;\n String direccion;\n StringTokenizer tokenizer;\n Commitment aCommitment;\n int prioridad;\n //-------------\n\n j = 0;\n while(j < aRule.commitments.size())\n {\n tokenizer = new StringTokenizer(aRule.commitments.get(j).predicate,\"(), \");\n commitmentType = tokenizer.nextToken();\n if((commitmentType.equals(\"secuencia\")) && (!commitmentsWithPriority()))\n {\n prioridad = 1;\n while( tokenizer.hasMoreElements())\n {\n x = Integer.valueOf(tokenizer.nextToken());\n y = Integer.valueOf(tokenizer.nextToken());\n direccion = tokenizer.nextToken();\n aCommitment = new Commitment(\"mover(\"+ x + \",\"+ y+\",\"+direccion+\")\");\n\n aCommitment.setPriority(prioridad);\n commitments.add(aCommitment);\n prioridad = prioridad + 1;\n }//end while\n\n\n }//end if\n else\n {\n commitments.add(aRule.commitments.get(j));\n }//end else\n j = j + 1;\n }//end while\n\n }", "public RETEReasoner(List rules) {\n if (rules == null) throw new NullPointerException( \"null rules\" );\n this.rules = rules;\n }", "public Rules save(Rules rule) {\n for(Rules r :rules)\n {\n if(r.getTime()==rule.getTime() && r.getNoOfAnimals()==rule.getNoOfAnimals())\n return null;\n }\n if (rule.getId() == null)\n ruleCount++;\n String idd = \"Rule\" + ruleCount;\n rule.setId(idd);\n rules.add(rule);\n return rule;\n }", "private void addAndEnterEpsilonRule()\n {\n ruleTextField.setText(ruleTextField.getText() + \"\\u025B\");\n enterRules();\n }", "protected abstract Builder processSpecificRoutingRule(Builder rb);", "public Set<SWRLRule> translate() throws Exception {\n NodeList nodeList = doc.getElementsByTagName(\"rule\");\n if (nodeList == null) {\n throw new Exception(\"No rule tag in xml file\");\n }\n Set<SWRLRule> ruleSwrl = new HashSet<SWRLRule>();\n for (int i = 0; i < nodeList.getLength(); i++) {\n Set<SWRLAtom> antecedent = new HashSet<SWRLAtom>();\n Set<SWRLAtom> consequent = new HashSet<SWRLAtom>();\n Node node = nodeList.item(i);\n NodeList children = node.getChildNodes();\n for (int j = 0; j < children.getLength(); j++) {\n Node child = children.item(j);\n switch (child.getNodeName()) {\n case \"if\": {\n generateAntecedent((Element) child, antecedent);\n break;\n }\n case \"then\": {\n generateConsequent((Element) child, consequent);\n break;\n }\n }\n }\n SWRLRule rules = factory.getSWRLRule(antecedent, consequent);\n ruleSwrl.add(rules);\n }\n return ruleSwrl;\n }", "private Collection<Rule> getRelevantRules(List<Expr> goals, Collection<Expr> edbList, Collection<Rule> idbList) {\n Set<Rule> relevant = new HashSet<Rule>();\n goals = new LinkedList<Expr>(goals);\n while (!goals.isEmpty()) {\n Expr expr = goals.remove(0);\n for (Rule rule : idbList) {\n if (rule.head.predicate.equals(expr.predicate) && !relevant.contains(rule)) {\n relevant.add(rule);\n goals.addAll(rule.body);\n }\n }\n }\n return relevant;\n }", "java.lang.String getSearchRecurrenceRule();", "@Override\n public void visit(FuncallExpression node) {\n Expression fct = node.getFunction();\n if (!(fct instanceof Identifier) || !((Identifier) fct).getName().equals(\"rule\")) {\n return;\n }\n\n boolean firstArg = true;\n for (Argument.Passed arg : node.getArguments()) {\n if (!\"implementation\".equals(arg.getName()) && (!firstArg || arg.isKeyword())) {\n firstArg = false;\n continue;\n }\n firstArg = false;\n Expression val = arg.getValue();\n if (val instanceof Identifier) {\n ruleImplSet.add(((Identifier) val).getName());\n }\n }\n }", "private void parseRule(Node node) {\r\n if (switchTest) return;\r\n parse(node.right());\r\n }", "protected List<DumpRule> ruleList(){\n\t\tList<DumpRule> drList = new ArrayList<DumpRule>();\n\t\tString lineStrs = ruleText.getText();\n\t\ttry{\n\t\t\tString[] lines = lineStrs.split(\"\\n\");\n\t\t\tDumpRule currentDr = null;\n\t\t\tfor(int index=0,size=lines.length; index<size; index++){\n\t\t\t\tString line=lines[index];\n\t\t\t\tif(line.indexOf(TB_COL_SPlit)!=-1){\n\t\t\t\t\tcurrentDr = addTbColRule(line);\n\t\t\t\t\tdrList.add(currentDr);\n\t\t\t\t}else if(line.indexOf(RULE_COL_SPlit)!=-1){\n\t\t\t\t\tString[] kvs = line.split(RULE_COL_SPlit);\n\t\t\t\t\tif(kvs!=null && kvs.length==2){\n\t\t\t\t\t\tcurrentDr.addRule(kvs[0].trim(), kvs[1].trim());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}catch(Exception e){\n\t\t\tapp.log(\"规则输入错误..\");\n\t\t}\n\t\treturn drList;\n\t}", "ExprRule createExprRule();", "public ParallelProcessor(List<Rule> rules) {\n _rules = rules;\n }", "E9Rule createE9Rule();", "E11Rule createE11Rule();", "private void addPatterns(Expression exp,\n PatternExpression p, boolean def, List<Condition> cond)\n {\n for (Condition c: cond)\n {\n List<PatternExpression> ps = new ArrayList<PatternExpression>();\n PatternExpression p0 = patternExpression(p, c.exp);\n ps.add(p0);\n if (def && !(p0 instanceof PatternExpression.DefaultPatternExp)) \n ps.add(new PatternExpression.DefaultPatternExp(new TrueExp()));\n conditions.add(c.clone(new MatchExp(transform(exp), ps)));\n }\n }", "public static void main(String[] args) {\n\t\t\n//\t\t//PA4 a\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"S\");rhs11.add(\"a\");\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"b\");\t\t\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\n//\t\tRule r1 = new Rule(\"S\", rhs1); // S -> Aa | b\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\t\t\n//\t\t//PA4 b\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"S\");rhs11.add(\"a\");rhs11.add(\"b\");\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"c\");rhs12.add(\"d\");\t\t\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\n//\t\tRule r1 = new Rule(\"S\", rhs1); // S -> Aa | b\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\t\t\n//\t\t//PA4 c\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"S\");rhs11.add(\"U\");rhs11.add(\"S\");\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"S\");rhs12.add(\"S\");\t\t\n//\t\tArrayList<String> rhs13 = new ArrayList<>();\n//\t\trhs13.add(\"S\");rhs13.add(\"*\");\n//\t\tArrayList<String> rhs14 = new ArrayList<>();\n//\t\trhs14.add(\"(\");rhs14.add(\"S\");rhs14.add(\")\");\n//\t\tArrayList<String> rhs15 = new ArrayList<>();\n//\t\trhs15.add(\"a\");\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\t\trhs1.add(rhs13);\n//\t\trhs1.add(rhs14);\n//\t\trhs1.add(rhs15);\n//\n//\n//\t\tRule r1 = new Rule(\"S\", rhs1); // S -> Aa | b\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\t\t\n\t\t\n//\t\t//PA-3 d\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"rexpr\");rhs11.add(\"U\");rhs11.add(\"rterm\");\t\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"rterm\");\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\t\tRule r1 = new Rule(\"rexpr\", rhs1);\n//\n//\t\tArrayList<ArrayList<String>> rhs2 = new ArrayList<>();\n//\t\tArrayList<String> rhs21 = new ArrayList<>();\n//\t\trhs21.add(\"rterm\");rhs21.add(\"r factor\");\n//\t\tArrayList<String> rhs22 = new ArrayList<>();\n//\t\trhs22.add(\"r factor\");\n//\t\trhs2.add(rhs21);\n//\t\trhs2.add(rhs22);\n//\t\tRule r2 = new Rule(\"rterm\", rhs2);\n//\n//\t\tArrayList<ArrayList<String>> rhs3 = new ArrayList<>();\n//\t\tArrayList<String> rhs31 = new ArrayList<>();\n//\t\trhs31.add(\"r factor\");rhs31.add(\"*\");\n//\t\tArrayList<String> rhs32 = new ArrayList<>();\n//\t\trhs32.add(\"rprimary\");\n//\t\trhs3.add(rhs31);\n//\t\trhs3.add(rhs32);\n//\t\tRule r3 = new Rule(\"r factor\", rhs3);\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs4 = new ArrayList<>();\n//\t\tArrayList<String> rhs41 = new ArrayList<>();\n//\t\trhs41.add(\"a\");\n//\t\tArrayList<String> rhs42 = new ArrayList<>();\n//\t\trhs42.add(\"b\");\n//\t\trhs4.add(rhs41);\n//\t\trhs4.add(rhs42);\n//\t\tRule r4 = new Rule(\"rprimary\", rhs4);\n//\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\trules.add(r2);\n//\t\trules.add(r3);\n//\t\trules.add(r4);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\t\n\t\t\t\n//\t\t//PA-3 e\t\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"0\");\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"T\");rhs12.add(\"1\");\t\t\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs2 = new ArrayList<>();\n//\t\tArrayList<String> rhs21 = new ArrayList<>();\n//\t\trhs21.add(\"1\");\n//\t\tArrayList<String> rhs22 = new ArrayList<>();\n//\t\trhs22.add(\"A\");rhs22.add(\"0\");\t\t\n//\t\trhs2.add(rhs21);\n//\t\trhs2.add(rhs22);\n//\n//\t\tRule r1 = new Rule(\"A\", rhs1);\n//\t\tRule r2 = new Rule(\"T\", rhs2);\n//\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\trules.add(r2);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\n\n\t\t\n//\t\t//PA-3 f\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"B\");rhs11.add(\"C\");\t\n//\t\trhs1.add(rhs11);\n//\t\tRule r1 = new Rule(\"A\", rhs1);\n//\n//\t\tArrayList<ArrayList<String>> rhs2 = new ArrayList<>();\n//\t\tArrayList<String> rhs21 = new ArrayList<>();\n//\t\trhs21.add(\"B\");rhs21.add(\"b\");\n//\t\tArrayList<String> rhs22 = new ArrayList<>();\n//\t\trhs22.add(\"e\");\n//\t\trhs2.add(rhs21);\n//\t\trhs2.add(rhs22);\n//\t\tRule r2 = new Rule(\"B\", rhs2);\n//\n//\t\tArrayList<ArrayList<String>> rhs3 = new ArrayList<>();\n//\t\tArrayList<String> rhs31 = new ArrayList<>();\n//\t\trhs31.add(\"A\");rhs31.add(\"C\");\n//\t\tArrayList<String> rhs32 = new ArrayList<>();\n//\t\trhs32.add(\"a\");\n//\t\trhs3.add(rhs31);\n//\t\trhs3.add(rhs32);\n//\t\tRule r3 = new Rule(\"C\", rhs3);\n//\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\trules.add(r2);\n//\t\trules.add(r3);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tSystem.out.println(g);\n//\t\tg.eliminateEpsilonRule();\n//\t\tSystem.out.println(g);\n//\n//\t\tg.eliminateLR();\n//\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\n\t}", "public void addPreferedWeapon() {\n\t\tfor(int i = 0; i < killers.size(); i++) {\n\t\t\t\n\t\t\tList<String> list = new ArrayList<>();\n\t\t\t\n\t\t\tfor(String key : killers.get(i).getWeapons().keySet()) {\n\t\t\t\tlist.add(killers.get(i).getWeapons().get(key) + \";\" + key);\n\t\t\t}\n\t\t\t\n\t\t\tComparator<String> comp = (s1, s2) -> {\n\t\t\t\treturn s1.compareTo(s2);\n\t\t\t};\n\t\t\t\n\t\t\tCollections.sort(list, Collections.reverseOrder(comp));\n\t\t\tList<String> list2 = new ArrayList<>();\n\t\t\t\n\t\t\tif(!list.isEmpty()) {\n\t\t\t\tint control = extractNumberFromText(list.get(0));\n\t\t\t\t\n\t\t\t\tlist.forEach(s -> {\n\t\t\t\t\tif(extractNumberFromText(s) == control)\n\t\t\t\t\t\tlist2.add(s);\n\t\t\t\t});\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tkillers.get(i).setWeaponMoreUsed(list2);\n\t\t}\n\t}", "public void AddPriority(Priority p) {\n \tpriorities.add(p);\n }", "@Override\r\npublic void initRules(){\r\n\t\r\n}", "public void addGlobalRule(ValidationRule globalRule) {\n globalRules.add(globalRule);\n }", "private void createRuleList()\n {\n\n ArrayList<String> tempList0 = new ArrayList<String>();\n ArrayList<String> tempList1 = new ArrayList<String>();\n ArrayList<String> tempList2 = new ArrayList<String>();\n ArrayList<String> tempList3 = new ArrayList<String>();\n ArrayList<String> tempList4 = new ArrayList<String>();\n ArrayList<String> tempList5 = new ArrayList<String>();\n ArrayList<String> tempList6 = new ArrayList<String>();\n ArrayList<String> tempList7 = new ArrayList<String>();\n ArrayList<String> tempList8 = new ArrayList<String>();\n ArrayList<String> tempList9 = new ArrayList<String>();\n ArrayList<String> tempList10 = new ArrayList<String>();\n ArrayList<String> tempList11 = new ArrayList<String>();\n ArrayList<String> tempList12 = new ArrayList<String>();\n ArrayList<String> tempList13 = new ArrayList<String>();\n ArrayList<String> tempList14 = new ArrayList<String>();\n ArrayList<String> tempList15 = new ArrayList<String>();\n ArrayList<String> tempList16 = new ArrayList<String>();\n ArrayList<String> tempList17 = new ArrayList<String>();\n ArrayList<String> tempList18 = new ArrayList<String>();\n ArrayList<String> tempList19 = new ArrayList<String>();\n ArrayList<String> tempList20 = new ArrayList<String>();\n ArrayList<String> tempList21 = new ArrayList<String>();\n ArrayList<String> tempList22 = new ArrayList<String>();\n ArrayList<String> tempList23 = new ArrayList<String>();\n ArrayList<String> tempList24 = new ArrayList<String>();\n ArrayList<String> tempList25 = new ArrayList<String>();\n ArrayList<String> tempList26 = new ArrayList<String>();\n ArrayList<String> tempList27 = new ArrayList<String>();\n ArrayList<String> tempList28 = new ArrayList<String>();\n ArrayList<String> tempList29 = new ArrayList<String>();\n ArrayList<String> tempList30 = new ArrayList<String>();\n ArrayList<String> tempList31 = new ArrayList<String>();\n ArrayList<String> tempList32 = new ArrayList<String>();\n ArrayList<String> tempList33 = new ArrayList<String>();\n ArrayList<String> tempList34 = new ArrayList<String>();\n ArrayList<String> tempList35 = new ArrayList<String>();\n ArrayList<String> tempList36 = new ArrayList<String>();\n ArrayList<String> tempList37 = new ArrayList<String>();\n ArrayList<String> tempList38 = new ArrayList<String>();\n ArrayList<String> tempList39 = new ArrayList<String>();\n ArrayList<String> tempList40 = new ArrayList<String>();\n ArrayList<String> tempList41 = new ArrayList<String>();\n ArrayList<String> tempList42 = new ArrayList<String>();\n ArrayList<String> tempList43 = new ArrayList<String>();\n ArrayList<String> tempList44 = new ArrayList<String>();\n ArrayList<String> tempList45 = new ArrayList<String>();\n ArrayList<String> tempList46 = new ArrayList<String>();\n ArrayList<String> tempList47 = new ArrayList<String>();\n ArrayList<String> tempList48 = new ArrayList<String>();\n\n //There is no rule 0, so index 0 is left blank\n tempList0.add(\"\");\n ruleList.add(tempList0);\n //Create a list for each index position, then add it on to the overall list of lists\n tempList1.add(\"make-<PROGRAM>\");\n tempList1.add(\"DEFINITIONS\");\n ruleList.add(tempList1);\n tempList2.add(\"NULL\");\n ruleList.add(tempList2);\n tempList3.add(\"DEFINITIONS\");\n tempList3.add(\"DEF\");\n ruleList.add(tempList3);\n tempList4.add(\"make-<DEF>\");\n tempList4.add(\"BODY\");\n tempList4.add(\"TYPE\");\n tempList4.add(\"colon\");\n tempList4.add(\"rightParen\");\n tempList4.add(\"FORMALS\");\n tempList4.add(\"leftParen\");\n tempList4.add(\"make-<IDENTIFIER>\");\n tempList4.add(\"IDENTIFIER\");\n tempList4.add(\"function\");\n ruleList.add(tempList4);\n tempList5.add(\"make-<FORMALS>\");\n ruleList.add(tempList5);\n tempList6.add(\"NONEMPTYFORMALS\");\n ruleList.add(tempList6);\n tempList7.add(\"NEFREST\");\n tempList7.add(\"FORMAL\");\n ruleList.add(tempList7);\n tempList8.add(\"NONEMPTYFORMALS\");\n tempList8.add(\"comma\");\n ruleList.add(tempList8);\n tempList9.add(\"make-<FORMALS>\");\n ruleList.add(tempList9);\n tempList10.add(\"make-<FORMAL>\");\n tempList10.add(\"TYPE\");\n tempList10.add(\"colon\");\n tempList10.add(\"make-<IDENTIFIER>\");\n tempList10.add(\"IDENTIFIER\");\n ruleList.add(tempList10);\n tempList11.add(\"PRINTBODY\");\n ruleList.add(tempList11);\n tempList12.add(\"make-<BODY>\");\n tempList12.add(\"EXPR\");\n ruleList.add(tempList12);\n tempList13.add(\"BODY\");\n tempList13.add(\"PRINTSTATEMENT\");\n ruleList.add(tempList13);\n tempList14.add(\"make-integer\");\n tempList14.add(\"integer\");\n ruleList.add(tempList14);\n tempList15.add(\"make-boolean\");\n tempList15.add(\"boolean\");\n ruleList.add(tempList15);\n tempList16.add(\"EXPRREST\");\n tempList16.add(\"SIMPLEEXPR\");\n ruleList.add(tempList16);\n tempList17.add(\"EXPRREST\");\n tempList17.add(\"make-<BINARY>\");\n tempList17.add(\"EXPR\");\n tempList17.add(\"lessThan\");\n ruleList.add(tempList17);\n tempList18.add(\"EXPRREST\");\n tempList18.add(\"make-<BINARY>\");\n tempList18.add(\"EXPR\");\n tempList18.add(\"equals\");\n ruleList.add(tempList18);\n tempList19.add(\"make-<EXPR>\");\n ruleList.add(tempList19);\n tempList20.add(\"SIMPLEEXPRREST\");\n tempList20.add(\"TERM\");\n ruleList.add(tempList20);\n tempList21.add(\"SIMPLEEXPRREST\");\n tempList21.add(\"make-<BINARY>\");\n tempList21.add(\"SIMPLEEXPR\");\n tempList21.add(\"or\");\n ruleList.add(tempList21);\n tempList22.add(\"SIMPLEEXPRREST\");\n tempList22.add(\"make-<BINARY>\");\n tempList22.add(\"SIMPLEEXPR\");\n tempList22.add(\"plus\");\n ruleList.add(tempList22);\n tempList23.add(\"SIMPLEEXPRREST\");\n tempList23.add(\"make-<BINARY>\");\n tempList23.add(\"SIMPLEEXPR\");\n tempList23.add(\"minus\");\n ruleList.add(tempList23);\n tempList24.add(\"NULL\");\n ruleList.add(tempList24);\n tempList25.add(\"TERMREST\");\n tempList25.add(\"FACTOR\");\n ruleList.add(tempList25);\n tempList26.add(\"TERMREST\");\n tempList26.add(\"make-<BINARY>\");\n tempList26.add(\"TERM\");\n tempList26.add(\"and\");\n ruleList.add(tempList26);\n tempList27.add(\"TERMREST\");\n tempList27.add(\"make-<BINARY>\");\n tempList27.add(\"TERM\");\n tempList27.add(\"multiply\");\n ruleList.add(tempList27);\n tempList28.add(\"TERMREST\");\n tempList28.add(\"make-<BINARY>\");\n tempList28.add(\"TERM\");\n tempList28.add(\"divide\");\n ruleList.add(tempList28);\n tempList29.add(\"NULL\");\n ruleList.add(tempList29);\n tempList30.add(\"make-<if-EXPR>\");\n tempList30.add(\"EXPR\");\n tempList30.add(\"else\");\n tempList30.add(\"EXPR\");\n tempList30.add(\"then\");\n tempList30.add(\"EXPR\");\n tempList30.add(\"if\");\n ruleList.add(tempList30);\n tempList31.add(\"NOTFACTOR\");\n ruleList.add(tempList31);\n tempList32.add(\"IDENTIFIERMAIN\");\n ruleList.add(tempList32);\n tempList33.add(\"LITERAL\");\n ruleList.add(tempList33);\n tempList34.add(\"NEGFACTOR\");\n ruleList.add(tempList34);\n tempList35.add(\"rightParen\");\n tempList35.add(\"EXPR\");\n tempList35.add(\"leftParen\");\n ruleList.add(tempList35);\n tempList36.add(\"make-<UNARY>\");\n tempList36.add(\"FACTOR\");\n tempList36.add(\"not\");\n ruleList.add(tempList36);\n tempList37.add(\"make-<UNARY>\");\n tempList37.add(\"FACTOR\");\n tempList37.add(\"minus\");\n ruleList.add(tempList37);\n tempList38.add(\"IDENTIFIERREST\");\n tempList38.add(\"make-<IDENTIFIER>\");\n tempList38.add(\"IDENTIFIER\");\n ruleList.add(tempList38);\n tempList39.add(\"rightParen\");\n tempList39.add(\"ACTUALS\");\n tempList39.add(\"leftParen\");\n ruleList.add(tempList39);\n tempList40.add(\"NULL\");\n ruleList.add(tempList40);\n tempList41.add(\"NULL\");\n ruleList.add(tempList41);\n tempList42.add(\"NONEMPTYACTUALS\");\n ruleList.add(tempList42);\n tempList43.add(\"NEAREST\");\n tempList43.add(\"EXPR\");\n ruleList.add(tempList43);\n tempList44.add(\"NONEMPTYACTUALS\");\n tempList44.add(\"comma\");\n ruleList.add(tempList44);\n tempList45.add(\"make-Function-Call\");\n tempList45.add(\"make-<ACTUALS>\");\n ruleList.add(tempList45);\n tempList46.add(\"make-<NUMBER>\");\n tempList46.add(\"NUMBER\");\n ruleList.add(tempList46);\n tempList47.add(\"make-<BOOLEAN>\");\n tempList47.add(\"BOOLEAN\");\n ruleList.add(tempList47);\n tempList48.add(\"make-Function-Call\");\n tempList48.add(\"rightParen\");\n tempList48.add(\"EXPR\");\n tempList48.add(\"leftParen\");\n tempList48.add(\"make-<IDENTIFIER>\");\n tempList48.add(\"print\");\n ruleList.add(tempList48);\n }", "@Override\n\tpublic void deleteRuleAfterFirstMvt() {\n\t\t\n\t}", "public abstract int priority();", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }" ]
[ "0.66835696", "0.6642557", "0.61881715", "0.6083819", "0.60583854", "0.59726584", "0.58924454", "0.58575886", "0.57902914", "0.5723595", "0.56877315", "0.56877315", "0.56877315", "0.5657266", "0.5528831", "0.5514199", "0.549826", "0.54852176", "0.5423312", "0.5422436", "0.5413541", "0.5404404", "0.5396332", "0.5391555", "0.53823", "0.5317241", "0.5300149", "0.52920294", "0.5280072", "0.52648944", "0.5251115", "0.52471346", "0.5245855", "0.52360195", "0.523079", "0.51970726", "0.51793", "0.5178108", "0.5170221", "0.51430917", "0.51416665", "0.51176995", "0.5090378", "0.50795275", "0.5071149", "0.5070503", "0.50677836", "0.506457", "0.5062967", "0.50500923", "0.5048009", "0.5047253", "0.503763", "0.50053865", "0.49771836", "0.49703822", "0.4962079", "0.493914", "0.4929329", "0.4917291", "0.49136624", "0.48800197", "0.4870958", "0.48674905", "0.48631567", "0.48566875", "0.48519924", "0.48332354", "0.48218194", "0.48095134", "0.47917265", "0.47896528", "0.47873747", "0.47749388", "0.47734693", "0.47709632", "0.47584084", "0.4756126", "0.47526482", "0.47514445", "0.47506213", "0.47349474", "0.47239357", "0.47234195", "0.47227195", "0.47122705", "0.46994218", "0.46953976", "0.46924803", "0.46875852", "0.46824595", "0.46823177", "0.4665963", "0.46647555", "0.46595702", "0.46552747", "0.4650728", "0.4650728", "0.4650728", "0.4650728" ]
0.51957047
36
return the first resulting name of a match
public String getNewName(String oldName) { // return result of first matching rule Iterator<RemapRule> iter = rules.iterator(); while (iter.hasNext()) { String newName = iter.next().getNewName(oldName); if (newName != null) return newName; } return oldName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Match getResultMatch();", "public String getMatchName() {\r\n\t\treturn mMatchName;\r\n\t}", "Match getCompleteMatch();", "@Override\r\n\tpublic String getMatch() {\n\t\treturn match;\r\n\t}", "public Match findMatchFromTeamName(String name1, String name2){\r\n Iterator<Match> itr = this.resultsTree.iterator();\r\n Match m;\r\n while (itr.hasNext()) {\r\n m = itr.next();\r\n if (m.getTeam1().getName().equals(name1) \r\n && m.getTeam2().getName().equals(name2)){\r\n return m;\r\n }\r\n }\r\n return null;\r\n }", "public static String nextName( Scanner sc ) {\n\tsc.skip( whitespace );\n\tsc.skip( name );\n\treturn sc.match().group();\n }", "public A getName()\n {\n return first;\n }", "public String nextFileName() {\n\n\t\t// Get the next file from the search\n\n\t\ttry {\n\t\t\tString fileName = null;\n\t\t\twhile (m_rs.next()) {\n\t\t\t\tfileName = m_rs.getString(\"name\");\n\t\t\t\tif (m_filter == null || m_filter.matchesPattern(fileName) == true)\n\t\t\t\t\treturn fileName;\n\t\t\t}\n\t\t} catch (SQLException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "@Nullable\n String getMatch() {\n if (getAnchorType() == STRING_LITERAL || getAnchorType() == CHAR_LITERAL) {\n // Remove quotes inserted by parboiled for completion suggestions\n String fullToken = _anchor.getLabel();\n if (fullToken.length() >= 2) { // remove surrounding quotes\n fullToken = fullToken.substring(1, fullToken.length() - 1);\n }\n return fullToken;\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 }", "Optional<String> getFirstname();", "public Student getStudent(String match);", "public T getExactMatch(String arg)\n\t{\n\t\treturn null;\n\t}", "java.lang.String getCandidate();", "java.lang.String getFirstName();", "java.lang.String getFirstName();", "private static String getName(){\r\n\t\treturn new StringBuilder(input.next()).substring(0,3);\r\n\t}", "Match getPartialMatch();", "public static String getNameOne() {\n\tString name;\n\tname = playerOneName.getText();\n\treturn name;\n\n }", "@Execute(urlPattern = \"{}/@word\")\n public JsonResponse<RoutingCheckResult> named(String first) {\n return asJson(new RoutingCheckResult(\"named()\", first, null));\n }", "public String returnPerson(String person)\n\t{\n\t\tfor(int i = 0; i < peopleList.size(); i++)\n\t\t{\n\t\t\t// getSurname is a method defined in the Person class and return a persons last name\n\t\t\t// Compares the last name you typed in with the last name of each person in the peopleList list\n\t\t\t// if the last names are equal then return the person with the appropriate toString method\n\t\t\tif(person.equalsIgnoreCase(peopleList.get(i).getSurname())) \n\t\t\t{\n\t\t\t\treturn(peopleList.get(i).toString());\n\t\t\t}\n\t\t}\n\t\t// If the person looked for is not in the \"peopleList\" list; return the string \"notFound\" that is defined above\n\t\treturn notFound;\n\t}", "public MatchResult getResult() {\n return result;\n }", "private static String bestMatch(String s,ArrayList<Token>list) {\n\t\tfor(int i = 0; i<list.size();i++){\n\t\t\tif(list.get(i).value.equals(s)){\n\t\t\t\treturn s;\n\t\t\t}\n\t\t}\n\t\treturn \"\";\n\t}", "public String autoName(String currentSearch) {\n int i = 0;\n String currentName = currentSearch + i;\n while (videoExists(currentName)){\n i++;\n currentName = currentSearch + i;\n }\n return currentName;\n }", "public String getBestMatch(String stem) {\n if (stem == null || stem.length() == 0)\n return null;\n Trie root = find(stem);\n if (root == null)\n return null;\n return root.findBest().item;\n }", "@Override\n\tpublic java.lang.String getFirstName() {\n\t\treturn _candidate.getFirstName();\n\t}", "private String resolveName()\n {\n\n String forwardName = null;\n\n // trigger\n final EventFacade trigger = this.getTrigger();\n\n if (trigger != null)\n {\n\n forwardName = trigger.getName();\n\n }\n\n // name\n if (forwardName == null)\n {\n\n forwardName = this.getName();\n\n }\n\n // target\n if (forwardName == null)\n {\n\n forwardName = this.getTarget().getName();\n\n }\n\n // else\n if (forwardName == null)\n {\n\n forwardName = \"unknown\";\n\n }\n\n // return\n return forwardName;\n\n }", "String fullName();", "public String getMatched() {\r\n\t\treturn matched;\r\n\t}", "String getCardLastName(String bookingRef);", "public static LinkedList<Actor> nameSearch(String name) {\n //sets name to lower case\n String hname = name.toLowerCase();\n //hashes the lower cased name\n int hash = Math.abs(hname.hashCode()) % ActorList.nameHashlist.length;\n //finds the location of the linked list\n LinkedList<Actor> location = ActorList.nameHashlist[hash];\n //sets the head to the head of the linked list\n LinkedList.DataLink head = location.header;\n\n\n while (head.nextDataLink != null) {\n //runs until next data link is null and gets each Actor\n Actor actor = (Actor) head.nextDataLink.data;\n //checks the name of the actor to inputted name\n if (actor.getName().toLowerCase().equals(hname)) {\n //if it's the same it returns the actor\n return location;\n //or moves to next link\n } else {\n head = head.nextDataLink;\n }\n }\n //returns null if the list does not match input\n return null;\n\n\n }", "public String bestMatch(String prefix) {\n\t\tif(prefix != null){\n\t\t\tfor(int i = 0; i < data.getRawList().size();i++){\n\t\t\t\tif(data.getRawList().get(i).getWord().startsWith(prefix)){\n\t\t\t\t\treturn data.getRawList().get(i).getWord();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "private Creature findLeader(Game game){\n Creature lead = facCreatures.firstElement();\n // App.log(\"Leader of \" + fFaction.getName() + \" is \" + lead);\n return lead;\n }", "Match getTeam1LooserOfMatch();", "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}", "public NodeP findPatient (String name){\r\n NodeP current = front;\r\n \r\n while (!current.getPatient().getName().trim().equalsIgnoreCase(name)){\r\n current = current.getNext();\r\n }\r\n return current;\r\n }", "public GrandChildOfStringMatch() {}", "public String previewNextToken() {\r\n matcher.find();\r\n String nextOne = matcher.group();\r\n updateMatcher(); // Return matcher to its previous state\r\n return nextOne;\r\n }", "public java.lang.String GetNameFromRecord(java.lang.String temprecord) {\r\n java.lang.String[] RecordName = temprecord.split(\" \");\r\n return RecordName[0];\r\n }", "static String cutName(String input) { return input.split(\" \")[0]; }", "java.lang.String getLastName();", "java.lang.String getLastName();", "@Override\n public Match getMatch() {\n return match;\n }", "@Override\n\tpublic java.lang.String getMiddleName() {\n\t\treturn _candidate.getMiddleName();\n\t}", "public static String getNameKeyForAssociateMatchKey(String lastname, String firstname) {\n if (lastname == null) {\n lastname = \"\";\n }\n String lastnameFirstword = lastname.split(\"[-]\")[0].toUpperCase();\n\n if (firstname == null) {\n firstname = \"\";\n }\n String firstTwoFirstname = firstname.substring(0, min(2, firstname.length())).toUpperCase();\n\n String name_key = lastnameFirstword + firstTwoFirstname;\n return name_key;\n }", "public static Pair<String, Integer> findFirstOccurence(... )\n\t{\n\t\t // you finish!!!\n\t\t\n\t\t\n\t\t\t// what should it return if it does NOT find a match?\n\t}", "String getCardFirstName(String bookingRef);", "public abstract Match match();", "static String getFirstName() {\n\t\tScanner s = new Scanner(System.in);\n\t\tSystem.out.print(\"Enter first name: \");\n\t\tString fn = s.nextLine();\n\t\treturn fn;\n\t}", "public String findBestMatch()\n\t{\t\t\n\t\tif (robot.containsUserAgent(\"cis455crawler\"))\n\t\t{\n\t\t\tbest_match = \"cis455crawler\";\n\t\t}\n\t\telse if (robot.containsUserAgent(\"*\"))\n\t\t{\n\t\t\tbest_match = \"*\";\n\t\t}\n\t\treturn best_match;\n\t}", "char firstTermAvail(){\n\r\n boolean charGood =false;\r\n int i=0;\r\n char searchChar=gIndividualNames.charAt(i);\r\n\r\n if (fShapes.size() > 0) {\r\n while ( (!charGood) && (i < gIndividualNames.length())) {\r\n\r\n searchChar=gIndividualNames.charAt(i);\r\n\r\n charGood=true; // this character is good unless we can prove otherwise\r\n\r\n Iterator iter = fShapes.iterator();\r\n\r\n while (charGood&&iter.hasNext()) {\r\n TShape theShape = (TShape) iter.next();\r\n\r\n if (((theShape.fTypeID == TShape.IDIndividual)||\r\n (theShape.fTypeID == TShape.IDIdentity))&&\r\n (searchChar == theShape.fName|| // should switch from char to string\r\n (fSemantics.getCurrentIdentities())[i]!=chBlank)) // it's a unary function (fCurrentIdentities[firstchar] <> chBlank)\r\n\r\n charGood=false;\r\n }\r\n i++;\r\n }\r\n }\r\n else {\r\n charGood=true; //if there are no shapes the first character will do\r\n }\r\n\r\n if (charGood)\r\n return\r\n searchChar;\r\n else\r\n return\r\n chBlank;\r\n\r\n}", "String getFirstIndex();", "public String searchPerson(String name){\n String string = \"\";\n ArrayList<Person> list = new ArrayList<Person>();\n \n for(Person person: getPersons().values()){\n String _name = person.getName();\n if(_name.contains(name)){\n list.add(person);\n }\n }\n list.sort(Comparator.comparing(Person::getName));\n for (int i = 0; i < list.size(); i++){\n string += list.get(i).toString();\n }\n\n return string;\n }", "private NamedEntity findEntityMatch(int index, List<Token> tokens) {\n\t\tif(firstTokenToNamedEntityListMap.get(tokens.get(index)) == null) {\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tNamedEntity longestMatch = null;\n\t\tfor(NamedEntity e : firstTokenToNamedEntityListMap.get(tokens.get(index))) {\n\t\t\tif(isMatch(index, tokens, e) && (longestMatch == null || longestMatch.getTokens().size() < e.getTokens().size())) {\n\t\t\t\tlongestMatch = e;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn longestMatch;\n\t}", "private Contacts getContact(String name) {\n Contacts foundContact = contactList.stream()\n .filter(contact ->\n contact.getFirstName().equals(name) ||\n contact.getLastName().equals(name))\n .findFirst().orElse(null);\n return foundContact;\n }", "public String extractLastName(String fullName) throws IllegalArgumentException {\n // check to make sure there is a space in the name, if there is no space in the name\n // we don't know if there is a first and a last name\n \n if (fullName == null || fullName.isEmpty() || fullName.indexOf(\" \") < LAST_NAME_IDX) {\n throw new IllegalArgumentException(\"Name cannot be null, empty, and must contain a space.\");\n }\n //String lastName = null;\n \n int spaceIndex = fullName.lastIndexOf(\" \");\n String lastName = fullName.substring(spaceIndex, fullName.length());\n \n // alternative\n // String[] parts = fullName.split(\" \");\n \n // Your code goes here. Assign your value to lastName\n return lastName;\n }", "public static Team getSecondPlace() {\n\t\tif (matches != null && matches.length > 0 && matches[0] != null)\n\t\t\treturn matches[0].getLoser();\n\t\treturn null;\n\t}", "public static Map<String, Long> searchFirstName(){\n boolean keepLooping = true;\n Map<String, Long> outputMap;\n do{\n outputMap = new HashMap<>();\n myScanner.nextLine();\n System.out.println(\"\\nEnter your search string: \\n\");\n String searchTerm = myScanner.next();\n myScanner.nextLine();\n\n for(Contact result : contactObjList){\n String firstName = result.getFirstName();\n if(firstName.toLowerCase().contains(searchTerm.toLowerCase())){\n outputMap.put(result.toContactString(), result.getId());\n }\n }\n if(outputMap.size() == 0){\n System.out.println(\"\\nNo results found.\\n\");\n } else {\n System.out.println(\"\\nHere are your search results:\\n\");\n }\n for(Map.Entry<String, Long> entry : outputMap.entrySet()){\n System.out.println(entry.getKey());\n }\n System.out.println(\"\\n\");\n int userSelect = selectFromList(repeatAction);\n if (userSelect==1){\n keepLooping=false;\n }\n } while(keepLooping);\n return outputMap;\n }", "Match getMatches();", "public abstract SmartObject findIndividualName(String individualName);", "public String getNameFirst() {\n\t\t\treturn nameFirst;\n\t\t}", "String first(String collection);", "public String findActor(String characterName)\n\t{\n\t\tfor (int index = 0; index < peopleAct.size(); index++)\n\t\t{\n\t\t\tif (peopleAct.get(index) == null)\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse if (peopleAct.get(index).getCharacter() == characterName)\n\t\t\t{\n\t\t\t\treturn \"The character \" + characterName + \" was played by \" + peopleAct.get(index).getName() + \" in the movie \" + name + \".\";\n\t\t\t} \n\t\t}\n\t\treturn \"Sorry, the following character \" + characterName + \" was not found in the movie.\";\n\t}", "private List<String> pickEmailOrFullNameMatches(final String name, final List<String> fullNameMatches, final List<String> emailMatches) {\n if (emailMatches.isEmpty()) {\n return fullNameMatches;\n }\n if (fullNameMatches.isEmpty() || isEmail(name)) {\n return emailMatches;\n }\n return fullNameMatches;\n }", "@Override\r\n\tpublic String runCommand() {\r\n\t\tString firstName = commandInputArray[1];\r\n\t\tString secondName = commandInputArray[2];\r\n\t\t\r\n\t\tString result = Constants.PERSON_NOT_FOUND;\r\n\t\t\r\n\t\tFamilyMember familyMember1 = FamilyCache.INSTANCE.getMemberFromCache(firstName);\r\n\t\t\r\n\t\tFamilyMember familyMember2 = FamilyCache.INSTANCE.getMemberFromCache(secondName);\r\n\t\t\r\n\t\tif(familyMember1 == null || familyMember2 == null) {\r\n\t\t\treturn result;\r\n\t\t}\r\n\t\t\r\n\t\tint generationNumber=1;\r\n\t\t\r\n\t\tFamilyMember parent = familyMember1.getFather();\r\n\t\tboolean found= false;\r\n\t\t\r\n\t\twhile(parent != null) {\r\n\t\t\tif(parent.getName().equals(secondName)) {\r\n\t\t\t\tfound = true;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t++generationNumber;\r\n\t\t\tparent = parent.getFather() == null? parent.getSpouse() : parent.getFather();\r\n\t\t}\r\n\t\t\r\n\t\tif(found)\r\n\t\t\treturn generationNumber+\"\";\r\n\t\telse\r\n\t\t\treturn \"0\";\r\n\t\t\r\n\t}", "private String getFirstCardName(String cardName) {\n return cardName.contains(\"//\")\n ? cardName.substring(0, cardName.indexOf(\"//\") - 1)\n : cardName;\n }", "public FieldInfBase getResultField()\n {\n return getEntity().getFields()\n .stream()\n .filter(f -> f.getName().equalsIgnoreCase(result))\n .findAny().orElse(null);\n }", "private String getFirstName() {\n System.out.println(\"Enter Your Last Name Of First Letter In Capital \");\n return sc.next();\n }", "protected void validateFirstName(){\n Boolean firstName = Pattern.matches(\"[A-Z][a-z]{2,}\",getFirstName());\n System.out.println(nameResult(firstName));\n }", "public static String getLastMatch(String str) {\n String[] ls= str.split(\" \\\\- \",2);\n\n /* Matcher matcher = match_numbers.matcher(str);\n if (matcher.find()) {\n return matcher.group(1);\n }*/\n return ls[ls.length-1];\n }", "private String getName() {\n System.out.println(\"Enter contact name\");\n return scannerForAddressBook.scannerProvider().nextLine();\n }", "public SaveGameNode getFirstChild(String name) {\r\n SaveGameNode node;\r\n node = this.children.stream().filter(child -> child.equals(name)).findFirst().get();\r\n return node;\r\n }", "public static String getNameTwo() {\n\tString name;\n\tname = playerTwoName.getText();\n\treturn name;\n\n }", "public String getTitleNameMatchExprValue() {\n\t\treturn titleNameMatchExprValue;\n\t}", "Name findNameByPersonPrimary(int idPerson);", "public String getFirst(String headerName)\r\n/* 336: */ {\r\n/* 337:496 */ List<String> headerValues = (List)this.headers.get(headerName);\r\n/* 338:497 */ return headerValues != null ? (String)headerValues.get(0) : null;\r\n/* 339: */ }", "private RealPlayer findRegisteredMatch(String nickname) {\n\n for(RealPlayer realPlayer : gameManager.getLobbyManager().getRealPlayerList()) {\n if (realPlayer.getName().equals(nickname)) {\n return realPlayer;\n }\n }\n return null;\n }", "private String readWhoPlaysFirst () {\n String name, player1Name, player2Name;\n name = \"\";\n player1Name = player1.name();\n player2Name = player2.name();\n while (!(name.equals(player1Name.toLowerCase()) ||\n name.equals(player2Name.toLowerCase()) )) {\n System.out.print(\n \"Who plays first? (\" + player1Name +\n \" or \" + player2Name + \"): \");\n System.out.flush();\n name = in.next();\n name = name.toLowerCase();\n in.nextLine();\n }\n if (name.equals(player1Name.toLowerCase()))\n return player1Name;\n else\n return player2Name;\n }", "String getSurname();", "Caseless getName();", "String simpleName();", "String getFirstName();", "String getFirstName();", "String getFirstName();", "public String matchedPropertyName(final String value) {\n\t\t\t// match\n\t\t\tif (!value.startsWith(name)) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\tint requiredLen = name.length();\n\t\t\tif (value.length() >= requiredLen + 1) {\n\t\t\t\tchar c = value.charAt(requiredLen);\n\t\t\t\tif ((c != '.') && (c != '[')) {\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// get param\n\t\t\tif (target == null) {\n\t\t\t\treturn value;\n\t\t\t}\n\t\t\treturn target + value.substring(name.length());\n\t\t}", "Match createMatch();", "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 }", "String getName( String name );", "Road findByName(String toFind, ArrayList<Road> list)\n\t{\n\t\tRoad tmp;\n\t\tIterator<Road> it = list.iterator();\n\t\twhile(it.hasNext())\n\t\t{\n\t\t\ttmp = it.next();\n\t\t\tif(tmp.getName().equals(toFind))\n\t\t\t{\n\t\t\t\treturn tmp;\n\t\t\t}\n\t\t}\n\t\treturn null;\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}", "private File callNext() {\r\n \r\n while(fileIterator.hasNext()) {\r\n File temp = ((File) fileIterator.next());\r\n if(temp.getName().contains(searchPattern)) {\r\n \r\n return temp;\r\n }\r\n }\r\n return null;\r\n \r\n }", "public java.lang.String getFirstName();", "public Team findTeamFromName(String name) {\r\n Iterator<Team> itr = this.getTeamTreeFromMatchTree().iterator();\r\n Team team;\r\n while (itr.hasNext()){\r\n team = itr.next();\r\n if (team.getName().equals(name)){\r\n return team;\r\n }\r\n }\r\n return null;\r\n }", "@Override\n\tpublic java.lang.String getLastName() {\n\t\treturn _candidate.getLastName();\n\t}", "@AutoEscape\n\tpublic String getFirst_name();", "java.lang.String getGroup();", "java.lang.String getSurname();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();" ]
[ "0.6655954", "0.6358753", "0.635299", "0.62148815", "0.6159864", "0.5926294", "0.5869741", "0.58212006", "0.58196294", "0.580085", "0.5778132", "0.5741002", "0.5707486", "0.5689979", "0.56846225", "0.56846225", "0.5684353", "0.5678726", "0.56260043", "0.5621327", "0.5610945", "0.5602751", "0.55970216", "0.5591395", "0.5582681", "0.5548544", "0.55450004", "0.55164564", "0.5509056", "0.5499424", "0.54907966", "0.5475728", "0.54741955", "0.54710287", "0.5438088", "0.5427377", "0.5386408", "0.5386364", "0.53855884", "0.53658795", "0.5365408", "0.5365408", "0.53404474", "0.53398824", "0.5337574", "0.5332872", "0.533261", "0.5325294", "0.5298643", "0.529239", "0.52912855", "0.5290265", "0.52876043", "0.52811044", "0.5275071", "0.5264906", "0.5258712", "0.52584165", "0.52356577", "0.52312994", "0.52293617", "0.52164626", "0.5215625", "0.5208554", "0.5207002", "0.5205034", "0.5203364", "0.5200162", "0.5190607", "0.5184407", "0.5182066", "0.51748043", "0.51741785", "0.5168873", "0.5159168", "0.5155203", "0.51532507", "0.51480055", "0.5147706", "0.5147345", "0.51469654", "0.51462966", "0.51462966", "0.51462966", "0.5140967", "0.5138512", "0.513293", "0.51302385", "0.5121343", "0.5121061", "0.51117486", "0.51115674", "0.5106059", "0.5101215", "0.5101173", "0.50986284", "0.5096544", "0.5088239", "0.5088239", "0.5088239" ]
0.52720326
55
return the resulting name of a match or null if no match
public String getNewName(String oldName) { // test for a matching pattern Pattern p = Pattern.compile(pattern); Matcher m = p.matcher(oldName); if (m.matches()) { switch (remapType) { case ADD_PREFIX: return opStr + oldName; case ADD_SUFFIX: return oldName + opStr; case REGEX_GROUPS: String newName = oldName; for (int gidx=1; gidx<=m.groupCount(); gidx++) newName = newName.replaceFirst("%" + gidx, m.group(gidx)); return newName; } } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getMatchName() {\r\n\t\treturn mMatchName;\r\n\t}", "Match getResultMatch();", "public T getExactMatch(String arg)\n\t{\n\t\treturn null;\n\t}", "@Override\r\n\tpublic String getMatch() {\n\t\treturn match;\r\n\t}", "public Match findMatchFromTeamName(String name1, String name2){\r\n Iterator<Match> itr = this.resultsTree.iterator();\r\n Match m;\r\n while (itr.hasNext()) {\r\n m = itr.next();\r\n if (m.getTeam1().getName().equals(name1) \r\n && m.getTeam2().getName().equals(name2)){\r\n return m;\r\n }\r\n }\r\n return null;\r\n }", "@Nullable\n String getMatch() {\n if (getAnchorType() == STRING_LITERAL || getAnchorType() == CHAR_LITERAL) {\n // Remove quotes inserted by parboiled for completion suggestions\n String fullToken = _anchor.getLabel();\n if (fullToken.length() >= 2) { // remove surrounding quotes\n fullToken = fullToken.substring(1, fullToken.length() - 1);\n }\n return fullToken;\n }\n return null;\n }", "Match getCompleteMatch();", "java.lang.String getCandidate();", "private String resolveName()\n {\n\n String forwardName = null;\n\n // trigger\n final EventFacade trigger = this.getTrigger();\n\n if (trigger != null)\n {\n\n forwardName = trigger.getName();\n\n }\n\n // name\n if (forwardName == null)\n {\n\n forwardName = this.getName();\n\n }\n\n // target\n if (forwardName == null)\n {\n\n forwardName = this.getTarget().getName();\n\n }\n\n // else\n if (forwardName == null)\n {\n\n forwardName = \"unknown\";\n\n }\n\n // return\n return forwardName;\n\n }", "public String nextFileName() {\n\n\t\t// Get the next file from the search\n\n\t\ttry {\n\t\t\tString fileName = null;\n\t\t\twhile (m_rs.next()) {\n\t\t\t\tfileName = m_rs.getString(\"name\");\n\t\t\t\tif (m_filter == null || m_filter.matchesPattern(fileName) == true)\n\t\t\t\t\treturn fileName;\n\t\t\t}\n\t\t} catch (SQLException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "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 }", "Optional<String> getOName();", "private Macrodef getMatchingMacrodef(Element targetElement)\n {\n String targetName = targetElement.getAttribute(\"name\").getValue();\n\n for (Macrodef macrodef : localMacrodefs)\n {\n String label = macrodef.getName();\n\n if (label.equals(targetName))\n {\n return macrodef;\n }\n }\n\n return null;\n }", "public String getBestMatch(String stem) {\n if (stem == null || stem.length() == 0)\n return null;\n Trie root = find(stem);\n if (root == null)\n return null;\n return root.findBest().item;\n }", "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 FieldInfBase getResultField()\n {\n return getEntity().getFields()\n .stream()\n .filter(f -> f.getName().equalsIgnoreCase(result))\n .findAny().orElse(null);\n }", "Optional<String> getFirstname();", "private String getName(Name node) {\n\t\tif (node.isQualifiedName()) {\n\t\t\tQualifiedName name = (QualifiedName) node;\n\t\t\treturn getName(name.getQualifier());\n\t\t}\n\t\t//if it's a simple name\n\t\telse if (node.isSimpleName()) {\n\t\t\treturn node.toString();\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "public static LinkedList<Actor> nameSearch(String name) {\n //sets name to lower case\n String hname = name.toLowerCase();\n //hashes the lower cased name\n int hash = Math.abs(hname.hashCode()) % ActorList.nameHashlist.length;\n //finds the location of the linked list\n LinkedList<Actor> location = ActorList.nameHashlist[hash];\n //sets the head to the head of the linked list\n LinkedList.DataLink head = location.header;\n\n\n while (head.nextDataLink != null) {\n //runs until next data link is null and gets each Actor\n Actor actor = (Actor) head.nextDataLink.data;\n //checks the name of the actor to inputted name\n if (actor.getName().toLowerCase().equals(hname)) {\n //if it's the same it returns the actor\n return location;\n //or moves to next link\n } else {\n head = head.nextDataLink;\n }\n }\n //returns null if the list does not match input\n return null;\n\n\n }", "String getCardLastName(String bookingRef);", "public String getMatched() {\r\n\t\treturn matched;\r\n\t}", "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}", "public Student getStudent(String match);", "private Target getMatchingTarget(Element targetElement)\n {\n String targetName = targetElement.getAttribute(\"name\").getValue();\n\n for (Target target : targets)\n {\n String label = target.getName();\n\n if (label.equals(targetName))\n {\n return target;\n }\n }\n\n return null;\n }", "public String matchedPropertyName(final String value) {\n\t\t\t// match\n\t\t\tif (!value.startsWith(name)) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\tint requiredLen = name.length();\n\t\t\tif (value.length() >= requiredLen + 1) {\n\t\t\t\tchar c = value.charAt(requiredLen);\n\t\t\t\tif ((c != '.') && (c != '[')) {\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// get param\n\t\t\tif (target == null) {\n\t\t\t\treturn value;\n\t\t\t}\n\t\t\treturn target + value.substring(name.length());\n\t\t}", "Match getTeam1LooserOfMatch();", "@Override\n public Match getMatch() {\n return match;\n }", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "public MatchResult getResult() {\n return result;\n }", "String getPreferredName();", "public String getMatchType() {\n return getStringProperty(\"MatchType\");\n }", "java.lang.String getGameName();", "java.lang.String getGameName();", "public String bestMatch(String prefix) {\n\t\tif(prefix != null){\n\t\t\tfor(int i = 0; i < data.getRawList().size();i++){\n\t\t\t\tif(data.getRawList().get(i).getWord().startsWith(prefix)){\n\t\t\t\t\treturn data.getRawList().get(i).getWord();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public Alphabet getShiftableSymbolName() {\n\t\tif (0 <= marker && marker < getRhs().length) {\n\t\t\treturn getRhs()[marker];\n\t\t}\n\t\treturn null;\n\t}", "public Name getName(String arg0) {\n\t\treturn null;\n\t}", "Road findByName(String toFind, ArrayList<Road> list)\n\t{\n\t\tRoad tmp;\n\t\tIterator<Road> it = list.iterator();\n\t\twhile(it.hasNext())\n\t\t{\n\t\t\ttmp = it.next();\n\t\t\tif(tmp.getName().equals(toFind))\n\t\t\t{\n\t\t\t\treturn tmp;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public String name() {\n return (parts.length > 0) ? parts[parts.length - 1] : null;\n }", "@Override\r\n public Match find(Match M) {\n return null;\r\n }", "public Team findTeamFromName(String name) {\r\n Iterator<Team> itr = this.getTeamTreeFromMatchTree().iterator();\r\n Team team;\r\n while (itr.hasNext()){\r\n team = itr.next();\r\n if (team.getName().equals(name)){\r\n return team;\r\n }\r\n }\r\n return null;\r\n }", "@Nullable\n public static OutputFormat find(String name) {\n String normalized = name.trim()\n .toUpperCase().replaceAll(\"-\", \"_\");\n try {\n return OutputFormat.valueOf(normalized);\n } catch (IllegalArgumentException ex) {\n return null;\n }\n }", "public String getString(String name)\r\n {\r\n try {\r\n return lookup.get(name);\r\n } catch(Exception e) {}\r\n \r\n return null;\r\n }", "String getName( String name );", "public org.hl7.fhir.String getName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.String target = null;\n target = (org.hl7.fhir.String)get_store().find_element_user(NAME$8, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "private RealPlayer findRegisteredMatch(String nickname) {\n\n for(RealPlayer realPlayer : gameManager.getLobbyManager().getRealPlayerList()) {\n if (realPlayer.getName().equals(nickname)) {\n return realPlayer;\n }\n }\n return null;\n }", "private Node getNode(String name) {\n for(Iterator<Node> i = nodes.iterator(); i.hasNext();) {\n Node n = i.next();\n if(n.getName().equalsIgnoreCase(name)){\n return n;\n };\n }\n return null;\n }", "public Optional<Term> getMatchingTerm(Term nextTerm) {\n\t\treturn Optional.ofNullable(terms.get(nextTerm.tag));\n\t}", "private NamedEntity findEntityMatch(int index, List<Token> tokens) {\n\t\tif(firstTokenToNamedEntityListMap.get(tokens.get(index)) == null) {\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tNamedEntity longestMatch = null;\n\t\tfor(NamedEntity e : firstTokenToNamedEntityListMap.get(tokens.get(index))) {\n\t\t\tif(isMatch(index, tokens, e) && (longestMatch == null || longestMatch.getTokens().size() < e.getTokens().size())) {\n\t\t\t\tlongestMatch = e;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn longestMatch;\n\t}", "public String returnPerson(String person)\n\t{\n\t\tfor(int i = 0; i < peopleList.size(); i++)\n\t\t{\n\t\t\t// getSurname is a method defined in the Person class and return a persons last name\n\t\t\t// Compares the last name you typed in with the last name of each person in the peopleList list\n\t\t\t// if the last names are equal then return the person with the appropriate toString method\n\t\t\tif(person.equalsIgnoreCase(peopleList.get(i).getSurname())) \n\t\t\t{\n\t\t\t\treturn(peopleList.get(i).toString());\n\t\t\t}\n\t\t}\n\t\t// If the person looked for is not in the \"peopleList\" list; return the string \"notFound\" that is defined above\n\t\treturn notFound;\n\t}", "private static String bestMatch(String s,ArrayList<Token>list) {\n\t\tfor(int i = 0; i<list.size();i++){\n\t\t\tif(list.get(i).value.equals(s)){\n\t\t\t\treturn s;\n\t\t\t}\n\t\t}\n\t\treturn \"\";\n\t}" ]
[ "0.64990324", "0.6495769", "0.6449565", "0.6363122", "0.63402575", "0.6274079", "0.597937", "0.5957588", "0.5875134", "0.585493", "0.5813191", "0.57118523", "0.56984705", "0.5692181", "0.5637013", "0.56079155", "0.5595266", "0.5576943", "0.5565619", "0.55562216", "0.55468667", "0.5540219", "0.5512892", "0.5463443", "0.5413547", "0.5397163", "0.5386397", "0.5377679", "0.5377679", "0.5377679", "0.5377679", "0.5377679", "0.5377679", "0.5377679", "0.5377679", "0.5377679", "0.5377679", "0.5377679", "0.5377679", "0.5377679", "0.5377679", "0.5377679", "0.5377679", "0.5377679", "0.5377679", "0.5377679", "0.5377679", "0.5377679", "0.5377679", "0.5377679", "0.5377679", "0.5377679", "0.5377679", "0.5377679", "0.5377679", "0.5377679", "0.5377679", "0.5377679", "0.5377679", "0.5377679", "0.5377679", "0.5377679", "0.5377679", "0.5377679", "0.5377679", "0.5377679", "0.5377679", "0.5377679", "0.5377679", "0.5377679", "0.5377679", "0.5377679", "0.5377679", "0.5377679", "0.5377679", "0.5377679", "0.5377679", "0.5377679", "0.5377679", "0.53773654", "0.5367436", "0.5363636", "0.53602535", "0.53602535", "0.5357856", "0.533869", "0.5326613", "0.5315464", "0.53095716", "0.5296803", "0.5294731", "0.52920073", "0.52786833", "0.5277092", "0.5257625", "0.5255992", "0.52544266", "0.5253955", "0.52518135", "0.5248996", "0.5248469" ]
0.0
-1
Construct the texture provider.
public ImageryLayerImageProvider(ImageryFileSource layerConfig, Toolbox toolbox) { myLayerName = layerConfig.getName(); myLayerKey = layerConfig.generateTypeKey(); myToolbox = toolbox; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setupTexture() {\n GLES20.glActiveTexture(GLES20.GL_TEXTURE0);\n GLES20.glGenTextures(1, textures, 0);\n checkGlError(\"Texture generate\");\n\n GLES20.glBindTexture(GLES11Ext.GL_TEXTURE_EXTERNAL_OES, textures[0]);\n checkGlError(\"Texture bind\");\n\n videoTexture = new SurfaceTexture(textures[0]);\n videoTexture.setOnFrameAvailableListener(this);\n }", "public Texture() {\n }", "public SurfaceTextureManager() {\n mTextureRender = new STextureRender();\n mTextureRender.surfaceCreated();\n\n mSurfaceTexture = new SurfaceTexture(mTextureRender.getTextureId());\n\n // This doesn't work if this object is created on the thread that CTS started for\n // these test cases.\n //\n // The CTS-created thread has a Looper, and the SurfaceTexture constructor will\n // create a Handler that uses it. The \"frame available\" message is delivered\n // there, but since we're not a Looper-based thread we'll never see it. For\n // this to do anything useful, OutputSurface must be created on a thread without\n // a Looper, so that SurfaceTexture uses the main application Looper instead.\n //\n // Java language note: passing \"this\" out of a constructor is generally unwise,\n // but we should be able to get away with it here.\n mSurfaceTexture.setOnFrameAvailableListener(this);\n }", "public Texture createTexture(final TextureManager textureManager, final String... uris) {\n if (mTexture == null) {\n mTexture = textureManager.createDynamicTexture(new TextureManager.TextureRunnable() {\n\n @Override\n public void run(final Texture texture) {\n final Bitmap bitmap = createBitmap(uris);\n if (bitmap != null) {\n texture.load(bitmap, bitmap.getWidth(), bitmap.getHeight(), 0);\n bitmap.recycle();\n }\n\n // apply texture to atlas\n mAtlas.getMasterFrameSet().setTexture(texture);\n }\n });\n\n mTexture.reload();\n // mTexture.setFilters(GL10.GL_LINEAR, GL10.GL_LINEAR); // better output\n }\n\n return mTexture;\n }", "private TextureLoader() {\n }", "protected Texture initializeTexture(DrawContext dc)\n {\n if (this.sourceTexture != null && dc.getTextureCache().get(sourceTexture.getImageSource()) == null)\n {\n // Limit FBO size to the max OGL size or 4k, whichever is smaller\n int maxSize = Math.min(dc.getGLRuntimeCapabilities().getMaxTextureSize(), 4096);\n\n sourceTexture.bind(dc); // bind loads the image and sets the width and height\n if (sourceTexture.getWidth(dc) != 0 && sourceTexture.getHeight(dc) != 0)\n {\n this.width = Math.min(maxSize, sourceTexture.getWidth(dc));\n this.height = Math.min(maxSize, sourceTexture.getHeight(dc));\n }\n }\n\n GL gl = GLContext.getCurrent().getGL();\n\n int[] fbo = new int[1];\n gl.glGenFramebuffersEXT(1, fbo, 0);\n gl.glBindFramebufferEXT(GL.GL_FRAMEBUFFER_EXT, fbo[0]);\n\n TextureData td = new TextureData(GL.GL_RGBA, this.width, this.height, 0, GL.GL_RGBA, GL.GL_UNSIGNED_BYTE,\n false, false, true, BufferUtil.newByteBuffer(this.width * this.height * 4), null);\n Texture t = TextureIO.newTexture(td);\n t.bind();\n\n gl.glTexParameteri(GL.GL_TEXTURE_2D, GL.GL_TEXTURE_MIN_FILTER, GL.GL_LINEAR);\n gl.glTexParameteri(GL.GL_TEXTURE_2D, GL.GL_TEXTURE_MAG_FILTER, GL.GL_LINEAR);\n gl.glTexParameteri(GL.GL_TEXTURE_2D, GL.GL_TEXTURE_WRAP_S, GL.GL_CLAMP_TO_EDGE);\n gl.glTexParameteri(GL.GL_TEXTURE_2D, GL.GL_TEXTURE_WRAP_T, GL.GL_CLAMP_TO_EDGE);\n\n gl.glFramebufferTexture2DEXT(GL.GL_FRAMEBUFFER_EXT, GL.GL_COLOR_ATTACHMENT0_EXT, GL.GL_TEXTURE_2D,\n t.getTextureObject(), 0);\n\n int status = gl.glCheckFramebufferStatusEXT(GL.GL_FRAMEBUFFER_EXT);\n if (status == GL.GL_FRAMEBUFFER_COMPLETE_EXT)\n {\n this.generateTexture(dc, this.width, this.height);\n gl.glBindFramebufferEXT(GL.GL_FRAMEBUFFER_EXT, 0);\n gl.glDeleteFramebuffersEXT(1, fbo, 0);\n }\n else\n {\n throw new IllegalStateException(\"Frame Buffer Oject not created.\");\n }\n\n dc.getTextureCache().put(this, t);\n\n return t;\n }", "@Override\n public void loadTexture() {\n\n }", "public Texture createTexture(int width, int height, int filter) throws IOException {\n/* 372 */ ImageData ds = new EmptyImageData(width, height);\n/* */ \n/* 374 */ return getTexture(ds, filter);\n/* */ }", "void createSurface(SurfaceTexture surfaceTexture);", "public Texture(String path)\n {\n texture = load(path);\n }", "public ModelTexture(int textureID) {\n this.textureID = textureID;\n }", "@SuppressWarnings(\"unchecked\")\n protected AbstractTextureManager() {\n lastAtlasIndex = new ArrayList<Integer>();\n expectedAtlasCount = new ArrayList<Integer>();\n rootDirectories = new ArrayList<String>();\n textures = new HashMap<String, Texture>();\n }", "public Texture build() {\n FrameBuffer buffer = new FrameBuffer(Format.RGB565, maxWidth, maxHeight, false);\n buffer.begin();\n for (TextureRegion texture : textures) {\n \t// TODO Créer la texture dynamiquement\n }\n buffer.end();\n Texture result = buffer.getColorBufferTexture();\n buffer.dispose();\n return result;\n }", "public static void init() {\n // init quad VAO\n vao = glGenVertexArrays();\n glBindVertexArray(vao);\n int positionVbo = glGenBuffers();\n FloatBuffer fb = BufferUtils.createFloatBuffer(2 * 4);\n fb.put(0.0f).put(0.0f);\n fb.put(1.0f).put(0.0f);\n fb.put(1.0f).put(1.0f);\n fb.put(0.0f).put(1.0f);\n fb.flip();\n glBindBuffer(GL_ARRAY_BUFFER, positionVbo);\n glBufferData(GL_ARRAY_BUFFER, fb, GL_STATIC_DRAW);\n glVertexAttribPointer(Main.shader.inPositionLoc, 2, GL_FLOAT, false, 0, 0L);\n glEnableVertexAttribArray(Main.shader.inPositionLoc);\n glBindBuffer(GL_ARRAY_BUFFER, 0);\n glBindVertexArray(0);\n \n // init texture\n IntBuffer width = BufferUtils.createIntBuffer(1);\n IntBuffer height = BufferUtils.createIntBuffer(1);\n IntBuffer components = BufferUtils.createIntBuffer(1);\n byte[] dataArr = Main.loadResource(\"resources/font DF.png\");\n ByteBuffer data = BufferUtils.createByteBuffer(dataArr.length);\n data.put(dataArr).rewind();\n data = Objects.requireNonNull(stbi_load_from_memory(data, width, height, components, 1));\n int imgWidth = width.get();\n int imgHeight = height.get();\n charWidth = imgWidth / 16;\n charHeight = imgHeight / 16;\n \n texture = glGenTextures();\n glBindTexture(GL_TEXTURE_2D, texture);\n glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);\n glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);\n glTexImage2D(GL_TEXTURE_2D, 0, GL_RED, imgWidth, imgHeight, 0, GL_RED, GL_UNSIGNED_BYTE, data);\n stbi_image_free(data);\n \n // set texScale uniform\n glUniform2f(Main.shader.texScaleLoc, 1/16f, 1/16f);\n }", "private TextureImpl getTexture(InputStream in, String resourceName, int target, int magFilter, int minFilter, boolean flipped, int[] transparent) throws IOException {\n/* 291 */ LoadableImageData imageData = ImageDataFactory.getImageDataFor(resourceName);\n/* 292 */ ByteBuffer textureBuffer = imageData.loadImage(new BufferedInputStream(in), flipped, transparent);\n/* */ \n/* 294 */ int textureID = createTextureID();\n/* 295 */ TextureImpl texture = new TextureImpl(resourceName, target, textureID);\n/* */ \n/* 297 */ GL.glBindTexture(target, textureID);\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 306 */ int width = imageData.getWidth();\n/* 307 */ int height = imageData.getHeight();\n/* 308 */ boolean hasAlpha = (imageData.getDepth() == 32);\n/* */ \n/* 310 */ texture.setTextureWidth(imageData.getTexWidth());\n/* 311 */ texture.setTextureHeight(imageData.getTexHeight());\n/* */ \n/* 313 */ int texWidth = texture.getTextureWidth();\n/* 314 */ int texHeight = texture.getTextureHeight();\n/* */ \n/* 316 */ IntBuffer temp = BufferUtils.createIntBuffer(16);\n/* 317 */ GL.glGetInteger(3379, temp);\n/* 318 */ int max = temp.get(0);\n/* 319 */ if (texWidth > max || texHeight > max) {\n/* 320 */ throw new IOException(\"Attempt to allocate a texture to big for the current hardware\");\n/* */ }\n/* */ \n/* 323 */ int srcPixelFormat = hasAlpha ? 6408 : 6407;\n/* 324 */ int componentCount = hasAlpha ? 4 : 3;\n/* */ \n/* 326 */ texture.setWidth(width);\n/* 327 */ texture.setHeight(height);\n/* 328 */ texture.setAlpha(hasAlpha);\n/* */ \n/* 330 */ if (this.holdTextureData) {\n/* 331 */ texture.setTextureData(srcPixelFormat, componentCount, minFilter, magFilter, textureBuffer);\n/* */ }\n/* */ \n/* 334 */ GL.glTexParameteri(target, 10241, minFilter);\n/* 335 */ GL.glTexParameteri(target, 10240, magFilter);\n/* */ \n/* */ \n/* 338 */ GL.glTexImage2D(target, \n/* 339 */ 0, \n/* 340 */ this.dstPixelFormat, \n/* 341 */ get2Fold(width), \n/* 342 */ get2Fold(height), \n/* 343 */ 0, \n/* 344 */ srcPixelFormat, \n/* 345 */ 5121, \n/* 346 */ textureBuffer);\n/* */ \n/* 348 */ return texture;\n/* */ }", "public abstract TextureObject getTexture();", "private static Texture initTexture(String path, int minFilter, int magFilter, boolean wrapU, boolean wrapV){\n\t\tTexture texture = new Texture(Game.resources.getFileHandle(path));\n\t\t\n\t\tTextureFilter min = TextureFilter.Linear, mag = TextureFilter.Linear;\n\t\tif(minFilter == GL20.GL_LINEAR)\n\t\t\tmin = TextureFilter.Linear;\n\t\telse if(minFilter == GL20.GL_NEAREST)\n\t\t\tmin = TextureFilter.Nearest;\n\t\t\n\t\tif(magFilter == GL20.GL_LINEAR)\n\t\t\tmag = TextureFilter.Linear;\n\t\telse if(magFilter == GL20.GL_NEAREST)\n\t\t\tmag = TextureFilter.Nearest;\n\t\ttexture.setFilter(min, mag);\n\t\t\n\t\t\n\t\tTextureWrap \n\t\t\tuWrap = wrapU ? TextureWrap.Repeat : TextureWrap.ClampToEdge,\n\t\t\tvWrap = wrapV ? TextureWrap.Repeat : TextureWrap.ClampToEdge;\n\t\ttexture.setWrap(uWrap,vWrap);\n\t\t\n\t\treturn texture;\n\t}", "public ModelTexture(int id) {\r\n\t\tthis.textureID = id;\r\n\t}", "public TextureParameter(TextureParameter source) {\n setValues(source);\n }", "public void create() {\r\n\t\t\r\n\t\tTexture.setEnforcePotImages(false);\r\n\t\t\r\n\t\tGdx.input.setInputProcessor(new MyInputProcessor());\r\n\t\t\r\n\t\t\r\n\t\ttextures = Tex.getTex();\r\n\t\t// load images\r\n\t\ttextures.loadTexture(\"res/images/guyDown.png\", \"guyDown\");\r\n\t\ttextures.loadTexture(\"res/images/guyUp.png\", \"guyUp\");\r\n\t\ttextures.loadTexture(\"res/images/guy2Down.png\", \"guyDown2\");\r\n\t\ttextures.loadTexture(\"res/images/guy2Up.png\", \"guyUp2\");\r\n\t\ttextures.loadTexture(\"res/images/enemyDown.png\", \"enemyDown\");\r\n\t\ttextures.loadTexture(\"res/images/enemyUp.png\", \"enemyUp\");\r\n\t\t\r\n\t\ttextures.loadTexture(\"res/images/skyline.png\", \"skyline\");\r\n\t\ttextures.loadTexture(\"res/images/skyline2.jpg\", \"skyline2\");\r\n\t\ttextures.loadTexture(\"res/images/skyline3.png\", \"skyline3\");\t\t\r\n\t\ttextures.loadTexture(\"res/images/circuit board.jpg\", \"fundo2\");\r\n\t\ttextures.loadTexture(\"res/images/grav3.jpg\", \"menu\");\r\n\t\t\r\n\t\ttextures.loadTexture(\"res/images/singleplayer.png\", \"single\");\r\n\t\ttextures.loadTexture(\"res/images/multiplayer.png\", \"multi\");\r\n\t\ttextures.loadTexture(\"res/images/exit.png\", \"exit\");\r\n\t\ttextures.loadTexture(\"res/images/level1B.png\", \"B1\");\r\n\t\ttextures.loadTexture(\"res/images/level2B.png\", \"B2\");\r\n\t\ttextures.loadTexture(\"res/images/level3B.png\", \"B3\");\r\n\t\ttextures.loadTexture(\"res/images/mainMenuB.png\", \"mainB\");\r\n\t\ttextures.loadTexture(\"res/images/win1.png\", \"win1\");\r\n\t\ttextures.loadTexture(\"res/images/win2.png\", \"win2\");\r\n\t\ttextures.loadTexture(\"res/images/tryagain.png\", \"retry\");\r\n\t\ttextures.loadTexture(\"res/images/easy.png\", \"easy\");\r\n\t\ttextures.loadTexture(\"res/images/medium.png\", \"medium\");\r\n\t\ttextures.loadTexture(\"res/images/hard.png\", \"hard\");\r\n\t\ttextures.loadTexture(\"res/images/difficulty.png\", \"difficulty\");\r\n\t\ttextures.loadTexture(\"res/images/thunder2.png\", \"thunder\");\r\n\t\r\n\t\ttextures.loadTexture(\"res/images/levelcleared.png\", \"cleared\");\r\n\t\ttextures.loadTexture(\"res/images/you lost.png\", \"lost\");\r\n\t\ttextures.loadTexture(\"res/images/playerpress.png\", \"playerp\");\r\n\t\ttextures.loadTexture(\"res/images/player1press.png\", \"player1p\");\r\n\t\ttextures.loadTexture(\"res/images/player2press.png\", \"player2p\");\r\n\t\ttextures.loadTexture(\"res/images/selectthelevel.png\", \"select\");\r\n\t\t\r\n\t\t\r\n\t\tsb = new SpriteBatch();\r\n\t\tcam = new OrthographicCamera();\r\n\t\tcam.setToOrtho(false, V_WIDTH, V_HEIGHT);\r\n\t\thudCam = new OrthographicCamera();\r\n\t\thudCam.setToOrtho(false, V_WIDTH, V_HEIGHT);\r\n\t\tgsm = new GameStateManager(this);\r\n\t\t\t\t\r\n\t}", "public void createTexture(int textureSize) {\n\t\tsuper.createTexture(textureSize);\n\n\t\tBufferedImage img = new BufferedImage(textureSize, textureSize, BufferedImage.TYPE_INT_RGB);\n\t\tBufferedImage splatTexture;\n\t\tBufferedImage splatMap;\n\n\t\tfloat alpha;\n\t\tint scaledX;\n\t\tint scaledY;\n\n\t\tint rgb;\n\t\tint red;\n\t\tint green;\n\t\tint blue;\n\n\t\tint splatSize = splatTextures.size();\n\n\t\timg.getGraphics().drawImage(proceduralTexture.getImage(), 0, 0, null);\n\n\t\tfor (int x = 0; x < textureSize; x++) {\n\t\t\tfor (int y = 0; y < textureSize; y++) {\n\t\t\t\trgb = img.getRGB(x, y);\n\t\t\t\tred = (rgb & 0x00FF0000) >> 16;\n\t\t\t\tgreen = (rgb & 0x0000FF00) >> 8;\n\t\t\t\tblue = (rgb & 0x000000FF);\n\n\t\t\t\tfor (int i = 0; i < splatSize; i++) {\n\t\t\t\t\tsplatMap = splatMaps.get(i);\n\t\t\t\t\tsplatTexture = splatTextures.get(i);\n\n\t\t\t\t\t// Retrieve the amount of the color to use for this texture.\n\t\t\t\t\tscaledX = (int) (x * (splatMap.getWidth() / (float) textureSize));\n\t\t\t\t\tscaledY = (int) (splatMap.getHeight() - ((y * (splatMap.getHeight() / (float) textureSize)) + 1));\n\n\t\t\t\t\talpha = ((splatMap.getRGB(scaledX, scaledY) >> 24) & 0x000000FF) / 255.0f;\n\n\t\t\t\t\t// We may have to tile the texture if the terrain is larger\n\t\t\t\t\t// than the texture.\n\t\t\t\t\tscaledX = x % splatTexture.getWidth();\n\t\t\t\t\tscaledY = y % splatTexture.getHeight();\n\n\t\t\t\t\t// perform alpha composite\n\t\t\t\t\tif (alpha > 0) {\n\t\t\t\t\t\tred = (int) ((red * (1.0f - alpha)) + (((splatTexture.getRGB(scaledX, scaledY) & 0x00FF0000) >> 16) * alpha));\n\t\t\t\t\t\tgreen = (int) ((green * (1.0f - alpha)) + (((splatTexture.getRGB(scaledX, scaledY) & 0x0000FF00) >> 8) * alpha));\n\t\t\t\t\t\tblue = (int) ((blue * (1.0f - alpha)) + (((splatTexture.getRGB(scaledX, scaledY) & 0x000000FF)) * alpha));\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// set the color for the final texture.\n\t\t\t\trgb = red << 16 | green << 8 | blue;\n\t\t\t\timg.setRGB(x, y, rgb);\n\n\t\t\t\tred = 0;\n\t\t\t\tgreen = 0;\n\t\t\t\tblue = 0;\n\t\t\t}\n\t\t}\n\n\t\t// create the new image from the data.\n\t\tproceduralTexture = new ImageIcon(img);\n\t\tproceduralTexture.setDescription(\"TerrainTexture\");\n\n\t\tlogger.fine(\"Created splat texture successfully.\");\n\t}", "public Texture createTexture(final GLState glState, final String... uris) {\n return createTexture(glState.getTextureManager(), uris);\n }", "public Texture loadTexture(String file, Format format, boolean useMipMap);", "public Texture createTexture(int width, int height) throws IOException {\n/* 360 */ return createTexture(width, height, 9728);\n/* */ }", "public TextureDisplay() {\n initComponents();\n\n setPreferredSize(new Dimension(size, size));\n\n backImg = createBackImg();\n }", "private void initTextures() {\n\n\t\ttextureManager.loadTexture(\"PNG\", \"menu_bg\", \"res/menu_bg.png\");\n\t\ttextureManager.loadTexture(\"PNG\", \"mountain_bg\", \"res/mountain_bg.png\");\n\t\ttextureManager.loadTexture(\"PNG\", \"ball\", \"res/ball_sm.png\");\n\t\ttextureManager.loadTexture(\"PNG\", \"inner_bg1\", \"res/inner_bg1.png\");\r\n\t\ttextureManager.loadSheet(\"stand_still\", \"res/stand_still.png\", 32, 64);\n\t\ttextureManager.loadSheet(\"testAnim\", \"res/testAnim.png\", 32, 64);\n\t\ttextureManager.loadSheet(\"tileSet\", \"res/tileset_small.png\", 32, 32);\n\t\ttextureManager.loadSheet(\"walking\", \"res/walking.png\", 32, 64);\r\n\t\ttextureManager.loadSheet(\"jumping\", \"res/jumping.png\", 32, 64);\n\t\ttextureManager.loadSheet(\"slime_still\", \"res/slime_still_small.png\", 32, 32);\n\t}", "FixedTextureCache()\n {\n textureMap = new HashMap();\n componentMap = new HashMap();\n }", "private void createTexture(String file) {\n TextureRegion region = new TextureRegion(get(file, Texture.class));\n region.getTexture().setFilter(Texture.TextureFilter.Linear, Texture.TextureFilter.Linear);\n region.getTexture().setWrap(Texture.TextureWrap.Repeat, Texture.TextureWrap.Repeat);\n processedTextureMap.put(file, region);\n }", "public Image(Renderer renderer, TextureReference texture) {\r\n\t\tsuper();\r\n\t\tthis.renderer = renderer;\r\n\t\tthis.texture = texture;\r\n\t\tthis.textureX = 0;\r\n\t\tthis.textureY = 0;\r\n\t\tthis.textureWidth = texture.getLibraryWidth();\r\n\t\tthis.textureHeight = texture.getLibraryHeight();\r\n\t\tthis.width = texture.getWidth();\r\n\t\tthis.height = texture.getHeight();\r\n\t}", "public static Texture getTexture(String resourceName, BufferedImage resourceimage, int target, int dstPixelFormat, int minFilter, int magFilter) throws IOException {\n/* 92 */ ImageIOImageData data = new ImageIOImageData(); int srcPixelFormat = 0;\n/* */ \n/* */ \n/* 95 */ int textureID = InternalTextureLoader.createTextureID();\n/* 96 */ TextureImpl texture = new TextureImpl(resourceName, target, textureID);\n/* */ \n/* */ \n/* 99 */ Renderer.get().glEnable(3553);\n/* */ \n/* */ \n/* 102 */ Renderer.get().glBindTexture(target, textureID);\n/* */ \n/* 104 */ BufferedImage bufferedImage = resourceimage;\n/* 105 */ texture.setWidth(bufferedImage.getWidth());\n/* 106 */ texture.setHeight(bufferedImage.getHeight());\n/* */ \n/* 108 */ if (bufferedImage.getColorModel().hasAlpha()) {\n/* 109 */ srcPixelFormat = 6408;\n/* */ } else {\n/* 111 */ srcPixelFormat = 6407;\n/* */ } \n/* */ \n/* */ \n/* 115 */ ByteBuffer textureBuffer = data.imageToByteBuffer(bufferedImage, false, false, null);\n/* 116 */ texture.setTextureHeight(data.getTexHeight());\n/* 117 */ texture.setTextureWidth(data.getTexWidth());\n/* 118 */ texture.setAlpha((data.getDepth() == 32));\n/* */ \n/* 120 */ if (target == 3553) {\n/* 121 */ Renderer.get().glTexParameteri(target, 10241, minFilter);\n/* 122 */ Renderer.get().glTexParameteri(target, 10240, magFilter);\n/* */ \n/* 124 */ if (Renderer.get().canTextureMirrorClamp()) {\n/* 125 */ Renderer.get().glTexParameteri(3553, 10242, 34627);\n/* 126 */ Renderer.get().glTexParameteri(3553, 10243, 34627);\n/* */ } else {\n/* 128 */ Renderer.get().glTexParameteri(3553, 10242, 10496);\n/* 129 */ Renderer.get().glTexParameteri(3553, 10243, 10496);\n/* */ } \n/* */ } \n/* */ \n/* 133 */ Renderer.get().glTexImage2D(target, \n/* 134 */ 0, \n/* 135 */ dstPixelFormat, \n/* 136 */ texture.getTextureWidth(), \n/* 137 */ texture.getTextureHeight(), \n/* 138 */ 0, \n/* 139 */ srcPixelFormat, \n/* 140 */ 5121, \n/* 141 */ textureBuffer);\n/* */ \n/* 143 */ return (Texture)texture;\n/* */ }", "private void loadTextures() {\n textureIdMap.keySet().forEach((i) -> {\n //for (int i = 0; i < textureFileNames.length; i++) {\n try {\n URL textureURL;\n textureURL = getClass().getClassLoader().getResource(textureIdMap.get(i));\n if (textureURL != null) {\n BufferedImage img = ImageIO.read(textureURL);\n ImageUtil.flipImageVertically(img);\n Texture temp = AWTTextureIO.newTexture(GLProfile.getDefault(), img, true);\n temp.setTexParameteri(gl, GL2.GL_TEXTURE_WRAP_S, GL2.GL_CLAMP_TO_EDGE);\n temp.setTexParameteri(gl, GL2.GL_TEXTURE_WRAP_T, GL2.GL_CLAMP_TO_EDGE);\n textures.put(i, temp);\n }\n } catch (IOException | GLException e) {\n e.printStackTrace();\n }\n });\n textures.get(0).enable(gl);\n }", "void glBindTexture(int target, int texture);", "public Texture getTexture() {\n\t\tPixmap pixmap = null;\n\t\t\n\t\ttry {\n\t\t\tpixmap = new Pixmap(responseBytes, 0, responseBytes.length);\n\t\t} catch (Exception e) {\n\t\t\tGdx.app.error(\"WWW\", \"Cannot get texture: \" + e.getMessage());\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tfinal int originalWidth = pixmap.getWidth();\n\t\tfinal int originalHeight = pixmap.getHeight();\n\t\tint width = MathUtils.nextPowerOfTwo(pixmap.getWidth());\n\t\tint height = MathUtils.nextPowerOfTwo(pixmap.getHeight());\n\n\t\tint deltaX = (int) ((width - originalWidth) / 2f);\n\t\tint deltaY = (int) ((height - originalHeight) / 2f);\n\n\t\tfinal Pixmap potPixmap = new Pixmap(width, height, pixmap.getFormat());\n\t\tpotPixmap.drawPixmap(pixmap, deltaX, deltaY, 0, 0, pixmap.getWidth(), pixmap.getHeight());\n\t\tpixmap.dispose();\n\t\tTexture texture = new Texture(potPixmap);\n\t\tpotPixmap.dispose();\n\t\treturn texture;\n\t}", "public void backBufferIntoTexture()\r\n\t{\r\n\t\tgl.glEnable(GL_TEXTURE_2D);\r\n\t\tgl.glShadeModel(GL_FLAT);\r\n\t\tif (InternalTexture[0] == 0) {\r\n\t\t\tgl.glGenTextures(1,InternalTexture);\r\n\t\t\tSystem.out.print(\"Initializing internal texture \"+InternalTexture[0]+\":[\"+getWidth()+\",\"+getHeight()+\"]\\n\");\r\n\t\t\tgl.glBindTexture(GL_TEXTURE_2D, InternalTexture[0]);\r\n\t\t\tgl.glCopyTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, 0, 0, this.getWidth(), this.getHeight(), 0);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tgl.glBindTexture(GL_TEXTURE_2D, InternalTexture[0]);\r\n\t\t\tgl.glCopyTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, 0, 0, this.getWidth(), this.getHeight());\r\n\t\t}\r\n\t\tglut.glutReportErrors();\r\n\t}", "public Texture(String path) {\n load(path);\n }", "@Override\n\t\tprotected ResourceLocation getEntityTexture(EntityLivingBase entity) {\n\t\t\treturn texture;\n\t\t}", "SurfaceTexture mo17006a();", "@Override\r\n\tpublic void init(GL10 gl, EGLConfig config) {\n try {\r\n loadGLTextures(gl);\t\t\t\t\t\t\t\t\t\t// Jump To Texture Loading Routine ( NEW )\r\n } catch (IOException e) {\r\n \tLog.e(\"120\", \"An error occured!\");\r\n e.printStackTrace();\r\n }\r\n\r\n gl.glEnable(GL10.GL_TEXTURE_2D);\t\t\t\t\t\t\t\t\t// Enable Texture Mapping ( NEW )\r\n gl.glShadeModel(GL10.GL_SMOOTH);\t\t\t\t\t\t\t\t\t// Enable Smooth Shading\r\n gl.glClearColor(0.0f, 0.0f, 0.0f, 0.5f);\t\t\t\t\t\t// Black Background\r\n gl.glClearDepthf(1.0f);\t\t\t\t\t\t\t\t\t\t\t// Depth Buffer Setup\r\n gl.glEnable(GL10.GL_DEPTH_TEST);\t\t\t\t\t\t\t\t\t// Enables Depth Testing\r\n gl.glDepthFunc(GL10.GL_LEQUAL);\t\t\t\t\t\t\t\t\t\t// The Type Of Depth Testing To Do\r\n gl.glHint(GL10.GL_PERSPECTIVE_CORRECTION_HINT, GL10.GL_NICEST);\t\t\t// Really Nice Perspective Calculations\r\n\t}", "@Override\n\tprotected ResourceLocation getEntityTexture(Entity entity) {\n\t\treturn texture;\n\t}", "public Texture(int target, int textureID) {\n\tthis.target = target;\n\tthis.textureID = textureID;\n }", "@Override\r\n\tprotected ResourceLocation getEntityTexture(EntityAngel entity)\r\n {\r\n return ANGEL_TEXTURE;\r\n }", "public Image(Renderer renderer, TextureReference texture, float texture_x, float texture_y, float texture_w,\r\n\t\t\tfloat texture_h, float width, float height) {\r\n\t\tsuper();\r\n\t\tthis.renderer = renderer;\r\n\t\tthis.texture = texture;\r\n\t\tthis.textureX = texture_x;\r\n\t\tthis.textureY = texture_y;\r\n\t\tthis.textureWidth = texture_w;\r\n\t\tthis.textureHeight = texture_h;\r\n\t\tthis.width = width;\r\n\t\tthis.height = height;\r\n\t}", "void init(){\n if(DEBUG) Log.d(TAG, \"Creating GlHelper and Surface\");\n mGLHelper = new GLHelper();\n int mDefaultTextureID = 10001;\n SurfaceTexture st = new SurfaceTexture(mDefaultTextureID);\n st.setDefaultBufferSize(mWidth, mHeight);\n mGLHelper.init(st);\n\n textureID = mGLHelper.createOESTexture();\n sTexture = new SurfaceTexture(textureID);\n sTexture.setOnFrameAvailableListener(this);\n surface = new Surface(sTexture);\n }", "SurfaceTexture mo17015a();", "public void bind() {\n if (isTextureLoaded()) {\n glBindTexture(GL_TEXTURE_2D, texId.getId());\n } else {\n System.err.println(\"[Error] texture::bind() Binding a unloaded texture.\");\n }\n }", "public Texture getTexture(ImageData dataSource, int filter) throws IOException {\n/* 387 */ int target = 3553;\n/* */ \n/* */ \n/* 390 */ ByteBuffer textureBuffer = dataSource.getImageBufferData();\n/* */ \n/* */ \n/* 393 */ int textureID = createTextureID();\n/* 394 */ TextureImpl texture = new TextureImpl(\"generated:\" + dataSource, target, textureID);\n/* */ \n/* 396 */ int minFilter = filter;\n/* 397 */ int magFilter = filter;\n/* 398 */ boolean flipped = false;\n/* */ \n/* */ \n/* 401 */ GL.glBindTexture(target, textureID);\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 410 */ int width = dataSource.getWidth();\n/* 411 */ int height = dataSource.getHeight();\n/* 412 */ boolean hasAlpha = (dataSource.getDepth() == 32);\n/* */ \n/* 414 */ texture.setTextureWidth(dataSource.getTexWidth());\n/* 415 */ texture.setTextureHeight(dataSource.getTexHeight());\n/* */ \n/* 417 */ int texWidth = texture.getTextureWidth();\n/* 418 */ int texHeight = texture.getTextureHeight();\n/* */ \n/* 420 */ int srcPixelFormat = hasAlpha ? 6408 : 6407;\n/* 421 */ int componentCount = hasAlpha ? 4 : 3;\n/* */ \n/* 423 */ texture.setWidth(width);\n/* 424 */ texture.setHeight(height);\n/* 425 */ texture.setAlpha(hasAlpha);\n/* */ \n/* 427 */ IntBuffer temp = BufferUtils.createIntBuffer(16);\n/* 428 */ GL.glGetInteger(3379, temp);\n/* 429 */ int max = temp.get(0);\n/* 430 */ if (texWidth > max || texHeight > max) {\n/* 431 */ throw new IOException(\"Attempt to allocate a texture to big for the current hardware\");\n/* */ }\n/* */ \n/* 434 */ if (this.holdTextureData) {\n/* 435 */ texture.setTextureData(srcPixelFormat, componentCount, minFilter, magFilter, textureBuffer);\n/* */ }\n/* */ \n/* 438 */ GL.glTexParameteri(target, 10241, minFilter);\n/* 439 */ GL.glTexParameteri(target, 10240, magFilter);\n/* */ \n/* */ \n/* 442 */ GL.glTexImage2D(target, \n/* 443 */ 0, \n/* 444 */ this.dstPixelFormat, \n/* 445 */ get2Fold(width), \n/* 446 */ get2Fold(height), \n/* 447 */ 0, \n/* 448 */ srcPixelFormat, \n/* 449 */ 5121, \n/* 450 */ textureBuffer);\n/* */ \n/* 452 */ return texture;\n/* */ }", "protected final MapTexture createPlaceholderTexture() {\n return createPlaceholderTexture(16, 16);\n }", "public native void setTexturePath ( String texturePath );", "private SingletonTextureFactory(){\n\t\tRandom rand = new Random();\n\t\tfactoryID = rand.nextInt(10000); \n\t}", "public Level()\n {\n //Initialise Tile Types\n try \n {\n //Dynamically assign texture paints\n texturePaints.add(new TexturePaint(ImageIO.read(new File(\"Images/surface.jpg\")), tile));\n texturePaints.add(new TexturePaint(ImageIO.read(new File(\"Images/rover.png\")), tile));\n texturePaints.add(new TexturePaint(ImageIO.read(new File(\"Images/rock.png\")), tile));\n texturePaints.add(new TexturePaint(ImageIO.read(new File(\"Images/mineral.png\")), tile));\n texturePaints.add(new TexturePaint(ImageIO.read(new File(\"Images/target.png\")), tile));\n texturePaints.add(new TexturePaint(ImageIO.read(new File(\"Images/warning.png\")), tile));\n } catch(FileNotFoundException fnfe) {\n System.out.println(\"ERROR: Invalid texture paint, file not found\" + fnfe);\n }\n catch (IOException ioe) {\n ioe.printStackTrace();\n }\n }", "public static InternalTextureLoader get() {\n/* 40 */ return loader;\n/* */ }", "public void setUpTextures(int program, GL2 gl2) {\n\t\t// sets the parameters for texture\n\t\tgl2.glGenTextures(1, buffer);\n\t\tgl2.glActiveTexture(gl2.GL_TEXTURE0);\n\t\tgl2.glBindTexture(gl2.GL_TEXTURE_2D,\n\t\t\t\tgl2.glGetUniformLocation(program, \"abc\"));\n\t\tgl2.glTexParameteri(gl2.GL_TEXTURE_2D, gl2.GL_TEXTURE_MIN_FILTER,\n\t\t\t\tgl2.GL_LINEAR);\n\t\tgl2.glTexParameteri(gl2.GL_TEXTURE_2D, gl2.GL_TEXTURE_MAG_FILTER,\n\t\t\t\tgl2.GL_LINEAR);\n\t\tgl2.glTexImage2D(gl2.GL_TEXTURE_2D, 0, gl2.GL_RGBA,\n\t\t\t\tbufferimage.getWidth(), bufferimage.getHeight(), 0,\n\t\t\t\tgl2.GL_BGRA, gl2.GL_UNSIGNED_BYTE, buffer);\n\t}", "@Override\n\tpublic ParticleSystem<Sprite> build(Engine engine, float fontX,\n\t\t\tfloat fontY, ITextureRegion texture) {\n\t\treturn null;\n\t}", "public interface ITexturable<T extends AbstractElement> extends IElement<T> {\n /**\n * Sets the background image for an element\n */\n default T background(ResourceUrn urn) {\n get(ImageCmp.class).ifPresentOrElse(bgCmp -> {\n var texture = Assets.get(urn, Texture.class);\n if (texture.isEmpty())\n logger().warn(\"Failed to find texture {} for element {}\", urn, name());\n else\n bgCmp.setTexture(texture.get());\n }, () -> {\n var bgCmp = new ImageCmp(cast());\n var texture = Assets.get(urn, Texture.class);\n if (texture.isEmpty())\n logger().warn(\"Failed to find texture {} for element {}\", urn, name());\n else\n bgCmp.setTexture(texture.get());\n add(bgCmp);\n });\n return cast();\n }\n\n /**\n * Sets the background texture to the texture with the given name\n */\n default T background(Name name) {\n return background(new ResourceUrn(new Name(\"engine\"), new Name(\"textures\"), name));\n }\n\n}", "public void bind()\n {\n glBindTexture(GL_TEXTURE_2D, texture);\n }", "public interface TextureAtlas<T> {\n\t/**\n\t *\n\t * @param key\n\t * @return\n\t */\n\tRectangle quad(T key);\n\n\t/**\n\t *\n\t * @param <T>\n\t * @param atlas\n\t * @return\n\t */\n\tstatic <T> TextureAtlas<T> of(Map<T, Rectangle> atlas) {\n\t\treturn atlas::get;\n\t}\n\n\t/**\n\t * Loader for a texture atlas.\n\t * <p>\n\t * A texture atlas is specified as a JSON document illustrated by the following example:\n\t * <p>\n\t * <pre>\n\t * {\n\t * atlas: [\n\t * {\n\t * name: rectangle,\n\t * rect: [1, 2, 3, 4]\n\t * }\n\t * ]\n\t * }\n\t * </pre>\n\t */\n\tpublic static class Loader implements ResourceLoader<JSONObject, TextureAtlas<String>> {\n\t\t@Override\n\t\tpublic JSONObject map(InputStream in) throws IOException {\n\t\t\treturn new JSONObject(new JSONTokener(in));\n\t\t}\n\n\t\t@Override\n\t\tpublic TextureAtlas<String> load(JSONObject root) throws IOException {\n\t\t\t// Extract array of entries\n\t\t\tfinal JSONArray array = root.getJSONArray(\"atlas\");\n\n\t\t\t// Load texture atlas\n\t\t\treturn StreamSupport\n\t\t\t\t\t.stream(array.spliterator(), false)\n\t\t\t\t\t.map(JSONObject.class::cast)\n\t\t\t\t\t.map(Loader::entry)\n\t\t\t\t\t.collect(collectingAndThen(toMap(Entry::getKey, Entry::getValue), TextureAtlas::of));\n\t\t}\n\n\t\t/**\n\t\t * Loads a texture atlas entry.\n\t\t */\n\t\tprivate static Entry<String, Rectangle> entry(JSONObject entry) {\n\t\t\tfinal String name = entry.getString(\"name\").trim();\n\t\t\tfinal JSONArray array = entry.getJSONArray(\"rect\");\n\t\t\tfinal Rectangle rect = new Rectangle(\n\t\t\t\t\tarray.getInt(0),\n\t\t\t\t\tarray.getInt(1),\n\t\t\t\t\tarray.getInt(2),\n\t\t\t\t\tarray.getInt(3)\n\t\t\t);\n\t\t\treturn Map.entry(name, rect);\n\t\t}\n\t}\n}", "public PNGTexture(Path path, int filterMethod) throws IOException{\n //Read the file into a buffer\n PNGDecoder decoder = new PNGDecoder(Files.newInputStream(path.toAbsolutePath(), StandardOpenOption.READ));\n ByteBuffer buffer = ByteBuffer.allocateDirect(4 * decoder.getWidth() * decoder.getHeight());\n decoder.decode(buffer, decoder.getWidth() * 4, PNGDecoder.Format.RGBA);\n buffer.flip();\n\n //Set the data members\n width = decoder.getWidth();\n height = decoder.getHeight();\n this.path = path;\n\n //Upload the texture to the GPU\n ID = glGenTextures();\n glBindTexture(GL_TEXTURE_2D, ID);\n glPixelStorei(GL_UNPACK_ALIGNMENT, 1);\n glTexImage2D(\n GL_TEXTURE_2D,\n 0,\n GL_RGBA,\n decoder.getWidth(),\n decoder.getHeight(),\n 0,\n GL_RGBA,\n GL_UNSIGNED_BYTE,\n buffer\n );\n glGenerateMipmap(GL_TEXTURE_2D);\n glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, filterMethod);\n glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, filterMethod);\n\n //Unbind the texture\n glBindTexture(GL_TEXTURE_2D, 0);\n }", "@Override\n\tpublic void setTexture(int texID) {\n\n\t}", "private void init()\n {\n holder = getHolder();\n holder.addCallback(this);\n holder.setType(SurfaceHolder.SURFACE_TYPE_GPU);\n }", "public Texture(String filename) {\n\t\ttry {\n\t\t\tfileIn = new FileInputStream(filename);\n\t\t\tdecoder = new PNGDecoder(fileIn);\n\t\t\tbuff = ByteBuffer.allocateDirect(4*decoder.getWidth()*4*decoder.getWidth());\n\t\t\tdecoder.decode(buff, decoder.getWidth(), Format.RGBA);\n\t\t\tbuff.flip();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.out.println(\"Error occurred. Exiting...\");\n\t\t\tSystem.exit(-1);\n\t\t}\n\t\tdims = new Point2D(decoder.getWidth(), decoder.getHeight());\n\t}", "public void loadTexture(int imageNum, Texture atex)\r\n\t{\r\n\t\tgl.glEnable(GL_TEXTURE_2D);\r\n\t\tgl.glShadeModel(GL_FLAT);\r\n\t\tgl.glTexImage2D(GL_TEXTURE_2D, imageNum, 3, atex.gTexW, atex.gTexH, 0,\r\n\t\t GL_BGRA_EXT, GL_UNSIGNED_BYTE, atex.pixels);\r\n\t}", "public void initDrawable(tbdGLES10Renderer renderer){\n super.initDrawable(renderer);\n\n float[] playerVertices = {\n // X, Y, Z\n -1*(getWidth()/2.0f), -1*(getHeight()/2.0f), 0,\n (getWidth()/2.0f), -1*(getHeight()/2.0f), 0,\n -1*(getWidth()/2.0f), (getHeight()/2.0f), 0,\n (getWidth()/2.0f), -1*(getHeight()/2.0f), 0,\n (getWidth()/2.0f), (getHeight()/2.0f), 0,\n -1*(getWidth()/2.0f), (getHeight()/2.0f), 0\n };\n setVertices(playerVertices);\n\n float[] textureCoords = {\n 0.0f, 1.0f,\n 1.0f, 1.0f,\n 0.0f, 0.0f,\n 1.0f, 1.0f,\n 1.0f, 0.0f,\n 0.0f, 0.0f\n };\n setTextureCoords(textureCoords);\n }", "private void initRendering() {\n\t\tmActivity.showDebugMsg(\" initRendering\");\n\t\tGLES20.glClearColor(0.0f, 0.0f, 0.0f, Vuforia.requiresAlpha() ? 0.0f : 1.0f);\n\n\t\tfor (Texture t : mTextures) {\n\t\t\tGLES20.glGenTextures(1, t.mTextureID, 0);\n\t\t\tGLES20.glBindTexture(GLES20.GL_TEXTURE_2D, t.mTextureID[0]);\n\t\t\tGLES20.glTexParameterf(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_MIN_FILTER, GLES20.GL_LINEAR);\n\t\t\tGLES20.glTexParameterf(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_MAG_FILTER, GLES20.GL_LINEAR);\n\t\t\tGLES20.glTexImage2D(GLES20.GL_TEXTURE_2D, 0, GLES20.GL_RGBA, t.mWidth, t.mHeight, 0, GLES20.GL_RGBA,\n\t\t\t\t\tGLES20.GL_UNSIGNED_BYTE, t.mData);\n\t\t}\n\n\t\tshaderProgramID = ArUtils.createProgramFromShaderSrc(\n\t\t\t\tShaders.CUBE_MESH_VERTEX_SHADER,\n\t\t\t\tShaders.CUBE_MESH_FRAGMENT_SHADER);\n\n\t\tvertexHandle = GLES20.glGetAttribLocation(shaderProgramID,\n\t\t\t\t\"vertexPosition\");\n\t\ttextureCoordHandle = GLES20.glGetAttribLocation(shaderProgramID,\n\t\t\t\t\"vertexTexCoord\");\n\t\tmvpMatrixHandle = GLES20.glGetUniformLocation(shaderProgramID,\n\t\t\t\t\"modelViewProjectionMatrix\");\n\t\ttexSampler2DHandle = GLES20.glGetUniformLocation(shaderProgramID,\n\t\t\t\t\"texSampler2D\");\n\n\t\tif (!mModelIsLoaded) {\n\t\t\t//object = new Teapot();\n\t\t\tobject = mActivity.get3DObject();\n\t\t\tobjectScaleFloat *= object.getDefScale();\n\t\t\t//minObjectScale *= object.getDefScale();\n\t\t\t//maxObjectScale *= object.getDefScale();\n\n\t\t\tmActivity.showDebugMsg(\"Loading model Teapot\");\n\t\t\t// Hide the Loading Dialog\n\t\t\t//mActivity.loadingDialogHandler.sendEmptyMessage(LoadingDialogHandler.HIDE_DIALOG);\n\t\t}\n\n\t}", "private boolean load() {\r\n \t\r\n int[] textureIds = new int[1];\r\n GLES10.glGenTextures(1, textureIds, 0);\r\n this.textureId = textureIds[0];\r\n \r\n InputStream in = null;\r\n // try loading from assets\r\n try {\r\n \t\r\n in = FileIO.getInstance().readAsset(\"textures\" + File.separator + this.fileName);\r\n Bitmap bitmap = BitmapFactory.decodeStream(in);\r\n GLES10.glBindTexture(GLES10.GL_TEXTURE_2D, this.textureId);\r\n GLUtils.texImage2D(GLES10.GL_TEXTURE_2D, 0, bitmap, 0);\r\n this.setFilters(GLES10.GL_NEAREST, GLES10.GL_NEAREST); \r\n GLES10.glBindTexture(GLES10.GL_TEXTURE_2D, 0);\r\n this.width = bitmap.getWidth();\r\n this.height = bitmap.getHeight();\r\n bitmap.recycle();\r\n \r\n } catch (IOException e) {\r\n \t\r\n \t// if not found in assets try loading from sd-card\r\n try {\r\n \t\r\n \tin = FileIO.getInstance().readFile(APP_FOLDER + File.separator + \"textures\" + File.separator + this.fileName);\r\n Bitmap bitmap = BitmapFactory.decodeStream(in);\r\n GLES10.glBindTexture(GLES10.GL_TEXTURE_2D, this.textureId);\r\n GLUtils.texImage2D(GLES10.GL_TEXTURE_2D, 0, bitmap, 0);\r\n this.setFilters(GLES10.GL_NEAREST, GLES10.GL_NEAREST); \r\n GLES10.glBindTexture(GLES10.GL_TEXTURE_2D, 0);\r\n this.width = bitmap.getWidth();\r\n this.height = bitmap.getHeight();\r\n bitmap.recycle();\r\n \r\n } catch (IOException e2) {\r\n \t\r\n \treturn false;\r\n \t\r\n } finally {\r\n \t\r\n if (in != null) {\r\n \r\n \ttry { in.close(); } catch (IOException e2) {}\r\n }\r\n }\r\n \r\n } finally {\r\n \t\r\n if (in != null) {\r\n \r\n \ttry { in.close(); } catch (IOException e) {}\r\n }\r\n }\r\n \r\n return true;\r\n }", "public String getTexture(){\n\t\treturn texture;\n\t}", "public TextureImpl getTexture(InputStream in, String resourceName, boolean flipped, int filter, int[] transparent) throws IOException {\n/* 215 */ if (this.deferred) {\n/* 216 */ return new DeferredTexture(in, resourceName, flipped, filter, transparent);\n/* */ }\n/* */ \n/* 219 */ HashMap<String, TextureImpl> hash = this.texturesLinear;\n/* 220 */ if (filter == 9728) {\n/* 221 */ hash = this.texturesNearest;\n/* */ }\n/* */ \n/* 224 */ String resName = resourceName;\n/* 225 */ if (transparent != null) {\n/* 226 */ resName = String.valueOf(resName) + \":\" + transparent[0] + \":\" + transparent[1] + \":\" + transparent[2];\n/* */ }\n/* 228 */ resName = String.valueOf(resName) + \":\" + flipped;\n/* */ \n/* 230 */ if (this.holdTextureData) {\n/* 231 */ TextureImpl textureImpl = (TextureImpl)hash.get(resName);\n/* 232 */ if (textureImpl != null) {\n/* 233 */ return textureImpl;\n/* */ }\n/* */ } else {\n/* 236 */ SoftReference<TextureImpl> ref = (SoftReference)hash.get(resName);\n/* 237 */ if (ref != null) {\n/* 238 */ TextureImpl textureImpl = ref.get();\n/* 239 */ if (textureImpl != null) {\n/* 240 */ return textureImpl;\n/* */ }\n/* 242 */ hash.remove(resName);\n/* */ } \n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ try {\n/* 249 */ GL.glGetError();\n/* 250 */ } catch (NullPointerException e) {\n/* 251 */ throw new RuntimeException(\"Image based resources must be loaded as part of init() or the game loop. They cannot be loaded before initialisation.\");\n/* */ } \n/* */ \n/* 254 */ TextureImpl tex = getTexture(in, resourceName, \n/* 255 */ 3553, \n/* 256 */ filter, \n/* 257 */ filter, flipped, transparent);\n/* */ \n/* 259 */ tex.setCacheName(resName);\n/* 260 */ if (this.holdTextureData) {\n/* 261 */ hash.put(resName, tex);\n/* */ } else {\n/* 263 */ hash.put(resName, (TextureImpl)new SoftReference<>(tex));\n/* */ } \n/* */ \n/* 266 */ return tex;\n/* */ }", "public int makesurfaceTextureId() {\n int[] textures = new int[1];\n GLES20.glGenTextures(1, textures, 0);\n\n int SurfaceTextId = textures[0];\n GLES20.glBindTexture(GLES20.GL_TEXTURE_2D, SurfaceTextId);\n\n // Can't do mipmapping with camera source\n GLES20.glTexParameterf(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_MIN_FILTER,\n GLES20.GL_NEAREST);\n GLES20.glTexParameterf(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_MAG_FILTER,\n GLES20.GL_LINEAR);\n // Clamp to edge is the only option\n GLES20.glTexParameteri(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_WRAP_S,\n GLES20.GL_CLAMP_TO_EDGE);\n GLES20.glTexParameteri(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_WRAP_T,\n GLES20.GL_CLAMP_TO_EDGE);\n BitmapFactory.Options options = new BitmapFactory.Options();\n options.inScaled = false;\n Bitmap bitmap = BitmapFactory.decodeResource(this.getContext().getResources(), R.drawable\n .grey, options);\n GLUtils.texImage2D(GLES20.GL_TEXTURE_2D, 0, bitmap, 0);\n bitmap.recycle();\n // Log.d(\"MyRender\", \"SurfaceTextId is Created\");\n return SurfaceTextId;\n }", "public ResourceLocation getEntityTexture(T entity) {\n return MINECART_TEXTURES;\n }", "public void setTexture(PImage image) {\n //m_tImage = image;\n m_texture = image.pixels;\n TEX_WIDTH = image.width;\n TEX_HEIGHT = image.height;\n F_TEX_WIDTH = TEX_WIDTH-1;\n F_TEX_HEIGHT = TEX_HEIGHT-1;\n INTERPOLATE_UV = true;\n \n if (image.format == ARGB) {\n m_drawFlags |= R_TEXTURE32;\n } else if (image.format == RGB) {\n m_drawFlags |= R_TEXTURE24;\n } else if (image.format == ALPHA) {\n m_drawFlags |= R_TEXTURE8;\n }\n }", "public MTImage(PImage texture, PApplet pApplet) {\n this(pApplet, texture);\n }", "public void setTexture(String texture) {\n this.texture = texture;\n }", "public Texture fetchTexture(String filename)\n throws IOException\n {\n Texture texture = (Texture)textureMap.get(filename);\n \n if(texture == null)\n {\n ImageComponent img = (ImageComponent)componentMap.get(filename);\n \n if(img == null)\n {\n img = load2DImage(filename);\n componentMap.put(filename, img);\n }\n \n int format = getTextureFormat(img);\n \n if(img instanceof ImageComponent2D)\n {\n texture = new Texture2D(Texture.BASE_LEVEL,\n format,\n img.getWidth(),\n img.getHeight());\n }\n else\n {\n texture = new Texture3D(Texture.BASE_LEVEL,\n format,\n img.getWidth(),\n img.getHeight(),\n ((ImageComponent3D)img).getDepth());\n }\n \n texture.setImage(0, img);\n \n textureMap.put(filename, texture);\n }\n \n return texture;\n }", "private native void nativeRegisterTexture(long j, long j2, Object obj);", "public InterpolatedImageTexture(final String path) {\n if (path == null) throw new IllegalArgumentException(\"Parameters must not be null!\");\n\n image = new Image(\"file:\" + path);\n\n if (image.isError()) {\n throw new IllegalArgumentException(\"Path must be an image!\");\n }\n }", "public static Texture getTexture(String resourceName, BufferedImage resourceImage, int filter) throws IOException {\n/* 61 */ Texture tex = getTexture(resourceName, resourceImage, \n/* 62 */ 3553, \n/* 63 */ 6408, \n/* 64 */ filter, \n/* 65 */ filter);\n/* */ \n/* 67 */ return tex;\n/* */ }", "public static void load(){\n for(TextureHandler t : textures){\n if(t.texture!=null)t.texture.dispose();\n }\n textures.clear();\n \n //if the textures are corrupt or just arent there then the error TextureHandler will\n //be a placeholder which is generated programatically so it is always there\n int size = 64;\n Pixmap pixmap = new Pixmap(size,size, Format.RGBA8888 );\n pixmap.setColor(1f,0f,0f,1f);\n pixmap.fillCircle(size/2,size/2,size/2);\n pixmap.setColor(0f,0f,0f,1f);\n pixmap.fillCircle(size/2,size/2,(size/2)-2);\n pixmap.setColor(1f,0f,0f,1f);\n int offset = size/6;\n int length = (size+size)/3;\n pixmap.drawLine(offset,offset,offset+length,offset+length);\n pixmap.drawLine(offset+length,offset,offset,offset+length);\n error = new Texture(pixmap);\n pixmap.dispose();\n //things that get rendered the most get put at the top so theyre the first in the list\n textures.add(new TextureHandler(\"Block\" ,\"Block.png\",true));\n textures.add(new TextureHandler(\"Block1\",\"Block1.png\",true));\n textures.add(new TextureHandler(\"Block2\",\"Block2.png\",true));\n textures.add(new TextureHandler(\"Block3\",\"Block3.png\",true));\n textures.add(new TextureHandler(\"Block4\",\"Block4.png\",true));\n textures.add(new TextureHandler(\"GameBackground\",\"GameBackground.png\",true));\n \n textures.add(new TextureHandler(\"Hints\",\"Hints.png\",false));\n textures.add(new TextureHandler(\"Left\" ,\"ButtonLeft.png\",true));\n textures.add(new TextureHandler(\"Right\" ,\"ButtonRight.png\",true));\n textures.add(new TextureHandler(\"Rotate\",\"ButtonRotate.png\",true));\n textures.add(new TextureHandler(\"Pause\" ,\"ButtonPause.png\",true));\n textures.add(new TextureHandler(\"Label\" ,\"TextBox.png\",true));\n \n textures.add(new TextureHandler(\"Locked\",\"levels/Locked.png\",false));\n textures.add(new TextureHandler(\"Timer\",\"levels/Clock.png\",false));\n \n textures.add(new TextureHandler(\"PauseSelected\",\"SelectedPause.png\",true));\n textures.add(new TextureHandler(\"LeftSelected\",\"SelectedLeft.png\",true));\n textures.add(new TextureHandler(\"RightSelected\",\"SelectedRight.png\",true));\n textures.add(new TextureHandler(\"RotateSelected\",\"SelectedRotate.png\",true));\n \n textures.add(new TextureHandler(\"Background\",\"Background.png\",false));\n textures.add(new TextureHandler(\"Title\",\"MainMenuTitle.png\",false));\n\n }", "private void loadResource() {\n\t\ttry {\n\t\t\ttarmacTexture = scaleResourceImagePaint(\"/textures/tarmac2.jpg\", 300, 300);\n\t\t\tgrassTexture = scaleResourceImagePaint(\"/textures/grass.jpg\", 300, 300);\n\t\t\tstopwayTexture = scaleResourceImagePaint(\"/textures/stopway.jpg\", 300, 300);\n\t\t} catch (IOException e) {\n\t\t\tsetUsingTextures(false);\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n\tpublic String getTexture() {\n\t\treturn type.getTextureString();\n\t}", "private void bindTextures(Terrain terrain){\n TerrainTexPack texturePack = terrain.getTexturePack();\n glActiveTexture(GL_TEXTURE0);\n glBindTexture(GL_TEXTURE_2D, texturePack.getBackgroundTexture().getTextureID());\n glActiveTexture(GL_TEXTURE1);\n glBindTexture(GL_TEXTURE_2D, texturePack.getrTexture().getTextureID());\n glActiveTexture(GL_TEXTURE2);\n glBindTexture(GL_TEXTURE_2D, texturePack.getgTexture().getTextureID());\n glActiveTexture(GL_TEXTURE3);\n glBindTexture(GL_TEXTURE_2D, texturePack.getbTexture().getTextureID());\n glActiveTexture(GL_TEXTURE4);\n glBindTexture(GL_TEXTURE_2D, terrain.getBlendMap().getTextureID());\n\n }", "private void initImage() {\n this.image = (BufferedImage)this.createImage(DisplayPanel.COLS, DisplayPanel.ROWS);\n this.r.setRect(0, 0, DisplayPanel.ROWS, DisplayPanel.COLS);\n this.paint = new TexturePaint(this.image,\n this.r);\n }", "@Override\r\n\tpublic void create() {\n\t\tbatch = new SpriteBatch();\r\n\t\tcamera = new OrthographicCamera();\r\n\t\tassets = new AssetManager();\r\n\t\t\r\n\t\tcamera.setToOrtho(false,WIDTH,HEIGHT);\r\n\t\t\r\n\t\tTexture.setAssetManager(assets);\r\n\t\tTexture.setEnforcePotImages(false);\r\n\t\t\r\n\t\tsetScreen(new SplashScreen(this));\r\n\t}", "public void loadTextures(){\n switch (playerCarColor){\n case \"Black\":\n playerTexture = new Texture(Gdx.files.internal(\"images/playerCarBlack.png\"));\n fadedPlayerTexture = new Texture(Gdx.files.internal(\"images/playerCarBlackFaded.png\"));\n break;\n case \"White\":\n playerTexture = new Texture(Gdx.files.internal(\"images/playerCarWhite.png\"));\n fadedPlayerTexture = new Texture(Gdx.files.internal(\"images/playerCarWhiteFaded.png\"));\n break;\n }\n\n enemyPistolTexture = new Texture(Gdx.files.internal(\"images/enemyPistol.png\"));\n enemyAWPTexture = new Texture(Gdx.files.internal(\"images/enemyAWP.png\"));\n enemyStalkerTexture = new Texture(Gdx.files.internal(\"images/enemyStalker.png\"));\n bulletTexture = new Texture(Gdx.files.internal(\"images/bullet.png\"));\n enemyBossTexture = new Texture(Gdx.files.internal(\"images/enemyBoss.png\"));\n }", "protected ResourceLocation getEntityTexture(EntitySentientSpecter entity)\n {\n return texture;\n }", "public void addTexture (String path, String key) throws IOException {\n\t\tTexture texture = new Texture();\n\t\ttexture.load(path);\n\t\ttextures.put(key, texture);\n\t}", "@Override\n public void create() {\n tex = new Texture(Gdx.files.internal(\"data/scene.png\"));\n\n //important since we aren't using some uniforms and attributes that SpriteBatch expects\n ShaderProgram.pedantic = false;\n\n //print it out for clarity\n System.out.println(\"Vertex Shader:\\n-------------\\n\\n\" + VERT);\n System.out.println(\"\\n\");\n System.out.println(\"Fragment Shader:\\n-------------\\n\\n\" + FRAG);\n\n shader = new ShaderProgram(VERT, FRAG);\n if (!shader.isCompiled()) {\n System.err.println(shader.getLog());\n System.exit(0);\n }\n if (shader.getLog().length() != 0)\n System.out.println(shader.getLog());\n\n\n batch = new SpriteBatch(1000, shader);\n batch.setShader(shader);\n\n cam = new OrthographicCamera(Gdx.graphics.getWidth(), Gdx.graphics.getHeight());\n cam.setToOrtho(false);\n }", "public void loadGLTexture(GL10 gl, Location location)\n\t{\n\t\tgl.glGenTextures(2, textures, 0);\n\n\t\t// loading texture\n\t\tBitmap bitmap;\n\t\tfloat width;\n\t\tfloat height;\n\n\n\t\t// ...and bind it to our array\n\t\tgl.glBindTexture(GL10.GL_TEXTURE_2D, textures[0]);\n\n\t\t// create nearest filtered texture\n\t\tgl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MIN_FILTER, GL10.GL_NEAREST);\n\t\tgl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MAG_FILTER, GL10.GL_LINEAR);\n\n\t\t// loading texture\n\t\tif (location != null){\n\t\t\tdouble longitude = location.getLongitude();\n\t\t\tif (longitude > 0)\n\t\t\t\tbitmap = GraphicUtil.getLngLatBitmap(\"LON\" + \" E\" + df.format(Math.abs(longitude)) );\n\t\t\telse if (longitude < 0)\n\t\t\t\tbitmap = GraphicUtil.getLngLatBitmap(\"LON\" + \" W\" + df.format(Math.abs(longitude)) );\n\t\t\telse\n\t\t\t\tbitmap = GraphicUtil.getLngLatBitmap(\"LON\" + \" \" + \"000.0000\" );\n\t\t}\n\t\telse\n\t\t\tbitmap = GraphicUtil.getLngLatBitmap(\"LON\" + \" \" + \"000.0000\");\n\n\t\t// Use Android GLUtils to specify a two-dimensional texture image from our bitmap\n\t\tGLUtils.texImage2D(GL10.GL_TEXTURE_2D, 0, bitmap, 0);\n\n\t\t// calculate the bitmap's size respectively to the size of the screen \n\t\twidth = bitmap.getWidth() / 1000f * FONT_SIZE;\n\t\theight = bitmap.getHeight() / 1000f * FONT_SIZE;\n\n\t\t//Log.v(TAG , \"width : \" + width + \" , height : \" + height );\n\n\t\t// resize the vertices according to the size of the bitmap\n\t\tvertices_long[0] = LONGITUDE_POINT - width; // left\n\t\tvertices_long[3] = LONGITUDE_POINT - width; // left\n\t\tvertices_long[1] = VERTICAL_POINT - height;// bottom\n\t\tvertices_long[7] = VERTICAL_POINT - height;// bottom\n\n\t\t// Clean up\n\t\tbitmap.recycle();\n\n\t\t// ...and bind it to our array\n\t\tgl.glBindTexture(GL10.GL_TEXTURE_2D, textures[1]);\n\n\t\t// create nearest filtered texture\n\t\tgl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MIN_FILTER, GL10.GL_NEAREST);\n\t\tgl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MAG_FILTER, GL10.GL_LINEAR);\n\n\t\t// loading texture\n\t\tif (location != null){\n\t\t\tdouble latitude = location.getLatitude();\n\t\t\tif (latitude > 0)\n\t\t\t\tbitmap = GraphicUtil.getLngLatBitmap(\"LAT\" + \" N\" + df.format(Math.abs(latitude)) );\n\t\t\telse if (latitude < 0)\n\t\t\t\tbitmap = GraphicUtil.getLngLatBitmap(\"LAT\" + \" S\" + df.format(Math.abs(latitude)) );\n\t\t\telse\n\t\t\t\tbitmap = GraphicUtil.getLngLatBitmap(\"LAT\" + \" \" + \"000.0000\" );\n\t\t}\n\t\telse\n\t\t\tbitmap = GraphicUtil.getLngLatBitmap(\"LAT\" + \" \" + \"000.0000\");\n\n\t\t// Use Android GLUtils to specify a two-dimensional texture image from our bitmap\n\t\tGLUtils.texImage2D(GL10.GL_TEXTURE_2D, 0, bitmap, 0);\n\n\t\t// calculate the bitmap's size respectively to the size of the screen \n\t\twidth = bitmap.getWidth() / 1000f * FONT_SIZE;\n\t\theight = bitmap.getHeight() / 1000f * FONT_SIZE;\n\n\t\t//Log.v(TAG , \"width : \" + width + \" , height : \" + height );\n\n\t\t// resize the vertices according to the size of the bitmap\n\t\tvertices_lat[6] = LATITUDE_POINT + width; // right\n\t\tvertices_lat[9] = LATITUDE_POINT + width; // right\n\t\tvertices_lat[1] = VERTICAL_POINT - height;// bottom\n\t\tvertices_lat[7] = VERTICAL_POINT - height;// bottom\n\n\t\t// Clean up\n\t\tbitmap.recycle(); \n\t}", "String textureFileName() {\n switch (this) {\n case NORTH_4M:\n return \"northern\";\n case NORTH_16M:\n return \"16m/northern\";\n case SOUTH_4M:\n return \"southern\";\n case SOUTH_16M:\n return \"16m/southern\";\n case WILTSHIRE_4M:\n return \"wiltshire\";\n case WILTSHIRE_16M:\n return \"16m/wiltshire\";\n }\n throw new IllegalStateException();\n }", "public static SingletonTextureFactory getInstance(){\n\t\treturn instance;\n\t}", "TextureAtlas.AtlasRegion getTexture(FileHandle textureFile);", "private ImageLoader() {}", "public void init() throws IOException\n\t{\n\t\tString pth = \"\";\n\t\tif(normal)\n\t\t{\n\t\t\tpth = \"Assets\\\\Art\\\\Tiles\\\\\";\n\t\t}\n\t\ttry\n\t\t{\n\t\t\ttexture = TextureLoader.getTexture(\"PNG\", ResourceLoader.getResourceAsStream(pth+path));\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\ttexture = TextureLoader.getTexture(\"PNG\", ResourceLoader.getResourceAsStream(pth+\"default.png\"));\n\t\t}\n\n\t\theight = texture.getImageHeight();\n\t\twidth = texture.getImageWidth();\n\t\tRandom rand = new Random();\n\t\tthis.identity = rand.nextInt();\n\t\ta = new AudioController();\n\t\t\n\t}", "@Override\n\tpublic void onSurfaceCreated(GL10 gl, EGLConfig config) {\n\t\tgl.glClearColor(0,0,0,1); \n\t\t//enable vertex array for vertex pointer\n\t\tgl.glEnableClientState(GL10.GL_VERTEX_ARRAY); \n\t\t//enable normal array\n\t\tgl.glEnableClientState(GL10.GL_NORMAL_ARRAY);\n\t\t//enable DepthTest\n\t\tgl.glEnable(GL10.GL_DEPTH_TEST); \n\t\t//enable Blend\n\t\tgl.glEnable(GL10.GL_BLEND);\n\t\t//set blend function\n\t\tgl.glBlendFunc(GL10.GL_SRC_ALPHA, GL10.GL_ONE_MINUS_SRC_ALPHA);\n\t\t//Gen texture\n\t\t//initialize array\n\t\tint textureIds[] = new int[1];\n\t\t//generate 1 texture return handle to textureIds\n\t\tgl.glGenTextures(1, textureIds, 0);\n\t\t//get handle from array to an int\n\t\ttextureId = textureIds[0];\n\t\t//bind using array\n\t\tgl.glBindTexture(GL10.GL_TEXTURE_2D, textureId);\n\t\t//copy image pixels data to texture buffer on video mem\n\t\tGLUtils.texImage2D(GL10.GL_TEXTURE_2D, 0, bitmap, 0);\n\t\t//filter for minif\n\t\tgl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MIN_FILTER, GL10.GL_NEAREST);\n\t\t//filter for magnif\n\t\tgl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MAG_FILTER, GL10.GL_NEAREST);\n\t\t//unbind texture buffer\n\t\tgl.glBindTexture(GL10.GL_TEXTURE_2D, 0);\n\t\t//bitmap.recycle(); just if not used anymore \n\t}", "public ResourceManager(GraphicsConfiguration gc) {\n this.gc = gc;\n loadTileImages();\n loadCreatureSprites();\n loadPowerUpSprites();\n }", "public static int createTextureHandle() {\n int[] textureDataHandle = new int[1];\n glGenTextures(1, textureDataHandle, 0);\n if (textureDataHandle[0] != 0) {\n return textureDataHandle[0];\n } else {\n throw new RuntimeException(\"Error generating texture handle.\");\n }\n }", "private void createImage(BufferedImage image) {\n texId.setId(glGenTextures());\n loaded = true;\n\n try {\n int[] pixels = new int[image.getHeight() * image.getWidth()];\n\n image.getRGB(0, 0, image.getWidth(), image.getHeight(), pixels, 0, image.getWidth());\n\n Window.console.println(\"Texture num : \" + texId.getId() + \" , loaded with path : \" + texId.getPath());\n\n ByteBuffer buffer = BufferUtils.createByteBuffer(image.getHeight() * image.getWidth() * 4);\n\n for (int i = 0; i < image.getHeight(); i++) {\n for (int j = 0; j < image.getWidth(); j++) {\n int pixel = pixels[i * image.getWidth() + j];\n buffer.put((byte) ((pixel >> 16) & 0xFF)); // RED\n buffer.put((byte) ((pixel >> 8) & 0xFF)); // GREEN\n buffer.put((byte) (pixel & 0xFF)); // BLUE\n buffer.put((byte) ((pixel >> 24) & 0xFF)); // ALPHA\n }\n }\n\n buffer.flip();\n\n this.width = image.getWidth();\n this.height = image.getHeight();\n\n setParam(GL_TEXTURE_WRAP_S, GL_CLAMP_TO_BORDER);\n setParam(GL_TEXTURE_WRAP_T, GL_CLAMP_TO_BORDER);\n setParam(GL_TEXTURE_MIN_FILTER, GL_LINEAR);\n setParam(GL_TEXTURE_MAG_FILTER, GL_LINEAR);\n\n upload(buffer);\n GameManager.texManager.add(texId);\n } catch (Exception e) {\n e.printStackTrace();\n unload();\n }\n }", "public Tex(GL10 gl, Context context, int resource_id)\n\t{\n\t\t/* singleton instance of Mesh */\n\t\tif(first_time == true)\n\t\t{\n\t\t\tmkMesh();\n\t\t\tfirst_time = false;\n\t\t}\n\n\t\tthis.gl = gl;\n\t\tthis.texture_id = newTexture(context, resource_id);\n\t}", "protected void init() {\n splashImg = new Texture(\"splash.png\");\n }", "public static int createTextureID() {\n/* 121 */ IntBuffer tmp = createIntBuffer(1);\n/* 122 */ GL.glGenTextures(tmp);\n/* 123 */ return tmp.get(0);\n/* */ }", "@Override\n\tpublic int getTexture() {\n\t\treturn 0;\n\t}", "protected ResourceLocation getEntityTexture(Entity p_110775_1_)\n {\n return this.getEntityTexture0((EntityEnderPig)p_110775_1_);\n }", "private void loadTextures() {\n\t\tspriteSheet01 = new Texture(\"data/buttonsspritesheet02.png\");\n\n\t\tnew TextureRegion(spriteSheet01, BROKEN_COLUMN * SQUARE_SIZE,\n\t\t\t\tBROKEN_ROW * SQUARE_SIZE, SQUARE_SIZE, SQUARE_SIZE);\n\n\t\tnew TextureRegion(spriteSheet01, EMPTY_BUTTON_COLUMN * SQUARE_SIZE,\n\t\t\t\tEMPTY_BUTTON_ROW * SQUARE_SIZE, SQUARE_SIZE, SQUARE_SIZE);\n\n\t\tnew TextureRegion(spriteSheet01, ACTIVATED_COLUMN * SQUARE_SIZE,\n\t\t\t\tSPECIALS_ROW_TWO * SQUARE_SIZE, SQUARE_SIZE, SQUARE_SIZE);\n\n\t\tnew TextureRegion(spriteSheet01, DEPRESSED_BUTTON * SQUARE_SIZE,\n\t\t\t\tSPECIALS_ROW_TWO * SQUARE_SIZE, SQUARE_SIZE, SQUARE_SIZE);\n\n\t\tnew TextureRegion(spriteSheet01, HIGHLIGHTED_COLUMN * SQUARE_SIZE,\n\t\t\t\tSPECIALS_ROW_TWO * SQUARE_SIZE, SQUARE_SIZE, SQUARE_SIZE);\n\n\t\tnew TextureRegion(spriteSheet01, CAROUSEL_COLUMN * SQUARE_SIZE,\n\t\t\t\t(CAROUSEL_ROW * SQUARE_SIZE) + CAROUSEL_PIXELS, SQUARE_SIZE,\n\t\t\t\tCAROUSEL_PIXELS);\n\n\t\tnew TextureRegion(spriteSheet01, FIX_BUTTON_COLUMN * SQUARE_SIZE,\n\t\t\t\tFIX_BUTTON_ROW * SQUARE_SIZE, SQUARE_SIZE, SQUARE_SIZE);\n\n\t\tnew TextureRegion(spriteSheet01, WILD_BUTTON_COLUMN * SQUARE_SIZE,\n\t\t\t\tWILD_BUTTON_ROW * SQUARE_SIZE, SQUARE_SIZE, SQUARE_SIZE);\n\n\t\tcarousel = new TextureRegion[MAIN_COLOUR_AMOUNT];\n\t\tfor (int i = 0; i < MAIN_COLOUR_AMOUNT; i++) {\n\t\t\tcarousel[i] = new TextureRegion(spriteSheet01,\n\t\t\t\t\t(CAROUSEL_COLUMN * SQUARE_SIZE) + (i * CAROUSEL_PIXELS),\n\t\t\t\t\tCAROUSEL_ROW * SQUARE_SIZE, CAROUSEL_PIXELS,\n\t\t\t\t\tCAROUSEL_PIXELS);\n\t\t}\n\n\t\trings = new TextureRegion[RING_AMOUNT];\n\t\tfor (int i = 0; i < RING_AMOUNT; i++) {\n\t\t\trings[i] = new TextureRegion(spriteSheet01, i * SQUARE_SIZE,\n\t\t\t\t\tRING_ROW * SQUARE_SIZE, SQUARE_SIZE, SQUARE_SIZE);\n\t\t}\n\n\t\tmainColour = new TextureRegion[MAIN_COLOUR_AMOUNT];\n\t\tfor (int i = 0; i < MAIN_COLOUR_AMOUNT; i++) {\n\t\t\tmainColour[i] = new TextureRegion(spriteSheet01,\n\t\t\t\t\t(i + MAIN_COLOUR_COLUMN) * SQUARE_SIZE, MAIN_COLOUR_ROW,\n\t\t\t\t\tSQUARE_SIZE, SQUARE_SIZE);\n\t\t}\n\n\t\tspecials = new TextureRegion[SPECIALS_AMOUNT];\n\t\tfor (int i = 0; i < SPECIALS_ROW_ONE_AMOUNT; i++) {\n\t\t\tspecials[i] = new TextureRegion(spriteSheet01, i * SQUARE_SIZE,\n\t\t\t\t\tSQUARE_SIZE, SQUARE_SIZE, SQUARE_SIZE);\n\t\t}\n\t\tfor (int i = SPECIALS_ROW_ONE_AMOUNT; i < SPECIALS_AMOUNT; i++) {\n\t\t\tspecials[i] = new TextureRegion(spriteSheet01,\n\t\t\t\t\t(i - SPECIALS_ROW_ONE_AMOUNT) * SQUARE_SIZE,\n\t\t\t\t\tSPECIALS_ROW_TWO * SQUARE_SIZE, SQUARE_SIZE, SQUARE_SIZE);\n\t\t}\n\n\t\tenemyBaseColours = new TextureRegion[ENEMY_COLOURS_AMOUNT];\n\t\tfor (int i = 0; i < ENEMY_COLOURS_AMOUNT; i++) {\n\t\t\tenemyBaseColours[i] = new TextureRegion(spriteSheet01, i\n\t\t\t\t\t* SQUARE_SIZE, ENEMY_BASE_ROW * SQUARE_SIZE, SQUARE_SIZE,\n\t\t\t\t\tSQUARE_SIZE);\n\t\t}\n\n\t\tenemyHalfColours = new TextureRegion[ENEMY_COLOURS_AMOUNT];\n\t\tfor (int i = 0; i < ENEMY_COLOURS_AMOUNT; i++) {\n\t\t\tenemyHalfColours[i] = new TextureRegion(spriteSheet01, i\n\t\t\t\t\t* SQUARE_SIZE, ENEMY_HALF_ROW * SQUARE_SIZE, SQUARE_SIZE,\n\t\t\t\t\tSQUARE_SIZE);\n\t\t}\n\n\t\tenemyThirdColours = new TextureRegion[ENEMY_COLOURS_AMOUNT];\n\t\tfor (int i = 0; i < ENEMY_COLOURS_AMOUNT; i++) {\n\t\t\tenemyThirdColours[i] = new TextureRegion(spriteSheet01, i\n\t\t\t\t\t* SQUARE_SIZE, ENEMY_THIRD_ROW * SQUARE_SIZE, SQUARE_SIZE,\n\t\t\t\t\tSQUARE_SIZE);\n\t\t}\n\n\t\tenemyRimColours = new TextureRegion[ENEMY_COLOURS_AMOUNT];\n\t\tfor (int i = 0; i < ENEMY_COLOURS_AMOUNT; i++) {\n\t\t\tenemyRimColours[i] = new TextureRegion(spriteSheet01, i\n\t\t\t\t\t* SQUARE_SIZE, ENEMY_RIM_ROW * SQUARE_SIZE, SQUARE_SIZE,\n\t\t\t\t\tSQUARE_SIZE);\n\t\t}\n\n\t\tenemyConnectors = new TextureRegion[ENEMY_CONNECTORS_AMOUNT];\n\t\tfor (int i = 0; i < ENEMY_CONNECTORS_AMOUNT; i++) {\n\t\t\tenemyConnectors[i] = new TextureRegion(spriteSheet01,\n\t\t\t\t\t(i + ENEMY_CONNECTORS_COLUMN) * SQUARE_SIZE,\n\t\t\t\t\tENEMY_CONNECTORS_ROW * SQUARE_SIZE, SQUARE_SIZE,\n\t\t\t\t\tSQUARE_SIZE);\n\t\t}\n\t}" ]
[ "0.669868", "0.6669712", "0.63451546", "0.6331714", "0.6283702", "0.62354904", "0.6191932", "0.6135153", "0.61101884", "0.59808046", "0.59661585", "0.59290016", "0.5904864", "0.5853974", "0.5847281", "0.5834103", "0.58190536", "0.58133626", "0.5806994", "0.5801814", "0.5801601", "0.57962143", "0.5765626", "0.5761687", "0.57124925", "0.57005125", "0.56608164", "0.5639413", "0.5613572", "0.5608507", "0.55939025", "0.55851084", "0.55813825", "0.55635864", "0.556231", "0.55459607", "0.5527126", "0.55261314", "0.5517386", "0.55095035", "0.55010974", "0.54965323", "0.54868287", "0.5485094", "0.542809", "0.5425854", "0.5411339", "0.5406739", "0.5398016", "0.53879404", "0.5383215", "0.5360275", "0.5347547", "0.53214717", "0.53152937", "0.53137445", "0.5299379", "0.5296449", "0.52962667", "0.5289355", "0.5273443", "0.52578735", "0.5254873", "0.5246802", "0.5243302", "0.5242347", "0.523579", "0.52116394", "0.5196294", "0.51917446", "0.51900893", "0.518446", "0.5181088", "0.51810056", "0.51756734", "0.5154054", "0.5152912", "0.514896", "0.5144882", "0.51429397", "0.5141653", "0.51339245", "0.51284146", "0.5126181", "0.5123214", "0.51065457", "0.50734794", "0.5066605", "0.5064547", "0.5062527", "0.5060009", "0.50584394", "0.5056225", "0.504735", "0.50470704", "0.5044249", "0.50344515", "0.50301814", "0.50211495", "0.5015706", "0.50153637" ]
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { int x[]= {2,9,5,6,0,3,10,1,8,4,7}; Outer outOb=new Outer(x); outOb.analyze(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
Creates a new rendering exception using the given inner exception.
public RenderingException(Throwable cause) { super(cause); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public RenderingException(String message, Throwable cause) {\r\n\t\tsuper(message, cause);\r\n\t}", "public VelocityEmailException(Throwable nested)\n {\n super(nested);\n }", "public WebAppException(Throwable nestedException) {\r\n\t\tthis.nestedException_ = nestedException;\r\n\t\tstackTraceString_ = generateStackTraceString(nestedException);\r\n\t\textractProperties(nestedException);\r\n\t}", "WireframeException(String message, Throwable e){\r\n super(message, e);\r\n }", "public TeWeinigGeldException(Exception e) {this.e = e;}", "public VelocityEmailException(String msg, Throwable nested)\n {\n super(msg, nested);\n }", "public Twig4jException(String rawMessage) {\n this.rawMessage = rawMessage;\n }", "public Twig4jException(String rawMessage, Throwable cause) {\n this.rawMessage = rawMessage;\n initCause(cause);\n }", "public WrappedException(Exception e) {\n super(e);\n }", "public WebAppException(String message, Throwable nestedException) {\r\n\t\tthis(message);\r\n\t\tthis.nestedException_ = nestedException;\r\n\t\tstackTraceString_ = generateStackTraceString(nestedException);\r\n\t\textractProperties(nestedException);\r\n\t}", "public static EntityServiceException create(final Throwable ex) throws EntityServiceException {\n if (ex instanceof EntityServiceException) {\n LOGGER.trace(\"create() - {}\", ex.getMessage());\n\n return (EntityServiceException) ex;\n } else {\n LOGGER.debug(\"create() - wrapping exception\", ex);\n\n return unwrap(ex);\n }\n }", "protected static ExceptionSignalingNode createExceptionNode(final SourceSection ss) {\n CompilerDirectives.transferToInterpreter();\n return ExceptionSignalingNode.createNode(Symbols.symbolFor(\"TypeError\"), ss);\n }", "public APIException(String message, Exception inner) {\n\t\tsuper(message, inner);\n\t}", "public BusinessObjectException(Exception e) {\r\n super( \"\" + e );\r\n }", "private static ValidationException from(Throwable throwable) {\n return throwable instanceof ValidationException\n ? ((ValidationException) throwable)\n : new ValidationException(throwable);\n }", "@ExceptionHandler(Exception.class)\n\t@ResponseStatus(HttpStatus.INTERNAL_SERVER_ERROR)\n\tpublic VndError onException(Exception e) {\n\t\treturn new VndError(e.getClass().getSimpleName(), StringUtils.hasText(e\n\t\t\t\t.getMessage()) ? e.getMessage() : e.getClass().getSimpleName());\n\t}", "void innerError(Throwable ex) {\r\n\t\t\t\t\t\terror(ex);\r\n\t\t\t\t\t}", "void innerError(Throwable ex) {\r\n\t\t\t\t\t\terror(ex);\r\n\t\t\t\t\t}", "@Override\n\tpublic void addRenderingExceptionListener(RenderingExceptionListener listener) {\n\n\t}", "public Component handleException(Component component, Exception exception, boolean onRender)\r\n {\r\n SnippetComponent result = new SnippetComponent(null);\r\n StringWriter writer = new StringWriter();\r\n writer.write(\"An error occurred\\n\");\r\n exception.printStackTrace(new PrintWriter(writer));\r\n result.snippet = writer.toString();\r\n return result;\r\n }", "public SMSLibException(Throwable originalE)\n/* 17: */ {\n/* 18:45 */ this.originalE = originalE;\n/* 19: */ }", "public static BaseException toBaseException(Exception e) {\n if (e instanceof WebApplicationException) {\n return toBaseException((WebApplicationException) e);\n } else if (e instanceof ProcessingException) {\n return toBaseException((ProcessingException) e);\n } else {\n return new TechnicalException(CoffeeFaultType.OPERATION_FAILED, \"REST client unhandled exception: \" + e.getLocalizedMessage(), e);\n }\n }", "public APIException(String message, String token, Exception inner) {\n\t\tthis(message + \": \" + token, inner);\n\t}", "public Exception() {\n\t\t\tsuper();\n\t\t}", "private SmartServiceException createException(Throwable t, String key, Object... args) {\n return new SmartServiceException.Builder(getClass(), t).userMessage(key, args).build();\n }", "public static ValidationException from(BindException exception) {\n return new ValidationException(collectErrorMessages(exception.getAllErrors()));\n }", "protected AbstractRenderer createRenderer(final IScope scope, final String serieid) {\n\t\treturn new XYErrorRenderer();\r\n\r\n\t}", "public EmailException()\n {\n super();\n }", "public IllegalArgumentException buildException() {\n return this.buildException(null);\n }", "protected static HttpResponseImpl createError(String message, final Throwable t) {\n final HttpResponseImpl res = new HttpResponseImpl(500, \"Internal Server Error\", \"text/html\");\n final PrintWriter body;\n try {\n body = res.getWriter();\n } catch (final IOException e) { // impossible normally\n return res;\n }\n\n body.println(\"<html>\");\n body.println(\"<body>\");\n body.println(\"<h3>Internal Server Error</h3>\");\n body.println(\"<br><br>\");\n\n if (LOGGER.isDebugEnabled()) { // this is not an error, don't log it by default\n LOGGER.error(String.valueOf(t), t);\n }\n\n if (message != null) {\n final StringTokenizer msg = new StringTokenizer(message, \"\\n\\r\");\n\n while (msg.hasMoreTokens()) {\n body.print(msg.nextToken());\n body.println(\"<br>\");\n }\n }\n\n if (t != null) {\n\n PrintWriter writer = null;\n\n try {\n body.println(\"<br><br>\");\n body.println(\"Stack Trace:<br>\");\n final ByteArrayOutputStream baos = new ByteArrayOutputStream();\n writer = new PrintWriter(baos);\n t.printStackTrace(writer);\n writer.flush();\n\n message = new String(baos.toByteArray());\n final StringTokenizer msg = new StringTokenizer(message, \"\\n\\r\");\n\n while (msg.hasMoreTokens()) {\n body.print(msg.nextToken());\n body.println(\"<br>\");\n }\n } catch (final Exception e) {\n //no-op\n } finally {\n if (writer != null) {\n writer.close();\n }\n }\n }\n\n body.println(\"</body>\");\n body.println(\"</html>\");\n\n return res;\n }", "public EmailException(Throwable rootCause)\n {\n super(rootCause);\n }", "public PSTemplateException(Throwable cause) {\n super(cause);\n }", "WireframeException(String message){\r\n super(message);\r\n }", "protected abstract SVGException createSVGException(short type, String key, Object[] args);", "@SuppressWarnings(\"unused\")\n protected static HttpResponseImpl createError(final String message) {\n return createError(message, null);\n }", "private void addGlobalExceptionToPage(Exception exception, BindingResult bindingResult) {\n ObjectError error = new ObjectError(\"globalError\", exception.getMessage());\n bindingResult.addError(error);\n }", "public Twig4jException(String rawMessage, String templateName, Integer lineNumber, Throwable cause) {\n this.rawMessage = rawMessage;\n this.lineNumber = lineNumber;\n this.templateName = templateName;\n initCause(cause);\n }", "public WrappedRuntimeException(Exception e)\n {\n\n super(e.getMessage());\n\n m_exception = e;\n }", "protected Document createInvocationExceptionDocument(\n\t\t\tMessageExchangeInvocationException exception) {\n\t\tDocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n\t\ttry {\n\t\t\tDocumentBuilder builder = factory.newDocumentBuilder();\n\t\t\tDocument doc = builder.newDocument();\n\t\t\tElement root = doc.createElementNS(\n\t\t\t\t\tEngineConstants.DEFAULT_NAMESPACE, \"InvocationException\");\n\t\t\tString message = exception.getMessage();\n\t\t\troot.setTextContent(message);\n\t\t\tdoc.appendChild(root);\n\t\t\treturn doc;\n\t\t} catch (ParserConfigurationException e) {\n\t\t\tlogger.error(\"Can't create exception document\", e);\n\t\t\t// then do nothings\n\t\t}\n\t\treturn null;\n\t}", "public ResourceException(Exception exception) {\r\n super(exception);\r\n }", "public Twig4jException(String rawMessage, String templateName) {\n this.rawMessage = rawMessage;\n this.templateName = templateName;\n }", "public NestedSQLException(final Throwable nested) {\n this(nested.getMessage(), nested);\n }", "public VelocityEmailException()\n {\n super();\n }", "void innerError(@Nonnull Throwable ex) {\r\n\t\t\t\t\t\terror(ex);\r\n\t\t\t\t\t}", "void innerError(@Nonnull Throwable ex) {\r\n\t\t\t\t\t\terror(ex);\r\n\t\t\t\t\t}", "public static RemoteWrappedException wrap(Throwable ex) {\n if (null == ex) {\n return null;\n }\n // don't bother to wrap a exception that is already a\n // RemoteWrappedException.\n if (ex instanceof RemoteWrappedException) {\n return (RemoteWrappedException) ex;\n }\n return new RemoteWrappedException(convert(ex));\n }", "public DslException(String message, Exception e) {\n\t\tsuper(message, e);\n\t}", "public CrashReport withException(Throwable t);", "protected ResultEntity error(Exception ex) {\n log.error(ex);\n resultEntity.setMessage(ex.getMessage());\n if (ex instanceof CustomException) {\n CustomException customException = (CustomException) ex;\n resultEntity.setCode(customException.getCode());\n resultEntity.setData(customException.getData());\n } else {\n resultEntity.setCode(500);\n resultEntity.setMessage(\"Internal Server Error \" + ex.getMessage());\n }\n return resultEntity;\n }", "public SMSLibException(String errorMessage, Throwable originalE)\n/* 22: */ {\n/* 23:50 */ super(errorMessage);\n/* 24:51 */ this.originalE = originalE;\n/* 25: */ }", "public Throwable transform(Throwable throwable) {\n @SuppressWarnings(\"unchecked\")\n List<Throwable> throwableList = ExceptionUtils.getThrowableList(throwable);\n if (throwableList.size() < 1)\n return throwable;\n\n Throwable root = null;\n\n if (throwableList.size() == 1) {\n root = throwable;\n } else {\n root = ExceptionUtils.getRootCause(throwable);\n }\n\n if (root instanceof DeploymentException || root instanceof DefinitionException) {\n return root;\n }\n if (isFragmentFound(DEPLOYMENT_EXCEPTION_FRAGMENTS, root)) {\n return new DeploymentException(root);\n }\n if (isFragmentFound(DEFINITION_EXCEPTION_FRAGMENTS, root)) {\n return new DefinitionException(root);\n }\n return throwable;\n }", "private ScriptException getScriptException(LuaException e) {\n\t\tMatcher matcher = LUA_ERROR_MESSAGE.matcher(e.getMessage());\n\t\tif (matcher.find()) {\n\t\t\tString fileName = matcher.group(1);\n\t\t\tint lineNumber = Integer.parseInt(matcher.group(2));\n\t\t\treturn new ScriptException(e.getMessage(), fileName, lineNumber);\n\t\t} else {\n\t\t\treturn new ScriptException(e);\n\t\t}\n\t}", "private SSLException convert(final RuntimeException ex) {\n Throwable cause = ex.getCause();\n if (cause == null) {\n cause = ex;\n }\n return new SSLException(cause);\n }", "public EncodingException(String s, Throwable ex) {\n\tsuper(s, null); // Disallow initCause\n\tthis.ex = ex;\n }", "public JspTagException(Throwable rootCause) {\n\tsuper( rootCause );\n }", "public BusinessObjectException() {\r\n super();\r\n }", "public NotesFormatException(String msg, Exception inner) {\n\t\tsuper(msg, inner);\n\t}", "public TechnicalException(Throwable cause) {\n this(EXPRESSION_PROCESS_ERROR, null, cause);\n }", "public AditoGitException(Exception pE)\n {\n super(pE);\n }", "public InterfaceException(Throwable e, MessageKey key) {\n super(e, key);\n }", "public Exception() {\n\tsuper();\n }", "private static String doListBuilderExceptionResponse(HttpServletRequest request, HttpServletResponse response, Paginator paginator, ListBuilderException e) {\n request.setAttribute(\"listBuilderException\", e); // save the exception\n return \"listBuilderException\"; // FormletEventHandler should check for this\n }", "public IORuntimeException(Throwable cause) {\n this(cause.getMessage(), cause);\n }", "public void addExceptionStyle();", "public InstrumenterException(Throwable throwable) {\r\n this(throwable, false);\r\n }", "public void testMenuStructureException_2()\n\t\tthrows Exception {\n\t\tString message = \"0123456789\";\n\n\t\tMenuStructureException result = new MenuStructureException(message);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t\tassertEquals(null, result.getCause());\n\t\tassertEquals(\"ch.bluepenguin.tapestry.components.menu.model.MenuStructureException: 0123456789\", result.toString());\n\t\tassertEquals(\"0123456789\", result.getMessage());\n\t\tassertEquals(\"0123456789\", result.getLocalizedMessage());\n\t}", "@ExceptionHandler(ValidationException.class)\n\tpublic final ResponseEntity<ErrorMessage> validationException(ValidationException ex) {\n\n\t\tErrorMessage exceptionResponse = new ErrorMessage(ex.getMessage(), \"Invalid input.\", currentTimeMillis);\n\t\treturn new ResponseEntity<ErrorMessage>(exceptionResponse, new HttpHeaders(), HttpStatus.NOT_FOUND);\n\t}", "public ConverterException(String message, Throwable cause) {\n super(message);\n this.cause = cause;\n }", "public Element createThrowElement(IntermediateEvent event, boolean rethrowAllowed) {\n\t\tElement result = null;\n//\t\tif (!event.getTriggerType().equals(IntermediateEvent.TRIGGER_ERROR)) {\n//\t\t\treturn result;\n//\t\t}\n//\t\tif (event.getTrigger() == null) {\n//\t\t\tif (rethrowAllowed) {\n//\t\t\t\tresult = this.document.createElement(\"rethrow\");\n//\t\t\t\tBPELUtil.setStandardAttributes(result, event);\n//\t\t\t} else {\n//\t\t\t\tthis.output.addError(\"The activity must define an error code, because a rethrow is not allowed in this context.\", event.getId());\n//\t\t\t\treturn null;\n//\t\t\t}\n//\t\t} else if (event.getTrigger() instanceof ResultError) {\n//\t\t\tResultError trigger = (ResultError)event.getTrigger();\n//\t\t\tif (trigger.getErrorCode() == null || trigger.getErrorCode().equals(\"\")) {\n//\t\t\t\tif (rethrowAllowed) {\n//\t\t\t\t\tresult = this.document.createElement(\"rethrow\");\n//\t\t\t\t\tBPELUtil.setStandardAttributes(result, event);\n//\t\t\t\t} else {\n//\t\t\t\t\tthis.output.addError(\"The activity must define an error code because a rethrow is not allowed in this context.\", event.getId());\n//\t\t\t\t\treturn null;\n//\t\t\t\t}\n//\t\t\t} else {\n//\t\t\t\tresult = this.document.createElement(\"throw\");\n//\t\t\t\tBPELUtil.setStandardAttributes(result, event);\n//\t\t\t\tresult.setAttribute(\"faultName\", trigger.getErrorCode());\n//\t\t\t\tVariableDataObject faultVariable = \n//\t\t\t\t\tthis.diagram.getStandardVariable(event, false);\n//\t\t\t\tif (faultVariable != null) {\n//\t\t\t\t\tresult.setAttribute(\"faultVariable\", faultVariable.getName());\n//\t\t\t\t}\n//\t\t\t}\n//\t\t}\n\t\treturn result;\n\t}", "SpaceInvaderTest_test_UnNouveauVaisseauPositionneHorsEspaceJeu_DoitLeverUneException createSpaceInvaderTest_test_UnNouveauVaisseauPositionneHorsEspaceJeu_DoitLeverUneException();", "protected InvalidXMLException(String message, Throwable cause){\n super(message, cause);\n }", "protected ValidationException() {\r\n\t\t// hidden\r\n\t}", "public InvalidEmployeeDetailsException(String exception) {\r\n super(exception);\r\n }", "protected CustomException getException(int code, String message, Object... objects) {\n return new CustomException(code, String.format(message, objects));\n }", "public ExceptionBase( ExceptionType exceptionType ) {\n\t\tsuper();\n\t\texceptionsCatching( exceptionType );\n\t}", "@Override\n public Response toResponse(InternalException ex) {\n ExternalException externalException = new ExternalException(\n ex.getErrorCode(),\n ex.getErrorDescription());\n\n Response.ResponseBuilder builder = Response\n .status(ex.getHttpStatusCode())\n .entity(externalException)\n .type(MediaType.APPLICATION_JSON);\n\n return builder.build();\n }", "public PigPenException(Throwable z) {\n super(z);\n setStackTrace(new StackTraceElement[0]);\n }", "public AditoGitException(String pMessage, Exception pE)\n {\n super(pMessage, pE);\n }", "public NSException() {\n\t\tsuper();\n\t\tthis.exception = new Exception();\n\t}", "public static TypeReference newExceptionReference(int exceptionIndex) {\n/* 282 */ return new TypeReference(0x17000000 | exceptionIndex << 8);\n/* */ }", "public void buildException(String message, Throwable cause) {\n\n // lanca a exception\n if (cause != null) {\n\n // mostra o stactrace\n cause.printStackTrace();\n throw new BuildException(message, cause);\n\n } else {\n\n // nao possui throwable\n throw new BuildException(message);\n }\n }", "public ConverterException(String message) {\n super(message);\n this.cause = null;\n }", "private void createAndShowDialog(Exception exception, String title) {\n Throwable ex = exception;\n if(exception.getCause() != null){\n ex = exception.getCause();\n }\n createAndShowDialog(ex.getMessage(), title);\n }", "private void createAndShowDialog(Exception exception, String title) {\n Throwable ex = exception;\n if(exception.getCause() != null){\n ex = exception.getCause();\n }\n createAndShowDialog(ex.getMessage(), title);\n }", "public void buildException(String message) {\n\n // passa null para throwable\n buildException(message, null);\n }", "private ModelAndView createErrorResponse(String sMessage) {\n\t\tlogger_c.debug(\"Exception déclenché au niveau de la classe PersoController2 :[\"\n\t\t\t\t+ sMessage + \" ]\");\n\t\treturn new ModelAndView(jsonView_i, ERROR_FIELD, sMessage);\n\t}", "public ViaturaExistenteException(){\n super();\n }", "public CoderException(Throwable cause) {\n super(cause);\n }", "public CustomException(Throwable cause) {\n super(cause == null ? null : cause.toString(), cause);\n }", "public PublishException(Throwable throwable) {\n\t\tsuper(throwable);\n\t}", "public Twig4jException(String rawMessage, String templateName, Integer lineNumber) {\n this.rawMessage = rawMessage;\n this.templateName = templateName;\n this.lineNumber = lineNumber;\n }", "@ExceptionHandler(InvalidExpressionRequestException.class)\n public ResponseEntity<ExpressionErrorResponse> invalidExpression(InvalidExpressionRequestException exc) {\n return ResponseEntity\n .badRequest()\n .body(ExpressionErrorResponse.builder()\n .error(exc.getErrorMessage())\n .build()\n );\n }", "public ResultProxy addStandardException(Exception e){\n\t\taddRecordToDataset(\"exceptions\", new RecordProxy()\n\t\t\t.addParam(\"opstatus\", 10500)\n\t\t\t.addParam(\"httpStatusCode\", 500)\n\t\t\t.addParam(\"message\", e.getMessage())\n\t\t\t.addParam(\"class\", e.getClass().getCanonicalName())\n\t\t\t.addParam(\"stack\", ExceptionUtils.getStackTrace(e))\n\t\t);\n\t\t//\t)\n\t\t//);\n\n\t\treturn this;\n\t}", "private ErrorDialog(final Window parent, final String title, final String message, final Exception exception) {\n this(parent, title, message, stackTraceToString(exception));\n }", "public TechnicalException() {\r\n }", "public static BillingServiceException createException(URISyntaxException e, FlowName flowName, String queueName) {\r\n return BillingServiceException.createBugDisturbance(\"Azure problem for integration \" + flowName + \" azure queue: \" +\r\n queueName + \" URISyntaxException towards Azure. Input: \" + e.getInput() +\r\n \" Reason: \" + e.getReason() + \" Message: \" + e.getMessage());\r\n }", "public StackUnderflowException(String e) {\n\t\tsuper(e);\n\t}", "public CompilationException(Throwable t) {\n\t\tsuper(t);\n\t}", "public JspTagException(String message, Throwable rootCause) {\n\tsuper( message, rootCause );\n }", "public OperationFailedException(String message, Exception causeOfException){\n super(message, causeOfException);\n }" ]
[ "0.600562", "0.58835644", "0.5847016", "0.554384", "0.55384344", "0.547117", "0.54611665", "0.54533356", "0.5447499", "0.5410416", "0.5397718", "0.53938013", "0.5386425", "0.53736097", "0.53653836", "0.52727723", "0.52700114", "0.52700114", "0.5207035", "0.51633716", "0.5163064", "0.5100685", "0.50919014", "0.5068729", "0.50684655", "0.50644", "0.50496536", "0.50472456", "0.5017325", "0.5010756", "0.49931917", "0.49448347", "0.49339285", "0.4931364", "0.49307734", "0.49281982", "0.4928043", "0.49203438", "0.4914909", "0.48997182", "0.48994878", "0.48947304", "0.48857436", "0.48781824", "0.48781824", "0.48706368", "0.4853145", "0.48480147", "0.48401082", "0.48373747", "0.4832799", "0.4829476", "0.48290402", "0.48216563", "0.48197252", "0.48053285", "0.47978884", "0.47852278", "0.4775593", "0.47718394", "0.47711122", "0.4769086", "0.47674793", "0.47666878", "0.47618416", "0.4755681", "0.47531092", "0.47491524", "0.4747909", "0.47421265", "0.47377428", "0.47316146", "0.47249156", "0.47244713", "0.47237167", "0.4721427", "0.4716778", "0.4713894", "0.47118005", "0.47114706", "0.47091106", "0.47088593", "0.4702225", "0.4702225", "0.46906126", "0.46904045", "0.46888483", "0.46873903", "0.46846217", "0.46803778", "0.46747184", "0.46694815", "0.46680912", "0.46637914", "0.46532834", "0.46500465", "0.46402308", "0.46373793", "0.46340048", "0.46332037" ]
0.62869114
0
Creates a new rendering exception using the given message and inner exception.
public RenderingException(String message, Throwable cause) { super(message, cause); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public WebAppException(String message, Throwable nestedException) {\r\n\t\tthis(message);\r\n\t\tthis.nestedException_ = nestedException;\r\n\t\tstackTraceString_ = generateStackTraceString(nestedException);\r\n\t\textractProperties(nestedException);\r\n\t}", "public VelocityEmailException(String msg, Throwable nested)\n {\n super(msg, nested);\n }", "public Twig4jException(String rawMessage) {\n this.rawMessage = rawMessage;\n }", "@SuppressWarnings(\"unused\")\n protected static HttpResponseImpl createError(final String message) {\n return createError(message, null);\n }", "public Twig4jException(String rawMessage, Throwable cause) {\n this.rawMessage = rawMessage;\n initCause(cause);\n }", "public VelocityEmailException(Throwable nested)\n {\n super(nested);\n }", "public APIException(String message, Exception inner) {\n\t\tsuper(message, inner);\n\t}", "public void buildException(String message) {\n\n // passa null para throwable\n buildException(message, null);\n }", "WireframeException(String message, Throwable e){\r\n super(message, e);\r\n }", "public FormatException(String message) {\r\n\t\tsuper(message);\r\n\t}", "public RenderingException(Throwable cause) {\r\n\t\tsuper(cause);\r\n\t}", "public APIException(String message, String token, Exception inner) {\n\t\tthis(message + \": \" + token, inner);\n\t}", "public Exception(String message) {\n\t\t\tsuper(message);\n\t\t}", "public InvalidModelException(String message) {\n super(message);\n }", "public DslException(String message, Exception e) {\n\t\tsuper(message, e);\n\t}", "public WebAppException(Throwable nestedException) {\r\n\t\tthis.nestedException_ = nestedException;\r\n\t\tstackTraceString_ = generateStackTraceString(nestedException);\r\n\t\textractProperties(nestedException);\r\n\t}", "public ConverterException(String message) {\n super(message);\n this.cause = null;\n }", "WireframeException(String message){\r\n super(message);\r\n }", "protected static HttpResponseImpl createError(String message, final Throwable t) {\n final HttpResponseImpl res = new HttpResponseImpl(500, \"Internal Server Error\", \"text/html\");\n final PrintWriter body;\n try {\n body = res.getWriter();\n } catch (final IOException e) { // impossible normally\n return res;\n }\n\n body.println(\"<html>\");\n body.println(\"<body>\");\n body.println(\"<h3>Internal Server Error</h3>\");\n body.println(\"<br><br>\");\n\n if (LOGGER.isDebugEnabled()) { // this is not an error, don't log it by default\n LOGGER.error(String.valueOf(t), t);\n }\n\n if (message != null) {\n final StringTokenizer msg = new StringTokenizer(message, \"\\n\\r\");\n\n while (msg.hasMoreTokens()) {\n body.print(msg.nextToken());\n body.println(\"<br>\");\n }\n }\n\n if (t != null) {\n\n PrintWriter writer = null;\n\n try {\n body.println(\"<br><br>\");\n body.println(\"Stack Trace:<br>\");\n final ByteArrayOutputStream baos = new ByteArrayOutputStream();\n writer = new PrintWriter(baos);\n t.printStackTrace(writer);\n writer.flush();\n\n message = new String(baos.toByteArray());\n final StringTokenizer msg = new StringTokenizer(message, \"\\n\\r\");\n\n while (msg.hasMoreTokens()) {\n body.print(msg.nextToken());\n body.println(\"<br>\");\n }\n } catch (final Exception e) {\n //no-op\n } finally {\n if (writer != null) {\n writer.close();\n }\n }\n }\n\n body.println(\"</body>\");\n body.println(\"</html>\");\n\n return res;\n }", "public WebAppException(String message) {\r\n\t\tsuper(message);\r\n\t}", "public Twig4jException(String rawMessage, String templateName) {\n this.rawMessage = rawMessage;\n this.templateName = templateName;\n }", "protected CustomException getException(int code, String message, Object... objects) {\n return new CustomException(code, String.format(message, objects));\n }", "public notHumanBeingException(String message){// Message parameted created\n super(message);\n \n }", "public TeWeinigGeldException(String message) {\n this.message = message;\n }", "public ConverterException(String message, Throwable cause) {\n super(message);\n this.cause = cause;\n }", "public CalcLayoutException(String message) {\n\t\tsuper(message);\n\t}", "public NotValidException(String message) {\r\n super(message);\r\n }", "public void buildException(String message, Throwable cause) {\n\n // lanca a exception\n if (cause != null) {\n\n // mostra o stactrace\n cause.printStackTrace();\n throw new BuildException(message, cause);\n\n } else {\n\n // nao possui throwable\n throw new BuildException(message);\n }\n }", "public CalcLayoutException(String message) {\n super(message);\n }", "public DslException(String message) {\n\t\tsuper(message);\n\t}", "public BadMessageException(final String message) {\r\n\t\tsuper(message);\r\n\t}", "public BaseException(String message) {\n super(message);\n setErrorCode();\n }", "public SenhaInvalidaException(String message) {\n\t\tsuper(message);\n\t}", "public NotFoundException(final String message) {\r\n super(Response.status(Responses.NOT_FOUND).\r\n entity(message).type(\"text/plain\").build());\r\n myDetailMessage = message;\r\n }", "public CassetteException(String message) {\r\n super(message);\r\n }", "public BusinessObjectException(Exception e) {\r\n super( \"\" + e );\r\n }", "protected static ExceptionSignalingNode createExceptionNode(final SourceSection ss) {\n CompilerDirectives.transferToInterpreter();\n return ExceptionSignalingNode.createNode(Symbols.symbolFor(\"TypeError\"), ss);\n }", "private ModelAndView createErrorResponse(String sMessage) {\n\t\tlogger_c.debug(\"Exception déclenché au niveau de la classe PersoController2 :[\"\n\t\t\t\t+ sMessage + \" ]\");\n\t\treturn new ModelAndView(jsonView_i, ERROR_FIELD, sMessage);\n\t}", "public LoginException(String exceptionMessage) {\n super(exceptionMessage);\n\t}", "public BadRequestException(String message) {\n super(message);\n if(!message.equals(\"\")){errorText = errorText.concat(\": \" + message);}\n }", "public AditoGitException(String pMessage, Exception pE)\n {\n super(pMessage, pE);\n }", "public MyException(String message)\n { super(message); }", "public NotesFormatException(String msg, Exception inner) {\n\t\tsuper(msg, inner);\n\t}", "public EmployeeException(String message) {\n\t\tsuper(message);\n\t}", "protected InvalidXMLException(String message, Throwable cause){\n super(message, cause);\n }", "public CompilationException(String message) {\n\t\tsuper(message);\n\t}", "public CoderException(String message) {\n super(message);\n }", "private static String buildErrorMessage(String message) {\n return EXCEPTION_PREFIX + ' ' + message;\n }", "public PriceModelException(String message, ApplicationExceptionBean bean) {\n super(message, bean);\n }", "public void testMenuStructureException_2()\n\t\tthrows Exception {\n\t\tString message = \"0123456789\";\n\n\t\tMenuStructureException result = new MenuStructureException(message);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t\tassertEquals(null, result.getCause());\n\t\tassertEquals(\"ch.bluepenguin.tapestry.components.menu.model.MenuStructureException: 0123456789\", result.toString());\n\t\tassertEquals(\"0123456789\", result.getMessage());\n\t\tassertEquals(\"0123456789\", result.getLocalizedMessage());\n\t}", "public DslException(String message, Throwable cause) {\n\t\tsuper(message, cause);\n\t}", "public CustomException(String message, Throwable cause) {\n super(message, cause);\n }", "public EmployeeNotFoundException(String message) {\n super(message);\n }", "public JDBFException (String message){\r\n super(Messages.message(message));\r\n }", "public TeWeinigGeldException(Exception e) {this.e = e;}", "public OperationFailedException(String message, Exception causeOfException){\n super(message, causeOfException);\n }", "public SearchServiceException(String message)\n\t{\n\t\tsuper(message);\n\t}", "public DayPersistenceException( String message ) {\n super(new Exception( message ), message);\n }", "public Twig4jException(String rawMessage, String templateName, Integer lineNumber, Throwable cause) {\n this.rawMessage = rawMessage;\n this.lineNumber = lineNumber;\n this.templateName = templateName;\n initCause(cause);\n }", "private static IOException createIOException(String message, Exception cause) {\n final IOException exception = new IOException(message);\n exception.initCause(cause);\n return exception;\n }", "public ReportException(String message) {\n\t\tsuper(message);\n\t}", "public ParsingException(String message) {\n super(message);\n }", "private SmartServiceException createException(Throwable t, String key, Object... args) {\n return new SmartServiceException.Builder(getClass(), t).userMessage(key, args).build();\n }", "public StackException(String message){\n super(message);\n }", "public CoderException(String message, Throwable cause) {\n super(message, cause);\n }", "public MyException() {\n super(\"This is my message. There are many like it but this one is mine.\");\n }", "public PriceModelException(String message, ApplicationExceptionBean bean,\n Throwable cause) {\n super(message, bean, cause);\n }", "public MyException(String message) {\r\n\t\tsuper(message);\r\n\t\t// TODO Auto-generated constructor stub\r\n\t}", "public SMSLibException(String errorMessage, Throwable originalE)\n/* 22: */ {\n/* 23:50 */ super(errorMessage);\n/* 24:51 */ this.originalE = originalE;\n/* 25: */ }", "public VerifyException(String message) {\n\t\tsuper(message);\n\t}", "public TechnicalException(String message) {\r\n super(message);\r\n }", "@Api(1.4)\n public HaloParsingException(@Nullable String message, @Nullable Exception e) {\n super(message, e);\n }", "public MyCustomException( String message )\n {\n\n\t// Why are we doing this??\n super( message );\n }", "public InstrumenterException(String message) {\r\n super(message);\r\n }", "public IORuntimeException(String message) {\n super(message);\n }", "public ApplicationErrorException(String message){\n super(message);\n Logger.getLogger(ApplicationErrorException.class).error(message);\n }", "public Neo4jException(String message) {\n this(\"N/A\", message);\n }", "public PriceModelException(final String message) {\n super(message);\n }", "private static ValidationException from(Throwable throwable) {\n return throwable instanceof ValidationException\n ? ((ValidationException) throwable)\n : new ValidationException(throwable);\n }", "public PSTemplateException(String message, Throwable cause) {\n super(message, cause);\n }", "public abstract RuntimeException getException(String message);", "public ResourceRuntimeException(String message) {\n super(message);\n }", "public EmailException()\n {\n super();\n }", "public static ValidationException from(BindException exception) {\n return new ValidationException(collectErrorMessages(exception.getAllErrors()));\n }", "public VelocityEmailException(String msg)\n {\n super(msg);\n }", "public InvalidJsonException(String message) {\n\t\tsuper(message);\n\t}", "public NestedSQLException(final Throwable nested) {\n this(nested.getMessage(), nested);\n }", "public AbstractCodeGenException(final String message) {\n super(message);\n }", "public TechnicalException(final String message) {\n super(message);\n }", "public RecordNotFoundException(String message) {\n this(message, null);\n }", "@Test\n public void testConstructorWithMessageAndCause()\n {\n final RuntimeException cause = new RuntimeException();\n final LoaderException e = new LoaderException(\"Custom message\", cause);\n assertEquals(\"Custom message\", e.getMessage());\n assertEquals(cause, e.getCause());\n }", "public VelocityEmailException()\n {\n super();\n }", "public void testConstructorWithMessage() {\r\n RejectReasonNotFoundException exception = new RejectReasonNotFoundException(message);\r\n\r\n assertNotNull(\"Unable to instantiate RejectReasonNotFoundException\", exception);\r\n assertTrue(\"Message is not initialized correctly\", exception.getMessage().matches(message + \".*\"));\r\n assertEquals(\"Cause is not initialized correctly\", null, exception.getCause());\r\n assertEquals(\"ProblemRejectReason is not initialized correctly\", null, exception.getProblemRejectReason());\r\n }", "public Twig4jException(String rawMessage, String templateName, Integer lineNumber) {\n this.rawMessage = rawMessage;\n this.templateName = templateName;\n this.lineNumber = lineNumber;\n }", "public LexerException(String message) {\n\t\tsuper(message);\n\t}", "public HTTPErrorException(String message) {\n super(message);\n }", "public JspTagException(String message, Throwable rootCause) {\n\tsuper( message, rootCause );\n }", "public SMSLibException(Throwable originalE)\n/* 17: */ {\n/* 18:45 */ this.originalE = originalE;\n/* 19: */ }", "public PSTemplateException(String message) {\n super(message);\n }", "public PlayException(String message) {\n super(message);\n }" ]
[ "0.6046221", "0.6000505", "0.5996571", "0.58758897", "0.5875054", "0.58649105", "0.58262604", "0.57365334", "0.5716537", "0.5685789", "0.5667463", "0.56170213", "0.5578562", "0.5555941", "0.55518293", "0.5537121", "0.55066806", "0.54830545", "0.5478568", "0.54542", "0.5444579", "0.54405814", "0.5415528", "0.54073566", "0.5401498", "0.53838027", "0.5380972", "0.53791475", "0.5375446", "0.53574485", "0.531479", "0.5310426", "0.52914816", "0.5284921", "0.52833265", "0.52801204", "0.5277536", "0.5275783", "0.52747655", "0.52679485", "0.5262569", "0.5257073", "0.5247643", "0.5242498", "0.5242082", "0.5233869", "0.52252436", "0.5223096", "0.5221052", "0.5216092", "0.5212967", "0.5211394", "0.5209447", "0.52040523", "0.52009636", "0.51809835", "0.5179984", "0.5177268", "0.5174854", "0.51708037", "0.51660657", "0.51507425", "0.5137864", "0.5133366", "0.5128187", "0.5123553", "0.51195717", "0.5110807", "0.5109528", "0.51083374", "0.510781", "0.50743675", "0.5071949", "0.5068417", "0.5066684", "0.50663143", "0.50651723", "0.50640947", "0.50639963", "0.50558496", "0.50515884", "0.504782", "0.50470346", "0.5041913", "0.50362945", "0.5032962", "0.50269264", "0.5018859", "0.50130737", "0.5012911", "0.50108016", "0.50067616", "0.50035936", "0.50024396", "0.4999816", "0.49976718", "0.4997558", "0.499587", "0.49944955", "0.49915272" ]
0.6433938
0
Just a pointCut function
@Pointcut("execution(public * com.ac.reserve..*.*Controller.*(..))") public void apiLog() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private PointCut removePointCut(PointCut p, Integer arg) {\n\t\tif (p.getType().equals(this.targetType)) {\n\t\t\tif (arg == 0) {\n\t\t\t\treturn null;\n\t\t\t} else {\n\t\t\t\tList<PointCut> pointcuts = new ArrayList<PointCut>();\n\t\t\t\treturn new CombinedPointCut(p.getBeginLine(), p.getBeginColumn(), \"&&\", pointcuts);\n\t\t\t}\n\t\t} else\n\t\t\treturn p;\n\t}", "@Override\n\t\t\tpublic IFuzzySet cut(double minValue) {\n\t\t\t\treturn null;\n\t\t\t}", "@Override\n\t\t\tpublic IFuzzySet cut(double minValue) {\n\t\t\t\treturn null;\n\t\t\t}", "public static ArrayList<Integer> getCutPoints() {\n return cutPoints;\n }", "public PointCutASTNode(PointCutASTNode self) {\n\t\tsuper(self);\n\t}", "public int getCutPoint(){\n \tint cut = random.nextInt((NODELENGTH * 3));\n \tif (cut % 3 == 1){\n \t\treturn cut + 2;\n \t}\n \telse if (cut % 3 == 2){\n \t\treturn cut + 1;\n \t}\n \telse {\n \t\treturn cut;\n \t}\n \t\n }", "void cut(int cardPosition);", "public abstract Cut<C> a(BoundType boundType, DiscreteDomain<C> discreteDomain);", "public boolean isCut() {\n\t\treturn isCut;\n\t}", "public void cut(int cutPoint) {\n if (cutPoint > deckOfCards.size()){\n return;\n }\n List<Card> cutList;\n cutList = new ArrayList<Card>(deckOfCards.subList(0,cutPoint));\n deckOfCards.subList(0,cutPoint).clear();\n deckOfCards.addAll(cutList);\n }", "public int invokeCutMode()\n{\n \n return(0);\n\n}", "void pointScaleFree() {\n\t\t// offsetP = PVector.sub(P, beginOffsetP); // get the offset (because\n\t\t// mouse isnt' exatly at the pressed point, there a little offset)\n\t\toffset = PVector.sub(P, beginOffset); // calculate the offset made by\n\t\t\t\t\t\t\t\t\t\t\t\t// mouseDrag -- subtract\n\t\t\t\t\t\t\t\t\t\t\t\t// beginOffset from P\n\t\toffsetP = PVector.add(beginOffsetP, offset); // reposition point A based\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// the offset made\n\n\t\tleftOppositeLine.detectX(offsetP); // update X (dot product magic)\n\t\t\t\t\t\t\t\t\t\t\t// constantly\n\t\trightOppositeLine.detectX(offsetP); // update X (dot product magic)\n\t\t\t\t\t\t\t\t\t\t\t// constantly\n\n\t\tfloat scaleFactorRight, scaleFactorLeft;\n\t\tscaleFactorRight = rightOppositeLine.X.dist(offsetP) / rightOppositeLine.beginX.dist(beginOffsetP);\n\t\tscaleFactorLeft = leftOppositeLine.X.dist(offsetP) / leftOppositeLine.beginX.dist(beginOffsetP);\n\n\t\t// needs exaplainin drawing\n\t\tPVector tmpR = new PVector();\n\t\tPVector tmpL = new PVector();\n\n\t\tif (rightOppositeLine.isOnThisSideOfLine == rightOppositeLine.checkLineSide(offsetP)) {\n\t\t\tif (leftOppositeLine.isOnThisSideOfLine == leftOppositeLine.checkLineSide(offsetP)) {\n\t\t\t\ttmpR = PVector.sub(rightOppositeLine.beginStart, rightOppositeLine.beginEnd);\n\t\t\t\ttmpL = PVector.sub(leftOppositeLine.beginStart, leftOppositeLine.beginEnd);\n\t\t\t} else {\n\t\t\t\ttmpR = PVector.sub(rightOppositeLine.beginEnd, rightOppositeLine.beginStart);\n\t\t\t\ttmpL = PVector.sub(leftOppositeLine.beginStart, leftOppositeLine.beginEnd);\n\t\t\t}\n\t\t} else {\n\t\t\tif (leftOppositeLine.isOnThisSideOfLine == leftOppositeLine.checkLineSide(offsetP)) {\n\t\t\t\ttmpR = PVector.sub(rightOppositeLine.beginStart, rightOppositeLine.beginEnd);\n\t\t\t\ttmpL = PVector.sub(leftOppositeLine.beginEnd, leftOppositeLine.beginStart);\n\t\t\t} else {\n\t\t\t\ttmpR = PVector.sub(rightOppositeLine.beginEnd, rightOppositeLine.beginStart);\n\t\t\t\ttmpL = PVector.sub(leftOppositeLine.beginEnd, leftOppositeLine.beginStart);\n\t\t\t}\n\t\t}\n\n\t\t// needs exaplainin drawing\n\n\t\ttmpL.mult(scaleFactorRight);\n\t\ttmpL.add(leftOppositeLine.end);\n\n\t\ttmpR.mult(scaleFactorLeft);\n\t\ttmpR.add(rightOppositeLine.end);\n\n\t\t// set left neigbor point\n\t\tpoint[neighbor(selectedPoint)[0]].position.set(tmpL);\n\n\t\t// set right neighbor point\n\t\tpoint[neighbor(selectedPoint)[1]].position.set(tmpR);\n\t\tpoint[selectedPoint].position.set(offsetP);\n\t\tselectedLine = -1; // disable line focus\n\t\tupdateGlobalLines();\n\t}", "public interface InterTripleCut {\n\tvoid tripleCut();\n}", "public void cut(final int p0, final int p1) {\n setCaretPosition(p0);\n moveCaretPosition(Math.max(p1, p0));\n JTextComponent.this.cut();\n }", "public abstract Cut<C> b(BoundType boundType, DiscreteDomain<C> discreteDomain);", "public ArrayList<Point> getLeftZone(BufferedImage image_dest, Point divider) {\n int count = 0;\n int x_sum = 0;\n int y_sum = 0;\n\n int w = image_dest.getWidth();\n int h = image_dest.getHeight();\n int xLeftCentroid = 0;\n int yLeftCentroid = 0;\n\n Point point1 = null; //right \t-A\n Point point2 = null; //left\t\t-B\n Point point3 = null; //centroid\t-C\n\n ArrayList<Point> points = new ArrayList<Point>();\n\n //\tint y_divider = divider.y;\n\n for (int y = 0; y < h; y++) {\n for (int x = 0; x <= divider.x; x++) {\n if (image_dest.getRGB(x, y) != -1) {\n\n x_sum += x;\n y_sum += y;\n count++;\n\n //\tSystem.out.print(\"0\");\n } else {\n\n //\t\tSystem.out.print(\"1\");\n }\n\n }\n //\tSystem.out.println(\"\");\n }\n //\tSystem.out.println(\"\\n\\n\");\n\n if (count == 0) {\n //JOptionPane.showMessageDialog(null, \"No black pixels exist\");\n point1 = new Point(0, 0);\n point2 = new Point(0, 0);\n point3 = new Point(0, 0);\n } else {\n double d_yLeftCentroid = Double.valueOf(df.format(new Double(y_sum).doubleValue() / new Double(count).doubleValue()));\n double d_xLeftCentroid = Double.valueOf(df.format(new Double(x_sum).doubleValue() / new Double(count).doubleValue()));\n yLeftCentroid = (int) Math.round(new Double(d_yLeftCentroid));\n xLeftCentroid = (int) Math.round(new Double(d_xLeftCentroid));\n\n\n point3 = new Point(xLeftCentroid, yLeftCentroid);\n\n Point begin = new Point(0, 0);\n Point end = new Point(divider.x, h);\n\n\n point2 = getLeft(image_dest, point3, begin, end);\n //System.out.println(\"Point 2 :\"+point2);\n\n begin.x = xLeftCentroid;//�\n begin.y = 0;\n\n end.x = divider.x;\n end.y = h;\n\n point1 = getRight(image_dest, point3, begin, end);\n\n }\n points.add(point1);\n points.add(point2);\n points.add(point3);\n return points;\n }", "public void logCut(Dataset ds){\n dataProcessToolPanel.logCut(dataset);\n }", "public void selectCutVertices() {\n BiConnectedComponents bcc_2p = graph2p_bcc;\n if (bcc_2p != null) {\n Set<String> new_sel = new HashSet<String>();\n\tnew_sel.addAll(bcc_2p.getCutVertices());\n setOperation(new_sel);\n }\n }", "private static boolean isCut(Spreadsheet ss) {\r\n \t\treturn Boolean.valueOf( (Boolean)ss.getAttribute(KEY_IS_CUT) ); //if attr is null return false\r\n \t}", "private ArrayList<Point> extractCC(Point r, Image img)\r\n/* 55: */ {\r\n/* 56: 58 */ this.s.clear();\r\n/* 57: 59 */ this.s.add(r);\r\n/* 58: 60 */ this.temp.setXYBoolean(r.x, r.y, true);\r\n/* 59: 61 */ this.list2.add(r);\r\n/* 60: */ \r\n/* 61: 63 */ Point[] N = { new Point(1, 0), new Point(0, 1), new Point(-1, 0), new Point(0, -1), \r\n/* 62: 64 */ new Point(1, 1), new Point(-1, -1), new Point(-1, 1), new Point(1, -1) };\r\n/* 63: */ \r\n/* 64: 66 */ ArrayList<Point> pixels = new ArrayList();\r\n/* 65: */ int x;\r\n/* 66: */ int i;\r\n/* 67: 68 */ for (; !this.s.isEmpty(); i < N.length)\r\n/* 68: */ {\r\n/* 69: 70 */ Point tmp = (Point)this.s.pop();\r\n/* 70: */ \r\n/* 71: 72 */ x = tmp.x;\r\n/* 72: 73 */ int y = tmp.y;\r\n/* 73: 74 */ pixels.add(tmp);\r\n/* 74: */ \r\n/* 75: 76 */ this.temp2.setXYBoolean(x, y, true);\r\n/* 76: */ \r\n/* 77: 78 */ i = 0; continue;\r\n/* 78: 79 */ int _x = x + N[i].x;\r\n/* 79: 80 */ int _y = y + N[i].y;\r\n/* 80: 82 */ if ((_x >= 0) && (_x < this.xdim) && (_y >= 0) && (_y < this.ydim)) {\r\n/* 81: 84 */ if (!this.temp.getXYBoolean(_x, _y))\r\n/* 82: */ {\r\n/* 83: 86 */ boolean q = img.getXYBoolean(_x, _y);\r\n/* 84: 88 */ if (q)\r\n/* 85: */ {\r\n/* 86: 90 */ Point t = new Point(_x, _y);\r\n/* 87: 91 */ this.s.add(t);\r\n/* 88: */ \r\n/* 89: 93 */ this.temp.setXYBoolean(t.x, t.y, true);\r\n/* 90: 94 */ this.list2.add(t);\r\n/* 91: */ }\r\n/* 92: */ }\r\n/* 93: */ }\r\n/* 94: 78 */ i++;\r\n/* 95: */ }\r\n/* 96: 99 */ for (Point t : this.list2) {\r\n/* 97:100 */ this.temp.setXYBoolean(t.x, t.y, false);\r\n/* 98: */ }\r\n/* 99:101 */ this.list2.clear();\r\n/* 100: */ \r\n/* 101:103 */ return pixels;\r\n/* 102: */ }", "public ArrayList<Point> getRightZone(BufferedImage image_dest, Point divider) {\n int count = 0;\n int x_sum = 0;\n int y_sum = 0;\n\n int w = image_dest.getWidth();\n int h = image_dest.getHeight();\n int xRightCentroid = 0;\n int yRightCentroid = 0;\n\n Point point1 = null; //right \t-A\n Point point2 = null; //left\t\t-B\n Point point3 = null; //centroid\t-C\n\n ArrayList<Point> points = new ArrayList<Point>();\n\n //\tint y_divider = divider.y;\n\n for (int y = 0; y < h; y++) {\n for (int x = divider.x; x < w; x++) {\n if (image_dest.getRGB(x, y) != -1) {\n\n x_sum += x;\n y_sum += y;\n count++;\n\n //\t\t\t\tSystem.out.print(\"0\");\n } else {\n //\n//\t\t\t\t\tSystem.out.print(\"1\");\n }\n\n }\n //\t\tSystem.out.println(\"\");\n }\n//\t\tSystem.out.println(\"\\n\\n\");\n\n if (count == 0) {\n //JOptionPane.showMessageDialog(null, \"No black pixels exist\");\n point1 = new Point(0, 0);\n point2 = new Point(0, 0);\n point3 = new Point(0, 0);\n } else {\n\n double d_yRightCentroid = Double.valueOf(df.format(new Double(y_sum).doubleValue() / new Double(count).doubleValue()));\n double d_xRightCentroid = Double.valueOf(df.format(new Double(x_sum).doubleValue() / new Double(count).doubleValue()));\n yRightCentroid = (int) Math.round(new Double(d_yRightCentroid));\n xRightCentroid = (int) Math.round(new Double(d_xRightCentroid));\n\n //xRightCentroid = (int)Math.round(new Double(x_sum)/new Double(count));\n //yRightCentroid = (int)Math.round(new Double(y_sum)/new Double(count));\n\n point3 = new Point(xRightCentroid, yRightCentroid);\n\n Point begin = new Point(divider.x, 0);\n Point end = new Point(xRightCentroid, h);\n\n\n point2 = getLeft(image_dest, point3, begin, end);\n //System.out.println(\"Point 2 :\"+point2);\n\n begin.x = xRightCentroid;//�\n begin.y = 0;\n\n end.x = w;\n end.y = h;\n\n point1 = getRight(image_dest, point3, begin, end);\n\n }\n points.add(point1);\n points.add(point2);\n points.add(point3);\n\n status = \"reset\";\n return points;\n }", "public void doCut()\n {\n bothToolClicked(map.selectedHexesIterator(), true);\n }", "P getSplitPoint();", "public void removeCutVertices() {\n boolean found;\n LinkedList<Integer> isolated = new LinkedList<>();\n do {\n found = false;\n for (Map.Entry<Integer, Set<Integer>> entry : adjacencyMap.entrySet()) {\n// System.out.println(\"adjacency print key: \" + entry.getKey() + \"value: \" +\n// entry.getValue() + \"set size: \" + entry.getValue().size());\n if (entry.getValue().size() == 1) {\n// System.out.println(\"found cut vertex\");\n found = true; // loop yielded a cut vertex\n // get the only vertex in the set\n for (Integer integer : entry.getValue()) {\n// System.out.println(\"started set iterator\" + integer);\n int removalSet = integer; // take the value of the set element\n // create a temp set\n Set<Integer> tempSet = adjacencyMap.get(removalSet);\n tempSet.remove(entry.getKey()); // remove the cut vertex from this set\n adjacencyMap.replace(removalSet, tempSet); // put the smaller set in place\n }\n isolated.add(entry.getKey());\n\n\n }\n\n }\n // remove isolated vertices\n for (Integer vert : isolated) {\n adjacencyMap.remove(vert);\n }\n isolated.clear();\n } while (found);\n }", "private void smooth_plot(Bundle bundle, boolean spliceCurve, String suffix) {\n\n int[] xdata = bundle.getIntArray(\"xdata\" + suffix);\n float[] ydata = bundle.getFloatArray(\"ydata\" + suffix);\n\n // create a list of the points\n int totalPoints = xdata.length;\n ArrayList<UtilsMisc.XYPoint> details = new ArrayList<>();\n for (int i = 0; i < totalPoints; i++)\n details.add(new UtilsMisc.XYPoint(xdata[i], ydata[i]));\n\n // break up the list into chunks of NUM_POINTS based on the number of curves\n List<List<UtilsMisc.XYPoint>> partitions = new ArrayList<>();\n int NUM_CURVES = (int) Math.round(Math.log10(totalPoints)) * 2;\n int NUM_POINTS = (NUM_CURVES == 0) ? 1 : totalPoints / NUM_CURVES;\n for (int i = 0; i < totalPoints; i += NUM_POINTS)\n partitions.add(details.subList(i, Math.min(i + NUM_POINTS, totalPoints)));\n\n // for each partition, get 4 control points\n ArrayList<UtilsMisc.XYPoint> fourPoints = new ArrayList<>();\n int color = 0;\n for (int i = 0; i < partitions.size(); i++) {\n // verify that there are at least four points\n if (partitions.get(i).size() < 4) continue;\n\n // get the subset of details\n List<UtilsMisc.XYPoint> subDetails = partitions.get(i);\n UtilsMisc.XYPoint[] p = new UtilsMisc.XYPoint[4];\n\n // set the first and last control points\n double x, y;\n int first = (i == 0) ? 1 : 0;\n //x = (subDetails.get(first).getTimestamp() - start_time) / 1000.0;\n //y = getYCoordinate(subDetails, first, dataIndex);\n x = subDetails.get(first).getX();\n y = subDetails.get(first).getY();\n p[0] = new UtilsMisc.XYPoint(x, y, color);\n\n int last = subDetails.size() - 1;\n //x = (subDetails.get(last).getTimestamp() - start_time) / 1000.0;\n //y = getYCoordinate(subDetails, last, dataIndex);\n x = subDetails.get(last).getX();\n y = subDetails.get(last).getY();\n p[3] = new UtilsMisc.XYPoint(x, y, color);\n\n // find the min. and max values for the second and third control points\n // in between the first and last control points\n int min_index = 0;\n int max_index = 0;\n float max_sub_value = 0.0f;\n float min_sub_value = Constants.LARGE_FLOAT;\n for (int j = 1; j < subDetails.size() - 1; j++) {\n // float value = getYCoordinate(subDetails, j, dataIndex);\n float value = (float) subDetails.get(j).getY();\n if (value < min_sub_value) {\n min_index = j;\n min_sub_value = value;\n }\n if (value > max_sub_value) {\n max_index = j;\n max_sub_value = value;\n }\n }\n\n double xmin = subDetails.get(min_index).getX();\n double ymin = subDetails.get(min_index).getY();\n double xmax = subDetails.get(max_index).getX();\n double ymax = subDetails.get(max_index).getY();\n\n if (max_index > min_index) {\n p[1] = new UtilsMisc.XYPoint(xmin, ymin, color);\n p[2] = new UtilsMisc.XYPoint(xmax, ymax, color);\n } else {\n p[2] = new UtilsMisc.XYPoint(xmin, ymin, color);\n p[1] = new UtilsMisc.XYPoint(xmax, ymax, color);\n }\n\n fourPoints.addAll(Arrays.asList(p)); // build the list of main points\n }\n\n // build the list of control points,\n ArrayList<UtilsMisc.XYPoint> controlPoints = new ArrayList<>();\n for (int i = 0; i < fourPoints.size(); i++) {\n controlPoints.add(fourPoints.get(i));\n // in a spliced curve, add a center control point for every alternate pair of points\n if (spliceCurve && (i % 2 == 0) && (i > 0) && (i + 3) < fourPoints.size()) {\n controlPoints.add(UtilsMisc.center(fourPoints.get(i), fourPoints.get(i + 1)));\n }\n }\n\n // for a spliced curve do the 4 point bezier interpolation from 0..3, 3..6, 6..9\n // otherwise, do the 4 point bezier interpolation from 0..3, 4..7, 8..11\n UtilsMisc.XYPoint p1, p2, p3, p4;\n ArrayList<UtilsMisc.XYPoint> allPoints = new ArrayList<>();\n int INCREMENT = spliceCurve ? 3 : 4;\n for (int i = 0; i < controlPoints.size(); i += INCREMENT) {\n if ((i + 3) < controlPoints.size()) {\n p1 = controlPoints.get(i);\n p2 = controlPoints.get(i + 1);\n p3 = controlPoints.get(i + 2);\n p4 = controlPoints.get(i + 3);\n allPoints.addAll(UtilsMisc.BezierInterpolate(p1, p2, p3, p4));\n }\n }\n\n // remove duplicate x coordinates\n ArrayList<Integer> times_list = new ArrayList<>();\n ArrayList<Float> values_list = new ArrayList<>();\n Hashtable<Integer, Boolean> seenInt = new Hashtable<>();\n for (int i = 0; i < allPoints.size(); i++) {\n int xloc = (int) Math.round(allPoints.get(i).getX());\n if (seenInt.containsKey(xloc)) continue;\n seenInt.put(xloc, true);\n times_list.add(xloc);\n values_list.add((float) allPoints.get(i).getY());\n }\n\n // convert array list to array\n int[] smooth_times = UtilsMisc.convertIntegers(times_list);\n float[] smooth_values = UtilsMisc.convertFloats(values_list);\n\n bundle.putIntArray(\"xdata\" + suffix, smooth_times);\n bundle.putFloatArray(\"ydata\" + suffix, smooth_values);\n }", "@SuppressWarnings(\"unused\")\r\n private void JCATsegmentSubcutaneousFat2D() {\r\n \r\n // a buffer to store a slice from the source Image\r\n short[] srcBuffer;\r\n try {\r\n srcBuffer = new short [sliceSize];\r\n } catch (OutOfMemoryError error) {\r\n System.gc();\r\n MipavUtil.displayError(\"JCATsegmentVisceralFat2D(): Can NOT allocate srcBuffer\");\r\n return;\r\n }\r\n \r\n // get the data from the segmented abdomenImage and the srcImage\r\n try {\r\n abdomenImage.exportData(0, sliceSize, sliceBuffer);\r\n srcImage.exportData(0, sliceSize, srcBuffer);\r\n } catch (IOException ex) {\r\n// System.err.println(\"JCATsegmentVisceralFat2D(): Error exporting data\");\r\n MipavUtil.displayError(\"JCATsegmentVisceralFat2D(): Error exporting data\");\r\n return;\r\n }\r\n \r\n // find the center of mass of the single label object in the sliceBuffer (abdomenImage)\r\n findAbdomenCM();\r\n\r\n // Use the CM, the abdomenImage, and the srcImage to define points on the\r\n // abdomen and visceral VOI's\r\n ArrayList<Integer> xArrAbdom = new ArrayList<Integer>();\r\n ArrayList<Integer> yArrAbdom = new ArrayList<Integer>();\r\n ArrayList<Integer> xArrVis = new ArrayList<Integer>();\r\n ArrayList<Integer> yArrVis = new ArrayList<Integer>();\r\n findVOIs(centerOfMass, xArrAbdom, yArrAbdom, srcBuffer, xArrVis, yArrVis);\r\n \r\n int[] x1 = new int[xArrAbdom.size()];\r\n int[] y1 = new int[xArrAbdom.size()];\r\n int[] z1 = new int[xArrAbdom.size()];\r\n for(int idx = 0; idx < xArrAbdom.size(); idx++) {\r\n x1[idx] = xArrAbdom.get(idx);\r\n y1[idx] = yArrAbdom.get(idx);\r\n z1[idx] = 0;\r\n }\r\n\r\n // make the VOI's and add the points to them\r\n abdomenVOI = new VOI((short)0, \"Abdomen\");\r\n abdomenVOI.importCurve(x1, y1, z1);\r\n \r\n\r\n for(int idx = 0; idx < xArrVis.size(); idx++) {\r\n x1[idx] = xArrVis.get(idx);\r\n y1[idx] = yArrVis.get(idx);\r\n }\r\n\r\n subcutaneousVOI = new VOI((short)0, \"Subcutaneous area\");\r\n subcutaneousVOI.importCurve(x1, y1, z1);\r\n \r\n/*\r\n ViewUserInterface.getReference().getMessageFrame().append(\"Xcm: \" +xcm +\" Ycm: \" +ycm);\r\n sliceBuffer[ycm * xDim + xcm] = 20;\r\n for (int idx = 0; idx < xArr.size(); idx++) {\r\n sliceBuffer[yArr.get(idx) * xDim + xArr.get(idx)] = 20;\r\n sliceBuffer[yArrVis.get(idx) * xDim + xArrVis.get(idx)] = 30;\r\n }\r\n // save the sliceBuffer into the abdomenImage\r\n try {\r\n abdomenImage.importData(0, sliceBuffer, false);\r\n } catch (IOException ex) {\r\n System.err.println(\"segmentThighTissue(): Error importing data\");\r\n }\r\n*/\r\n// ShowImage(srcImage, \"Segmented Abdomen\");\r\n\r\n\r\n// ViewUserInterface.getReference().getMessageFrame().append(\"Abdomen VOI points:\");\r\n// for (int idx = 0; idx < xArr.size(); idx++) {\r\n// ViewUserInterface.getReference().getMessageFrame().append(xArr.get(idx) +\" \" + yArr.get(idx));\r\n// }\r\n\r\n }", "public void applyFilterAtPoint(int x, int y, BufferedImage imgIn, BufferedImage imgOut) {\r\n\t double dltX = 0; double dltY = 0;\r\n\r\n\t for(int i_x = -getMargin(); i_x <= getMargin(); i_x++) {\r\n\t for(int i_y = -getMargin(); i_y <= getMargin(); i_y++) {\r\n\t int rgb = imgIn.getRGB(x + i_x, y + i_y);\r\n\t int blue = (rgb) & 0x000000FF;\r\n\t double V_ = blue * Math.exp(-0.25 * (Math.pow(i_x, 2) + Math.pow(i_y, 2)));\r\n\t dltX += Integer.signum(i_x) * V_;\r\n\t dltY += Integer.signum(i_y) * V_;\r\n\t }\r\n\t }\r\n\r\n\t double N_ = Math.sqrt(Math.pow(dltX, 2) + Math.pow(dltY, 2));\r\n\t double V_ = 255.0 - 0.5 * N_;\r\n\t int V_grey = (int) Math.round(Math.max(0.0d, V_));\r\n\t imgOut.setRGB(x - this.getMargin() , y - this.getMargin(), new Color(V_grey, V_grey, V_grey).getRGB());\r\n\t }", "public void cut(E data) {\n first = new Noder<>(data, first);\n }", "public void findBoundary(boolean useDestinations)\r\n\t{\n\tdouble maxSpacing = res/5.0;\r\n\tif(maxSpacing<1) maxSpacing = 1;\r\n\t\r\n\t//First make sure point sampling is dense enough:\t\r\n\tVector<Int2d> surfaceT = new Vector<Int2d>();\t\r\n\tfor(int it=0; it<sl; it++)\r\n\t\t{\r\n\t\tInt2d p = surface.get(it);\r\n\t\tsurfaceT.add(p);\r\n\t\tInt2d p2 = surface.get((it+1)%sl);\r\n\t\tdouble pdist = p2.distance(p);\r\n\t\tif(pdist > maxSpacing)\r\n\t\t\t{\r\n\t\t\t// populate this line segment with points\r\n\t\t\tint extraPoints = (int)(pdist/maxSpacing); // - 2 cause we already have 2 points\r\n\t\t\t\r\n\t\t\tfor(int i=0; i<extraPoints; i++)\r\n\t\t\t\t{\r\n\t\t\t\tInt2d pN = new Int2d(p);\r\n\t\t\t\tInt2d diff = new Int2d();\r\n\t\t\t\tdiff.sub(p2,p);\r\n\t\t\t\tpN.scaleAdd((double)(i+1.)/(extraPoints+1.),diff,pN);\r\n\t\t\t\tsurfaceT.add(pN);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t//System.out.println(\"got here2.1\");\r\n\tsurface = surfaceT;\r\n\tcanvas1.surface = surface;\r\n\tsl = surfaceT.size();\r\n\t\t\r\n\t//System.out.println(sl);\r\n\t\r\n\t\t\t\t\r\n\tfor(int it=0; it<sl; it++)\r\n\t\t{\r\n\t\tInt2d p = surface.get(it);\r\n\t\tint i = (int)(p.x/res);\r\n\t\tint j = (int)(p.y/res);\r\n\t\tboolean extraWide = false;\r\n\t\tboolean extraHigh = false;\t\t\r\n\t\t\r\n\t\tif((p.y % res) == 0)\r\n\t\t\t{\r\n\t\t\t//System.out.println(\"Extra high at i,j = \" + i + \", \" + j);\r\n\t\t\textraHigh = true;\r\n\t\t\t}\r\n\t\tif((p.x % res) == 0)\r\n\t\t\t{\r\n\t\t\textraWide = true;\r\n\t\t\t}\r\n\t\t\t\r\n\t\tint len = 4;\r\n\t\tif(extraWide && extraHigh) len = 9;\r\n\t\telse if(extraWide || extraHigh) len = 6;\r\n\t\t\r\n\t\tInt2d[] pi = new Int2d[len];\r\n\t\tint[] ic = new int[len];\r\n\t\tint[] jc = new int[len];\r\n\t\t\r\n\t\tgenerateStencil(i,j,extraWide,extraHigh,ic,jc,pi,len);\r\n\t\t\r\n\t\tfor(int c=0; c<len; c++)\r\n\t\t\t{\r\n\t\t\tif(withinBounds(ic[c],jc[c]))\r\n\t\t\t\t{\r\n\t\t\t\tif(!useDestinations)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tif(!boundary.contains(pi[c])) boundary.add(pi[c]);\r\n\t\t\t\t\tInt2d piX = new Int2d(res*pi[c].x,res*pi[c].y);\r\n\t\t\t\t\tdouble dCur = piX.distance(p);\r\n\t\t\t\t\tint sign = 1;\r\n\t\t\t\t\tif(poly.contains(res*pi[c].x,res*pi[c].y)) sign = -1;\r\n\t\t\t\t\t//if(ic[c] == 10 && jc[c] == 10) System.out.println(\"sign = \" + sign);\r\n\t\t\t\t\tif(dCur<Math.abs(phi[ic[c]][jc[c]]))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\tphi[ic[c]][jc[c]] = sign*dCur;\r\n\t\t\t\t\t\t//System.out.println(sign*dCur);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t//else phi[ic[c]][jc[c]] = -phiStart;\r\n\t\t\t\t// Way suggested in paper, but this looks bad with interpolation\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t//System.out.println(\"got here2.2\");\r\n\t\t\r\n\tif(useDestinations) //Use destinations\r\n\t\t{\t\t\r\n\t\t// Sets destination point distances accordingly\r\n\t\t\r\n\t\tint dl = destinations.size();\r\n\t\tfor(int it=0; it<dl; it++)\r\n\t\t\t{\r\n\t\t\tInt2d p = destinations.get(it);\r\n\t\t\tint i = (int)(p.x/res);\r\n\t\t\tint j = (int)(p.y/res);\r\n\t\t\tboolean extraWide = false;\r\n\t\t\tboolean extraHigh = false;\t\t\r\n\t\t\t\r\n\t\t\tif((p.y % res) == 0)\r\n\t\t\t\t{\r\n\t\t\t\t//System.out.println(\"Extra high at i,j = \" + i + \", \" + j);\r\n\t\t\t\textraHigh = true;\r\n\t\t\t\t}\r\n\t\t\tif((p.x % res) == 0)\r\n\t\t\t\t{\r\n\t\t\t\textraWide = true;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\tint len = 4;\r\n\t\t\tif(extraWide && extraHigh) len = 9;\r\n\t\t\telse if(extraWide || extraHigh) len = 6;\r\n\t\t\t\r\n\t\t\tInt2d[] pi = new Int2d[len];\r\n\t\t\tint[] ic = new int[len];\r\n\t\t\tint[] jc = new int[len];\r\n\t\t\t\r\n\t\t\tgenerateStencil(i,j,extraWide,extraHigh,ic,jc,pi,len);\r\n\t\t\t\r\n\t\t\tfor(int c=0; c<len; c++)\r\n\t\t\t\t{\r\n\t\t\t\tif(withinBounds(ic[c],jc[c]))\r\n\t\t\t\t\t{\r\n\t\t\t\t\tif(!boundary.contains(pi[c])) boundary.add(pi[c]);\r\n\t\t\t\t\tInt2d piX = new Int2d(res*pi[c].x,res*pi[c].y);\r\n\t\t\t\t\tdouble dCur = piX.distance(p);\r\n\t\t\t\t\tint sign = 1;\r\n\t\t\t\t\tif(poly.contains(res*pi[c].x,res*pi[c].y)) sign = -1;\r\n\t\t\t\t\t//if(ic[c] == 10 && jc[c] == 10) System.out.println(\"sign = \" + sign);\r\n\t\t\t\t\tif(dCur<Math.abs(phi[ic[c]][jc[c]]))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\tphi[ic[c]][jc[c]] = sign*dCur;\r\n\t\t\t\t\t\t//System.out.println(sign*dCur);\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\t\r\n\t\t}\r\n\t\t\r\n\t\t\t\t\r\n\tint bl = boundary.size();\r\n\t/*\r\n\tfor(int k=0; k<bl; k++)\r\n\t\t{\r\n\t\tSystem.out.println(boundary.get(k).x + \", \" + boundary.get(k).y + \": element \" + k);\r\n\t\t}\r\n\t\t*/\r\n\t\t\t\r\n\tfor(int i=0; i<bl; i++)\r\n\t\t{\r\n\t\tInt2d pi = boundary.get(i);\r\n\t\tpi.phi = phi[pi.x][pi.y];\r\n\t\t}\r\n\t}", "public void cutSelection() {\r\n \t\t// Bertoli Marco\r\n \t\tclipboard.cut();\r\n \t}", "public Cut<C> c(DiscreteDomain<C> discreteDomain) {\n Comparable a = a(discreteDomain);\n return a != null ? b(a) : Cut.e();\n }", "public Point2D removePoint(int i);", "public static void smoothContour(List<PointIndex_I32> v, int minLength) {\n if(v.size() > 0){\n //if the distance between any two sequential points is < minLength, remove that point\n for (int i = v.size() - 2; i >= 0; i--) {\n if (v.get(i).distance(v.get(i + 1)) < minLength) {\n v.remove(i + 1);\n }\n }\n //test the distance between the last point and the first\n if (v.get(v.size() - 1).distance(v.get(0)) < minLength) {\n v.remove(v.size() - 1);\n }\n }\n }", "public ArrayList<Point> getUpperPoints(BufferedImage image_dest, int y_center, int width) {\n\n int w = image_dest.getWidth();\n\n //\tSystem.out.println(\"lebar x :\" +w);\n //\tSystem.out.println(\"tinggi y :\"+image_dest.getHeight());\n //int h = image_dest.getHeight();\n\n int xUpperCentroid = 0;\n int yUpperCentroid = 0;\n\n int xUpperLeft = 0;\n int yUpperLeft = 0;\n\n int xUpperRight = 0;\n int yUpperRight = 0;\n\n int x_sum = 0;\n int y_sum = 0;\n\n int x_sum_left = 0;\n int y_sum_left = 0;\n\n int x_sum_right = 0;\n int y_sum_right = 0;\n\n\n int count = 0;\n\n Point point1 = null;\n Point point2 = null;\n Point point3 = null;\n\n ArrayList<Point> points = new ArrayList<Point>();\n\n for (int y = 0; y <= y_center; y++) {\n if (width == 0) {\n\n }\n\n for (int x = 0; x < w; x++) {\n //System.out.println(\"test \"+image_dest.getRGB(x, y));\n if (image_dest.getRGB(x, y) != -1) {\n //System.out.print(image_dest.getRGB(x, y));\n x_sum += x;\n y_sum += y;\n count++;\n\n //\t\t\t\tSystem.out.print(\"0\");\n } else {\n //System.err.print(\"X\"+x+\" Y : \"+y);\n //return;\n //System.out.print(image_dest.getRGB(x, y));\n //\t\t\t\tSystem.out.print(\"1\");\n }\n }\n //\t\tSystem.out.println(\"\");\n\n\n }\n\n //\tSystem.out.println(\"\\n\\n\");\n //\tSystem.out.println(\"KIRI\");\n double d_yUpperCentroid = Double.valueOf(df.format(new Double(y_sum).doubleValue() / new Double(count).doubleValue()));\n double d_xUpperCentroid = Double.valueOf(df.format(new Double(x_sum).doubleValue() / new Double(count).doubleValue()));\n yUpperCentroid = (int) Math.round(new Double(d_yUpperCentroid));\n xUpperCentroid = (int) Math.round(new Double(d_xUpperCentroid));\n\n//\t\txUpperCentroid = (int)Math.round(new Double(x_sum)/new Double(count));\n//\t\tyUpperCentroid = (int)Math.round(new Double(y_sum)/new Double(count)); //point 3\n\n count = 0;\n for (int y = 0; y <= y_center; y++) {\n for (int x = 0; x <= xUpperCentroid; x++) {\n\n if (image_dest.getRGB(x, y) != -1) {\n //System.out.print(\"A\");\n x_sum_left += x;\n y_sum_left += y;\n count++;\n //\t\t\t System.out.print(\"0\");\n } else {\n //\t\t\t\tSystem.out.print(\"1\");\n }\n }\n //\tSystem.out.println(\"\");\n\n }\n\n double d_yUpperLeft = Double.valueOf(df.format(new Double(y_sum_left).doubleValue() / new Double(count).doubleValue()));\n double d_xUpperLeft = Double.valueOf(df.format(new Double(x_sum_left).doubleValue() / new Double(count).doubleValue()));\n yUpperLeft = (int) Math.round(new Double(d_yUpperLeft));\n xUpperLeft = (int) Math.round(new Double(d_xUpperLeft));\n\n//\t\txUpperLeft = (int)Math.round(new Double(x_sum_left)/new Double(count));\n//\t\tyUpperLeft = (int)Math.round(new Double(y_sum_left)/new Double(count));\n\n count = 0;\n\n\n for (int y = 0; y <= y_center; y++) {\n for (int x = xUpperCentroid; x < w; x++) {\n //System.out.println(\"x3 : \"+x3);\n //System.out.println(\"y3 : \"+x3);\n if (image_dest.getRGB(x, y) != -1) {\n x_sum_right += x;\n y_sum_right += y;\n count++;\n //\t\t\tSystem.out.print(\"0\");\n } else {\n //\t\t\tSystem.out.print(\"1\");\n }\n }\n //\tSystem.out.println(\"\");\n }\n\n double d_yUpperRight = Double.valueOf(df.format(new Double(y_sum_right).doubleValue() / new Double(count).doubleValue()));\n double d_xUpperRight = Double.valueOf(df.format(new Double(x_sum_right).doubleValue() / new Double(count).doubleValue()));\n yUpperLeft = (int) Math.round(new Double(d_yUpperRight));\n xUpperLeft = (int) Math.round(new Double(d_xUpperRight));\n\n//\t\txUpperRight= (int)Math.round(new Double(x_sum_right)/new Double(count));\n//\t\tyUpperRight =(int)Math.round(new Double(y_sum_right)/new Double(count));\n count = 0;\n\n point1 = new Point(xUpperRight, yUpperRight);\n point2 = new Point(xUpperLeft, yUpperLeft);\n point3 = new Point(xUpperCentroid, yUpperCentroid);\n\n\n points.add(point1);\n points.add(point2);\n points.add(point3);\n//\n return points;\n }", "public void RemovePoint(int index) {\n if (index > PointArray.length - 1 || index < 0) {\n return;\n }\n double temp[] = new double[PointArray.length - 2];\n for (int i = 0; i <= PointArray.length - 1; i += 2) {\n if (i / 2 == index) {\n continue;\n }\n temp[i] = PointArray[i];\n temp[i + 1] = PointArray[i + 1];\n }\n }", "@Source(\"gr/grnet/pithos/resources/editcut.png\")\n ImageResource cut();", "void explode(int x, int y) {\n //Implemented \n }", "int apply(int x, int y, int origin);", "public static List<Point> ParetoOptimal(List<Point> listofPts)\n {\n \n if(listofPts.size() == 1 || listofPts.size() == 0)\n return listofPts;\n \n \n \n \n int pos = listofPts.size() /2 ;\n \n /*\n * quickSelect time complexity (n)\n */\n \n Point median = quickSelect(listofPts, pos, 0, listofPts.size() - 1); \n \n \n \n List<Point> points1 = new ArrayList<Point>();\n List<Point> points2 = new ArrayList<Point>();\n List<Point> points3 = new ArrayList<Point>();\n List<Point> points4 = new ArrayList<Point>();\n \n //O(n)\n if(oldMedian == median)\n {\n \t\n for(int x= 0; x < listofPts.size(); x++)\n {\n if(listofPts.get(x).getX() <= median.getX())\n {\n points1.add(listofPts.get(x));\n \n }\n else\n {\n points2.add(listofPts.get(x));\n \n }\n }\n \n \n }\n else\n {\n for(int x= 0; x < listofPts.size(); x++)\n {\n if(listofPts.get(x).getX() < median.getX())\n {\n points1.add(listofPts.get(x));\n \n }\n else\n {\n points2.add(listofPts.get(x));\n \n }\n }\n \n \n }\n //O(n)\n int yRightMax = -100000;\n for(int x= 0; x < points2.size(); x++)\n {\n if(points2.get(x).getY() > yRightMax)\n yRightMax = (int) points2.get(x).getY();\n \n }\n \n \n for(int x= 0; x < points1.size() ; x++)\n {\n if(points1.get(x).getY()> yRightMax)\n { \n points3.add(points1.get(x));\n \n } \n }\n \n for(int x= 0; x < points2.size() ; x++)\n {\n if(points2.get(x).getY() < yRightMax)\n {\n points4.add(points2.get(x));\n \n }\n \n }\n //System.out.println(\"points2: \" + points2);\n /*\n * Below bounded by T(n/c) + T(n/2) where c is ratio by which left side is shortened \n */\n oldMedian = median;\n return addTo \n ( ParetoOptimal(points3), \n ParetoOptimal(points2)) ;\n }", "public double filter(double x) {\n y = b0 * x + b1 * x1 + b2 * x2 - a1 * y1 - a2 * y2;\n x2 = x1;\n x1 = x;\n y2 = y1;\n y1 = y;\n return (y);\n }", "@SuppressWarnings(\"unused\")\r\n private void makeSubcutaneousFat2DVOI() {\r\n\r\n // find the center of mass of the single label object in the sliceBuffer (abdomenImage)\r\n findAbdomenCM();\r\n int xcm = centerOfMass[0];\r\n int ycm = centerOfMass[1];\r\n \r\n VOIVector vois = abdomenImage.getVOIs();\r\n VOI theVOI = vois.get(0);\r\n\r\n // there should be only one VOI and one curve\r\n VOIContour curve = ((VOIContour)theVOI.getCurves().get(0));\r\n int[] xVals = new int [curve.size()];\r\n int[] yVals = new int [curve.size()];\r\n int[] zVals = new int [curve.size()];\r\n curve.exportArrays(xVals, yVals, zVals);\r\n \r\n int[] xValsSubcutaneousVOI = new int [curve.size()];\r\n int[] yValsSubcutaneousVOI = new int [curve.size()];\r\n \r\n \r\n // the intensity profile along a radial line for a given angle\r\n short[] profile;\r\n \r\n // the x, y location of all the pixels along a radial line for a given angle\r\n int[] xLocs;\r\n int[] yLocs;\r\n try {\r\n profile = new short[xDim];\r\n xLocs = new int[xDim];\r\n yLocs = new int[xDim];\r\n } catch (OutOfMemoryError error) {\r\n System.gc();\r\n MipavUtil.displayError(\"findAbdomenVOI(): Can NOT allocate profile\");\r\n return;\r\n }\r\n\r\n try {\r\n srcImage.exportData(0, sliceSize, sliceBuffer);\r\n } catch (IOException ex) {\r\n System.err.println(\"JCATsegmentAbdomen2D(): Error exporting data\");\r\n return;\r\n }\r\n\r\n\r\n // find a subcutaneous fat contour point for each abdominal contour point\r\n // we know the abdominal contour points are located at three degree increments\r\n double angleRad;\r\n int count;\r\n int contourPointIdx = 0;\r\n for (int angle = 0; angle < 360; angle += angularResolution) {\r\n count = 0;\r\n int x = xcm;\r\n int y = ycm;\r\n int yOffset = y * xDim;\r\n double scaleFactor; // reduces the number of trig operations that must be performed\r\n \r\n angleRad = Math.PI * angle / 180.0;\r\n if (angle > 315 || angle <= 45) {\r\n // increment x each step\r\n scaleFactor = Math.tan(angleRad);\r\n while (x < xVals[contourPointIdx]) {\r\n // store the intensity and location of each point along the radial line\r\n profile[count] = sliceBuffer[yOffset + x];\r\n xLocs[count] = x;\r\n yLocs[count] = y;\r\n count++;\r\n \r\n // walk out in x and compute the value of y for the given radial line\r\n x++;\r\n y = ycm - (int)((x - xcm) * scaleFactor);\r\n yOffset = y * xDim;\r\n }\r\n\r\n // profile contains all the source image intensity values along the line from\r\n // the center-of-mass to the abdomen VOI point\r\n // Find where the subcutaneous fat ends and the muscle starts\r\n \r\n // start at the end of the profile array since its order is from the\r\n // center-of-mass to the abdomen voi point\r\n \r\n int idx = count - 5; // skip over the skin\r\n while (idx >= 0 && profile[idx] < muscleThresholdHU && profile[idx] > airThresholdHU) {\r\n idx--;\r\n }\r\n if (idx <= 0) {\r\n MipavUtil.displayError(\"findAbdomenVOI(): Can NOT find visceral cavity in the intensity profile\");\r\n break;\r\n }\r\n xValsSubcutaneousVOI[contourPointIdx] = xLocs[idx];\r\n yValsSubcutaneousVOI[contourPointIdx] = yLocs[idx];\r\n \r\n } else if (angle > 45 && angle <= 135) {\r\n // decrement y each step\r\n scaleFactor = (Math.tan((Math.PI / 2.0) - angleRad));\r\n while (y > yVals[contourPointIdx]) {\r\n // store the intensity and location of each point along the radial line\r\n profile[count] = sliceBuffer[yOffset + x];\r\n xLocs[count] = x;\r\n yLocs[count] = y;\r\n count++;\r\n \r\n // walk to the top of the image and compute values of x for the given radial line\r\n y--;\r\n x = xcm + (int)((ycm - y) * scaleFactor);\r\n yOffset = y * xDim;\r\n }\r\n \r\n // profile contains all the source image intensity values along the line from\r\n // the center-of-mass to the newly computed abdomen VOI point\r\n // Find where the subcutaneous fat ends\r\n int idx = count - 5; // skip over the skin\r\n while (idx >= 0 && profile[idx] < muscleThresholdHU&& profile[idx] > airThresholdHU) {\r\n idx--;\r\n }\r\n if (idx == 0) {\r\n MipavUtil.displayError(\"findAbdomenVOI(): Can NOT find visceral cavity in the intensity profile\");\r\n return;\r\n }\r\n xValsSubcutaneousVOI[contourPointIdx] = xLocs[idx];\r\n yValsSubcutaneousVOI[contourPointIdx] = yLocs[idx];\r\n \r\n } else if (angle > 135 && angle <= 225) {\r\n // decrement x each step\r\n scaleFactor = Math.tan(Math.PI - angleRad);\r\n while (x > xVals[contourPointIdx]) {\r\n // store the intensity and location of each point along the radial line\r\n profile[count] = sliceBuffer[yOffset + x];\r\n xLocs[count] = x;\r\n yLocs[count] = y;\r\n count++;\r\n \r\n x--;\r\n y = ycm - (int)((xcm - x) * scaleFactor);\r\n yOffset = y * xDim;\r\n }\r\n \r\n // profile contains all the source image intensity values along the line from\r\n // the center-of-mass to the newly computed abdomen VOI point\r\n // Find where the subcutaneous fat ends\r\n int idx = count - 5; // skip over the skin\r\n while (idx >= 0 && profile[idx] < muscleThresholdHU&& profile[idx] > airThresholdHU) {\r\n idx--;\r\n }\r\n if (idx == 0) {\r\n MipavUtil.displayError(\"findAbdomenVOI(): Can NOT find visceral cavity in the intensity profile\");\r\n return;\r\n }\r\n xValsSubcutaneousVOI[contourPointIdx] = xLocs[idx];\r\n yValsSubcutaneousVOI[contourPointIdx] = yLocs[idx];\r\n \r\n } else if (angle > 225 && angle <= 315) {\r\n // increment y each step\r\n scaleFactor = Math.tan((3.0 * Math.PI / 2.0) - angleRad);\r\n while (y < yVals[contourPointIdx]) {\r\n // store the intensity and location of each point along the radial line\r\n profile[count] = sliceBuffer[yOffset + x];\r\n xLocs[count] = x;\r\n yLocs[count] = y;\r\n count++;\r\n \r\n y++;\r\n x = xcm - (int)((y - ycm) * scaleFactor);\r\n yOffset = y * xDim;\r\n }\r\n \r\n // profile contains all the source image intensity values along the line from\r\n // the center-of-mass to the newly computed abdomen VOI point\r\n // Find where the subcutaneous fat ends\r\n int idx = count - 5; // skip over the skin\r\n while (idx >= 0 && profile[idx] < muscleThresholdHU&& profile[idx] > airThresholdHU) {\r\n idx--;\r\n }\r\n if (idx == 0) {\r\n MipavUtil.displayError(\"findAbdomenVOI(): Can NOT find visceral cavity in the intensity profile\");\r\n return;\r\n }\r\n xValsSubcutaneousVOI[contourPointIdx] = xLocs[idx];\r\n yValsSubcutaneousVOI[contourPointIdx] = yLocs[idx];\r\n\r\n }\r\n \r\n contourPointIdx++;\r\n } // end for (angle = 0; ...\r\n\r\n\r\n // make the VOI's and add the points to them\r\n subcutaneousVOI = new VOI((short)0, \"Subcutaneous area\");\r\n subcutaneousVOI.importCurve(xValsSubcutaneousVOI, yValsSubcutaneousVOI, zVals);\r\n\r\n }", "@Override\n\tprotected void calculateCutScore(int[] ids, int col, double t,\n\t\t\tCutResult result) {\n\t\t// calculating score:\n\t\tdouble sumLeft=0, sumRight=0;\n\t\tdouble sumSqLeft=0, sumSqRight=0;\n\t\tdouble weightLeft=0, weightRight=0;\n\t\tfor (int n=0; n<ids.length; n++) {\n\t\t\tint id = ids[n];\n\t\t\tdouble w = useWeights ?weights[id] :1.0;\n\t\t\tdouble value = input.get(id, col);\n\t\t\tif (hasNaN) {\n\t\t\t\tif (Double.isNaN(value)) {\n\t\t\t\t\tresult.nanWeigth += w;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (value < t) {\n\t\t\t\tresult.countLeft++;\n\t\t\t\tweightLeft += w;\n\t\t\t\tsumLeft += output[ id] * w;\n\t\t\t\tsumSqLeft += outputSq[id] * w;\n\t\t\t} else {\n\t\t\t\tresult.countRight++;\n\t\t\t\tweightRight += w;\n\t\t\t\tsumRight += output[ id] * w;\n\t\t\t\tsumSqRight += outputSq[id] * w;\n\t\t\t}\n\t\t}\n\t\t// calculating score:\n\t\tcutResultFromSums(result, sumLeft, sumRight, \n\t\t\t\tsumSqLeft, sumSqRight, \n\t\t\t\tweightLeft, weightRight);\n\t\t// value in intermediate nodes (used for CV):\n\t}", "public static List<Node> cutoff_function(int[][] parent, int player){\n Node parent_node = new Node(parent);\n List<Node> frontier =new ArrayList<Node>();\n List<Node> neighbours =getChildren(parent_node, player);\n frontier.addAll(neighbours);\n int nextPlayer = 0;\n if(player==1)\n nextPlayer=2;\n else if(player==2)\n nextPlayer=1;\n for(int i=0;i<frontier.size();i++){\n cutOffValue(frontier.get(i), nextPlayer);\n }\n return frontier;\n }", "protected abstract void clip();", "private void paintCourbePoints() {\n\t\tfloat x, y;\n\t\tint i, j;\n\t\t\n\t\tfor(x=xMin; x<=xMax; x++) {\n\t\t\ty = parent.getY(x);\n\t\t\t\n\t\t\tif(y>yMin && y<yMax) {\n\t\t\t\ti = convertX(x);\n\t\t\t\tj = convertY(y);\n\t\t\t\t\n\t\t\t\t//Utilisation d'un carre/losange pour simuler un point \n\t\t\t\t//de taille superieur a un pixel car celui-ci est peu visible.\n\t\t\t\tpaintPointInColor(i-2, j);\n\t\t\t\tpaintPointInColor(i-1, j-1);\t\t\t\t\n\t\t\t\tpaintPointInColor(i-1, j);\n\t\t\t\tpaintPointInColor(i-1, j+1);\n\t\t\t\tpaintPointInColor(i, j-2);\t//\t *\n\t\t\t\tpaintPointInColor(i, j-1);\t//\t * * *\n\t\t\t\tpaintPointInColor(i, j);\t//\t* * * * *\n\t\t\t\tpaintPointInColor(i, j+1);\t//\t * * *\n\t\t\t\tpaintPointInColor(i, j+2);\t//\t *\n\t\t\t\tpaintPointInColor(i+1, j-1);\n\t\t\t\tpaintPointInColor(i+1, j);\n\t\t\t\tpaintPointInColor(i+1, j+1);\n\t\t\t\tpaintPointInColor(i+2, j);\n\t\t\t}\n\t\t}\t\t\n\t}", "private void doCutOff(NodeRef nodeRef)\n {\n if (this.nodeService.hasAspect(nodeRef, ASPECT_CUT_OFF) == false)\n {\n // Apply the cut off aspect and set cut off date\n Map<QName, Serializable> cutOffProps = new HashMap<QName, Serializable>(1);\n cutOffProps.put(PROP_CUT_OFF_DATE, new Date());\n this.nodeService.addAspect(nodeRef, ASPECT_CUT_OFF, cutOffProps);\n }\n }", "@Override\n\tpublic double distance(Instance first, Instance second, double cutOffValue) {\n\t\treturn 0;\n\t}", "public void onTextCut()\n\t{\n\t}", "public int getCrossoverPoints() {\n\t\treturn 1;\r\n\t}", "public void mouseReleased(MouseEvent e)\n {\n //add a null ColorPoint to the points\n //to signify the end of a continuous\n //section when redrawing the image\n points.add(null);\n }", "@Test(timeout = 4000)\n public void test29() throws Throwable {\n Discretize discretize0 = new Discretize();\n double[][] doubleArray0 = new double[3][6];\n discretize0.setIgnoreClass(false);\n discretize0.m_CutPoints = doubleArray0;\n double[] doubleArray1 = new double[4];\n // Undeclared exception!\n try { \n discretize0.getCutPoints((-831));\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // -831\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "private DataStructure copyAndCut (int min, int max, boolean axis){\r\n\t\tDataStructure newDS = new DataStructure();\r\n\t\tPoint[] regAxis = getPointsInRangeRegAxis(min, max, axis); //O(n)\r\n\t\tPoint[] oppAxis = getPointsInRangeOppAxis(min, max, axis); //O(n)\r\n\t\t\r\n\t\tfor(int i=0; i<regAxis.length ; i++)\r\n\t\t\tnewDS.naiveAddLast(regAxis[i], axis); //O(1) * n times\r\n\t\t\r\n\t\tfor(int i=0; i<oppAxis.length ; i++)\r\n\t\t\tnewDS.naiveAddLast(oppAxis[i], !axis); //O(1) * n times\r\n\t\t\r\n\t\treturn newDS;\r\n\t}", "public void removePoint(Point2D p);", "public Point3 getPointMinus(int pointNr);", "private void setMinMaxPoints(BlockVector pt1, BlockVector pt2) {\r\n List<Vector> points = new ArrayList<Vector>();\r\n points.add(pt1);\r\n points.add(pt2);\r\n setMinMaxPoints(points);\r\n }", "private Float scale(Float datapoint){\n\n float range = (float)(20 * (max / Math.log(max)));\n range-=min;\n float scalar = DisplayImage.IMAGE_SIZE_SCALAR / range;\n\n if(nightMode){\n datapoint = (float) (100 * (datapoint / Math.log(datapoint)));\n datapoint *= scalar*5;\n }else {\n datapoint = (float) (20* (datapoint / Math.log(datapoint)));\n datapoint *= scalar;\n }\n\n return datapoint;\n }", "public TracePosition hCut() {\n\treturn myHCrum.hCut();\n/*\nudanax-top.st:9635:OrglRoot methodsFor: 'accessing'!\n{TracePosition} hCut\n\t\"This is primarily for the example routines.\"\n\t^myHCrum hCut!\n*/\n}", "public void cut() {\n\t\tcmd = new CutCommand(editor);\n\t\tinvoker = new MiniEditorInvoker(cmd);\n\t\tinvoker.action();\n\t}", "public void performCut() {\n \t\ttext.cut();\n \t\tcheckSelection();\n \t\tcheckDeleteable();\n \t\tcheckSelectable();\n \t}", "private static void sortPoints(int[][] pointSet, int start, int end)\n {\n if (start < end)\n {\n int mid = (start+end)/2;\n sortPoints(pointSet, start, mid);\n sortPoints(pointSet, mid+1, end);\n crossProductMerge(pointSet, start, mid, end);\n }\n }", "abstract public Point[] getCheminDeplacement(Coup c);", "@Test(timeout = 4000)\n public void test03() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.setAttributeIndices(\"\");\n Filter.makeCopy(discretize0);\n discretize0.setDesiredWeightOfInstancesPerInterval(2.0);\n boolean boolean0 = true;\n discretize0.m_ClassIndex = 0;\n discretize0.setUseBinNumbers(true);\n discretize0.listOptions();\n discretize0.makeBinaryTipText();\n discretize0.getInvertSelection();\n // Undeclared exception!\n try { \n discretize0.calculateCutPointsByEqualWidthBinning((-458));\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "public void negative(BufferedImage img, int startX, int startY, int endX, int endY) throws IOException{\r\n int pixels[] = new int[3];\r\n double ww[]=new double[3];\r\n WritableRaster raster = img.getRaster();\r\n \r\n for(int i=startX;i<endX;i++) {\r\n for(int j=startY;j<endY;j++){\r\n \r\n \r\n raster.getPixel(i, j, pixels);\r\n \r\n ww[0] = 255-pixels[0];\r\n ww[1] = 255-pixels[1];\r\n ww[2] = 255-pixels[2];\r\n \r\n raster.setPixel(i, j, ww);\r\n \r\n }\r\n \r\n }\r\n\r\n \r\n\r\n }", "private static int[][] removeCollinear(int[][] pointSet)\n {\n int numCollinear = 0;\n for (int i = 1; i<= pointSet[0].length-2; i++)\n {\n if (((pointSet[0][i]-pointSet[0][0])*(pointSet[1][i+1]-pointSet[1][0]))-\n ((pointSet[0][i+1]-pointSet[0][0])*(pointSet[1][i]-pointSet[1][0])) == 0)\n numCollinear++;\n }\n if (numCollinear == 0)\n return pointSet;\n\n int[][] pointSetTemp = new int[2][pointSet[0].length-numCollinear];\n pointSetTemp[0][0] = pointSet[0][0]; pointSetTemp[1][0] = pointSet[1][0];\n int j=1;\n for (int i = 1; i<= pointSet[0].length-2; i++)\n {\n if (((pointSet[0][i]-pointSet[0][0])*(pointSet[1][i+1]-pointSet[1][0]))-\n ((pointSet[0][i+1]-pointSet[0][0])*(pointSet[1][i]-pointSet[1][0])) == 0)\n {\n int d1 = Math.abs((pointSet[0][i]-pointSet[0][0])^2 + (pointSet[1][i]-pointSet[1][0])^2);\n int d2 = Math.abs((pointSet[0][i+1]-pointSet[0][0])^2 + (pointSet[1][i+1]-pointSet[1][0])^2);\n if (d1 > d2)\n {\n pointSetTemp[0][j] = pointSet[0][i]; pointSetTemp[1][j] = pointSet[1][i];\n i++; j++;\n }\n else\n {\n pointSetTemp[0][j] = pointSet[0][i+1]; pointSetTemp[1][j] = pointSet[1][i+1];\n i++; j++;\n }\n }\n else\n {\n pointSetTemp[0][j] = pointSet[0][i]; pointSetTemp[1][j] = pointSet[1][i];\n j++;\n }\n }\n if (j < pointSetTemp[0].length)\n {\n pointSetTemp[0][j] = pointSet[0][pointSet[0].length-1];\n pointSetTemp[1][j] = pointSet[1][pointSet[0].length-1];\n }\n return pointSetTemp;\n }", "public Point getLeft(BufferedImage dest_image, Point centroid, Point begin, Point end) {\n\n\n int xc = centroid.x;\n\n int x = begin.x;\n int y = begin.y;\n\n int x_sumL = 0;\n int y_sumL = 0;\n\n int countL = 0;\n for (y = begin.y; y < end.y; y++) {\n for (x = begin.x; x <= xc; x++) {\n\n if (image_dest.getRGB(x, y) != -1) {\n x_sumL += x;\n y_sumL += y;\n countL++;\n //\t\t\t\t System.out.print(\"0\");\n } else {\n //\t\t\t\tSystem.out.print(\"1\");\n }\n }\n //\t\tSystem.out.println(\"\");\n\n }\n//\t\tSystem.out.println(\"xsumL : \"+x_sumL);\n//\t\tSystem.out.println(\"ysumL : \"+y_sumL);\n//\t\tSystem.out.println(\"CountL :\"+countL);\n int x_left = 0;\n int y_left = 0;\n if (countL == 0) {\n //JOptionPane.showMessageDialog(null, \"Kiri count 0 \"+fname );\n x_left = 0;\n y_left = 0;\n } else {\n double d_yLeft = Double.valueOf(df.format(new Double(y_sumL).doubleValue() / new Double(countL).doubleValue()));\n double d_xLeft = Double.valueOf(df.format(new Double(x_sumL).doubleValue() / new Double(countL).doubleValue()));\n y_left = (int) Math.round(new Double(d_yLeft));\n x_left = (int) Math.round(new Double(d_xLeft));\n\n//\t\t\tx_left = (int)Math.round(new Double(x_sumL)/new Double(countL));\n//\t\t\ty_left = (int)Math.round(new Double(y_sumL)/new Double(countL));\n }\n return new Point(x_left, y_left);\n\n }", "private static int partition2 (List<Point> array, int low, int high)\n {\n int pivot = (int) array.get(high).getX(); \n \n int i = (low - 1); // Index of smaller element\n\n for (int j = low; j <= high- 1; j++)\n {\n // If current element is smaller than or\n // equal to pivot\n if (array.get(j).getX() <= pivot)\n {\n i++; // increment index of smaller element\n swap(array, i, j);\n }\n }\n swap(array, i + 1, high);\n return (i + 1);\n }", "default DiscreteSet2D pointsSatisfying(DoublePredicate condition) {\r\n\t\treturn (x, y) -> condition.test(getValueAt(x, y));\r\n\t}", "public abstract List<Point2D> getInterpolatedPoints();", "public void scale(Point P, int scaleFactor) {\n\n\n }", "public void scatter(ArrayList<Wall> listOfWalls, ArrayList<Point> intersections) {\n final int MAXTILE = 160;\r\n double minDistance = 5000000000.0; //no distance is greater than this 4head\r\n double upDistance = 500000000.0;\r\n double downDistance = 5000000.0;\r\n double leftDistance = 50000000.0;\r\n double rightDistance = 5000000.0;\r\n boolean isIntersection = checkIntersection(intersections);\r\n boolean isRightCollision = checkWallCollision(listOfWalls, 2);\r\n boolean isLeftCollision = checkWallCollision(listOfWalls, 3);\r\n boolean isUpCollision = checkWallCollision(listOfWalls,0);\r\n boolean isDownCollision = checkWallCollision(listOfWalls, 1);\r\n\r\n if(isIntersection) {\r\n if(!isRightCollision && this.direction != 3) {\r\n rightDistance = Math.pow((xPos + 20) - SCATTERX,2) + Math.pow(yPos - SCATTERY,2);\r\n }\r\n if(!isLeftCollision && this.direction !=2) {\r\n leftDistance = Math.pow((xPos - 20) - SCATTERX,2) + Math.pow(yPos - SCATTERY,2);\r\n }\r\n if(!isUpCollision && this.direction != 1) {\r\n upDistance = Math.pow((xPos) - SCATTERX,2) + Math.pow((yPos-20) - SCATTERY,2);\r\n }\r\n if(!isDownCollision && this.direction != 0) {\r\n downDistance = Math.pow((xPos) - SCATTERX,2) + Math.pow((yPos+20) - SCATTERY,2);\r\n }\r\n if(upDistance <= downDistance && upDistance <= leftDistance && upDistance <= rightDistance) {\r\n this.direction = 0;\r\n }\r\n else if(downDistance <= upDistance && downDistance <= leftDistance && downDistance <= rightDistance) {\r\n this.direction = 1;\r\n }\r\n\r\n else if(rightDistance <= leftDistance && rightDistance <= downDistance && rightDistance <= upDistance) {\r\n this.direction = 2;\r\n }\r\n\r\n else if(leftDistance <= rightDistance && leftDistance <= upDistance && leftDistance <= downDistance) {\r\n this.direction = 3;\r\n }\r\n\r\n\r\n }\r\n\r\n if(this.direction == 0) {\r\n yPos = yPos - 5;\r\n }\r\n if(this.direction ==1) {\r\n yPos = yPos + 5;\r\n }\r\n if(this.direction ==2) {\r\n xPos = xPos + 5;\r\n }\r\n if(this.direction == 3) {\r\n xPos = xPos -5;\r\n }\r\n\r\n }", "@Pointcut(\"within(demo.pointcutdesignator.within.Person)\")\n\tpublic void createPointCut () {}", "private Point[] nearestPairRec(Point[] range, boolean axis) {\n\t\t\tPoint[] Answer = new Point[2];\n\t\t\tif (range.length < 4) return nearestPair3Points(range);\n\t\t\tPoint[] MinPointsLeft = new Point[2];\n\t\t\tPoint[] MinPointsRight = new Point[2];\n\t\t\tPoint[] MinPointsInStrip = new Point[2];\n\t\t\tdouble MinDistance = -1; //it will be change for sure, because we pass the array only if it containes 4 points and above.\n\t\t\tdouble MinDistanceInStrip;\n\t\t\t//step 4\n\t\t\tif (axis){\n\t\t\t\tMinPointsLeft = nearestPairRec(getPointsInRangeRegAxis(range[0].getX(), range[(range.length)/2].getX(), axis), axis);\n\t\t\t\tMinPointsRight =nearestPairRec(getPointsInRangeRegAxis(range[((range.length)/2)+1].getX(), range[range.length-1].getX() ,axis), axis);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tMinPointsLeft = nearestPairRec(getPointsInRangeRegAxis(range[0].getY(), range[(range.length)/2].getY(), axis), axis);\n\t\t\t\tMinPointsRight =nearestPairRec(getPointsInRangeRegAxis(range[((range.length)/2)+1].getY(), range[range.length-1].getY() ,axis), axis);\n\t\t\t}\n\t\t\t//step 5\n\t\t\tif (MinPointsLeft!=null && MinPointsRight!=null){\n\t\t\t\tif (Distance(MinPointsLeft[0], MinPointsLeft[1]) > Distance(MinPointsRight[0], MinPointsRight[1])){\n\t\t\t\t\tMinDistance = Distance(MinPointsRight[0], MinPointsRight[1]);\n\t\t\t\t\tAnswer = MinPointsRight;\n\t\t\t\t}else{\n\t\t\t\t\tMinDistance = Distance(MinPointsLeft[0], MinPointsLeft[1]);\n\t\t\t\t\tAnswer = MinPointsLeft;\n\t\t\t\t}\n\t\t\t}else if (MinPointsLeft!=null && MinPointsRight==null) {\n\t\t\t\tMinDistance = Distance(MinPointsLeft[0], MinPointsLeft[1]);\n\t\t\t\tAnswer = MinPointsLeft;\n\t\t\t}else if (MinPointsRight!=null && MinPointsLeft==null){\n\t\t\t\tMinDistance = Distance(MinPointsRight[0], MinPointsRight[1]);\n\t\t\t\tAnswer = MinPointsRight;\n\t\t\t}\n\t\t\t//step 6 find the nearest point around the median\n\t\t\tint upper;\n\t\t\tint lower;\n\t\t\tif (MinDistance==-1) MinDistance = 0;\n\t\t\tif (axis){\n\t\t\t\tupper = (int) (range[(range.length)/2].getX()+MinDistance);\n\t\t\t\tlower = (int) (range[(range.length)/2].getX()-MinDistance);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tupper = (int) (range[(range.length)/2].getY()+MinDistance);\n\t\t\t\tlower = (int) (range[(range.length)/2].getY()-MinDistance);\n\t\t\t}\n\t\t\trange = getPointsInRangeOppAxis(lower, upper, axis);\n\t\t\tif (range.length>=2) MinPointsInStrip = nearestPointInArray(range);\n\t\t\tif (MinPointsInStrip[0]!=null){\n\t\t\t\tMinDistanceInStrip = Distance(MinPointsInStrip[0], MinPointsInStrip[1]);\n\t\t\t\tif (MinDistanceInStrip < MinDistance) return MinPointsInStrip;\n\t\t\t}\n\t\t\treturn Answer;\n\t\t}", "public ArrayList<Point> getPoints(BufferedImage image_dest) {\n\n int x = 0;\n int y = 0;\n int x_sum = 0;\n int y_sum = 0;\n int count = 0;\n\n int x_sumL = 0;\n int y_sumL = 0;\n int countL = 0;\n\n int x_sumR = 0;\n int y_sumR = 0;\n int countR = 0;\n\n Point pointA = null; //rigth \t-A\n Point pointB = null; //left\t\t-B\n Point pointC = null; //centroid\t-C\n\n\n ArrayList<Point> points = new ArrayList<Point>();\n\n /*\n * centroid of image - point[2]\n *\n */\n for (y = 0; y < h; y++) {\n for (x = 0; x < w; x++) {\n if (image_dest.getRGB(x, y) != -1) {\n x_sum += x;\n y_sum += y;\n count++;\n\n //\tSystem.out.print(\"0\");\n }\n //else\n //\tSystem.out.print(\"1\");\n\n }\n //System.out.println(\"\");\n }\n //System.out.println(\"count lg : \"+count);\n double mycount = new Double(count).doubleValue();\n //JOptionPane.showMessageDialog(null, new Double(count).toString());\n //int y3 =0;\n double d_y3 = 0;\n double d_x3 = 0;\n if (mycount != 0) {\n d_y3 = Double.valueOf(df.format(new Double(y_sum).doubleValue() / mycount));\n d_x3 = Double.valueOf(df.format(new Double(x_sum).doubleValue() / mycount));\n }\n int y3 = (int) Math.round(new Double(d_y3));\n int x3 = (int) Math.round(new Double(d_x3));\n\n /*\n * x3 and y3 are assigned to point[3] (centroid of image)\n */\n\n pointC = new Point(x3, y3);\n //System.out.println( \"Point C :::::\"+pointC);\n tri_main.setPointC(pointC);\n tri_main.setCount_main(count);\n //\t\tSystem.out.println(\"ysum : \"+y_sum);\n //\t\tSystem.out.println(\"xsum : \"+x_sum);\n //\t\tSystem.out.println(\"count :\"+count);\n for (y = 0; y < h; y++) {\n for (x = 0; x <= x3; x++) {\n //correct\n if (image_dest.getRGB(x, y) != -1) {\n //\t\tSystem.out.print(\"A\");\n x_sumL += x;\n y_sumL += y;\n countL++;\n//\t\t\t\t\t System.out.print(\"0\");\n }\n//\t\t\t\tSystem.out.print(\"1\");\n }\n\n }\n//\t\tSystem.out.println(\"\");\n int y2 = 0;\n int x2 = 0;\n//\t\tSystem.out.println(\"countL : \"+countL);\n//\t\tSystem.out.println(\"x_sumL : \"+x_sumL);\n//\t\tSystem.out.println(\"y_sumL :\"+y_sumL);\n try {\n double d_y2 = 0;\n double d_x2 = 0;\n double mycountL = new Double(countL).doubleValue();\n if (mycountL != 0) {\n d_y2 = Double.valueOf(df.format(new Double(y_sumL).doubleValue() / mycountL));\n d_x2 = Double.valueOf(df.format(new Double(x_sumL).doubleValue() / mycountL));\n }\n y2 = (int) Math.round(new Double(d_y2));\n x2 = (int) Math.round(new Double(d_x2));\n\n\n //\tSystem.out.println(\" Kiri X2, Y2 :\"+\"(\"+x2+\" , \"+y2+\")\");\n } catch (java.lang.ArithmeticException asd) {\n //\tSystem.out.println(\"Hello\");\n }\n\n pointB = new Point(x2, y2);\n tri_main.setPointB(pointB);\n tri_main.setCount_left(countL);\n\n countR = 0;\n for (y = 0; y < h; y++) {\n for (x = x3; x < w; x++) {\n\n if (image_dest.getRGB(x, y) != -1) {\n x_sumR += x;\n y_sumR += y;\n countR++;\n//\t\t\t\t\tSystem.out.print(\"0\");\n }\n//\t\t\t\tSystem.out.print(\"1\");\n }\n//\t\t\tSystem.out.println(\"\");\n }\n//\t\tSystem.out.println(\"ysumR: \"+y_sumR);\n//\t\tSystem.out.println(\"xsumR: \"+x_sumR);\n//\t\tSystem.out.println(\"countR: \"+countR);\n double d_y1 = 0;\n double d_x1 = 0;\n double mycountR = new Double(countR).doubleValue();\n if (mycountR != 0) {\n d_y1 = Double.valueOf(df.format(new Double(y_sumR).doubleValue() / mycountR));\n d_x1 = Double.valueOf(df.format(new Double(x_sumR).doubleValue() / mycountR));\n }\n int y1 = (int) Math.round(new Double(d_y1));\n int x1 = (int) Math.round(new Double(d_x1));\n\n\n //System.out.println(\"Point1 : x : \"+x1+\" y : \"+y1);\n pointA = new Point(x1, y1);\n tri_main.setPointA(pointA);\n tri_main.setCount_left(countR);\n\n //System.out.println(\"Centroid C_Main: x : \"+x3+\" y : \"+y3+\" : \"+pointC);\n //System.out.println(\"Point A: x : \"+x1+\" y : \"+y1+\" : \"+pointA);\n points.add(pointA);//on right\n points.add(pointB);//on left\n points.add(pointC);//centroid\n\n status = \"reset\";\n return points;\n }", "public abstract double[] getLowerBound();", "@SuppressWarnings(\"unused\")\r\n private void JCATsegmentVisceralFat2D01() {\r\n \r\n // get the VOI for the external boundary of the abdomen\r\n VOIVector vois = abdomenImage.getVOIs();\r\n if(vois.size() != 1) {\r\n System.err.println(\"segmentVisceralFat2D() Error, did not get 1 VOI\");\r\n return;\r\n }\r\n\r\n // abdomenImage has one VOI, lets get it\r\n VOI theVOI = vois.get(0);\r\n \r\n // find the center-of-mass of the contour\r\n VOIContour maxContour = ((VOIContour)theVOI.getCurves().get(0));\r\n int[] xVals = new int [maxContour.size()];\r\n int[] yVals = new int [maxContour.size()];\r\n int[] zVals = new int [maxContour.size()];\r\n maxContour.exportArrays(xVals, yVals, zVals);\r\n \r\n int xcm = 0, ycm = 0, zcm = 0;\r\n for (int idx = 0; idx < maxContour.size(); idx++) {\r\n xcm += xVals[idx];\r\n ycm += yVals[idx];\r\n zcm += zVals[idx];\r\n }\r\n \r\n xcm /= maxContour.size();\r\n ycm /= maxContour.size();\r\n zcm /= maxContour.size();\r\n \r\n ViewUserInterface.getReference().getMessageFrame().append(\"Xcm: \" +xcm +\" Ycm: \" +ycm +\" Zcm: \" +zcm+\"\\n\", ViewJFrameMessage.DEBUG);\r\n \r\n // This point should be inside the abdomen\r\n // walk right until you find the external border of the abdomen\r\n \r\n // update the volumeBitSet to match the closed abdomenImage\r\n short[] srcSliceBuffer = new short[sliceSize];\r\n short[] profile = new short[xDim];\r\n try {\r\n abdomenImage.exportData(0, sliceSize, sliceBuffer);\r\n srcImage.exportData(0, sliceSize, srcSliceBuffer);\r\n } catch (IOException ex) {\r\n System.err.println(\"Error exporting data\");\r\n return;\r\n }\r\n\r\n int x = xcm;\r\n int elementCount = 0;\r\n int yOffset = ycm * xDim;\r\n while (x < xDim && sliceBuffer[x + yOffset] == abdomenTissueLabel) {\r\n profile[elementCount] = srcSliceBuffer[x + yOffset];\r\n x++;\r\n elementCount++;\r\n } // end while(...)\r\n \r\n // profile has an intensity profile of the pixels along the ray from the \r\n // contour CM to the external skin boundary. \r\n \r\n \r\n }", "private List<Point> neighboursFiltering(List<Point> points) {\n Point nearest = points.get(0);\n HeartDistance calculator = new HeartDistance();\n return points.stream().filter(p -> calculator.calculate(p,nearest) < NEIGHBOURS_THRESHOLD).collect(Collectors.toList());\n }", "public ArbitrarilyDiscretizedFunc getMagDistCutoffFunc();", "Point mult (double s);", "Point mult (double s, Point result);", "public BruteCollinearPoints(Point[] points){\n int count_temp = 0;\n int length = points.length;\n LineSegment[] Segment_temp = new LineSegment[50 * length];\n // sort the points array;\n Arrays.sort(points);\n // find collinear points using brute force method;\n for(int n = 0; n < length - 1; n++){\n if(points[n].slopeTo(points[n + 1]) == Double.NEGATIVE_INFINITY)\n throw new java.lang.IllegalArgumentException();\n }\n for(int i = 0; i < length - 3; i++){\n for(int j = i + 1; j < length - 2; j++) {\n for (int k = j + 1; k < length - 1; k++) {\n for (int l = k + 1; l < length; l++) {\n double slope_1 = points[i].slopeTo(points[j]);\n double slope_2 = points[i].slopeTo(points[k]);\n double slope_3 = points[i].slopeTo(points[l]);\n if (slope_1 == slope_2 && slope_2 == slope_3\n && points[i].compareTo(points[j]) < 1\n && points[j].compareTo(points[k]) < 1\n && points[k].compareTo(points[l]) < 1) {\n Segment_temp[count_temp] = new LineSegment(points[i], points[l]);\n count_temp++;\n }\n }\n }\n }\n }\n // resize the Segment array;\n Segment = new LineSegment[count_temp];\n for(int k = 0; k < count_temp; k++){\n Segment[k] = Segment_temp[k];\n }\n count = count_temp;\n }", "private int[][] scaleTour(int xs, int ys)\n {\n int xsize = xs - diam;\n int ysize = ys - diam;\n\n int nnodes = coords[0].length;\n int[][] tour = new int[2][nnodes];\n double[] borders = new double[4]; // the extreme values of the coords\n\t\t\n // initialize \n for( int i = 0; i < 3; i++ )\n {\n if( i % 2 == 0 )\n borders[i] = Double.MAX_VALUE;\n else\n borders[i] = Double.MIN_VALUE;\n }\n\n // find the extreme values of the coords\n for( int i = 0; i < nnodes; i++ )\n {\n if( coords[0][i] < borders[0] )\n borders[0] = coords[0][i];\n if( coords[0][i] > borders[1] )\n borders[1] = coords[0][i];\n if( coords[1][i] < borders[2] )\n borders[2] = coords[1][i];\n if( coords[1][i] > borders[3] )\n borders[3] = coords[1][i];\n }\n\t\t\n // calculate the scaling factor\n double x_scale = Math.max(borders[1] - borders[0], 1.0);\n double y_scale = Math.max(borders[3] - borders[2], 1.0);\n double scale = Math.min(xsize/x_scale, ysize/y_scale);\n\t\t\n // calculate the shift\t\t\n double x_off = 0.0;\n double y_off = 0.0;\n if( xsize/x_scale < ysize/y_scale )\n {\n x_off = diam/2;\n y_off = diam/2 + (ysize - scale*y_scale)/2;\n }\n else\n {\n x_off = diam/2 + (xsize - scale*x_scale)/2;\n y_off = diam/2;\n }\n\t\t\n // scale the coordinates\n for( int i = 0; i < nnodes; i++ )\n {\n tour[0][i] = (int) Math.round(x_off + scale * (coords[0][i] - borders[0]));\n tour[1][i] = (int) Math.round(ys - (y_off + scale * (coords[1][i] - borders[2])));\n }\n\t\t\n return tour;\n }", "public void onCutScene() {\n\t\tAnimation src = getSourceAnimation();\n\t\tif( src != null ) {\n\t\t\tcutScene(src, vm.cutInfo.getStart(), vm.cutInfo.getEnd(), buildUniqueName(vm.scenes));\n\t\t\tlog.info(\"cutting out scene from {}\", vm.cutInfo);\n\t\t\tvm.cutInfo.reset();\n\t\t\tvm.setMarkStartEnabled(true);\n\t\t}\n\t\t\n\t}", "@Override\r\n protected void calculateContour(ArrayList<double[]> outContour,\r\n ArrayList<double[]> inContour) {\n\r\n }", "public static void main(String[] args) {\n\t\tint[] L = {232, 124, 456};\n\t\tint k = 7;\n\t\tSystem.out.println(woodCut(L, k));\n\n\t}", "IMotion splice(int splitTickStart, int splitTickEnd);", "private static List<Point> createIncreasingDecreasingDataset() {\r\n List<Point> data = new ArrayList<Point>();\r\n add(data, 1, 400);\r\n add(data, 5, 700);\r\n add(data, 10, 900);\r\n add(data, 15, 1000);\r\n add(data, 20, 900);\r\n add(data, 25, 700);\r\n add(data, 30, 500);\r\n return data;\r\n }", "public EvMessyCutSpliceOperator(double cut_probability,\n double splice_probability) {\n if (cut_probability < 0.0 && cut_probability > 1.0)\n throw new IllegalArgumentException(\n \"Cut probability must be a double in [0,1]\");\n if (splice_probability < 0.0 && splice_probability > 1.0)\n throw new IllegalArgumentException(\n \"Splice probability must be a double in [0,1]\");\n\n combine_parent_selector = new EvSimpleCombineSelector<T>();\n this.cut_probability = cut_probability;\n this.splice_probability = splice_probability;\n }", "private static void cutSticks(ArrayList<Integer> numbers, int min) {\n\t\tint length = numbers.size();\n\t\t\n\t\twhile(min < Integer.MAX_VALUE){\n\t\t\tSystem.out.println(numbers.size());\n\t\t\tint newMin = Integer.MAX_VALUE;\n\t\t\tfor(int i = 0; i < numbers.size(); i++){\n\t\t\t\tint newno = numbers.get(i) - min;\n\t\t\t\tif(newno > 0){\n\t\t\t\t\tnumbers.set(i, numbers.get(i) - min);\n\t\t\t\t\tif(newno < newMin){\n\t\t\t\t\t\tnewMin = newno;\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tnumbers.remove(i);\n\t\t\t\t\ti--;\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\tmin = newMin;\n\t\t}\n\t\t\n\t}", "public Point valueFor(Point punto) throws MmwInterpolationOutOfBoundsException { \n\t\t\n\t\tif((punto.getX().longValue() < punti.first().getX().longValue())||\n\t\t\t\t(punto.getX().longValue() > punti.last().getX().longValue())) {\n\t\t\t\n\t\t\tthrow new MmwInterpolationOutOfBoundsException(\"Fuori range\");\n\t\t}\n\t\tif(punto.getX().equals(punti.first().getX())) {\n\t\t\t\n\t\t\treturn punti.first();\n\t\t}\n\t\tif(punto.getX().equals(punti.last().getX())) {\n\t\t\t\n\t\t\treturn punti.last();\n\t\t}\n\t\t\n\t\tPoint prec = punti.floor(punto);\n\t\tPoint succ = punti.ceiling(punto);\n\t\tif (prec.equals(succ)) {//se precedente e successivo sono LO STESSO PUNTO(oggetto) vuol dire\n\t\t\t\t\t\t\t\t//che il punto da interpolare coincide con un campione reale presente nel Set\n\t\t\tpunto.setY(round(succ.getY()));\n\t\t\t//lo score di qualità è massimo perchè i punti coincidono\n\t\t\tpunto.setScore(1.0);\n\t\t} else { // se ho effettivamente due estremi diversi dell'intervallo \n\t\t\t\t\t//faccio l'interpolazione\n\t\t\tDouble m = (succ.getY()-prec.getY())/(succ.getX()-prec.getX()); //coeffic. angolare\n\t\t\tpunto.setY(round(prec.getY()+m*(punto.getX()-prec.getX())));\n\t\t\t\n\t\t\tpunto.setScore(round(this.score(prec.getX(), succ.getX(), punto.getX())));\n\t\t}\n\t\treturn punto;\n\t}", "private static Predicate<Course> createPredicateWithCutOffReviewScore(int cutOffReviewScore){\r\n return course -> course.getReviewScore() > cutOffReviewScore;\r\n }", "@Override\n ArrayList<Hit> object_hit_detec(Point S_t, Vector c_t, Intersection intersection) {\n ArrayList<Hit> hit_times = new ArrayList<>();\n double A = Math.pow(c_t.get_X(), 2) + Math.pow(c_t.get_Y(), 2) + Math.pow(c_t.get_Z(), 2);\n double B = c_t.get_X() * S_t.get_X() + c_t.get_Y() * S_t.get_Y() + c_t.get_Z() * S_t.get_Z();\n double C = Math.pow(S_t.get_X(), 2) + Math.pow(S_t.get_Y(), 2) + Math.pow(S_t.get_Z(), 2) - 1;\n double Discriminant = Math.pow(B, 2) - A * C;\n// System.out.println(A);\n// System.out.println(B);\n// System.out.println(C);\n //double t_hit = 0;\n if (Discriminant < 0) {\n //System.out.println(\"Geen hitpunten\");\n } else if (Discriminant == 0) {\n double t_hit = (-B) / A;\n Hit hit = new Hit(t_hit, false);\n //System.out.println(\"hit\");\n } else {\n double t_hit1 = (-B) / A + Math.sqrt(Discriminant) / A;\n double t_hit2 = (-B) / A - Math.sqrt(Discriminant) / A;\n //Find lowest hit time (for entering hit time)\n double t_in = Math.min(t_hit1, t_hit2);\n double t_out = Math.max(t_hit1, t_hit2);\n Hit hit_in = new Hit(t_in, true);\n hit_times.add(hit_in);\n Hit hit_out = new Hit(t_out, false);\n hit_times.add(hit_out);\n //t_hit = Math.min(t_hit1, t_hit2);\n //System.out.println(\"hit\");\n }\n return hit_times;\n }", "public boolean inCut(int v) {\r\n return marked[v];\r\n }", "public double compute(ClassifierSetPoint point) {\n return point.getThreshold();\n }", "public int getPoints();", "int getPoints();", "private static final int[] getPoint(int point) {\n int[] ret = new int[2];\n if (point >= firstPoint && point <= endPoint) {\n ret = getPoint(ruteData[point + 2]);//ruteData[point + 2]);\n }\n return ret;\n }", "public ConvexHull(Point[] pts) throws IllegalArgumentException \n\t{\n\t\tif(pts.length == 0 || pts == null)\n\t\t{\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\tpoints = new Point[pts.length];\n\t\tfor(int i = 0; i < pts.length; i++)\n\t\t{\n\t\t\tpoints[i] = pts[i];\n\t\t}\n\t\tquicksorter = new QuickSortPoints(points);\n\t\tremoveDuplicates();\n\t\tlowestPoint = pointsNoDuplicate[0];\n\t}", "public boolean doesLineCut(Line line) {\n if (containsExclusive(line.getPoint1())) {\n return true;\n }\n if (containsExclusive(line.getPoint2())) {\n return true;\n }\n\n double x1 = Math.min(line.getPoint1().getX(), line.getPoint2().getX());\n double x2 = Math.max(line.getPoint1().getX(), line.getPoint2().getX());\n double y1 = Math.min(line.getPoint1().getY(), line.getPoint2().getY());\n double y2 = Math.max(line.getPoint1().getY(), line.getPoint2().getY());\n\n // y = mx + c\n // x = (y-c)/m\n double m = (line.getPoint2().getY() - line.getPoint1().getY()) / (line.getPoint2().getX() - line.getPoint1().getX());\n double c = line.getPoint1().getY() - (m * line.getPoint1().getX());\n\n double xNorth = Double.NaN;\n double xSouth = Double.NaN;\n double yWest = Double.NaN;\n double yEast = Double.NaN;\n if (Double.isInfinite(m)) {\n // Vertical line\n xNorth = x1;\n xSouth = x1;\n } else if (m == 0.0) {\n yWest = c;\n yEast = c;\n } else {\n xNorth = ((double) start.getY() - c) / m;\n xSouth = ((double) end.getY() - 1 - c) / m;\n yWest = m * (double) start.getX() + c;\n yEast = m * (double) end.getX() - 1 + c;\n }\n\n\n // Since both points are outside the rectangle, one crossed edged is enough.\n\n // Check north\n if (!Double.isNaN(xNorth) && start.getX() <= xNorth && xNorth < end.getX() && x1 <= xNorth && xNorth <= x2 && y2 > start.getY() && y1 < end.getY()) {\n return true;\n }\n // Check east\n if (!Double.isNaN(yWest) && start.getY() <= yWest && yWest < end.getY() && y1 <= yWest && yWest <= y2 && x2 > start.getX() && x1 < end.getX()) {\n return true;\n }\n // Check south\n if (!Double.isNaN(xSouth) && start.getX() <= xSouth && xSouth < end.getX() && x1 <= xSouth && xSouth <= x2 && y2 > start.getY() && y1 < end.getY()) {\n return true;\n }\n // Check west\n return !Double.isNaN(yEast) && start.getY() <= yEast && yEast < end.getY() && y2 <= yEast && yEast <= y2 && x2 > start.getX() && x1 < end.getX();\n }", "private void run() {\n List<Point> points = Arrays.asList(this.points);\n Collections.sort(points);\n for (int i=0; i < points.size(); i++) {\n Point p0 = points.get(i);\n List<Point> cp = new ArrayList<>(points); // clone\n Collections.sort(cp, p0.SLOPE_ORDER);\n for (int s=0, e; s < cp.size(); s=e) {\n for (e=s; e < cp.size() && p0.SLOPE_ORDER.compare(cp.get(s) , cp.get(e)) == 0; e++);\n if (e-s+1>= 4) {\n List<Point> r = new ArrayList<>(cp.subList(s, e));\n r.add(p0);\n Collections.sort(r);\n if (r.get(0).equals(p0)) {\n Point[] ret = r.toArray(new Point[e-s+1]);\n StdOut.println(this.toString(ret));\n this.drawLine(ret);\n }\n }\n }\n }\n }", "Point(int dimensionPass, int clusters){\n\tthis.dimension = dimensionPass;\n\tthis.data = new double[dimension];\n\tthis.clusterDist = new double[clusters];\n\t\n}", "private Point[] getBresenhamLine(Point p0, Point p1, int lineWidth) {\n int x0 = p0.X;\n int y0 = p0.Y;\n int x1 = p1.X;\n int y1 = p1.Y;\n\n // Calculate the distance between the 2 points for x and y\n int dx = Math.abs(x1 - x0);\n int dy = Math.abs(y1 - y0);\n\n // Define a direction to move\n int sx = x0 < x1 ? 1 : -1;\n int sy = y0 < y1 ? 1 : -1;\n\n // \n int err = dx - dy;\n\n List<Point> points = new ArrayList();\n\n while (true) {\n // Add the current point to the list\n points.add(new Point(x0, y0));\n for (int i = 0; i < lineWidth / 2; i++) {\n points.add(new Point(x0 + sx * i, y0));\n points.add(new Point(x0 - sx * i, y0));\n\n points.add(new Point(x0, y0 + sy * i));\n points.add(new Point(x0, y0 - sy * i));\n\n points.add(new Point(x0 + sx * i, y0 + sy * i));\n points.add(new Point(x0 - sx * i, y0 + sy * i));\n points.add(new Point(x0 + sx * i, y0 - sy * i));\n points.add(new Point(x0 - sx * i, y0 - sy * i));\n }\n\n // If the current point equals to the end position, break the loop\n if (x0 == x1 && y0 == y1) {\n break;\n }\n\n int e2 = 2 * err;\n if (e2 > -dy) {\n err = err - dy;\n x0 = x0 + sx;\n }\n if (e2 < dx) {\n err = err + dx;\n y0 = y0 + sy;\n }\n }\n\n Set<Point> uniquePoints = new HashSet<>(points);\n\n return uniquePoints.toArray(new Point[uniquePoints.size()]);\n }" ]
[ "0.6203896", "0.6090989", "0.6090989", "0.5903186", "0.5799276", "0.5760676", "0.5730057", "0.56407744", "0.5609783", "0.5599703", "0.5589489", "0.55879426", "0.55701566", "0.5565782", "0.55329794", "0.5530429", "0.5523107", "0.5493173", "0.54413843", "0.5431069", "0.5409514", "0.5397849", "0.53467333", "0.5261509", "0.5255479", "0.5231899", "0.52201116", "0.5207515", "0.5137088", "0.513706", "0.5136803", "0.510007", "0.5087018", "0.5069977", "0.5067174", "0.50609124", "0.5043446", "0.50312334", "0.5022268", "0.50154054", "0.5012291", "0.50056314", "0.5005574", "0.49991602", "0.49710134", "0.49689594", "0.49682915", "0.49639365", "0.49600685", "0.49522495", "0.49515617", "0.49318925", "0.49207342", "0.49134943", "0.49060723", "0.48915192", "0.48873672", "0.48844337", "0.48796883", "0.48771733", "0.48662478", "0.48573008", "0.48491207", "0.48461086", "0.48371008", "0.48329926", "0.48228255", "0.48221952", "0.48175862", "0.4811856", "0.4807598", "0.48012257", "0.47993416", "0.47987682", "0.47945875", "0.47921044", "0.4790029", "0.4785614", "0.47770482", "0.47746783", "0.47700658", "0.4765071", "0.47624394", "0.47587296", "0.47554898", "0.47544396", "0.4747069", "0.47453693", "0.47413906", "0.47347236", "0.47335252", "0.47333807", "0.47278175", "0.47277325", "0.47184607", "0.47167507", "0.47163895", "0.47155187", "0.47098643", "0.47082856", "0.4698672" ]
0.0
-1
Created by Developer on 23/09/2017.
public interface ItemClickListener { void onClick(View view, int position); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "public final void mo51373a() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void mo38117a() {\n }", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "public void mo4359a() {\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n public int describeContents() { return 0; }", "public Pitonyak_09_02() {\r\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n public void init() {\n\n }", "protected boolean func_70814_o() { return true; }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public void mo12930a() {\n }", "@Override\n public void memoria() {\n \n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n void init() {\n }", "@Override\n public void init() {\n }", "@Override\n\tpublic void initDate() {\n\n\t}", "private void poetries() {\n\n\t}", "protected MetadataUGWD() {/* intentionally empty block */}", "private void m50366E() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n\tpublic void create () {\n\n\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\n\tpublic void create() {\n\t\t\n\t}", "public final void mo91715d() {\n }", "@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}", "public void mo55254a() {\n }", "private Rekenhulp()\n\t{\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "public void mo6081a() {\n }", "public void mo21877s() {\n }", "@Override\n public void init() {}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n public Date getCreated()\n {\n return null;\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@SuppressWarnings(\"unused\")\n\tprivate void version() {\n\n\t}", "public void mo1531a() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void init() {\n }", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void init() {}", "private TMCourse() {\n\t}", "private void init() {\n\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "public void mo21878t() {\n }", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "private CreateDateUtils()\r\n\t{\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "public void mo21779D() {\n }", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "public void mo9848a() {\n }", "Petunia() {\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "public static void listing5_14() {\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}" ]
[ "0.59495085", "0.5913399", "0.57759947", "0.5726271", "0.5723835", "0.57166475", "0.5711555", "0.56781775", "0.56781775", "0.5661091", "0.56250846", "0.56183946", "0.5548902", "0.5537708", "0.5533248", "0.5532072", "0.5524548", "0.5504782", "0.550323", "0.548687", "0.54357517", "0.543037", "0.5429544", "0.5429544", "0.5429544", "0.5429544", "0.5429544", "0.5429544", "0.5429544", "0.54282004", "0.54282004", "0.54211676", "0.54081464", "0.54051816", "0.53935146", "0.53824294", "0.53780043", "0.53664947", "0.53664947", "0.53664947", "0.53664947", "0.53664947", "0.5362391", "0.53611267", "0.5353639", "0.5353027", "0.5352326", "0.5352174", "0.53401357", "0.5338905", "0.53342944", "0.53154105", "0.5315255", "0.53150356", "0.5309401", "0.530814", "0.5305119", "0.53016776", "0.529998", "0.52987915", "0.5297246", "0.52950555", "0.52936774", "0.5292092", "0.528767", "0.5286196", "0.5285629", "0.5285629", "0.5285629", "0.5285629", "0.5285629", "0.5285629", "0.5281228", "0.5280899", "0.5280899", "0.5280899", "0.5278543", "0.527848", "0.5274581", "0.52708805", "0.52657974", "0.52657974", "0.5264057", "0.5264057", "0.5264057", "0.5263259", "0.52605444", "0.5258149", "0.52531976", "0.52531976", "0.52531976", "0.5251755", "0.5247227", "0.5242723", "0.5241204", "0.52407306", "0.5238892", "0.52373165", "0.5235708", "0.5229999", "0.52284485" ]
0.0
-1
Destroys the currently running tcc process.
void destroy();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void destroy()\n {\n processDestroy();\n super.destroy();\n }", "void destroy() {\n \t\ttry {\r\n \t\t\tupKeep.stopRunning();\r\n \t\t} catch (InterruptedException e) {\r\n \t\t}\r\n \r\n \t\t// Kill all running processes.\r\n \t\tfor (MaximaProcess mp : pool) {\r\n \t\t\tmp.kill();\r\n \t\t}\r\n \t\tpool.clear();\r\n \r\n \t\t// Kill all used processes.\r\n \t\tfor (MaximaProcess mp : usedPool) {\r\n \t\t\tmp.kill();\r\n \t\t}\r\n \t\tusedPool.clear();\r\n \t}", "public void destroy() {\n this.bfc.cleanUp();\n }", "public void destroy() {\n this.octaveExec.destroy();\n }", "public void close() {\n myProcess.destroy();\n }", "public final void destroy() {\n requestExit();\n }", "public void abort()\n\t{\n\t\tif(process != null)\n\t\t\tprocess.destroy();\n\t}", "public void Kill() {\n\tif (process != null) {\n\t process.destroy();\n\t childStdin.Kill();\n\t childStdout.Kill();\n\t childStderr.Kill();\n\t}\n\tprocess = null;\n }", "@Override\n\tpublic void destroyProcess() {\n\t\tsuper.destroyProcess();\n\t\tDataDirRemoverHandler ddhHandler = \n\t\t\tnew DataDirRemoverHandler(getLogHandler());\n\t\tddhHandler.setRetryLimitInMillis(2000);\n\t\tddhHandler.execute();\n\t\tportsInUse.remove(port);\n\t}", "public void destroy(){\n runner.destroy();\n }", "public void destroy() {\r\n Display.destroy();\r\n System.exit(0);\r\n }", "private void removeDestroyTask() {\n // If we registered a JVM shutdown hook, we don't need it anymore now:\n // We've already explicitly closed the context.\n if (this.shutdownTask != null) {\n ShutdownHook.removeTask(this.shutdownTask);\n this.shutdownTask = null;\n }\n }", "public static void destroy() {\n\t}", "public void destroy() {\n destroyIn(0);\n }", "public void destroy() {}", "public void destroy() {}", "public void destroy() {\n _aborted = true;\n for(int i=0; i<_processes.length; ++i) {\n if (_processes[i]!=null) { _processes[i].destroy(); }\n }\n stopAllRedirectors();\n }", "public void destroy() {\r\n\t\tsuper.destroy();\r\n\t\tBirtEngine.destroyBirtEngine();\r\n\t}", "public void destroy() {\n \t\n }", "public void destroy(){\n\t\tIterator toolIterator = tools.iterator();\n\t\twhile(toolIterator.hasNext()){\n\t\t\tToolBridge tb = (ToolBridge) toolIterator.next();\n\t\t\ttb.terminate();\n\t\t}\n\n\t\tmultiplexingClientServer.stopRunning();\n\t}", "public void destroy() {\r\n }", "public static void kill(){\r\n\t\tDisplay.destroy();//create Display\r\n\t\tMouse.destroy();//create Mouse\r\n\t\tKeyboard.destroy();//create Keyboard\r\n\t}", "public void destroy();", "public void destroy();", "public void destroy();", "public void destroy();", "public void destroy();", "public void destroy();", "public void destroy();", "public void destroy();", "public final synchronized void destroy()\n {\n if (running_)\n {\n strategy_.destroy();\n running_ = false;\n }\n }", "public void destroy()\r\n {\r\n }", "public void destroy()\n\t{\n\t\tM_log.info(\"destroy()\");\n\t}", "public void destroy() {\n this.alive = false;\n }", "public void destroy()\r\n\t{\r\n\t\tlog.fine(\"destroy\");\r\n\t}", "public void destroy()\r\n\t{\r\n\t}", "public void destroy() {\n }", "public void destroy() {\n }", "public void destroy() {\n }", "public void destroy() {\n }", "public void destroy() {\n }", "public void destroy() {\n }", "public void destroy() {\n }", "public void destroy() {\n }", "public void destroy() {\n }", "public void destroy() {\n }", "public void destroy() {\n }", "public void destroy() {\n\t\tif(timer!=null) {\n\t\t\ttimer.purge();\n\t\t\ttimer.cancel();\n\t\t}\n\t}", "public void destroy() {\r\n\r\n\t}", "public void destroy() {\n try {\n service.shutdown();\n } catch (Exception e) {Log.v(\"HierarchyDumpManager\", \"Could not destroy: \" + e.getMessage());}\n }", "public void destroy()\r\n\t{\n\t\t\r\n\t}", "public void destroy() {\n\t\t\r\n\t}", "public void destroy() {\n\t\t\r\n\t}", "public void destroy() {\n\t\t\r\n\t}", "public void destroy() {\n\t\t\r\n\t}", "public void destroy() {\n AwPacProcessorJni.get().destroyNative(mNativePacProcessor, this);\n }", "public void destroy() {\n this.running = false;\n\n try {\n this.join();\n } catch (InterruptedException e) {\n RayonCore.LOGGER.error(\"Error joining \" + getName());\n e.printStackTrace();\n }\n }", "public void destroy() {\n\t}", "public void destroy() {\n\t}", "public void destroy() {\n\t}", "public void destroy() {\n\t}", "public void destroy() {\n\t}", "public void destroy() {\n\t}", "public void destroy() {\n\t}", "public void destroy() {\n\t}", "public void destroy() {\n\t}", "public void destroy() {\n\t}", "public void destroy() {\n\t}", "public void destroy() {\n\t}", "public void destroy() {\n\t}", "public void destroy() {\n\t}", "public void destroy() {\n\t}", "public void destroy()\r\n {\n }", "public static void destruct() {\n\t\tinstance = null;\n\t}", "public void destroy() {\n }", "void destroy() {\n INSTANCE = null;\n }", "public void destroy() {\n\t\t\n\t}", "public void destroy() {\n\t\t\n\t}", "public void destroy() {\n\t\t\n\t}", "public void destroy() {\n\t\t\n\t}", "public void destroy() {\n\t\t\n\t}", "public void destroy() {\n\t\t\n\t}", "public void destroy()\n\t{\n\t}", "public void destroy() {\n\n\t}", "public void destroy() {\n\n\t}", "public void destroy() {\n\n\t}", "public void destroy() {\n\n\t}", "public void destroy() {\n\n\t}", "public void destroy() {\n\n\t}", "public void destroy() {\n\t\ttry {\n\t\t\tdestroy(10000);\n\t\t}\n\t\tcatch(SQLException e) {}\n\t}", "public void destroy()\n\t{\n\t\tif (m_bfc != null)\n\t\t{\n\t\t\tm_bfc.cleanUp();\n\t\t\tm_bfc = null;\n\t\t}\n\t}", "@Override\n protected void onDestroy() {\n android.os.Process.killProcess(android.os.Process.myPid());\n super.onDestroy();\n // this.finish();\n }", "@PreDestroy\n void destroy()\n {\n final org.apache.sshd.SshServer sshServer = this.sshServer;\n if( sshServer != null )\n {\n LOG.info( \"SSH server module is deactivating\" );\n stopSshServer( sshServer );\n }\n }", "@Override\r\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\r\n\t\tmNtApi.stop();\r\n\t}", "public synchronized static void destroy() {\n if (isInitialized()) {\n Map<String, ProcessEngine> engines = new HashMap<String, ProcessEngine>(processEngines);\n processEngines = new HashMap<String, ProcessEngine>();\n\n for (String processEngineName : engines.keySet()) {\n ProcessEngine processEngine = engines.get(processEngineName);\n try {\n processEngine.close();\n } catch (Exception e) {\n log.error(\"exception while closing {}\", (processEngineName == null ? \"the default process engine\" : \"process engine \" + processEngineName), e);\n }\n }\n\n processEngineInfosByName.clear();\n processEngineInfosByResourceUrl.clear();\n processEngineInfos.clear();\n\n setInitialized(false);\n }\n }", "public static void clean() {\n kryoThreadLocalContext.remove();\n }", "public void destroy() {\n\t\tsuper.destroy(); \n\t\t// Put your code here\n\t}", "@Override\n\tpublic void destroy() {\n\t\tsuper.destroy();\n\t}", "@Override\n\tpublic void destroy() {\n\t\tsuper.destroy();\n\t}", "@Override\n\tpublic void destroy() {\n\t\tsuper.destroy();\n\t}", "@Override\n\tpublic void destroy() {\n\t\tsuper.destroy();\n\t}" ]
[ "0.696026", "0.672567", "0.6639871", "0.66087735", "0.6600069", "0.65999675", "0.6576347", "0.653768", "0.6498932", "0.6456317", "0.64504874", "0.63844407", "0.6351569", "0.6350335", "0.63031954", "0.63031954", "0.6292796", "0.6290164", "0.62851775", "0.628027", "0.62469554", "0.623805", "0.62267596", "0.62267596", "0.62267596", "0.62267596", "0.62267596", "0.62267596", "0.62267596", "0.62267596", "0.62259823", "0.62211215", "0.62139314", "0.62122697", "0.6204289", "0.62000084", "0.6197959", "0.6197959", "0.6197959", "0.6197959", "0.6197959", "0.6197959", "0.6197959", "0.6197959", "0.6197959", "0.6197959", "0.6197959", "0.61746514", "0.6164676", "0.61583954", "0.6155033", "0.6149039", "0.6149039", "0.6149039", "0.6149039", "0.6138092", "0.612282", "0.6111313", "0.6111313", "0.6111313", "0.6111313", "0.6111313", "0.6111313", "0.6111313", "0.6111313", "0.6111313", "0.6111313", "0.6111313", "0.6111313", "0.6111313", "0.6111313", "0.6111313", "0.60975724", "0.6076623", "0.60747147", "0.60707927", "0.60618395", "0.60618395", "0.60618395", "0.60618395", "0.60618395", "0.60618395", "0.6061737", "0.6056559", "0.6056559", "0.6056559", "0.6056559", "0.6056559", "0.6056559", "0.6038767", "0.60254437", "0.601861", "0.60073954", "0.6007123", "0.59947395", "0.59937066", "0.59902745", "0.59671426", "0.59671426", "0.59671426", "0.59671426" ]
0.0
-1
Returns the process of the current tcc execution.
Process getProcess();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public native int getProcess();", "public final Process getProcess() {\n return process;\n }", "public static Process getProcess() {\r\n return (m_Proc);\r\n }", "public Process getProcess() {\n \t\treturn process;\n \t}", "public Process getProcess()\n {\n return proc;\n }", "public abstract Process getProcess();", "public Process getProcess() {\n\t\treturn process;\n\t}", "public PDDeviceNProcess getProcess() {\n/* 93 */ COSDictionary process = (COSDictionary)this.dictionary.getDictionaryObject(COSName.PROCESS);\n/* 94 */ if (process == null)\n/* */ {\n/* 96 */ return null;\n/* */ }\n/* 98 */ return new PDDeviceNProcess(process);\n/* */ }", "public Process getProcess(){\n\t\treturn p;\n\t}", "public Process getCurrent(){\n\t\tProcess p = currentProcess;\n\t\tcurrentProcess = null;\n\t\tgui.setIoActive(null);\n\t\treturn p;\n\t}", "public ServiceProcess getProcess() {\n\t\treturn this.process;\n\t}", "public int get_process_number() {\n\t\treturn process_number;\n\t}", "public Process getProcess() {\n return this.process;\n }", "public final slm.proxies.ProcessType getProcessType()\r\n\t{\r\n\t\treturn getProcessType(getContext());\r\n\t}", "Execution getProcessInstance();", "public static String getPid() {\n\t\tString name = ManagementFactory.getRuntimeMXBean().getName(); \n\t\t// get pid \n\t\treturn name.split(\"@\")[0];\n\t}", "public InternalServiceProcess getInternalServiceProcess();", "protected String getProcessId() {\n return getClass().getName();\n }", "Process getProcess() {\n return process;\n }", "String getPid();", "int getpid();", "public int processIdOfActiveWindow()\r\n\t{\n\t\treturn 0;\r\n\t}", "public static int getPID() {\n return Integer.parseInt(ManagementFactory.getRuntimeMXBean().getName().split(\"@\")[0]);\n }", "public String getReviewProcess() {\n\t\tString t = doc.get(\"reviewprocess\");\n\n\t\tif (t == null) {\n\t\t\treturn \"\";\n\t\t} else {\n\t\t\treturn t;\n\t\t}\n\t}", "public String getProcessCode() {\n \tif (isProcessDocumentNotNull()) {\n \t\treturn getProcessDocument().getDocCode();\n \t}\n\t\treturn processCode;\n\t}", "public String getProcessID()\n {\n return processID;\n }", "private ManufactureProcess getRunningManufactureProcess() {\n\t\tManufactureProcess result = null;\n\n\t\tint skillLevel = getEffectiveSkillLevel();\n\t\tIterator<ManufactureProcess> i = workshop.getProcesses().iterator();\n\t\twhile (i.hasNext() && (result == null)) {\n\t\t\tManufactureProcess process = i.next();\n\t\t\tif ((process.getInfo().getSkillLevelRequired() <= skillLevel) && (process.getWorkTimeRemaining() > 0D)) {\n\t\t\t\tresult = process;\n\t\t\t}\n\t\t}\n\n\t\treturn result;\n\t}", "java.lang.String getProcessId();", "public static VMWrap current() throws IOException {\n\t\t// Get pid of self process\n\t\tString name = ManagementFactory.getRuntimeMXBean().getName();\n\t\tString pid = name.substring(0, name.indexOf('@'));\n\t\treturn process(pid);\n\t}", "public long getProcessID() {\n return processID;\n }", "public abstract long getProcessID();", "public static String getPid() {\n String retVal = \"-\";\n Vector<String> commands = new Vector<String>();\n commands.add(\"/bin/bash\");\n commands.add(\"-c\");\n commands.add(\"echo $PPID\");\n ProcessBuilder pb = new ProcessBuilder(commands);\n try {\n Process pr = pb.start();\n pr.waitFor();\n if (pr.exitValue() == 0) {\n BufferedReader outReader = new BufferedReader(\n new InputStreamReader(pr.getInputStream()));\n retVal = outReader.readLine().trim();\n }\n } catch (Exception e) {\n }\n return retVal;\n }", "public final int getProcessId() {\n\t\treturn this.processId;\n\t}", "public int getExecutionInstance() {\n return executionInstance;\n }", "public String getProcessId()\r\n\t{\r\n\t\treturn processId;\r\n\t}", "@NativeType(\"pid_t\")\n public static long getpid() {\n long __functionAddress = Functions.getpid;\n return invokeP(__functionAddress);\n }", "public ProcessInstance getCurrentProcessInstance() {\r\n return currentProcessInstance;\r\n }", "public T getObjProcess() {\n return objProcess;\n }", "public String getProcessName() {\n return processName;\n }", "public java.lang.String getProcessId() {\n return processId;\n }", "public java.lang.String getProcessId() {\n return processId;\n }", "MaximaProcess getProcess() {\r\n \t\trequestTimeHistory.add(System.currentTimeMillis());\r\n \r\n \t\t// Start a new one as we are going to take one...\r\n \t\tif (startupThrotle.availablePermits() > 0) {\r\n \t\t\tstartProcess();\r\n \t\t}\r\n \r\n \t\tMaximaProcess mp = null;\r\n \t\twhile (mp == null) {\r\n \t\t\ttry {\r\n \t\t\t\tmp = pool.take();\r\n \t\t\t} catch (InterruptedException e) {\r\n \t\t\t\t// If we failed to get one, wait a bit.\r\n \t\t\t\te.printStackTrace();\r\n \t\t\t\ttry {\r\n \t\t\t\t\tThread.sleep(3);\r\n \t\t\t\t} catch (InterruptedException ee) {\r\n \t\t\t\t\tee.printStackTrace();\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t\tusedPool.add(mp);\r\n \t\tmp.activate();\r\n \r\n \t\treturn mp;\r\n \t}", "public ProcessType getType() {\n\t\treturn this.type;\n\t}", "public ProcessInfo getResult()\n\t{\n\t\treturn m_pi;\n\t}", "public java.lang.String getProcessId() {\n return processId;\n }", "public java.lang.String getProcessId() {\n return processId;\n }", "public String getStrProcessType() {\n return strProcessType;\n }", "public final int getProcessId() {\n \treturn m_pid;\n }", "@NotNull\n private static String getMainThreadForProcess(@NotNull ProcessModel process) {\n String name = process.getName();\n if (name.startsWith(\"<\")) {\n for (ThreadModel threads : process.getThreads()) {\n if (threads.getId() == process.getId()) {\n return threads.getName();\n }\n }\n }\n return name;\n }", "private static String m29548a(Context context) {\n ActivityManager activityManager = (ActivityManager) context.getSystemService(\"activity\");\n int myPid = Process.myPid();\n for (RunningAppProcessInfo runningAppProcessInfo : activityManager.getRunningAppProcesses()) {\n if (runningAppProcessInfo.pid == myPid) {\n return runningAppProcessInfo.processName;\n }\n }\n return null;\n }", "public String getProcessAction() {\n\t\treturn processAction;\n\t}", "public static final int getProcessId() {\n\t\treturn ID;\n\t}", "public static final String getProcessName() {\n\t\treturn NAME;\n\t}", "String getThreadId();", "public String getThread()\n\t{\n\t\treturn this.thread;\n\t}", "static String getMyPid() {\n String pid = \"0\";\n try {\n final String nameStr = ManagementFactory.getRuntimeMXBean().getName();\n\n // XXX (bjorn): Really stupid parsing assuming that nameStr will be of the form\n // \"pid@hostname\", which is probably not guaranteed.\n pid = nameStr.split(\"@\")[0];\n } catch (RuntimeException e) {\n // Fall through.\n }\n return pid;\n }", "public int getPid() {\n return pid;\n }", "public ContextInstance getContextInstance() {\n\t\treturn token.getProcessInstance().getContextInstance();\r\n\t}", "public int getExecutionType() {\n\t\treturn 0;\n\t}", "public static final String getProcessValue() {\n\t\treturn VALUE;\n\t}", "public static IRuntime getRuntime() {\n return SchedulableProcess.runtime.get();\n }", "String process_name () throws BaseException;", "long getThreadId();", "Process createProcess();", "public java.lang.String getEXECUTION()\n {\n \n return __EXECUTION;\n }", "public java.lang.String getLast_processstatus() {\n return last_processstatus;\n }", "@Override\n\tpublic String OpenProcessGet() {\n\t\treturn null;\n\t}", "public static HystrixCommandKey getCurrentThreadExecutingCommand() {\n if (currentCommand == null) {\n // statics do \"interesting\" things across classloaders apparently so this can somehow be null ... \n return null;\n }\n return currentCommand.get().peek();\n }", "public String getExecUnit() {\n return execUnit;\n }", "private ProcessTrace getProcessTrace() throws Exception {\n ProcessTrace pT = null;\n UimaTimer uTimer = getTimer();\n if (uTimer != null) {\n if (UIMAFramework.getLogger().isLoggable(Level.FINEST)) {\n UIMAFramework.getLogger(this.getClass()).logrb(Level.FINEST, this.getClass().getName(),\n \"process\", CPMUtils.CPM_LOG_RESOURCE_BUNDLE, \"UIMA_CPM_use_custom_timer__FINEST\",\n new Object[] { Thread.currentThread().getName(), uTimer.getClass().getName() });\n }\n pT = new ProcessTrace_impl(uTimer, getPerformanceTuningSettings());\n } else {\n if (UIMAFramework.getLogger().isLoggable(Level.FINEST)) {\n UIMAFramework.getLogger(this.getClass()).logrb(Level.FINEST, this.getClass().getName(),\n \"process\", CPMUtils.CPM_LOG_RESOURCE_BUNDLE, \"UIMA_CPM_use_default_timer__FINEST\",\n new Object[] { Thread.currentThread().getName() });\n }\n pT = new ProcessTrace_impl(getPerformanceTuningSettings());\n }\n return pT;\n }", "public String getPid() {\r\n return this.pid;\r\n }", "String getExecId();", "public String getPrimaryExec() {\n return primaryExec;\n }", "public Integer getPROCESS_STATUS() {\n return PROCESS_STATUS;\n }", "public String getExecutable();", "public String getPid() {\n return pid;\n }", "public String getPid() {\r\n return pid;\r\n }", "MaximaProcess makeProcess() {\r\n \t\treturn new MaximaProcess(processBuilder, processConfig);\r\n \t}", "public YangUInt32 getProcessPidValue() throws JNCException {\n return (YangUInt32)getValue(\"process-pid\");\n }", "public String getOutput() throws TavernaException, ProcessException{\n if (outputFile == null){\n return saveOutput();\n }\n try {\n return runner.getOutput();\n } catch (InterruptedException ex) {\n throw new TavernaException (\"Workflow was interrupted.\", ex);\n }\n }", "public Integer getProcess(final String title, final String text) {\n\t\tint pid = AutoItXImpl.autoItX.AU3_WinGetProcess(\n\t\t\t\tAutoItUtils.stringToWString(AutoItUtils.defaultString(title)), AutoItUtils.stringToWString(text));\n\t\treturn (pid <= 0) ? null : pid;\n\t}", "public String getSubProcessName() {\n\t\treturn subProcessName;\n\t}", "SporadicProcess getSporadic();", "String getExecutable();", "public int getThreadId() {\n\n return threadId.get();\n\n }", "private ISuspendableSchedulableProcess currentStep() {\n if (!processQ_NonInterruptable.isEmpty()) {\r\n return processQ_NonInterruptable.peek();\r\n } else {\r\n return processQ_Interruptable.peek();\r\n }\r\n }", "public String getProgram() {\n return program;\n }", "public Integer getProcess(final String title) {\n\t\treturn getProcess(title, null);\n\t}", "public String getPid() {\n\t\treturn pid;\n\t}", "public String getProcessMsg() {\n return m_processMsg;\n }", "public Integer processInfoId() {\n return this.processInfoId;\n }", "public static Executor currentExecutor() {\n return (Executor)Thread.currentThread();\n }", "@Override\n\tpublic long getExecute() {\n\t\treturn _scienceApp.getExecute();\n\t}", "private static int findRenderThreadId(@NotNull ProcessModel process) {\n Optional<ThreadModel> renderThread =\n process.getThreads().stream().filter((thread) -> thread.getName().equalsIgnoreCase(RENDER_THREAD_NAME)).findFirst();\n return renderThread.map(ThreadModel::getId).orElse(INVALID_PROCESS);\n }", "public int getProcID() {\n\t\treturn procID;\n\t}", "public boolean startProcess (Properties ctx, ProcessInfo pi, Trx trx);", "cn.infinivision.dataforce.busybee.pb.meta.Execution getExecution();", "String getProcessInstanceID();", "public Integer getProcess(final WinRefEx hWnd) {\n\t\treturn (hWnd == null) ? null : getProcess(TitleBuilder.byHandle(hWnd));\n\t}", "public java.lang.String getPID() {\r\n return localPID;\r\n }" ]
[ "0.7247095", "0.7078351", "0.70762336", "0.6992589", "0.698236", "0.69693106", "0.6919891", "0.6669957", "0.6644295", "0.6609575", "0.65968096", "0.6569765", "0.6566179", "0.6543441", "0.65046483", "0.64670676", "0.64189196", "0.634392", "0.6321142", "0.62396723", "0.61924607", "0.61570597", "0.61223525", "0.6098256", "0.6097062", "0.6093781", "0.60795766", "0.6068665", "0.6046372", "0.60371685", "0.6029474", "0.60290676", "0.60237074", "0.59964585", "0.5991497", "0.5980057", "0.59670955", "0.59560126", "0.5937362", "0.59370196", "0.59370196", "0.59186715", "0.5902318", "0.5877053", "0.5876968", "0.5876968", "0.58731115", "0.58711183", "0.5858184", "0.57742274", "0.5750661", "0.57428616", "0.5734978", "0.5734313", "0.5716374", "0.5715944", "0.569655", "0.5665021", "0.5657032", "0.5611169", "0.5601237", "0.560057", "0.55999684", "0.5597176", "0.55856687", "0.55815375", "0.55707276", "0.556996", "0.5555195", "0.5526966", "0.55234444", "0.5515378", "0.54848236", "0.5471641", "0.54595053", "0.54465514", "0.5442514", "0.54415256", "0.5439941", "0.5438519", "0.54304945", "0.54250693", "0.5421534", "0.5418891", "0.5409739", "0.54070675", "0.54059935", "0.53799796", "0.53749645", "0.5373282", "0.5372299", "0.5365582", "0.5365424", "0.5361987", "0.53574306", "0.535537", "0.53468263", "0.5329522", "0.5325695", "0.53248465" ]
0.7428876
0
Returns the working directory
File getWorkingDirectory();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String workingDirectory() {\n\t\treturn workingDir.getAbsolutePath();\n\t}", "public File getWorkingDir() {\n return workingDir;\n }", "public File getWorkingDir() {\n return workingDir;\n }", "public File getWorkingDirectory()\r\n\t{\r\n\t\treturn workingDirectory;\r\n\t}", "public static String getWorkingDirectory() {\r\n try {\r\n // get working directory as File\r\n String path = DBLIS.class.getProtectionDomain().getCodeSource()\r\n .getLocation().toURI().getPath();\r\n File folder = new File(path);\r\n folder = folder.getParentFile().getParentFile(); // 2x .getParentFile() for debug, 1x for normal\r\n\r\n // directory as String\r\n return folder.getPath() + \"/\"; // /dist/ for debug, / for normal\r\n } catch (URISyntaxException ex) {\r\n return \"./\";\r\n }\r\n }", "@Override\n\tpublic String getWorkingDir() {\n\t\treturn model.getWorkingDir();\n\t}", "public static String getWorkingDirectory() {\n // Since System.getProperty(\"user.dir\") and user.home etc. can be confusing\n // and I haven't quite figured out if they really are reliable on all systems,\n // I chose a little more complicated approach. This is exactly the same\n // like if a file is created relatively, like new File(\"testfile.txt\"), which\n // would be relative to the working directory.\n\n File f = new File(\".\");\n\n try {\n return addPathSeparator(f.getCanonicalPath());\n } catch (IOException e) {\n return null;\n }\n }", "public static String getWorkingDirectory() {\n\n return System.getProperty(\"user.dir\");\n }", "public java.lang.String getWorkingDirectory() {\n java.lang.Object ref = workingDirectory_;\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 workingDirectory_ = s;\n return s;\n }\n }", "public java.lang.String getWorkingDirectory() {\n java.lang.Object ref = workingDirectory_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n workingDirectory_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public static String findCurrentDirectory() {\n\t\tString absolutePath = new File(\"\").getAbsolutePath();\n\t return absolutePath;\n\t}", "String getWorkingDirectory();", "public Directory getWorkingDirectory() {\r\n return workingDirectory;\r\n }", "public synchronized static String getCurrentDirectory() {\n if (currentDirectory == null)\n currentDirectory = canon(System.getProperty(\"user.home\"));\n return currentDirectory;\n }", "public IPath getWorkingDirectory() {\n\t\treturn workingDirectory;\n\t}", "public String getWorkDirectory(){\n String wd = \"\";\n try {\n wd = new File(\"test.txt\").getCanonicalPath().replace(\"/test.txt\",\"\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n return wd;\n }", "public String getWorkDiretory() {\n\t\treturn workDiretory;\n\t}", "public com.google.protobuf.ByteString\n getWorkingDirectoryBytes() {\n java.lang.Object ref = workingDirectory_;\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 workingDirectory_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "File getWorkDir() {\n return workDir;\n }", "public File getCwd() {\n return _cwd;\n }", "public com.google.protobuf.ByteString\n getWorkingDirectoryBytes() {\n java.lang.Object ref = workingDirectory_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n workingDirectory_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public static String getBaseDir() {\r\n Path currentRelativePath = Paths.get(System.getProperty(\"user.dir\"));\r\n return currentRelativePath.toAbsolutePath().toString();\r\n }", "public File getWorkingParent()\n {\n return validatePath(ServerSettings.getInstance().getProperty(ServerSettings.WORKING_PARENT));\n }", "public static String getCurrentPath() {\n File file = new File(\"\");\n return file.getAbsolutePath();\n }", "@Override\n public String getCurrentDirectory() {\n return (String) gemFileState.get(STATE_SYNC_DIRECTORY);\n }", "private String getInitialDirectory() {\n String lastSavedPath = controller.getLastSavePath();\n\n if (lastSavedPath == null) {\n return System.getProperty(Constants.JAVA_USER_HOME);\n }\n\n File lastSavedFile = new File(lastSavedPath);\n\n return lastSavedFile.getAbsoluteFile().getParent();\n }", "public File getExecutableWorkDir(CommonjWork work) {\r\n\t\tlogger.debug(\"IN\");\r\n\t\tFile workDir = new File(rootDir, work.getWorkName());\r\n\t\tlogger.debug(\"OUT\");\r\n\t\treturn workDir;\r\n\t}", "public static String getUserDir() {\n return System.getProperty(\"user.dir\");\n }", "public File getBasedir()\n {\n return basedir;\n }", "public String getFileDirectory() {\n String storedDirectory = settings.get(\"fileDirectory\");\n \n // Default to the program files\n if (storedDirectory == null) {\n storedDirectory = System.getenv(\"ProgramFiles\");\n }\n \n return storedDirectory;\n }", "public String getWorkspacePath() {\n\t\tString workspacePath = userSettingsService.getUserSettings().getWorkspacePath();\n\t\treturn getAbsoluteSubDirectoryPath(workspacePath);\n\t}", "DirectoryProperty getWorkingDirectory();", "public String getPath() {\n\t\treturn this.baseDir.getAbsolutePath();\n\t}", "public File getExecutableWorkProjectDir(CommonjWork work) {\r\n\t\tlogger.debug(\"IN\");\r\n\t\tFile worksDir = new File(rootDir, work.getWorkName());\r\n\t\tlogger.debug(\"OUT\");\r\n\t\treturn worksDir;\r\n\t}", "public String getCurrentPath() {\n\t\treturn DataManager.getCurrentPath();\n\t}", "public static String getUserDir() {\r\n\t\treturn userDir;\r\n\t}", "public String getCurrentPath() {\n\t\treturn \"\";\n\t}", "public static String getCurrentFolderPath(){\n\t\treturn currentFolderPath;\n\t}", "public static File getBaseDir()\n {\n return fBaseDir;\n }", "public String getCurrentProfiledir()\r\n {\r\n String res = null, aux = \"\";\r\n File dir;\r\n Vector<String> profiles = getProfiledirs();\r\n\r\n for (Enumeration<String> e = profiles.elements(); e.hasMoreElements();)\r\n {\r\n aux = e.nextElement();\r\n dir = new File(aux + File.separator + _lockFile);\r\n if (dir.exists())\r\n {\r\n res = aux + File.separator;\r\n }\r\n }\r\n return res;\r\n }", "public String getProgramHomeDirName() {\n return pathsProvider.getProgramDirName();\n }", "public String getProjectRootDirectory() {\r\n\t\treturn getTextValue(workspaceRootText);\r\n\t}", "public String directory () {\n\t\treturn directory;\n\t}", "String getDirectoryPath();", "public static String getBaseDir() {\n // 'basedir' is set by Maven Surefire. It always points to the current subproject,\n // even in reactor builds.\n String baseDir = System.getProperty(\"basedir\");\n\n // if 'basedir' is not set, try the current directory\n if (baseDir == null) {\n baseDir = System.getProperty(\"user.dir\");\n }\n return baseDir;\n }", "public String getWorkRelativePath() {\n return getWorkRelativePath(testURL);\n }", "public java.io.File getBaseDir() {\n return baseDir;\n }", "public String getWorkingDataFile()\n\t{\n\t return workingDataFileName;\n\t}", "public static String getHomeDirectory() {\n\t\treturn System.getProperty(\"user.home\");\n\t}", "public static String sActivePath() \r\n\t{\r\n\t\tString activePath = null;\r\n\t\t\r\n\t\ttry \r\n\t\t{\r\n\t\t\tactivePath = new java.io.File(\"\").getCanonicalPath();\r\n\t\t} \r\n\t\tcatch (IOException e) \r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\treturn activePath;\r\n\t}", "public File getDirectory() {\n\t\treturn file.getParentFile();\n\t}", "public String pwd()\n\t{\n\t\tStringBuilder toPrint = new StringBuilder(\"\");\n\t\tStackLinked<String> theStack = new StackLinked<>();\n\t\tPosition<FileElement> current = currentFileElement;\n\t\tdo {\n\t\t\ttheStack.push(\"/\" + current.getValue().toString());\n\t\t\tcurrent = fileSystem.parent(current);}\n\t\twhile (fileSystem.parent(current) != null);\n\t\twhile (theStack.size() > 0)\n\t\t{\n\t\t\ttoPrint.append(theStack.pop());\n\t\t}\n\t\treturn toPrint.toString();\n\t}", "public String getDir();", "public File getHomeDir() {\n return physicalHomeDir;\n }", "public static File getWorkspaceDir(BundleContext context)\n {\n return new File(getTargetDir(context), \"../../\");\n }", "public String runPwd() {\n return fs.currPwd;\n }", "public String getInputDirectory() {\n\t\treturn (String) p.getValue(\"inputDir\");\n\t}", "java.io.File getBaseDir();", "public static File getUserDir()\n {\n return fUserDir;\n }", "public String getBaseDirectory()\n {\n return m_baseDirectory;\n }", "public FileObject getProjectDirectory() {\n return helper.getProjectDirectory();\n }", "String getDir();", "public String processPWD() {\n System.out.println(\"Le dossier courant est : \" + currentDir);\n ps.println(\"257 \" + currentDir + \" is the CWD\");\n return \"257 \" + currentDir + \" is the CWD\";\n }", "public File getBaseDir() {\n if (baseDir == null) {\n try {\n setBasedir(\".\");\n } catch (BuildException ex) {\n ex.printStackTrace();\n }\n }\n return baseDir;\n }", "Path getBaseInputDir();", "public ImmutableMap<String, String> getWorkdir() {\n return workdir;\n }", "public static File getTempDirectory() {\r\n\t\treturn new File(System.getProperty(\"java.io.tmpdir\"));\r\n\t}", "private void setWorkDiretory() {\n\t\tthis.workDiretory = System.getProperty(\"user.dir\");\n\t}", "public Directory getDirectory() {\n\n\tif( _directory == null) { // If the current directory was not already parsed,\n \n \t _directory = parseDirectory(); // parse it.\n\t}\n\n\treturn _directory; // Return the current root directory.\n }", "public static File getTemporaryDirectory() {\r\n\t\tFile dir = new File(System.getProperty(\"java.io.tmpdir\", //$NON-NLS-1$\r\n\t\t\t\tSystem.getProperty(\"user.dir\", \".\"))); //$NON-NLS-1$ //$NON-NLS-2$\r\n\t\ttry {\r\n\t\t\treturn dir.getCanonicalFile();\r\n\t\t} catch (IOException e) {\r\n\t\t\treturn dir;\r\n\t\t}\r\n\t}", "public static String rootDir()\n {\n read_if_needed_();\n \n return _root;\n }", "private File getHomeDirectory() {\n String brunelDir = System.getProperty(\"brunel.home\");\n File home = brunelDir != null ? new File(brunelDir) :\n new File(System.getProperty(\"user.home\"), \"brunel\");\n return ensureWritable(home);\n }", "public static File getTempDirectory() {\r\n\t\tFile tempdir = new File(System.getProperty(\"java.io.tmpdir\"));\r\n\t\treturn tempdir;\r\n\t}", "FsPath baseDir();", "public File getScratchDir();", "public static File getRootDirectory() {\n\t\treturn ROOT_DIRECTORY;\n\t}", "public static String getWorkingDirectory(Context context) {\n String res;\n if (isSDCardMounted()) {\n String directory = \"For Happy\";\n res = Environment.getExternalStorageDirectory().getAbsolutePath() + \"/\" + directory;\n } else {\n res = context.getFilesDir().getAbsolutePath() + \"/\";\n }\n if (!res.endsWith(\"/\")) {\n res += \"/\";\n }\n File f = new File(res);\n if (!f.exists()) {\n boolean success = f.mkdirs();\n if (!success) {\n LogUtil.e(\"FileUtils create file failed\");\n }\n }\n return res;\n }", "public String getSourceDir() {\n\t\tif (sourceDir != null)\n\t\t\treturn sourceDir;\n\t\telse if (parent == null)\n\t\t\treturn \"./\";\n\t\telse\n\t\t\treturn parent.getSourceDir();\n\t}", "public final String ping() {\n\t\tlog.debug(\"I'm here \\\"\" + workDir + \"\\\"\");\n\t\treturn configRootDir;\n\t}", "private static String getRioHomeDirectory() {\n String rioHome = RioHome.get();\n if(!rioHome.endsWith(File.separator))\n rioHome = rioHome+File.separator;\n return rioHome;\n }", "private String getFilePath(){\n\t\tif(directoryPath==null){\n\t\t\treturn System.getProperty(tmpDirSystemProperty);\n\t\t}\n\t\treturn directoryPath;\n\t}", "private static String\n\tgetDefaultPrefsDir()\n\t{\n\t\tString homeDir\t= System.getProperty( \"user.home\" );\n\t\tif ( homeDir == null )\n\t\t{\n\t\t\thomeDir\t= \".\";\n\t\t}\n\t\t\n\t\treturn( homeDir );\n\t}", "public String getXLSDirectory() {\n\t\treturn props.getProperty(ARGUMENT_XLS_DIRECTORY);\n\t}", "public static String getTempDirectoryPath()\n {\n return System.getProperty( \"java.io.tmpdir\" );\n }", "public static String getOutputDir() {\n outputDir = getProperty(\"outputDir\");\n if (outputDir == null) outputDir = \"./\";\n return outputDir;\n }", "public List<GitFileSystemEntry> getWorkingDirFiles() {\n return null;\n }", "public File getGitRepoContainerDir() {\n return config.getGitReposParentDir();\n }", "public File getHomeDir() {\n\t\tFile f = new File(System.getProperty(\"user.home\"),MuViChatConstants.muviHomeDir);\t\t\n if (!f.isDirectory()) {\n\t f.mkdir();\t \n\t }\n return f;\n\t}", "public static String getOutputFolder() {\n\n if ((m_sOutputFolder == null) || m_sOutputFolder.trim().equals(\"\")) {\n return System.getProperty(\"user.home\");\n }\n else {\n return m_sOutputFolder;\n }\n\n }", "public File getRootDir() {\r\n\t\treturn rootDir;\r\n\t}", "public String getShDir() {\n\n\t\treturn this.shDir;\n\n\t}", "public File getBaseDirectoryPath() {\n return mBaseDirectoryPath;\n }", "File getWorkfile();", "public static File getLogDirectory() {\n\t\treturn LOG_DIRECTORY;\n\t}", "public String toString() {\r\n return fileSystem.getCurrentDirectory().toString();\r\n }", "public static String getCodeDir() {\n\t\tlogger.entry();\n\t\treturn logger.exit(codeDir);\n\t}", "public String getDirectory() {\n return directoryProperty().get();\n }", "public String getPathToSyncDir() {\n return properties.getProperty(PATH_TO_SYNC_DIR);\n }", "public String getPath() {\n\t\treturn pfDir.getPath();\n\t}", "public File getHome() {\r\n\t\treturn homeDir;\r\n\t}" ]
[ "0.8812109", "0.8392914", "0.8392914", "0.8309117", "0.81504816", "0.81346446", "0.80978876", "0.809715", "0.79328805", "0.7926475", "0.7915196", "0.7910813", "0.7905919", "0.784693", "0.7837941", "0.77072656", "0.7610649", "0.75165457", "0.74965644", "0.7493185", "0.74458426", "0.74394107", "0.7376515", "0.7371133", "0.7233566", "0.70946807", "0.70443267", "0.6989596", "0.6911545", "0.6884831", "0.6865542", "0.68621516", "0.6822581", "0.682177", "0.68199307", "0.68063843", "0.6796791", "0.67809516", "0.6740603", "0.67322206", "0.66784555", "0.66723496", "0.6655706", "0.6652959", "0.6647504", "0.66456413", "0.664484", "0.66413325", "0.65932834", "0.65806514", "0.65729415", "0.6567234", "0.65631074", "0.6554713", "0.6552556", "0.6541175", "0.65375084", "0.65292877", "0.6520484", "0.65020496", "0.64964414", "0.64952314", "0.6495165", "0.6494978", "0.64851743", "0.6483742", "0.6464276", "0.6449592", "0.6449415", "0.64478385", "0.64316094", "0.64267313", "0.6425812", "0.6418409", "0.64142674", "0.64132184", "0.6382931", "0.6374281", "0.6365357", "0.63645583", "0.63465613", "0.63235265", "0.63214344", "0.63184285", "0.62964684", "0.6287959", "0.62870973", "0.6286274", "0.628618", "0.62596583", "0.6254888", "0.625068", "0.6232676", "0.6222201", "0.6217366", "0.62148106", "0.6207347", "0.62016565", "0.6199413", "0.6198396" ]
0.7745531
15
Prints the tcc output to the specified print streams.
ProcessRunner print(PrintStream out, PrintStream err);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void printToStream(PrintStream stream);", "public void tulosta(OutputStream os) {\n tulosta(new PrintStream(os));\n }", "public void printToStdout() {\n\t\tfor (int i = 0; i < results.size(); i++) {\n\t\t\tSystem.out.println(results.get(i).toString());\n\t\t}\n\t}", "@Before\n\tpublic void setUpStreams() {\n\t\tSystem.setOut(new PrintStream(outContent));\n\t}", "private void print() {\n printInputMessage();\n printFrequencyTable();\n printCodeTable();\n printEncodedMessage();\n }", "private void doPrint(final PrintStream out) {\n\t\tdoPrintLine(out);\n\t\tprintComponent(out, \"modules\", \"components\", \"plugins\");\n\t\tdoPrintLine(out);\n\t\tprintComponents(out, \"boot\", bootConfig.getComponentConfigs());\n\t\tfor (final ModuleConfig moduleConfig : modules) {\n\t\t\tdoPrintLine(out);\n\t\t\tprintModule(out, moduleConfig);\n\t\t}\n\t\tdoPrintLine(out);\n\t}", "public static void Print() {\n\t\tSystem.out.println(\"Ticks: total \" + totalTicks + \", idle \" + idleTicks + \", system \" + systemTicks + \", user \"\n\t\t\t\t+ userTicks);\n\n\t\tSystem.out.println(\"Disk I/O: reads \" + numDiskReads + \", writes \" + numDiskWrites);\n\t\tSystem.out.println(\"Console I/O: reads \" + numConsoleCharsRead + \", writes \" + numConsoleCharsWritten);\n\t\tSystem.out.println(\"Paging: faults \" + numPageFaults);\n\n\t\tSystem.out.println(\"Network I/O: packets received \" + numPacketsRecvd + \", sent \" + numPacketsSent);\n\t}", "private void printLines() {\n for (String L: testLines) {\n print.write(L);\n }\n }", "public void print() {\r\n\t\tSystem.out.print(getUID());\r\n\t\tSystem.out.print(getTITLE());\r\n\t\tSystem.out.print(getNOOFCOPIES());\r\n\t}", "public static void main(String[] args) {\n\t\tSystem.out.print(\"\\u250C\\u252C\\u2510\\n\");\r\n\t\tSystem.out.print(\"\\u251C\\u253C\\u2524\\n\");\r\n\t\tSystem.out.print(\"\\u2514\\u2534\\u2518\");\r\n\t}", "public static void print(Object text) {\r\n\t\tSystem.out.println(text);\r\n\t\tSystem.out.flush();\r\n\t}", "@Test\r\n public void printTests(){\n\r\n BinaryTree<Integer> tree = new BinaryTree<>();\r\n tree.add(50);\r\n tree.add(25);\r\n tree.add(75);\r\n tree.add(12);\r\n tree.add(37);\r\n tree.add(67);\r\n tree.add(87);\r\n\r\n // redirect stdout to ByteArrayOutputStream for junit\r\n ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();\r\n PrintStream printStream = new PrintStream(byteArrayOutputStream);\r\n PrintStream oldPrintStream = System.out;\r\n System.setOut(printStream);\r\n\r\n // inorder should print 12 25 37 50 67 75 87\r\n tree.print();\r\n printStream.flush();\r\n assertEquals(\"12 25 37 50 67 75 87 \", byteArrayOutputStream.toString());\r\n\r\n byteArrayOutputStream.reset();\r\n\r\n // preorder should print 50 25 12 37 75 67 87\r\n tree.print(BinaryTree.PrintOrder.PREORDER);\r\n printStream.flush();\r\n assertEquals(\"50 25 12 37 75 67 87 \", byteArrayOutputStream.toString());\r\n\r\n byteArrayOutputStream.reset();\r\n\r\n // postorder should print 12 37 25 67 87 75 50\r\n tree.print(BinaryTree.PrintOrder.POSTORDER);\r\n printStream.flush();\r\n assertEquals(\"12 37 25 67 87 75 50 \", byteArrayOutputStream.toString());\r\n\r\n // restore stdout\r\n System.setOut(oldPrintStream);\r\n }", "public void printOn(OutputStream stream) throws IOException{\n OutputStreamWriter out = new OutputStreamWriter(stream);\n\n String responseLine = protocolInitializationString();\n if( responseLine != null )\n out.write( responseLine + \"\\n\" );\n \n String headersString= headersAsString();\n if( headersString != null )\n out.write( headersString );\n \n Content c = contentObj();\n if( c!= null )\n out.write( c.toString() );\n \n out.flush();\n }", "public void print()\n {\n System.out.println();\n System.out.println(\"Ticket to \" + destination +\n \" Price : \" + price + \" pence \" + \n \" Issued \" + issueDateTime);\n System.out.println();\n }", "public void printResults() {\n getUtl().getOutput().add(\"~~ Results ~~\\n\");\n for (int i = 0; i < getHeroes().size(); i++) {\n if (getHeroes().get(i).isDead()) {\n getUtl().getOutput().add(getHeroes().get(i).getName().\n toCharArray()[0] + \" dead\\n\");\n } else {\n getUtl().getOutput().add(getHeroes().get(i).getName().\n toCharArray()[0] + \" \"\n + getHeroes().get(i).getLevel() + \" \"\n + getHeroes().get(i).getXp() + \" \"\n + getHeroes().get(i).getHp() + \" \"\n + getHeroes().get(i).getPosX() + \" \"\n + getHeroes().get(i).getPosY() + \"\\n\");\n }\n }\n // Write output to given outputPath.\n getGameFileWriter().write(getUtl().getOutput());\n for (int i = 0; i < getUtl().getOutput().size(); i++) {\n // Write output to console as well.\n System.out.print(getUtl().getOutput().get(i));\n }\n }", "@VisibleForTesting\n void print();", "public static void main(String[] args) {\n\t\tjava.io.ByteArrayOutputStream baos = new java.io.ByteArrayOutputStream();\n\t\tjava.io.PrintStream ps = new java.io.PrintStream(baos);\n\t // IMPORTANT: Save the old System.out!\n\t\tjava.io.PrintStream old = System.out;\n\t // Tell Java to use your special stream\n\t System.setOut(ps);\n\t // Print some output: goes to your special stream\n\t System.out.println(\"Foofoofoo!\");\n\t // Put things back\n\t System.out.flush();\n\t System.setOut(old);\n\t // Show what happened\n\t System.out.println(\"Here: \" + baos.toString());\n\t}", "private void printResults() {\n\t\tfor (Test test : tests) {\n\t\t\ttest.printResults();\n\t\t}\n\t}", "public void printAll(){\n for (Triangle triangle : triangles) {\n System.out.println(triangle.toString());\n }\n for (Circle circle : circles) {\n System.out.println(circle.toString());\n }\n for (Rectangle rectangle : rectangles) {\n System.out.println(rectangle.toString());\n }\n }", "public static void print() {\r\n System.out.println();\r\n }", "public static void stdout(){\n\t\tSystem.out.println(\"Buildings Found: \" + buildingsFound);\n\t\tSystem.out.println(\"Pages searched: \"+ pagesSearched);\n\t\tSystem.out.println(\"Time Taken: \" + (endTime - startTime) +\"ms\");\t\n\t}", "public void dumpProcessors(PrintWriter output, int pad, String title) {\n UtteranceProcessor[] processors;\n if (utteranceProcessors == null) {\n return;\n }\n\n processors = new UtteranceProcessor[utteranceProcessors.size()];\n processors = (UtteranceProcessor[])\n utteranceProcessors.toArray(processors);\n \n\tUtilities.dump(output, pad, title);\n for (int i = 0; i < processors.length; i++) {\n\t Utilities.dump(output, pad + 4, processors[i].toString());\n }\n }", "protected void print(Object s) throws IOException {\n out.write(Convert.escapeUnicode(s.toString()));\n }", "private void printOut(String[] printerMakerResult)\n {\n //shows user the printerMaker result\n\n for(int i=0;i<printerMakerResult.length;i++)\n {\n outVideo.println(printerMakerResult[i]);\n outVideo.flush();\n }\n }", "public void printAllToStream(PrintStream stream) {\r\n\t\tif (left != null)\r\n\t\t\tleft.printAllToStream(stream);\r\n\r\n\t\tstream.println(value);\r\n\r\n\t\tif (right != null)\r\n\t\t\tright.printAllToStream(stream);\r\n\t}", "private void tabPrinter() {\n IntStream.range(0, tabs).forEach(i -> writer.print(\" \"));\n }", "public void print(Node node) \n{\n PrintWriter w = new PrintWriter(new OutputStreamWriter(System.out), true);\n print(node, w);\n}", "@Override\n\t\t\tpublic void print() {\n\t\t\t\t\n\t\t\t}", "private void redirectSystemStreams() {\r\n\t\tOutputStream out = new OutputStream() {\r\n\t\t\t@Override\r\n\t\t\tpublic void write(int b) throws IOException {\r\n\t\t\t\tupdateTextArea(String.valueOf((char) b));\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void write(byte[] b, int off, int len) throws IOException {\r\n\t\t\t\tupdateTextArea(new String(b, off, len));\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void write(byte[] b) throws IOException {\r\n\t\t\t\twrite(b, 0, b.length);\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tSystem.setOut(new PrintStream(out, true));\r\n\t\tSystem.setErr(new PrintStream(out, true));\r\n\t}", "void print() {\r\n\t\tOperations.print(lexemes, tokens);\r\n\t}", "public void print();", "public void print();", "public void print();", "public void print();", "public void printAll(String cmd, String[] args){\n\t\tfor(int i = 0; i<args.length; i++){\n\t\t\t//System.out.print(args[i] + \"\\t\");\n\t\t}\n\t}", "public void print(PrintStream out)\n {\n for(double io : this.inputs)\n {\n //out.print(\"Inputs variable number\"+counter+\" \"+io+\" \\n\");\n out.printf(Locale.ENGLISH,\"%7.3f\", io);\n }\n out.print(SEPARATOR);\n for(double io : this.outputs)\n {\n //out.print(\"Outputs variable number\"+counter+\" \"+io+\" \\n\");\n out.printf(Locale.ENGLISH,\"%7.3f\", io);\n }\n }", "public void print() {\n\t\tfor(String subj : subjects) {\n\t\t\tSystem.out.println(subj);\n\t\t}\n\t\tSystem.out.println(\"==========\");\n\t\t\n\t\tfor(StudentMarks ssm : studMarks) {\n\t\t\tSystem.out.println(ssm.student);\n\t\t\tfor(Byte m : ssm.marks) {\n\t\t\t\tSystem.out.print(m + \" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public static void print(Object s) {\n\t\tStdOut.println(s);\n\t}", "public void printResults() {\n\t System.out.println(\"BP\\tBR\\tBF\\tWP\\tWR\\tWF\");\n\t System.out.print(NF.format(boundaryPrecision) + \"\\t\" + NF.format(boundaryRecall) + \"\\t\" + NF.format(boundaryF1()) + \"\\t\");\n\t System.out.print(NF.format(chunkPrecision) + \"\\t\" + NF.format(chunkRecall) + \"\\t\" + NF.format(chunkF1()));\n\t System.out.println();\n }", "public abstract PrintStream getOutputStream();", "void print(String string) { printStream.print(string); }", "public void print() {\r\n\t\t System.out.println(toString());\r\n\t }", "@Before\n public void changeOutStream() {\n PrintStream printStream = new PrintStream(outContent);\n System.setOut(printStream);\n }", "public void print() {\n\t// Skriv ut en grafisk representation av kösituationen\n\t// med hjälp av klassernas toString-metoder\n System.out.println(\"A -> B\");\n System.out.println(r0);\n System.out.println(\"B -> C\");\n System.out.println(r1);\n System.out.println(\"turn\");\n System.out.println(r2);\n //System.out.println(\"light 1\");\n System.out.println(s1);\n //System.out.println(\"light 2\");\n System.out.println(s2);\n }", "static void print (){\n \t\tSystem.out.println();\r\n \t}", "public static void printTree(final Node node, final PrintStream printStream) {\n\t\tprintTree(node, 0, printStream); //if we're called normally, we'll dump starting at the first tab position\n\t}", "public void print() {\n btprint(c);\n }", "@Override\n\t\tpublic void print() {\n\n\t\t}", "public void serialise(java.io.PrintStream ps) \n throws IOException {\n serialise(new StreamResult(ps));\n }", "@Override\n\tpublic void print() {\n\t\t\n\t}", "public void print(final PrintStream out) {\n\t\tAssertion.check()\n\t\t\t\t.isNotNull(out);\n\t\tdoPrint(out);\n\t}", "public void print(){\r\n System.out.println(toString());\r\n }", "ProcessRunner print();", "void printFleet(ConsolePrinter printer);", "public void printOut(){\n\t\tSystem.out.println(\"iD: \" + this.getiD());\n\t\tSystem.out.println(\"Titel: \" + this.getTitel());\n\t\tSystem.out.println(\"Produktionsland: \" + this.getProduktionsLand());\n\t\tSystem.out.println(\"Filmlaenge: \" + this.getFilmLaenge());\n\t\tSystem.out.println(\"Originalsprache: \" + this.getOriginalSprache());\n\t\tSystem.out.println(\"Erscheinungsjahr: \" + this.getErscheinungsJahr());\n\t\tSystem.out.println(\"Altersfreigabe: \" + this.getAltersFreigabe());\n\t\tif(this.kameraHauptperson != null) {\n\t\t\tSystem.out.println( \"Kameraperson: \" + this.getKameraHauptperson().toString() );\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println( \"Keine Kameraperson vorhanden \");\n\n\t\t}\n\t\tSystem.out.println(\"----------------------------\");\n\t\tif ( this.listFilmGenre != null) {\n\t\t\tfor( FilmGenre filmGenre: this.listFilmGenre ){\n\t\t\t\tSystem.out.println(\"Filmgenre: \" + filmGenre);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"----------------------------\");\n\t\tfor( Person darsteller: this.listDarsteller ){\n\t\t\tSystem.out.println(\"Darsteller: \" + darsteller);\n\t\t}\n\t\tSystem.out.println(\"----------------------------\");\n\t\tfor( Person synchronSpr: this.listSynchronsprecher ){\n\t\t\tSystem.out.println(\"synchro: \" + synchronSpr);\n\t\t}\n\t\tSystem.out.println(\"----------------------------\");\n\t\tfor( Person regi: this.listRegisseure ){\n\t\t\tSystem.out.println(\"regi: \" + regi);\n\t\t}\n\t\tSystem.out.println(\"----------------------------\");\n\t\tfor( Musikstueck mstk: this.listMusickstuecke ){\n\t\t\tSystem.out.println(\"Musikstueck: \" + mstk);\n\t\t}\n\t\tSystem.out.println(\"----------------------------\");\n\t\tSystem.out.println(\"Datentraeger: \" + this.getDatentraeger());\n\t\tSystem.out.println(\"----------------------------\");\n\t}", "public void printOn(PrintStream os, GPVariables cfg) {\n\n super.printOn(os, cfg);\n os.println(\"StartingFunds = \"+StartingFunds);\n os.println(\"NumTestTraders = \"+NumTestTraders);\n os.println(\"NumSteps = \"+NumSteps);\n }", "public void print() {\n System.out.println(toString());\n }", "@Override\r\n\tpublic void print() {\n\t}", "public void print() {\n\t\tPrinter.print(doPrint());\n\t}", "public void setOut(PrintStream out);", "private static void consoleOutput() {\n\n Output airportFlightCounter = new AirportFlightCounter(airports);\n Output flightInventory = new FlightInventory(flights);\n Output flightPassengerCounter = new FlightPassengerCounter(flights);\n Output mileageCounter = new MileageCounter(flights, airports);\n\n airportFlightCounter.toConsole();\n flightInventory.toConsole();\n flightPassengerCounter.toConsole();\n mileageCounter.toConsole();\n }", "public void println()\n\t{\n\t\tSystem.out.println();\n\t}", "public void println();", "public void print(final PrintStream output) {\r\n // TODO your job\r\n // print row by row\r\n PrintStream rowPrinter = new PrintStream(output);\r\n for ( char[] x : mazeData){\r\n rowPrinter.println(x);\r\n }\r\n }", "void print() {\t\r\n\t\tIterator<Elemento> e = t.iterator();\r\n\t\twhile(e.hasNext())\r\n\t\t\te.next().print();\r\n\t}", "public void print() {\n\t\tSystem.out.println(toString());\n\t}", "public void print(Table t) {\n\t\t\tCursor current = t.rows();\n\t\t\twhile (current.advance()) {\n\t\t\t\tfor (Iterator columns = current.columns(); columns.hasNext();)\n\t\t\t\t\tSystem.out.print((String) columns.next() + \" \");\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t}", "public void print() {\r\n System.out.print( getPlayer1Id() + \", \" );\r\n System.out.print( getPlayer2Id() + \", \");\r\n System.out.print(getDateYear() + \"-\" + getDateMonth() + \"-\" + getDateDay() + \", \");\r\n System.out.print( getTournament() + \", \");\r\n System.out.print(score + \", \");\r\n System.out.print(\"Winner: \" + winner);\r\n System.out.println();\r\n }", "public void sayText(Object ... strings)\n {\n System.out.print (strings);\n System.out.println ();\n }", "public void printAll() {\n\t\tSystem.out.println(mainPot);\n\t\tcurrentPlayer.printHandAndPocket();\n\t\tcurrentPlayer.printCombos();\n\t\topponentPlayer.printCombos();\n\t\tSystem.out.println();\n\t}", "public void print(PrintStream ps) {\n\t\tps.println(\"\\n##################################\");\n\t\tps.println(\"Seriale: \"+this.seriale);\n\t\tps.println(\"Gruppo sanguigno: \"+this.gruppo);\n\t\tps.println(\"Data di ingresso: \"+this.dataArrivo);\n\t\tps.println(\"Data di affidamento: \"+ (this.dataAffidamento.isPresent()?this.dataAffidamento.get():\"\"));\n\t\tps.println(\"Ente donatore: \"+this.enteDonatore);\n\t\tps.println(\"Ente richiedente: \"+(this.enteRichiedente.isPresent()?this.enteRichiedente.get():\"\"));\n\t\tps.println(\"Indirizzo Ente: \"+(this.indirizzoEnte.isPresent()?this.indirizzoEnte.get():\"\"));\n\t}", "public void print()\n/* */ {\n/* 226 */ boolean emptyTarget = true;\n/* 227 */ Iterator it; if ((this.subjects != null) && (this.subjects.size() > 0)) {\n/* 228 */ System.out.println(\"\\nSubjects ---->\");\n/* 229 */ emptyTarget = false;\n/* 230 */ for (it = this.subjects.iterator(); it.hasNext();)\n/* 231 */ ((MatchList)it.next()).print();\n/* */ }\n/* 234 */ if ((this.resources != null) && (this.resources.size() > 0)) {\n/* 235 */ System.out.println((emptyTarget ? \"\\n\" : \"\") + \"Resources ---->\");\n/* 236 */ emptyTarget = false;\n/* 237 */ for (it = this.resources.iterator(); it.hasNext();)\n/* 238 */ ((MatchList)it.next()).print();\n/* */ }\n/* 241 */ if ((this.actions != null) && (this.actions.size() > 0)) {\n/* 242 */ System.out.println((emptyTarget ? \"\\n\" : \"\") + \"Actions ---->\");\n/* 243 */ emptyTarget = false;\n/* 244 */ for (it = this.actions.iterator(); it.hasNext();)\n/* 245 */ ((MatchList)it.next()).print();\n/* */ }\n/* 248 */ if ((this.environments != null) && (this.environments.size() > 0)) {\n/* 249 */ System.out.println((emptyTarget ? \"\\n\" : \"\") + \"Environments ---->\");\n/* 250 */ emptyTarget = false;\n/* 251 */ for (it = this.environments.iterator(); it.hasNext();) {\n/* 252 */ ((MatchList)it.next()).print();\n/* */ }\n/* */ }\n/* 255 */ if (emptyTarget) System.out.print(\"EMPTY\");\n/* */ }", "private static void displayOutput( float t ) {\n\t\tfor (Output o: outputList) {\n\t\t\to.outputMe();\n\t\t}\n\t\tSystem.out.println();\n\n\t\t/*if (Simulator.moreEvents()) {\n\t\t\tSimulator.schedule(\n\t\t\t\tt + 1,\n\t\t\t\t(float time) -> displayOutput( time )\n\t\t\t);\n\t\t}*/\n\t}", "void print();", "void print();", "void print();", "void print();", "void print();", "@Override\n\tpublic void print() {\n\n\t}", "static public void flushPrintStream() {\n \t out.flush();\n }", "public void print() {\n for (int i=0; i<lines.size(); i++)\n {\n System.out.println(lines.get(i));\n }\n }", "public void print() {\n System.out.println(\"Scheme print:\");\n System.out.println(\" Blocks:\");\n for (Block block : this.blocks) {\n // System.out.println(\" \" + block.getName() + \" (\" + block.getID() + \")\");\n for (Integer id : block.getConnections()) {\n System.out.println(\" \" + id);\n }\n //System.out.println(\" \" + block.outputs.getFirst().getDstID());\n }\n /*System.out.println(\" Connections:\");\n for (Con connection : this.connections) {\n System.out.println(\" [\" + connection.src + \"]---[\" + connection.dst + \"]\");\n }*/\n if(this.queue_set){\n System.out.println(\" Queue: \" + this.queue);\n }\n else{\n System.out.println(\" Queue not loaded\");\n }\n }", "public void printText(Object ... strings)\n { \n for(Object s: strings) \n System.out.println((s != null) ? s.toString() : \"null\");\n }", "public void print(Object o) {\n\t\tsynchronized (out) {\n\t\t\tout.print(o);\n\t\t\tout.flush();\n\t\t}\n\t}", "public void consoleBoardDisplay(){\n\t\tString cell[][] = ttt.getCells();\n\t\tSystem.out.println(\"\\n\" +\n\t\t\t\"R0: \" + cell[0][0] + '|' + cell[0][1] + '|' + cell[0][2] + \"\\n\" +\n\t\t\t\" \" + '-' + '+' + '-' + '+' + '-' + \"\\n\" +\n\t\t\t\"R1: \" + cell[1][0] + '|' + cell[1][1] + '|' + cell[1][2] + \"\\n\" +\n\t\t\t\" \" + '-' + '+' + '-' + '+' + '-' + \"\\n\" +\n\t\t\t\"R2: \" + cell[2][0] + '|' + cell[2][1] + '|' + cell[2][2] + \"\\n\"\n\t\t);\n\t}", "public void println(String printbuffer) {\n\t\tSystem.out.println(printbuffer);\n\t}", "@Override\r\n\t\t\tpublic void print() {\n\t\t\t\t\r\n\t\t\t}", "private void print(float coutTransfert) {\n\t}", "public void println() { System.out.println( toString() ); }", "private void printOut(String s)\n {\n outVideo.println(s);\n outVideo.flush();\n }", "public void printTree(T root) {\n List<TreeLine> treeLines = buildTreeLines(root);\n printTreeLines(treeLines);\n if(flush) outStream.flush();\n }", "void printMST();", "@Override\n public void show(ResultComponent results) throws TrecEvalOOException {\n System.out.println(\"************************************************\");\n System.out.println(\"*************** Topic \" + topicId + \" output ****************\");\n System.out.println(\"************************************************\");\n\n if (results.getType() == ResultComponent.Type.GENERAL) {\n\n for (ResultComponent runResult : results.getResults()) {\n\n List<Result> resultList = runResult.getResultsByIdTopic(topicId);\n\n System.out.println(\"\\nResults for run: \" + runResult.getRunName());\n if (resultList.isEmpty()) {\n System.out.println(\"No results for topic \" + topicId);\n }\n\n for (Result result : resultList) {\n System.out.print(result.toString());\n }\n }\n }\n }", "public void print() {\n stdout(name + \", \" + description);\n stdout(\"-----------------------------------\");\n for (MenuComponent menuComponent : components) {\n menuComponent.print();\n }\n stdout(\"\\n\");\n }", "void PrintOnScreen(String toPrnt);", "public void printAll() {\n\t\tfor(int i = 0; i<r.length; i++)\n\t\t\tprintReg(i);\n\t\tprintReg(\"hi\");\n\t\tprintReg(\"lo\");\n\t\tprintReg(\"pc\");\n\t}", "public void print() {\n int n = getSeq().size();\n int m = n / printLength;\n for (int i = 0; i < m; i++) {\n printLine(i * printLength, printLength);\n }\n printLine(n - n % printLength, n % printLength);\n System.out.println();\n }", "public void printVertices(PrintWriter os) {\n\n\n // Implement me!\n String s = \"\";\n for (String k : vertices.keySet()) {\n s = s + k + \" \";\n }\n os.println(s);\n\n\n }", "static void print (Object output){\r\n \t\tSystem.out.println(output);\r\n \t}", "void dump(PrintStream x) {\n String str = buffer.toString();\n x.println(\"<beginning of \" + name + \" buffer>\");\n x.println(str);\n x.println(\"<end of buffer>\");\n }", "public static void println(String toPrint)\n {\n System.out.println(toPrint);\n }" ]
[ "0.62260765", "0.6220905", "0.5970825", "0.59104276", "0.5802678", "0.5768841", "0.5742413", "0.5674617", "0.56349254", "0.5632762", "0.5610416", "0.5592988", "0.55929804", "0.55781084", "0.5557973", "0.55434805", "0.55419016", "0.552376", "0.55187887", "0.5505922", "0.5503025", "0.5498283", "0.5490626", "0.54887927", "0.5479579", "0.54704523", "0.54558074", "0.54325646", "0.5429602", "0.5429179", "0.5425907", "0.5425907", "0.5425907", "0.5425907", "0.5424206", "0.542413", "0.54194975", "0.5405121", "0.5398156", "0.5392891", "0.5389016", "0.53858304", "0.53832126", "0.5380156", "0.536296", "0.53628814", "0.5356373", "0.53330725", "0.5328302", "0.5327614", "0.5318248", "0.5309802", "0.53060615", "0.5304272", "0.52980053", "0.52938557", "0.52938384", "0.52934545", "0.52923846", "0.5292359", "0.5291618", "0.5287041", "0.5280763", "0.52778643", "0.5266211", "0.5261762", "0.52593505", "0.5257571", "0.525592", "0.5250845", "0.5249268", "0.5240033", "0.52394456", "0.5236339", "0.5236339", "0.5236339", "0.5236339", "0.5236339", "0.5234733", "0.523022", "0.5229976", "0.52279705", "0.52272743", "0.5224334", "0.52199227", "0.5211241", "0.5208004", "0.52026576", "0.5201971", "0.5200733", "0.5198422", "0.51938045", "0.5193432", "0.51902515", "0.5185211", "0.5184169", "0.51831716", "0.51780725", "0.51779824", "0.51724863", "0.51702935" ]
0.0
-1
Prints the tcc output to the standard output.
ProcessRunner print();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public PrintStreamCommandOutput()\n {\n this( System.out );\n }", "public static void print() {\r\n System.out.println();\r\n }", "public void println()\n\t{\n\t\tSystem.out.println();\n\t}", "private static void displayOutput( float t ) {\n\t\tfor (Output o: outputList) {\n\t\t\to.outputMe();\n\t\t}\n\t\tSystem.out.println();\n\n\t\t/*if (Simulator.moreEvents()) {\n\t\t\tSimulator.schedule(\n\t\t\t\tt + 1,\n\t\t\t\t(float time) -> displayOutput( time )\n\t\t\t);\n\t\t}*/\n\t}", "public void executeOUT(){\n\t\tint asciiVal = mRegisters[0].getValue();\n\t\tchar toPrint = (char)asciiVal;\n\t\tSystem.out.print(toPrint);\n\t}", "@Override\r\n\tpublic void Print() {\r\n\t\tSystem.out.print(this.tav+\" \");\r\n\t\t\r\n\t}", "public StdOutWriter ()\n {\n super (System.out, true);\n }", "public static void sendToStdOut(String output) {\n System.out.println(output);\n }", "public void println();", "public void printOut() {\n System.out.println(\"\\t\" + result + \" = icmp \" + cond.toLowerCase() + \" \" + type + \" \" + op1 + \", \" + op2 );\n\n // System.out.println(\"\\t\" + result + \" = bitcast i1 \" + temp + \" to i32\");\n }", "public void writeOutput()\n\t{\n\t\tSystem.out.println(this.toString());\n\t}", "public void printToStdout() {\n\t\tfor (int i = 0; i < results.size(); i++) {\n\t\t\tSystem.out.println(results.get(i).toString());\n\t\t}\n\t}", "private static void consoleOutput() {\n\n Output airportFlightCounter = new AirportFlightCounter(airports);\n Output flightInventory = new FlightInventory(flights);\n Output flightPassengerCounter = new FlightPassengerCounter(flights);\n Output mileageCounter = new MileageCounter(flights, airports);\n\n airportFlightCounter.toConsole();\n flightInventory.toConsole();\n flightPassengerCounter.toConsole();\n mileageCounter.toConsole();\n }", "static void print (Object output){\r\n \t\tSystem.out.println(output);\r\n \t}", "public void tulosta(OutputStream os) {\n tulosta(new PrintStream(os));\n }", "public void print() {\n btprint(c);\n }", "public static void print(Object text) {\r\n\t\tSystem.out.println(text);\r\n\t\tSystem.out.flush();\r\n\t}", "public static void write(TBase t) {\n\t\ttry {\n\t\t\tbufferedOutStreamServer = new BufferedOutputStream(System.out, 2048);\n\t\t\tjsonProtocolServer = new TJSONProtocol(new TIOStreamTransport(bufferedOutStreamServer));\n\t\t\tt.write(jsonProtocolServer);\n\n\t\t\tbufferedOutStreamServer.flush();\n\t\t\tSystem.out.println(\"\\n\");\n\t\t} catch (Exception e) {\n\t\t\twrite(new SystemException().setMessage(e.toString()));\n\t\t}\n\t}", "public static void stdout(){\n\t\tSystem.out.println(\"Buildings Found: \" + buildingsFound);\n\t\tSystem.out.println(\"Pages searched: \"+ pagesSearched);\n\t\tSystem.out.println(\"Time Taken: \" + (endTime - startTime) +\"ms\");\t\n\t}", "public void TarjanPrint() {\n long start = System.currentTimeMillis();\n io.println(\"The given statement is \");\n if (tarjan.checkSatisfiability()) {\n io.println(\"satisfiable.\");\n } else {\n io.println(\"not satisfiable.\");\n }\n io.println(\"The calculation took \" + (System.currentTimeMillis() - start) + \" milliseconds.\\n\");\n }", "public void print() {\n System.out.println(toString());\n }", "public void println() { System.out.println( toString() ); }", "@Before\n\tpublic void loadOutput() {\n\t\tSystem.setOut(new PrintStream(this.out));\n\t}", "public static void main(String[] args) {\n\t\tSystem.out.print(\"\\u250C\\u252C\\u2510\\n\");\r\n\t\tSystem.out.print(\"\\u251C\\u253C\\u2524\\n\");\r\n\t\tSystem.out.print(\"\\u2514\\u2534\\u2518\");\r\n\t}", "public void outtext(final RTS_TXT t) {\n\t\tRTS_TXT.setpos(t, 1);\n\t\twhile (RTS_TXT.more(t)) {\n\t\t\ttry {\n\t\t\t\toutputStream.write((int) RTS_TXT.getchar(t));\n\t\t\t\tif (_SYNCHRONOUS)\n\t\t\t\t\toutputStream.flush();\n\t\t\t} catch (IOException e) {\n\t\t\t\tthrow new RTS_SimulaRuntimeError(\"outtext failed\", e);\n\t\t\t}\n\t\t}\n\t}", "public static void Print() {\n\t\tSystem.out.println(\"Ticks: total \" + totalTicks + \", idle \" + idleTicks + \", system \" + systemTicks + \", user \"\n\t\t\t\t+ userTicks);\n\n\t\tSystem.out.println(\"Disk I/O: reads \" + numDiskReads + \", writes \" + numDiskWrites);\n\t\tSystem.out.println(\"Console I/O: reads \" + numConsoleCharsRead + \", writes \" + numConsoleCharsWritten);\n\t\tSystem.out.println(\"Paging: faults \" + numPageFaults);\n\n\t\tSystem.out.println(\"Network I/O: packets received \" + numPacketsRecvd + \", sent \" + numPacketsSent);\n\t}", "public void displayTextToConsole();", "public void print() {\n\t\tSystem.out.println(toString());\n\t}", "public void printResults() {\n getUtl().getOutput().add(\"~~ Results ~~\\n\");\n for (int i = 0; i < getHeroes().size(); i++) {\n if (getHeroes().get(i).isDead()) {\n getUtl().getOutput().add(getHeroes().get(i).getName().\n toCharArray()[0] + \" dead\\n\");\n } else {\n getUtl().getOutput().add(getHeroes().get(i).getName().\n toCharArray()[0] + \" \"\n + getHeroes().get(i).getLevel() + \" \"\n + getHeroes().get(i).getXp() + \" \"\n + getHeroes().get(i).getHp() + \" \"\n + getHeroes().get(i).getPosX() + \" \"\n + getHeroes().get(i).getPosY() + \"\\n\");\n }\n }\n // Write output to given outputPath.\n getGameFileWriter().write(getUtl().getOutput());\n for (int i = 0; i < getUtl().getOutput().size(); i++) {\n // Write output to console as well.\n System.out.print(getUtl().getOutput().get(i));\n }\n }", "public void print() {\r\n\t\t System.out.println(toString());\r\n\t }", "public void setOut(PrintStream out);", "static void print (){\n \t\tSystem.out.println();\r\n \t}", "public void turnOnSystemOutput(){\n if(originalSystemOut == null){\n originalSystemOut = System.out;\n System.setOut(new PrintStream(generalStream));\n //will cause CSS hang up\n// System.setIn(console.getInputStream());\n }\n }", "public static\n PrintStream out() {\n return Ansi.out;\n }", "public void tulosta(PrintStream out) {\n out.println(this.bongattavaId + \": \" + this.nimi + \" \" + this.tieteellinen_nimi + \" \" + this.heimo + \" \" + this.laji);\n }", "public void print() {\n System.out.println(\"Command: \" + command);\n }", "public static void tstatSheet(){\n\t\tSystem.out.println(\"\\tStats\");\n\t\tSystem.out.println(\"--------------------------\");\n\t\tSystem.out.println(\"Strength - \" + tstr + \"\\tMagic Power - \" + tmag);\n\t\tSystem.out.println(\"Luck - \" + tluc + \" \\tAccuaracy - \" + tacc);\n\t\tSystem.out.println(\"Defense - \" + tdef + \" \\tSpeed - \" + tspe);\n\t\tSystem.out.println(\"Health - \" + tHP + \" \\tMystic Energy - \" + tMP);\n\t}", "private void print() {\n printInputMessage();\n printFrequencyTable();\n printCodeTable();\n printEncodedMessage();\n }", "private void sysout() {\nSystem.out.println(\"pandiya\");\n}", "public void printer() throws Exception{\n File outputFile = new File(\"output.txt\");\n FileOutputStream is = new FileOutputStream(outputFile);\n OutputStreamWriter osw = new OutputStreamWriter(is);\n Writer w = new BufferedWriter(osw);\n w.write(this.result());\n w.close();\n }", "private void redirectSystemStreams() {\r\n\t\tOutputStream out = new OutputStream() {\r\n\t\t\t@Override\r\n\t\t\tpublic void write(int b) throws IOException {\r\n\t\t\t\tupdateTextArea(String.valueOf((char) b));\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void write(byte[] b, int off, int len) throws IOException {\r\n\t\t\t\tupdateTextArea(new String(b, off, len));\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void write(byte[] b) throws IOException {\r\n\t\t\t\twrite(b, 0, b.length);\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tSystem.setOut(new PrintStream(out, true));\r\n\t\tSystem.setErr(new PrintStream(out, true));\r\n\t}", "@Override\n public void println ()\n {\n if (text != null)\n {\n text.append (Out.NL);\n col = 0;\n }\n else\n super.println ();\n }", "@Override\r\n public void display(PrintWriter out) {\r\n if (this.nrBasic > 0) {\r\n out.println(\"Basic\");\r\n } else {\r\n super.display(out);\r\n }\r\n }", "private void consoleOutput(String textOutput){\r\n\t\tSystem.out.println(textOutput);\r\n\t}", "public static PrintStream out() {\n return System.out;\n }", "void printtCFT(tCFT iTCFT)\n {\n System.out.println(iTCFT.getElementValue());\n }", "public static void main(String[] args) {\n\t\tjava.io.ByteArrayOutputStream baos = new java.io.ByteArrayOutputStream();\n\t\tjava.io.PrintStream ps = new java.io.PrintStream(baos);\n\t // IMPORTANT: Save the old System.out!\n\t\tjava.io.PrintStream old = System.out;\n\t // Tell Java to use your special stream\n\t System.setOut(ps);\n\t // Print some output: goes to your special stream\n\t System.out.println(\"Foofoofoo!\");\n\t // Put things back\n\t System.out.flush();\n\t System.setOut(old);\n\t // Show what happened\n\t System.out.println(\"Here: \" + baos.toString());\n\t}", "public void print(){\r\n System.out.println(toString());\r\n }", "private void printTimer() {\n\t\tif (_verbose) {\n\t\t\tSystem.out.println(\"\");\n\t\t\tSystem.out.println(\"-- \" + getTimeString() + \" --\");\n\t\t}\n\t}", "private void print(float coutTransfert) {\n\t}", "public static void main(String[] args) throws IOException {\r\n BufferedReader input = new BufferedReader(new InputStreamReader(System.in,\"UTF-8\"));\r\n PrintStream output = new PrintStream(System.out, true, \"UTF-8\");\r\n \tString line;\r\n \twhile ( (line = input.readLine()) != null) {\r\n \t\tList<String> toks = tokenizeRawTweetText(line);\r\n \t\tfor (int i=0; i<toks.size(); i++) {\r\n \t\t\toutput.print(toks.get(i));\r\n \t\t\tif (i < toks.size()-1) {\r\n \t\t\t\toutput.print(\" \");\r\n \t\t\t}\r\n \t\t}\r\n \t\toutput.print(\"\\n\");\r\n \t}\r\n }", "private void syso() {\nSystem.out();\r\n}", "private static void writeShortManual() {\n System.out.println(\"\\nPromethean CLI v1.0.0\");\n System.out.println(\"Commands:\");\n System.out.println(\"\\tplan - create (and optionally execute) a plan given input json\");\n System.out.println(\"\\ttestgen - generate a test input file given initial and goal states\");\n System.out.println(\"Run <command> --help to see all options\\n\");\n }", "protected void dbgOut(String text_out)\n {\n if (debugOn)\n System.out.println(text_out);\n }", "public static void RedirectOutput() {\t\n\t\ttry {\n\t\t\tPrintStream out = new PrintStream(new FileOutputStream(\"ybus.txt\"));\n\t\t\tSystem.setOut(out); //Re-assign the standard output stream to a file.\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private static void task43() {\n System.out.println(\"Twinkle, twinkle, little star,\");\n System.out.println(\"\\tHow I wonder what you are!\");\n System.out.println(\"\\t\\tUp above the world so high,\");\n System.out.println(\"\\t\\tLike a diamond in the sky!\");\n System.out.println(\"Twinkle, twinkle, little star,\");\n System.out.println(\"How I wonder what you are.\");\n }", "public void dump ()\n {\n StringBuilder b = new StringBuilder ();\n dump (b, 0);\n System.out.print (b);\n }", "public void dump ()\n {\n StringBuilder b = new StringBuilder ();\n dump (b, 0);\n System.out.print (b);\n }", "public void dump ()\n {\n StringBuilder b = new StringBuilder ();\n dump (b, 0);\n System.out.print (b);\n }", "public void dump ()\n {\n StringBuilder b = new StringBuilder ();\n dump (b, 0);\n System.out.print (b);\n }", "public void dump ()\n {\n StringBuilder b = new StringBuilder ();\n dump (b, 0);\n System.out.print (b);\n }", "public void dump ()\n {\n StringBuilder b = new StringBuilder ();\n dump (b, 0);\n System.out.print (b);\n }", "public void dump ()\n {\n StringBuilder b = new StringBuilder ();\n dump (b, 0);\n System.out.print (b);\n }", "public void dump ()\n {\n StringBuilder b = new StringBuilder ();\n dump (b, 0);\n System.out.print (b);\n }", "public void dump ()\n {\n StringBuilder b = new StringBuilder ();\n dump (b, 0);\n System.out.print (b);\n }", "private void print(String text) {\n\t\tSystem.out.println(text);\n\t}", "void print() {\r\n\t\tOperations.print(lexemes, tokens);\r\n\t}", "public void print() {\r\n\t\tSystem.out.print(getUID());\r\n\t\tSystem.out.print(getTITLE());\r\n\t\tSystem.out.print(getNOOFCOPIES());\r\n\t}", "@Override\n\t\tpublic void print() {\n\n\t\t}", "public void outputToConsole(String text) {\n \t\tconsoleOutput.append(text);\n \t}", "public static PrintStream sysOut() {\n return system_out;\n }", "public void printTree(T root) {\n List<TreeLine> treeLines = buildTreeLines(root);\n printTreeLines(treeLines);\n if(flush) outStream.flush();\n }", "@Before\n public void changeOutStream() {\n PrintStream printStream = new PrintStream(outContent);\n System.setOut(printStream);\n }", "@Test\r\n public void printTests(){\n\r\n BinaryTree<Integer> tree = new BinaryTree<>();\r\n tree.add(50);\r\n tree.add(25);\r\n tree.add(75);\r\n tree.add(12);\r\n tree.add(37);\r\n tree.add(67);\r\n tree.add(87);\r\n\r\n // redirect stdout to ByteArrayOutputStream for junit\r\n ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();\r\n PrintStream printStream = new PrintStream(byteArrayOutputStream);\r\n PrintStream oldPrintStream = System.out;\r\n System.setOut(printStream);\r\n\r\n // inorder should print 12 25 37 50 67 75 87\r\n tree.print();\r\n printStream.flush();\r\n assertEquals(\"12 25 37 50 67 75 87 \", byteArrayOutputStream.toString());\r\n\r\n byteArrayOutputStream.reset();\r\n\r\n // preorder should print 50 25 12 37 75 67 87\r\n tree.print(BinaryTree.PrintOrder.PREORDER);\r\n printStream.flush();\r\n assertEquals(\"50 25 12 37 75 67 87 \", byteArrayOutputStream.toString());\r\n\r\n byteArrayOutputStream.reset();\r\n\r\n // postorder should print 12 37 25 67 87 75 50\r\n tree.print(BinaryTree.PrintOrder.POSTORDER);\r\n printStream.flush();\r\n assertEquals(\"12 37 25 67 87 75 50 \", byteArrayOutputStream.toString());\r\n\r\n // restore stdout\r\n System.setOut(oldPrintStream);\r\n }", "public void print()\n {\n System.out.println();\n System.out.println(\"Ticket to \" + destination +\n \" Price : \" + price + \" pence \" + \n \" Issued \" + issueDateTime);\n System.out.println();\n }", "@Override\n\t\t\tpublic void print() {\n\t\t\t\t\n\t\t\t}", "public void println() {\n\t\tprintln(\"\"); //$NON-NLS-1$\n\t}", "public void print() {\n\t\tSystem.out.println(\"针式打印机打印了\");\n\t\t\n\t}", "public void println(Object o) throws IOException {\n\t\tprint(o);\n\t\toutputStream.write('\\n');\n\t}", "@Override\n\tpublic void juxing() {\n\t\tSystem.out.println(\"***************\");\n\t\tSystem.out.println(\"***************\");\n\t\tSystem.out.println(\"***************\");\n\t\tSystem.out.println(\"***************\");\n\t\tSystem.out.println(\"***************\");\n\t}", "public void printTable() {\n System.out.print(\"\\033[H\\033[2J\"); // Clear the text in console\n System.out.println(getCell(0, 0) + \"|\" + getCell(0, 1) + \"|\" + getCell(0, 2));\n System.out.println(\"-+-+-\");\n System.out.println(getCell(1, 0) + \"|\" + getCell(1, 1) + \"|\" + getCell(1, 2));\n System.out.println(\"-+-+-\");\n System.out.println(getCell(2, 0) + \"|\" + getCell(2, 1) + \"|\" + getCell(2, 2));\n }", "protected void printOut(String str)\n { if (stdout!=null) System.out.println(str);\n }", "public static void sendTestMessage (PrintWriter out) {\r\n\t\tString pack = \"0|test\";\r\n\t\tout.println(pack);\r\n\t}", "void printMST();", "public void output() {\n System.out.printf(\"Dien tich: %.2f \\n\", getArea());\n System.out.printf(\"Chu vi: %.2f \\n\", getPeripheral());\n }", "public void t(){\n System.out.println( \"Some text \"); \n }", "static public void flushPrintStream() {\n \t out.flush();\n }", "@Test\n\tpublic void whenExecuteMainThenPrintToConsole() {\n\t\tByteArrayOutputStream out = new ByteArrayOutputStream();\n\t\tSystem.setOut(new PrintStream(out));\n\t\tCalculate.main(null);\n\t\tassertThat(out.toString(), is(\"Hello World\\r\\n\"));\n\t}", "public void print();", "public void print();", "public void print();", "public void print();", "public static void print(Object s) {\n\t\tStdOut.println(s);\n\t}", "public void writeln () {\n pw.println();\n }", "public void print() {\n System.out.println(this.toString());\n }", "@VisibleForTesting\n void print();", "@Override\n\tpublic void show() {\n\t\tSystem.out.println(\"´óTÐô\");\n\t}", "public void println(String printbuffer) {\n\t\tSystem.out.println(printbuffer);\n\t}", "public void print(Table t) {\n\t\t\tCursor current = t.rows();\n\t\t\twhile (current.advance()) {\n\t\t\t\tfor (Iterator columns = current.columns(); columns.hasNext();)\n\t\t\t\t\tSystem.out.print((String) columns.next() + \" \");\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t}", "public void print() {\n System.out.println(\"I am \" + status() + (muted ? \" and told to shut up *sadface*\" : \"\") + \" (\" + toString() + \")\");\n }" ]
[ "0.6468296", "0.63201386", "0.62990266", "0.62720436", "0.61381656", "0.61350787", "0.61332", "0.6066832", "0.6058606", "0.6025683", "0.6017962", "0.6008956", "0.6001926", "0.59976953", "0.5973072", "0.5964083", "0.5937079", "0.5922633", "0.59100205", "0.5903293", "0.5899978", "0.5898734", "0.5886734", "0.58801407", "0.5878935", "0.5877956", "0.58633775", "0.5850783", "0.584739", "0.584412", "0.58357686", "0.58337754", "0.58235365", "0.5805068", "0.5788055", "0.5783007", "0.5771202", "0.5763978", "0.5752304", "0.57480425", "0.5738306", "0.5735519", "0.57306695", "0.5719487", "0.5713865", "0.57098395", "0.5706392", "0.57022077", "0.56983566", "0.5695027", "0.5674989", "0.5624973", "0.561611", "0.5613186", "0.5599471", "0.55856574", "0.5583794", "0.5583794", "0.5583794", "0.5583794", "0.5583794", "0.5583794", "0.5583794", "0.5583794", "0.5583794", "0.55836076", "0.55811656", "0.55727303", "0.55633235", "0.5563091", "0.556144", "0.5549905", "0.5542047", "0.55370045", "0.55346483", "0.55339855", "0.5531866", "0.55296457", "0.5529408", "0.5529163", "0.5521048", "0.55163795", "0.55150646", "0.5512947", "0.5511727", "0.54999465", "0.54926383", "0.5489274", "0.5479409", "0.5479409", "0.5479409", "0.5479409", "0.54785436", "0.5474859", "0.54692525", "0.5462048", "0.545617", "0.545587", "0.54555887", "0.54545885" ]
0.54559577
97
/ TODO 19.02.2018 add support for external headers and libraries CInterpreter addIncludeFolder(File folder); CInterpreter addLibraryFolder(File folder); CInterpreter addLibrary(String libName); Waits until the tcc process terminates.
ProcessRunner waitFor();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void startLibrary();", "private static native int ptInitLibrary0(String lang);", "HRESULT LoadTypeLib(String szFile, PointerByReference pptlib);", "public Object run() {\n \n try {\n try {\n \n String targetArch=JNITargetArch.getTargetArch();\n // System.out.println(\"TargetArch: \"+targetArch);\n JCALibrary jca=JCALibrary.getInstance();\n \n \n String libPath=jca.getProperty( \"gov.aps.jca.jni.epics.\"+targetArch+\n \".library.path\", \"\" );\n loadLibrary( libPath, \"Com\" );\n loadLibrary( libPath, \"ca\" );\n \n File caRepeaterPath=new File( jca.getProperty(\n \"gov.aps.jca.jni.epics.\"+targetArch+\".caRepeater.path\", \"\" ) );\n try {\n String caRepeater=\"caRepeater\";\n if( caRepeaterPath.exists() ) {\n caRepeater= ( new File( caRepeaterPath, \"caRepeater\" ) ).\n getAbsolutePath();\n \n }\n Runtime.getRuntime().exec( caRepeater );\n } catch( java.io.IOException ex ) {\n Runtime.getRuntime().exec( \"caRepeater\" );\n }\n } catch( Throwable ex2 ) {\n // System.out.println(ex2);\n }\n // System.out.println(\"Loading jca2\");\n System.loadLibrary( \"jca\" );\n \n return null; // nothing to return\n } catch( Exception ex1 ) {\n // System.out.println(ex1);\n return ex1;\n }\n }", "public void addInterpreter001(String projectName) {\n\t\ttry {\n\t\t\tSWTBotShell shell = openLibraryTab(projectName);\n\n\t\t\tSWTBotTree librariesBot = getBot().treeWithLabel(\n\t\t\t\t\tTREE_INTERPRETER_LIBS);\n\t\t\tString errorMessage = ErrorMessages.Interpreter_errInterprLibFound;\n\t\t\tSWTBotTestCase.assertFalse(errorMessage, librariesBot.hasItems());\n\n\t\t\tshell = openAddInterpreterLibrary();\n\t\t\tselectAltInterpreterLibrary();\n\t\t\tgetBot().waitUntil(\n\t\t\t\t\tConditions.shellIsActive(DLG_PRJ_PROPERTIES + projectName));\n\t\t\tshell = getBot().shell(DLG_PRJ_PROPERTIES + projectName);\n\t\t\tcheckInterprLib(librariesBot, DltkTestsHelper.ALT_INTERPRETER_ID);\n\n\t\t\twaitEnableAndClick(BTN_OK);\n\t\t\tgetBot().waitUntil(Conditions.shellCloses(shell));\n\n\t\t\tcheckInterprContainer(projectName,\n\t\t\t\t\tDltkTestsHelper.ALT_INTERPRETER_ID);\n\t\t} catch (WidgetNotFoundException ex) {\n\t\t\tSWTBotTestCase.fail(ex.getLocalizedMessage());\n\t\t} catch (TimeoutException ex) {\n\t\t\tSWTBotTestCase.fail(ex.getLocalizedMessage());\n\t\t}\n\t}", "public void addInterpreter003(String projectName) {\n\t\ttry {\n\t\t\tSWTBotShell shell = openLibraryTab(projectName);\n\n\t\t\tSWTBotTree librariesBot = getBot().treeWithLabel(\n\t\t\t\t\tTREE_INTERPRETER_LIBS);\n\t\t\tcheckInterprLib(librariesBot, DltkTestsHelper.DEF_INTERPRETER_ID);\n\n\t\t\tshell = openAddInterpreterLibrary();\n\t\t\tselectAltInterpreterLibrary();\n\n\t\t\tgetBot().waitUntil(\n\t\t\t\t\tConditions.shellIsActive(DLG_PRJ_PROPERTIES + projectName));\n\t\t\tshell = getBot().shell(DLG_PRJ_PROPERTIES + projectName);\n\t\t\t// TODO: add check of error message\n\n\t\t\tcheckInterprLib(librariesBot, DltkTestsHelper.DEF_INTERPRETER_ID);\n\n\t\t\tString errorMessage = ErrorMessages.Interpreter_errSeveralInterprLibFound;\n\t\t\tassertInterprLibNotExist(errorMessage, librariesBot,\n\t\t\t\t\tDltkTestsHelper.ALT_INTERPRETER_ID);\n\n\t\t\tfinal SWTBotButton btnBot = getBot().button(BTN_OK);\n\t\t\tassertNotEnabled(btnBot);\n\n\t\t\t// check for error message\n\t\t\ttry {\n\t\t\t\tgetBot()\n\t\t\t\t\t\t.text(\n\t\t\t\t\t\t\t\tOperationMessages.InterpreterOperations_build_path_can_not_contain_mult_interpr);\n\t\t\t} catch (WidgetNotFoundException ex) {\n\t\t\t\tSWTBotTestCase\n\t\t\t\t\t\t.assertTrue(\n\t\t\t\t\t\t\t\t\"Error message \\'\"\n\t\t\t\t\t\t\t\t\t\t+ OperationMessages.InterpreterOperations_build_path_can_not_contain_mult_interpr\n\t\t\t\t\t\t\t\t\t\t+ \"\\' not found.\", false);\n\t\t\t}\n\t\t\twaitEnableAndClick(BTN_CANCEL);\n\t\t\tgetBot().waitUntil(Conditions.shellCloses(shell));\n\n\t\t\tcheckInterprContainer(projectName,\n\t\t\t\t\tDltkTestsHelper.DEF_INTERPRETER_ID);\n\t\t} catch (WidgetNotFoundException ex) {\n\t\t\tSWTBotTestCase.fail(ex.getLocalizedMessage());\n\t\t} catch (TimeoutException ex) {\n\t\t\tSWTBotTestCase.fail(ex.getLocalizedMessage());\n\t\t}\n\t}", "private void ImportLibrary(){\n for(int i = 0; i < refact.size(); i++){\n if(refact.get(i).contains(\"import\")){\n for(String library : libraries){\n refact.add(i, library + \"\\r\");\n }\n break;\n }\n }\n\n\n }", "public void addInterpreter002(String projectName) {\n\t\ttry {\n\t\t\tSWTBotTreeItem projectBot = getProjectItem(projectName);\n\t\t\tprojectBot\n\t\t\t\t\t.contextMenu(\n\t\t\t\t\t\t\tOperationMessages.InterpreterOperations_context_menu_build_path)\n\t\t\t\t\t.menu(\n\t\t\t\t\t\t\tOperationMessages.InterpreterOperations_menu_configure_build_path)\n\t\t\t\t\t.click(); //$NON-NLS-1$\n\t\t\t// clickContextSubMenu(projectBot,\n\t\t\t// OperationMessages.InterpreterOperations_context_menu_build_path,\n\t\t\t//OperationMessages.InterpreterOperations_menu_configure_build_path)\n\t\t\t// ;\n\t\t\tfinal String dlgProp = DLG_PRJ_PROPERTIES + projectName;\n\t\t\tgetBot().waitUntil(Conditions.shellIsActive(dlgProp));\n\t\t\tSWTBotShell shell = getBot().shell(dlgProp);\n\t\t\tgetBot().tabItem(TAB_LIBRARIES).activate(); //$NON-NLS-1$\n\n\t\t\tSWTBotTree librariesBot = getBot().treeWithLabel(\n\t\t\t\t\tTREE_INTERPRETER_LIBS);\n\t\t\tString errorMessage = ErrorMessages.Interpreter_errInterprLibFound;\n\t\t\tSWTBotTestCase.assertFalse(errorMessage, librariesBot.hasItems());\n\n\t\t\tshell = openAddInterpreterLibrary();\n\t\t\tselectDefInterpreterLibrary(false);\n\t\t\tgetBot().waitUntil(Conditions.shellIsActive(dlgProp));\n\t\t\tshell = getBot().shell(dlgProp);\n\t\t\tcheckInterprLib(librariesBot, DltkTestsHelper.DEF_INTERPRETER_ID);\n\n\t\t\twaitEnableAndClick(BTN_OK);\n\t\t\tgetBot().waitUntil(Conditions.shellCloses(shell));\n\n\t\t\tcheckInterprContainer(projectName,\n\t\t\t\t\tDltkTestsHelper.DEF_INTERPRETER_ID);\n\n\t\t} catch (WidgetNotFoundException ex) {\n\t\t\tSWTBotTestCase.fail(ex.getLocalizedMessage());\n\t\t} catch (TimeoutException ex) {\n\t\t\tSWTBotTestCase.fail(ex.getLocalizedMessage());\n\t\t}\n\t}", "public void loadingLibrary(String libraryFilename);", "@Override\n\tprotected void GenerateImportLibrary(String LibName) {\n\n\t}", "private static void deployHECode(String targetDir) throws InterruptedException, IOException, Exception {\r\n\t\t// Build library\r\n\t\tProcessBuilder ps = new ProcessBuilder(\"make\", \"-C\", targetDir);\r\n\r\n\t\t//From the DOC: Initially, this property is false, meaning that the \r\n\t\t//standard output and error output of a subprocess are sent to two \r\n\t\t//separate streams\r\n\t\tps.redirectErrorStream(true);\r\n\r\n\t\tProcess pr = ps.start(); \r\n\t\t\r\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(pr.getInputStream()));\r\n\t\tString line;\r\n\t\twhile ((line = in.readLine()) != null) {\r\n\t\t System.out.println(line);\r\n\t\t}\r\n\t\tint result = pr.waitFor();\r\n\t\tSystem.out.println(\"ok!\");\r\n\r\n\t\tin.close();\r\n//\t\tint result = Runtime.getRuntime().exec(\"make -C \" + targetDir).waitFor();\r\n\t\tif(result == 0) {\r\n\t\t\tSystem.out.println(\"Build successful\");\r\n\t\t} else {\r\n\t\t\tthrow new Exception(\"Service build unsuccessful\");\r\n\t\t}\r\n\t}", "public void addFromLibrary() {\n btAddFromLibrary().push();\n }", "public void beginLoad(int libraryCount);", "private void startUp () {\n NativeMethodBroker.loadLibrary(false);\n try {\n start_up();\n } catch (UnsatisfiedLinkError e) {\n try {\n NativeMethodBroker.loadLibrary(true);\n NativeMethodBroker.traceln(AX_PROGRESS, \"There apparently were problems \" +\n \"in initially loading JavaContainer.dll. \" +\n \"It appears to be ok now. Error message \" +\n \"was \" + e.getMessage());\n start_up();\n } catch (UnsatisfiedLinkError e2) {\n NativeMethodBroker.traceln(AX_ERROR, fatalErrorMessage +\n \" Error message was: \" + e2.getMessage());\n // Really should exit here.\n // System.exit(-1);\n }\n }\n }", "InterpreterRuntimeContext createInterpreterRuntimeContext();", "private void checkExternalLibDir() throws TNotFoundEx{\n\t\tString jarLoc = this.getJarLocation();\n\t\tString libDirLoc=jarLoc+TicklerConst.generalLibName;\n\t\tFile tickLib = new File (libDirLoc);\n\t\tif (tickLib.exists()){\n\t\t\tTicklerVars.isLib = true;\n\t\t\tTicklerVars.libDir = libDirLoc;\n\t\t}\n\t\t//Lib directory not found\n\t\telse\n\t\t{\n\t\t\tthrow new TNotFoundEx(\"Lib directory not found. \\nMake sure that \"+TicklerConst.generalLibName+\" directory exists in the same directory as Tickler.jar\");\n\t\t}\n\t\t\n\t}", "private void initModuleLibraries() {\r\n // local path in the temporarily directory for this module\r\n String localTmpPath = \"soundModule\";\r\n\r\n // path to jar\r\n String jarPath = System.getProperty(\"user.dir\") + File.separator\r\n + \"modules\" + File.separator + \"soundModule.jar\";\r\n\r\n // extract the jar files for sound module\r\n try {\r\n JarUtil.extractFileFromJar(jarPath, localTmpPath, \"lib\", \"jl1.0.jar\");\r\n JarUtil.extractFileFromJar(jarPath, localTmpPath, \"lib\",\r\n \"mp3spi1.9.4.jar\");\r\n JarUtil.extractFileFromJar(jarPath, localTmpPath, \"lib\",\r\n \"tritonus_share-0.3.6.jar\");\r\n } catch (IOException ex) {\r\n ex.printStackTrace();\r\n }\r\n\r\n // add this path in the library path...\r\n JarUtil.setLibraryPath(localTmpPath);\r\n\r\n // load jars from that temporarily directory (sound required jars)\r\n JarUtil.loadJar(localTmpPath, \"tritonus_share-0.3.6.jar\");\r\n JarUtil.loadJar(localTmpPath, \"mp3spi1.9.4.jar\");\r\n JarUtil.loadJar(localTmpPath, \"jl1.0.jar\");\r\n }", "HRESULT LoadRegTypeLib(GUID rguid, int wVerMajor, int wVerMinor, LCID lcid, PointerByReference pptlib);", "private void setup() {\n py.exec(\"from org.python.core import Py\");\n py.exec(\"import python.main.PythonTraceFunction\");\n py.set(\"ptf\", ptf);\n py.exec(\"Py.getThreadState().tracefunc = ptf\");\n py.set(\"console\", python.panel.getImplementation());\n py.set(\"__impl\", python.bot.getImplementation());\n }", "public OtmBuiltInLibrary(BuiltInLibrary lib, OtmModelManager mgr) {\r\n\t\tsuper(mgr);\r\n\t\ttlLib = lib;\r\n\t}", "Interpreter getInterpreter();", "private void installBasicClasses() {\n \tAbstractSymbol filename \n \t = AbstractTable.stringtable.addString(\"<basic class>\");\n \t\n \t// The following demonstrates how to create dummy parse trees to\n \t// refer to basic Cool classes. There's no need for method\n \t// bodies -- these are already built into the runtime system.\n \n \t// IMPORTANT: The results of the following expressions are\n \t// stored in local variables. You will want to do something\n \t// with those variables at the end of this method to make this\n \t// code meaningful.\n \n \t// The Object class has no parent class. Its methods are\n \t// cool_abort() : Object aborts the program\n \t// type_name() : Str returns a string representation \n \t// of class name\n \t// copy() : SELF_TYPE returns a copy of the object\n \n \tclass_c Object_class = \n \t new class_c(0, \n \t\t TreeConstants.Object_, \n \t\t TreeConstants.No_class,\n \t\t new Features(0)\n \t\t\t .appendElement(new method(0, \n \t\t\t\t\t TreeConstants.cool_abort, \n \t\t\t\t\t new Formals(0), \n \t\t\t\t\t TreeConstants.Object_, \n \t\t\t\t\t new no_expr(0)))\n \t\t\t .appendElement(new method(0,\n \t\t\t\t\t TreeConstants.type_name,\n \t\t\t\t\t new Formals(0),\n \t\t\t\t\t TreeConstants.Str,\n \t\t\t\t\t new no_expr(0)))\n \t\t\t .appendElement(new method(0,\n \t\t\t\t\t TreeConstants.copy,\n \t\t\t\t\t new Formals(0),\n \t\t\t\t\t TreeConstants.SELF_TYPE,\n \t\t\t\t\t new no_expr(0))),\n \t\t filename);\n \t\n \t// The IO class inherits from Object. Its methods are\n \t// out_string(Str) : SELF_TYPE writes a string to the output\n \t// out_int(Int) : SELF_TYPE \" an int \" \" \"\n \t// in_string() : Str reads a string from the input\n \t// in_int() : Int \" an int \" \" \"\n \n \tclass_c IO_class = \n \t new class_c(0,\n \t\t TreeConstants.IO,\n \t\t TreeConstants.Object_,\n \t\t new Features(0)\n \t\t\t .appendElement(new method(0,\n \t\t\t\t\t TreeConstants.out_string,\n \t\t\t\t\t new Formals(0)\n \t\t\t\t\t\t .appendElement(new formalc(0,\n \t\t\t\t\t\t\t\t TreeConstants.arg,\n \t\t\t\t\t\t\t\t TreeConstants.Str)),\n \t\t\t\t\t TreeConstants.SELF_TYPE,\n \t\t\t\t\t new no_expr(0)))\n \t\t\t .appendElement(new method(0,\n \t\t\t\t\t TreeConstants.out_int,\n \t\t\t\t\t new Formals(0)\n \t\t\t\t\t\t .appendElement(new formalc(0,\n \t\t\t\t\t\t\t\t TreeConstants.arg,\n \t\t\t\t\t\t\t\t TreeConstants.Int)),\n \t\t\t\t\t TreeConstants.SELF_TYPE,\n \t\t\t\t\t new no_expr(0)))\n \t\t\t .appendElement(new method(0,\n \t\t\t\t\t TreeConstants.in_string,\n \t\t\t\t\t new Formals(0),\n \t\t\t\t\t TreeConstants.Str,\n \t\t\t\t\t new no_expr(0)))\n \t\t\t .appendElement(new method(0,\n \t\t\t\t\t TreeConstants.in_int,\n \t\t\t\t\t new Formals(0),\n \t\t\t\t\t TreeConstants.Int,\n \t\t\t\t\t new no_expr(0))),\n \t\t filename);\n \n \t// The Int class has no methods and only a single attribute, the\n \t// \"val\" for the integer.\n \n \tclass_c Int_class = \n \t new class_c(0,\n \t\t TreeConstants.Int,\n \t\t TreeConstants.Object_,\n \t\t new Features(0)\n \t\t\t .appendElement(new attr(0,\n \t\t\t\t\t TreeConstants.val,\n \t\t\t\t\t TreeConstants.prim_slot,\n \t\t\t\t\t new no_expr(0))),\n \t\t filename);\n \n \t// Bool also has only the \"val\" slot.\n \tclass_c Bool_class = \n \t new class_c(0,\n \t\t TreeConstants.Bool,\n \t\t TreeConstants.Object_,\n \t\t new Features(0)\n \t\t\t .appendElement(new attr(0,\n \t\t\t\t\t TreeConstants.val,\n \t\t\t\t\t TreeConstants.prim_slot,\n \t\t\t\t\t new no_expr(0))),\n \t\t filename);\n \n \t// The class Str has a number of slots and operations:\n \t// val the length of the string\n \t// str_field the string itself\n \t// length() : Int returns length of the string\n \t// concat(arg: Str) : Str performs string concatenation\n \t// substr(arg: Int, arg2: Int): Str substring selection\n \n \tclass_c Str_class =\n \t new class_c(0,\n \t\t TreeConstants.Str,\n \t\t TreeConstants.Object_,\n \t\t new Features(0)\n \t\t\t .appendElement(new attr(0,\n \t\t\t\t\t TreeConstants.val,\n \t\t\t\t\t TreeConstants.Int,\n \t\t\t\t\t new no_expr(0)))\n \t\t\t .appendElement(new attr(0,\n \t\t\t\t\t TreeConstants.str_field,\n \t\t\t\t\t TreeConstants.prim_slot,\n \t\t\t\t\t new no_expr(0)))\n \t\t\t .appendElement(new method(0,\n \t\t\t\t\t TreeConstants.length,\n \t\t\t\t\t new Formals(0),\n \t\t\t\t\t TreeConstants.Int,\n \t\t\t\t\t new no_expr(0)))\n \t\t\t .appendElement(new method(0,\n \t\t\t\t\t TreeConstants.concat,\n \t\t\t\t\t new Formals(0)\n \t\t\t\t\t\t .appendElement(new formalc(0,\n \t\t\t\t\t\t\t\t TreeConstants.arg, \n \t\t\t\t\t\t\t\t TreeConstants.Str)),\n \t\t\t\t\t TreeConstants.Str,\n \t\t\t\t\t new no_expr(0)))\n \t\t\t .appendElement(new method(0,\n \t\t\t\t\t TreeConstants.substr,\n \t\t\t\t\t new Formals(0)\n \t\t\t\t\t\t .appendElement(new formalc(0,\n \t\t\t\t\t\t\t\t TreeConstants.arg,\n \t\t\t\t\t\t\t\t TreeConstants.Int))\n \t\t\t\t\t\t .appendElement(new formalc(0,\n \t\t\t\t\t\t\t\t TreeConstants.arg2,\n \t\t\t\t\t\t\t\t TreeConstants.Int)),\n \t\t\t\t\t TreeConstants.Str,\n \t\t\t\t\t new no_expr(0))),\n \t\t filename);\n \n \t/* Do somethind with Object_class, IO_class, Int_class,\n Bool_class, and Str_class here */\n nameToClass.put(TreeConstants.Object_.getString(), Object_class);\n nameToClass.put(TreeConstants.IO.getString(), IO_class);\n nameToClass.put(TreeConstants.Int.getString(), Int_class);\n nameToClass.put(TreeConstants.Bool.getString(), Bool_class);\n nameToClass.put(TreeConstants.Str.getString(), Str_class);\n adjacencyList.put(TreeConstants.Object_.getString(), new ArrayList<String>() );\n adjacencyList.put(TreeConstants.IO.getString(), new ArrayList<String>() );\n adjacencyList.put(TreeConstants.Int.getString(), new ArrayList<String>() );\n adjacencyList.put(TreeConstants.Bool.getString(), new ArrayList<String>() );\n adjacencyList.put(TreeConstants.Str.getString(), new ArrayList<String>() );\n // Do the same for other basic classes\n basicClassList = new Classes(0);\n basicClassList.appendElement(Object_class);\n basicClassList.appendElement(IO_class);\n basicClassList.appendElement(Int_class);\n basicClassList.appendElement(Bool_class);\n basicClassList.appendElement(Str_class);\n \n }", "private void m9e() {\n String str;\n ApplicationInfo applicationInfo = getApplicationInfo();\n String str2 = applicationInfo.dataDir + \"/tx_shell\";\n f1b = applicationInfo.sourceDir;\n int i = VERSION.SDK_INT;\n Object obj = null;\n if (i >= 19) {\n if (i > 19) {\n String[] strArr = Build.SUPPORTED_64_BIT_ABIS;\n if (strArr != null && strArr.length > 1) {\n obj = 1;\n }\n } else if (new File(\"/system/lib64\").exists()) {\n obj = 1;\n }\n }\n String str3 = null;\n if (VERSION.SDK_INT < 21) {\n str3 = Build.CPU_ABI;\n }\n if ((str3 == null || str3.length() < 2) && VERSION.SDK_INT >= 21) {\n str3 = Build.SUPPORTED_ABIS[0];\n }\n Object obj2 = 1;\n if (str3.toLowerCase(Locale.US).contains(\"x86\")) {\n obj2 = null;\n } else if (VERSION.SDK_INT >= 21) {\n String[] strArr2 = Build.SUPPORTED_ABIS;\n if (strArr2 != null) {\n for (String str4 : strArr2) {\n if (str4.toLowerCase(Locale.US).contains(\"x86\")) {\n obj2 = null;\n }\n }\n }\n }\n Object obj3 = null;\n if (str3.toLowerCase(Locale.US).contains(\"mips\")) {\n obj3 = 1;\n }\n String str5 = VERSION.SDK_INT > 8 ? applicationInfo.nativeLibraryDir : \"/data/data/\" + mPKName + \"/lib\";\n String str6 = \"\";\n String str7 = \"\";\n String str8 = \"\";\n str8 = \"\";\n if (obj2 != null) {\n str4 = m10f() + \"-\" + m5c();\n } else {\n str4 = \"shellx-\" + m5c();\n str8 = m10f() + \"-\" + m5c();\n }\n str6 = str6 + \"lib\" + str4 + \".so\";\n str8 = str7 + \"lib\" + str8 + \".so\";\n File file = new File(str5 + \"/\" + str6);\n File file2 = new File(str2 + \"/\" + str8);\n if (obj2 == null && VERSION.SDK_INT < 19) {\n if (!file2.exists()) {\n if (ZipUtil.exist(f1b, \"lib/armeabi/\" + str8) == 0) {\n if (ZipUtil.extract(f1b, \"lib/armeabi/\" + str8, str2 + \"/\" + str8) == 0) {\n }\n } else if (ZipUtil.extract(f1b, \"lib/armeabi-v7a/\" + str8, str2 + \"/\" + str8) == 0) {\n }\n }\n try {\n Runtime.getRuntime().exec(\"chmod 700 \" + str2 + \"/\" + str8);\n System.load(str2 + \"/\" + str8);\n } catch (IOException e) {\n e.printStackTrace();\n }\n } else if (file.exists()) {\n System.loadLibrary(str4);\n } else {\n str5 = \"\";\n str4 = str2 + \"/\" + str6;\n if (ZipUtil.exist(f1b, \"lib/\" + str3 + \"/\" + str6) == 0) {\n str5 = \"lib/\" + str3 + \"/\" + str6;\n } else if (obj != null) {\n if (obj2 == null) {\n if (VERSION.SDK_INT >= 21) {\n String[] strArr3 = Build.SUPPORTED_ABIS;\n r0 = \"\";\n if (strArr3 != null) {\n int i2 = 0;\n while (i2 < strArr3.length) {\n if (ZipUtil.exist(f1b, \"lib/\" + strArr3[i2].toLowerCase(Locale.US) + \"/\" + str8) == 0 || ZipUtil.exist(f1b, \"lib/\" + strArr3[i2].toLowerCase(Locale.US) + \"/\" + str6) == 0) {\n str3 = strArr3[i2].toLowerCase(Locale.US);\n obj = 1;\n if (ZipUtil.exist(f1b, \"lib/x86_64/\" + str6) == 0) {\n str3 = \"lib/x86_64/\" + str6;\n } else {\n if (str3.compareTo(\"arm64-v8a\") == 0) {\n if (ZipUtil.exist(f1b, \"lib/arm64-v8a/\" + str6) == 0) {\n str3 = \"lib/arm64-v8a/\" + str6;\n }\n } else if (str3.compareTo(\"x86\") == 0) {\n if (ZipUtil.exist(f1b, \"lib/x86/\" + str6) == 0) {\n str3 = \"lib/x86/\" + str6;\n }\n } else if (str3.compareTo(\"armeabi-v7a\") == 0 || str3.compareTo(\"armeabi\") == 0) {\n if (ZipUtil.exist(f1b, \"lib/x86/\" + str6) == 0) {\n str3 = \"lib/x86/\" + str6;\n } else if (ZipUtil.exist(f1b, \"lib/armeabi/\" + str6) == 0) {\n str3 = \"lib/armeabi/\" + str6;\n } else if (ZipUtil.exist(f1b, \"lib/armeabi-v7a/\" + str6) == 0) {\n str3 = \"lib/armeabi-v7a/\" + str6;\n }\n }\n str3 = str5;\n }\n if (VERSION.SDK_INT < 21 || r0 == null) {\n if (ZipUtil.exist(f1b, \"lib/x86_64/\" + str6) == 0) {\n str3 = \"lib/x86_64/\" + str6;\n } else if (ZipUtil.exist(f1b, \"lib/arm64-v8a/\" + str6) == 0) {\n str3 = \"lib/arm64-v8a/\" + str6;\n } else if (ZipUtil.exist(f1b, \"lib/x86/\" + str6) == 0) {\n str3 = \"lib/x86/\" + str6;\n } else if (ZipUtil.exist(f1b, \"lib/armeabi/\" + str6) == 0) {\n str3 = \"lib/armeabi/\" + str6;\n } else if (ZipUtil.exist(f1b, \"lib/armeabi-v7a/\" + str6) == 0) {\n str3 = \"lib/armeabi-v7a/\" + str6;\n }\n }\n str5 = str3;\n } else {\n i2++;\n }\n }\n }\n }\n obj = null;\n str3 = str5;\n if (ZipUtil.exist(f1b, \"lib/x86_64/\" + str6) == 0) {\n str3 = \"lib/x86_64/\" + str6;\n } else if (ZipUtil.exist(f1b, \"lib/arm64-v8a/\" + str6) == 0) {\n str3 = \"lib/arm64-v8a/\" + str6;\n } else if (ZipUtil.exist(f1b, \"lib/x86/\" + str6) == 0) {\n str3 = \"lib/x86/\" + str6;\n } else if (ZipUtil.exist(f1b, \"lib/armeabi/\" + str6) == 0) {\n str3 = \"lib/armeabi/\" + str6;\n } else if (ZipUtil.exist(f1b, \"lib/armeabi-v7a/\" + str6) == 0) {\n str3 = \"lib/armeabi-v7a/\" + str6;\n }\n str5 = str3;\n } else if (ZipUtil.exist(f1b, \"lib/arm64-v8a/\" + str6) == 0) {\n str5 = \"lib/arm64-v8a/\" + str6;\n } else if (ZipUtil.exist(f1b, \"lib/armeabi/\" + str6) == 0) {\n str5 = \"lib/armeabi/\" + str6;\n } else if (ZipUtil.exist(f1b, \"lib/armeabi-v7a/\" + str6) == 0) {\n str5 = \"lib/armeabi-v7a/\" + str6;\n }\n } else if (obj2 != null) {\n Object obj4;\n if (obj3 == null || ZipUtil.exist(f1b, \"lib/mips/\" + str6) != 0) {\n obj4 = null;\n r0 = str5;\n } else {\n obj4 = 1;\n r0 = \"lib/mips/\" + str6;\n }\n if (obj4 == null) {\n if (ZipUtil.exist(f1b, \"lib/armeabi/\" + str6) == 0) {\n r0 = \"lib/armeabi/\" + str6;\n } else if (ZipUtil.exist(f1b, \"lib/armeabi-v7a/\" + str6) == 0) {\n r0 = \"lib/armeabi-v7a/\" + str6;\n }\n }\n str5 = r0;\n } else if (ZipUtil.exist(f1b, \"lib/x86/\" + str6) == 0) {\n str5 = \"lib/x86/\" + str6;\n } else if (ZipUtil.exist(f1b, \"lib/armeabi/\" + str6) == 0) {\n str5 = \"lib/armeabi/\" + str6;\n } else if (ZipUtil.exist(f1b, \"lib/armeabi-v7a/\" + str6) == 0) {\n str5 = \"lib/armeabi-v7a/\" + str6;\n }\n if (ZipUtil.extract(f1b, str5, str4) == 0) {\n try {\n Runtime.getRuntime().exec(\"chmod 700 \" + str4);\n System.load(str4);\n } catch (IOException e2) {\n e2.printStackTrace();\n }\n }\n }\n }", "public void testBuildAndRun() {\n SourcePackagesNode sourcePackagesNode = new SourcePackagesNode(SAMPLE_PROJECT_NAME);\n Node sample1Node = new Node(sourcePackagesNode, SAMPLE1_PACKAGE_NAME);\n JavaNode sampleClass1Node = new JavaNode(sample1Node, SAMPLE1_FILE_NAME);\n // increase timeout to 60 seconds\n MainWindowOperator.getDefault().getTimeouts().setTimeout(\"Waiter.WaitingTime\", 60000);\n // start to track Main Window status bar\n MainWindowOperator.StatusTextTracer stt = MainWindowOperator.getDefault().getStatusTextTracer();\n stt.start();\n // call Build|Compile main menu item\n new CompileJavaAction().perform(sampleClass1Node);\n // \"SampleProject (compile-single)\"\n String compileSingleTarget = Bundle.getString(\n \"org.apache.tools.ant.module.run.Bundle\",\n \"TITLE_output_target\",\n new Object[]{SAMPLE_PROJECT_NAME, null, \"compile-single\"}); // NOI18N\n // \"Finished building SampleProject (compile-single)\"\n String finishedCompileSingleLabel = Bundle.getString(\n \"org.apache.tools.ant.module.run.Bundle\",\n \"FMT_finished_target_status\",\n new String[]{compileSingleTarget});\n // wait message \"Finished building SampleProject (compile-single)\"\n stt.waitText(finishedCompileSingleLabel); \n\n // \"Run\"\n // TODO bundle property name should be changed back to Menu/RunProject after updating bundle\n String runItem = Bundle.getStringTrimmed(\"org.netbeans.modules.project.ui.Bundle\", \"Menu/BuildProject\");\n // \"Run File\"\n String runFileItem = Bundle.getStringTrimmed(\"org.netbeans.modules.project.ui.actions.Bundle\",\n \"LBL_RunSingleAction_Name\",\n new Object[]{new Integer(1), SAMPLE1_FILE_NAME});\n // call \"Run|Run File|Run \"SampleClass1.java\"\"\n new Action(runItem + \"|\" + runFileItem, null).perform(sampleClass1Node);\n // \"SampleProject (run-single)\"\n String runSingleTarget = Bundle.getString(\n \"org.apache.tools.ant.module.run.Bundle\",\n \"TITLE_output_target\",\n new Object[]{SAMPLE_PROJECT_NAME, null, \"run-single\"}); // NOI18N\n // \"Finished building SampleProject (run-single)\"\n String finishedRunSingleLabel = Bundle.getString(\n \"org.apache.tools.ant.module.run.Bundle\",\n \"FMT_finished_target_status\",\n new String[]{runSingleTarget});\n // wait message \"Finished building SampleProject (run-single)\"\n stt.waitText(finishedRunSingleLabel); // NOI18N\n // check Hello and Good bye was printed out to the output window\n\n OutputTabOperator outputOper = new OutputTabOperator(\"run-single\"); //NOI18N\n outputOper.waitText(\"Hello\"); //NOI18N\n outputOper.waitText(\"Good bye\"); //NOI18N\n\n // \"Run\"\n String buildItem = Bundle.getStringTrimmed(\"org.netbeans.modules.project.ui.Bundle\", \"Menu/BuildProject\");\n // \"Build Main Project\"\n String buildMainProjectItem = Bundle.getStringTrimmed(\"org.netbeans.modules.project.ui.actions.Bundle\", \"LBL_BuildMainProjectAction_Name\");\n // call \"Run|Build Main Project\" main menu item\n new Action(buildItem + \"|\" + buildMainProjectItem, null).perform();\n // \"SampleProject (jar)\"\n String jarTarget = Bundle.getString(\n \"org.apache.tools.ant.module.run.Bundle\",\n \"TITLE_output_target\",\n new Object[]{SAMPLE_PROJECT_NAME, null, \"jar\"}); // NOI18N\n // \"Finished building SampleProject (jar)\"\n String finishedJarLabel = Bundle.getString(\n \"org.apache.tools.ant.module.run.Bundle\",\n \"FMT_finished_target_status\",\n new String[]{jarTarget});\n // wait message \"Finished building SampleProject (jar)\"\n stt.waitText(finishedJarLabel);\n\n // Run Main Project\n String runMainProjectItem = Bundle.getStringTrimmed(\"org.netbeans.modules.project.ui.actions.Bundle\", \"LBL_RunMainProjectAction_Name\");\n // call \"Run|Run Main Project\" main menu item\n new Action(runItem + \"|\" + runMainProjectItem, null).perform();\n // \"SampleProject (run)\"\n String runTarget = Bundle.getString(\n \"org.apache.tools.ant.module.run.Bundle\",\n \"TITLE_output_target\",\n new Object[]{SAMPLE_PROJECT_NAME, null, \"run\"}); // NOI18N\n // \"Finished building SampleProject (run)\"\n String finishedRunLabel = Bundle.getString(\n \"org.apache.tools.ant.module.run.Bundle\",\n \"FMT_finished_target_status\",\n new String[]{runTarget});\n // wait message \"Finished building SampleProject (run)\"\n stt.waitText(finishedRunLabel);\n\n stt.stop();\n }", "@Override\n public synchronized void startIT() {\n if (Tracer.isActivated()) {\n Tracer.emitEvent(Tracer.EVENT_END, Tracer.getRuntimeEventsType());\n Tracer.emitEvent(Tracer.Event.START.getId(), Tracer.Event.START.getType());\n }\n\n // Console Log\n Thread.currentThread().setName(\"APPLICATION\");\n if (COMPSs_VERSION == null) {\n LOGGER.warn(\"Starting COMPSs Runtime\");\n } else if (COMPSs_BUILDNUMBER == null) {\n LOGGER.warn(\"Starting COMPSs Runtime v\" + COMPSs_VERSION);\n } else if (COMPSs_BUILDNUMBER.endsWith(\"rnull\")) {\n COMPSs_BUILDNUMBER = COMPSs_BUILDNUMBER.substring(0, COMPSs_BUILDNUMBER.length() - 6);\n LOGGER.warn(\"Starting COMPSs Runtime v\" + COMPSs_VERSION + \" (build \" + COMPSs_BUILDNUMBER + \")\");\n } else {\n LOGGER.warn(\"Starting COMPSs Runtime v\" + COMPSs_VERSION + \" (build \" + COMPSs_BUILDNUMBER + \")\");\n }\n\n // Init Runtime\n if (!initialized) {\n // Application\n synchronized (this) {\n LOGGER.debug(\"Initializing components\");\n\n // Initialize object registry for bindings if needed\n // String lang = System.getProperty(COMPSsConstants.LANG);\n // if (lang != COMPSsConstants.Lang.JAVA.name() && oReg == null) {\n // oReg = new ObjectRegistry(this);\n // }\n\n // Initialize main runtime components\n td = new TaskDispatcher();\n ap = new AccessProcessor(td);\n\n // Initialize runtime tools components\n if (GraphGenerator.isEnabled()) {\n graphMonitor = new GraphGenerator();\n ap.setGM(graphMonitor);\n }\n if (RuntimeMonitor.isEnabled()) {\n runtimeMonitor = new RuntimeMonitor(ap, td, graphMonitor, Long.parseLong(System.getProperty(COMPSsConstants.MONITOR)));\n }\n\n // Log initialization\n initialized = true;\n LOGGER.debug(\"Ready to process tasks\");\n }\n } else {\n // Service\n String className = Thread.currentThread().getStackTrace()[2].getClassName();\n LOGGER.debug(\"Initializing \" + className + \"Itf\");\n try {\n td.addInterface(Class.forName(className + \"Itf\"));\n } catch (ClassNotFoundException cnfe) {\n ErrorManager.fatal(\"Error adding interface \" + className + \"Itf\", cnfe);\n }\n }\n\n if (Tracer.isActivated()) {\n Tracer.emitEvent(Tracer.EVENT_END, Tracer.getRuntimeEventsType());\n }\n\n }", "public void cosoleText() throws IOException\n\t{\n\t\tconsole.setText(\"\"); //Clear the current text on the console\n\t\t//Create anew Process builder with the command to compile all the projects in the current open directory\n\t\tProcessBuilder processBuilder = new ProcessBuilder(javacCommandBuilder(currentProject, currentFile)); \n\t\tProcess process = processBuilder.start(); //Start the process\n\t\t//Create and start Processes for the CCL Loader and CCLRun functions\n\t\tProcess processCCLoader = new ProcessBuilder(new String[] {\"javac\", \"-cp\", \"Class\",\"-d\", \"Class\", \"SDPRO\\\\src\\\\CompilingClassLoader.java\"} ).start();\n\t\tProcess processCCL = new ProcessBuilder(new String[] {\"javac\", \"-cp\", \"Class\",\"-d\", \"Class\", \"SDPRO\\\\src\\\\CCLRun.java\"} ).start();\n\t\t\n\t\t//If the process fails on compile\n\t\tif(process.getErrorStream().read() != -1)\n\t\t{\n\t\t\t//Get the process Error message\n\t\t\tInputStream in = process.getErrorStream();\n\t\t\t//Read the error message and paste it to the console\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(in));\n\t\t\tString line = null;\n\t\t\twhile (in.read() != -1)\n\t\t\t{\n\t\t\t\tline = br.readLine();\n\t\t\t\tconsole.append(line + \"\\n\");\n\t\t\t}\n\t\t}\n\t\t//If the CCLpader process fails to compile\n\t\tif(processCCLoader.getErrorStream().read() != -1)\n\t\t{\n\t\t\t//Get the process Error message\n\t\t\tInputStream in = processCCLoader.getErrorStream();\n\t\t\t//Read the error message and paste it to the console\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(in));\n\t\t\tString line = null;\n\t\t\twhile (in.read() != -1)\n\t\t\t{\n\t\t\t\tline = br.readLine();\n\t\t\t\tconsole.append(line + \"\\n\");\n\t\t\t}\n\t\t}\n\t\t//If the CCLRun fails to compile\n\t\tif(processCCL.getErrorStream().read() != -1)\n\t\t{\n\t\t\t//Get the process Error message\n\t\t\tInputStream in = processCCL.getErrorStream();\n\t\t\t//Read the error message and paste it to the console\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(in));\n\t\t\tString line = null;\n\t\t\twhile (in.read() != -1)\n\t\t\t{\n\t\t\t\tline = br.readLine();\n\t\t\t\tconsole.append(line + \"\\n\");\n\t\t\t}\n\t\t}\n\t\t//If the process compiles\n\t\tif(process.exitValue() == 0)\n\t\t{\n\t\t\t//Create a new thread\n\t\t\tExecutorService service = Executors.newFixedThreadPool(1);\n\t\t\t//Run the java process in a thread\n\t\t\tservice.submit(new ProcessTask(javaCommadBuilder(currentFile)));\n\t\t}\n\t}", "public void testChangeExternalFolder() throws CoreException {\n String externalLib = Util.getOutputDirectory() + File.separator + \"externalLib\";\n IPath projectPath = env.addProject(\"Project\");\n try {\n new File(externalLib).mkdirs();\n Util.compile(new String[] { \"p/X.java\", \"package p;\\n\" + \"public class X {\\n\" + \" public void foo() {\\n\" + \" }\\n\" + \"}\" }, new HashMap<String, String>(), externalLib);\n env.addExternalJars(projectPath, Util.getJavaClassLibs());\n env.addExternalFolders(projectPath, new String[] { externalLib });\n //$NON-NLS-1$\n IPath root = env.getPackageFragmentRootPath(projectPath, \"\");\n env.setOutputFolder(projectPath, \"\");\n IPath classY = env.addClass(root, \"q\", \"Y\", \"package q;\\n\" + \"public class Y {\\n\" + \" void bar(p.X x) {\\n\" + \" x.foo();\\n\" + \" }\\n\" + \"}\");\n fullBuild(projectPath);\n env.waitForAutoBuild();\n expectingNoProblems();\n String externalClassFile = externalLib + File.separator + \"p\" + File.separator + \"X.class\";\n long lastModified = new java.io.File(externalClassFile).lastModified();\n try {\n Thread.sleep(1000);\n } catch (InterruptedException e) {\n }\n Util.compile(new String[] { \"p/X.java\", \"package p;\\n\" + \"public class X {\\n\" + \"}\" }, new HashMap<String, String>(), externalLib);\n // to be sure its different\n new java.io.File(externalClassFile).setLastModified(lastModified + 1000);\n env.getProject(projectPath).refreshLocal(IResource.DEPTH_INFINITE, null);\n env.waitForManualRefresh();\n incrementalBuild(projectPath);\n env.waitForAutoBuild();\n expectingProblemsFor(classY, \"Problem : The method foo() is undefined for the type X [ resource : </Project/q/Y.java> range : <54,57> category : <50> severity : <2>]\");\n } finally {\n new File(externalLib).delete();\n env.removeProject(projectPath);\n }\n }", "PrimitiveTypesLibrary createPrimitiveTypesLibrary();", "protected void runLexer()\n\t{\n\t\tString args[] = {input.getAbsolutePath(), \"*.java\", output.getAbsolutePath(), \"0\", \"full\", \"-1\", \"1.0\", \"--in_place\", \"--metadata_light\"};\n\t\tExternalOperation.callScript(\"python2.7\", lexer, args);\n\t}", "public void connectLibrary() throws IOException {\n }", "public RemoteLibrary putLibrary(String path, Object library);", "public interface ComTestEnvironment {\n\n /**\n * Gets the current test execution info.\n *\n * @return the {@link ComTestExecutionInfo} dispatch\n * @throws ETComException in case of a COM exception\n */\n ComTestExecutionInfo getTestExecutionInfo() throws ETComException;\n\n /**\n * Starts the execution of the specified package file. The package must be already opened with\n * {@link ComApplication#openPackage}. If it is not opened a call of this function will raise an error.\n *\n * @param path the full path name of the package file to execute\n * @param runTraceAnalysis specifies whether the trace analysis should be executed\n * @param runTest specifies whether the test should be executed\n * @param parameters the package parameters to populate as test variables for the test and the trace analysis\n * @return the {@link ComTestExecutionInfo} dispatch\n * @throws ETComException if the package was not opened before or the format of the parameter values is wrong\n */\n ComTestExecutionInfo executePackage(String path, boolean runTraceAnalysis, boolean runTest,\n Map<String, String> parameters) throws ETComException;\n\n /**\n * Starts the execution of the specified project file. The project must be already opened with\n * {@link ComApplication#openProject}. If it is not opened a call of this function will raise an error.\n *\n * @param path the full path name of the project file\n * @param closeProgressDialog determines whether the progress dialog will be closed when finished\n * @param jobExecutionMode specifies whether and how the analysis jobs should be executed:\n * <pre>\n * 0 .. no job execution\n * 1 .. sequential job execution (default)\n * 2 .. parallel job execution\n * 5 .. sequential job execution with separate test report\n * 6 .. parallel job execution with separate test report\n * </pre>\n * @return the {@link ComTestExecutionInfo} dispatch\n * @throws ETComException if the project was not opened before\n */\n ComTestExecutionInfo executeProject(String path, boolean closeProgressDialog, int jobExecutionMode)\n throws ETComException;\n\n /**\n * Generates a handler based test report on the file system.\n *\n * @param dbFile the full path name of the data base file\n * @param reportDir the full path name of output directory\n * @param reportFormat the name of the report format or handler which should be used\n * @param waitUntilFinished defines whether the API call should block until generation is finished\n * @param parameters the configuration parameters\n * @return {@code true} if successful, {@code false} otherwise\n * @throws ETComException in case of a COM exception or invalid parameters\n */\n boolean generateTestReportDocumentFromDB(String dbFile, String reportDir, String reportFormat,\n boolean waitUntilFinished, Map<String, String> parameters)\n throws ETComException;\n\n /**\n * Generates a handler based test report on the file system.\n *\n * @param dbFile the full path name of the data base file\n * @param reportDir the full path name of output directory\n * @param reportConfig the full path to persisted report generator settings file (XML)\n * @param waitUntilFinished defines whether the API call should block until generation is finished\n * @return {@code true} if successful, {@code false} otherwise\n * @throws ETComException in case of a COM exception or invalid parameters\n */\n boolean generateTestReportDocument(String dbFile, String reportDir, String reportConfig, boolean waitUntilFinished)\n throws ETComException;\n}", "protected static Library readALibrary(URL fileURL, Library lib, String libName, FileType type, Map<Setting,Object> projectSettings)\n \t{\n \t\t// handle different file types\n \t\tLibraryFiles in;\n \t\tif (type == FileType.ELIB)\n \t\t{\n \t\t\tin = new ELIB();\n \t\t\tif (in.openBinaryInput(fileURL)) return null;\n \t\t} else if (type == FileType.JELIB || type == FileType.DELIB)\n \t\t{\n try {\n LibId libId = lib != null ? lib.getId() : EDatabase.serverDatabase().getIdManager().newLibId(libName);\n in = new JELIB(libId, fileURL, type);\n } catch (IOException e) {\n e.printStackTrace();\n return null;\n }\n \t\t} else if (type == FileType.READABLEDUMP)\n \t\t{\n \t\t\tin = new ReadableDump();\n \t\t\tif (in.openTextInput(fileURL)) return null;\n \t\t} else\n \t\t{\n \t\t\tSystem.out.println(\"Unknown import type: \" + type);\n \t\t\treturn null;\n \t\t}\n \n \t\t// determine whether this is top-level\n \t\tin.topLevelLibrary = false;\n \t\tif (lib == null)\n \t\t{\n \t\t\tmainLibDirectory = TextUtils.getFilePath(fileURL);\n if (type == FileType.DELIB) {\n mainLibDirectory = mainLibDirectory.replaceAll(libName+\".\"+type.getExtensions()[0], \"\");\n }\n \t\t\tin.topLevelLibrary = true;\n \t\t}\n \n \t\tif (lib == null)\n \t\t{\n \t\t\t// create a new library\n \t\t\tlib = Library.newInstance(libName, fileURL);\n \t\t}\n \n \t\tin.lib = lib;\n \n \t\t// read the library\n \t\tboolean error = in.readInputLibrary();\n \t\tin.closeInput();\n \t\tif (error)\n \t\t{\n \t\t\tSystem.out.println(\"Error reading \" + lib);\n \t\t\tif (in.topLevelLibrary) mainLibDirectory = null;\n \t\t\treturn null;\n \t\t}\n // if (CVS.isEnabled()) {\n // CVSLibrary.addLibrary(lib);\n // }\n if (projectSettings != null)\n projectSettings.putAll(in.projectSettings);\n \t\treturn in.lib;\n \t}", "private void init() {\n safeLevel = config.getSafeLevel();\n \n // Construct key services\n loadService = config.createLoadService(this);\n posix = POSIXFactory.getPOSIX(new JRubyPOSIXHandler(this), RubyInstanceConfig.nativeEnabled);\n javaSupport = new JavaSupport(this);\n \n if (RubyInstanceConfig.POOLING_ENABLED) {\n executor = new ThreadPoolExecutor(\n RubyInstanceConfig.POOL_MIN,\n RubyInstanceConfig.POOL_MAX,\n RubyInstanceConfig.POOL_TTL,\n TimeUnit.SECONDS,\n new SynchronousQueue<Runnable>(),\n new DaemonThreadFactory());\n }\n \n // initialize the root of the class hierarchy completely\n initRoot();\n \n // Set up the main thread in thread service\n threadService.initMainThread();\n \n // Get the main threadcontext (gets constructed for us)\n ThreadContext tc = getCurrentContext();\n \n // Construct the top-level execution frame and scope for the main thread\n tc.prepareTopLevel(objectClass, topSelf);\n \n // Initialize all the core classes\n bootstrap();\n \n // Initialize the \"dummy\" class used as a marker\n dummyClass = new RubyClass(this, classClass);\n dummyClass.freeze(tc);\n \n // Create global constants and variables\n RubyGlobal.createGlobals(tc, this);\n \n // Prepare LoadService and load path\n getLoadService().init(config.loadPaths());\n \n booting = false;\n \n // initialize builtin libraries\n initBuiltins();\n \n if(config.isProfiling()) {\n getLoadService().require(\"jruby/profiler/shutdown_hook\");\n }\n \n // Require in all libraries specified on command line\n for (String scriptName : config.requiredLibraries()) {\n loadService.require(scriptName);\n }\n }", "public void importLibrary(String jarPath) throws IOException {\n // make sure the user didn't hide the sketch folder\n ensureExistence();\n\n String list[] = Compiler.headerListFromIncludePath(jarPath);\n\n // import statements into the main sketch file (code[0])\n // if the current code is a .java file, insert into current\n //if (current.flavor == PDE) {\n if (hasDefaultExtension(current)) {\n setCurrentCode(0);\n }\n // could also scan the text in the file to see if each import\n // statement is already in there, but if the user has the import\n // commented out, then this will be a problem.\n StringBuffer buffer = new StringBuffer();\n for (int i = 0; i < list.length; i++) {\n buffer.append(\"#include <\");\n buffer.append(list[i]);\n buffer.append(\">\\n\");\n }\n buffer.append('\\n');\n buffer.append(editor.getText());\n editor.setText(buffer.toString());\n editor.setSelection(0, 0); // scroll to start\n setModified(true);\n }", "ISOAErrLibrary getLibrary();", "public static void init() {\n if (!initialized) {\n try {\n System.loadLibrary(\"tensorflowlite_test_jni\");\n } catch (UnsatisfiedLinkError e) {\n System.loadLibrary(\"tensorflowlite_stable_test_jni\");\n }\n initTfLiteForTest();\n initialized = true;\n }\n }", "public Object execute(ExecutionEvent event) throws ExecutionException {\n\t\t\n\t\tString avrPath = \"/Users/juliosugaya/_projects/org.xtext.botlib.dsl\";\n\t\tIWorkbenchWindow window = HandlerUtil.getActiveWorkbenchWindowChecked(event);\n\n\t\t// cpp file\n\t\tString cppPath = this.getFileProject();\n\t\tif(cppPath != \"\"){\n\t\t\t//System.out.println(\"meu cpp : \" + cppPath);\n\t\t\t// /avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega1280 -DF_CPU=16000000L -DARDUINO=10605 -DARDUINO_AVR_MEGA -DARDUINO_ARCH_AVR -I./lib/arduino -I./lib/arduino/variants/mega -I./lib/arduino/Release -I./lib/SoftwareSerial ./teste.bot.cpp -o ./test.cpp.o\n\t\t\texecCmd( avrPath + \"/hardware/tools/avr/bin/avr-g++ -c -g -Os -Wall -Wextra -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10605 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -I \" + avrPath + \"/Release -I \" + avrPath + \"/hardware/arduino/avr/cores/arduino -I \" + avrPath + \"/hardware/arduino/avr/variants/eightanaloginputs -I \" + avrPath + \"/hardware/arduino/avr/libraries/SoftwareSerial -I \" + avrPath + \"/hardware/arduino/avr/libraries/LiquidCrystal/src \" + cppPath + \" -o \" + avrPath + \"/test.cpp.o\");\n\t\t\texecCmd( avrPath + \"/hardware/tools/avr/bin/avr-ar rcs \" + avrPath + \"/arduino.ar \" + avrPath + \"/Release/BOTLib.cpp.o\");\n\t\t\texecCmd( avrPath + \"/hardware/tools/avr/bin/avr-ar rcs \" + avrPath + \"/arduino.ar \" + avrPath + \"/Release/BlueTooth.cpp.o\");\n\t\t\texecCmd( avrPath + \"/hardware/tools/avr/bin/avr-ar rcs \" + avrPath + \"/arduino.ar \" + avrPath + \"/Release/LED.cpp.o\");\n\t\t\texecCmd( avrPath + \"/hardware/tools/avr/bin/avr-ar rcs \" + avrPath + \"/arduino.ar \" + avrPath + \"/Release/Motor.cpp.o\");\n\t\t\texecCmd( avrPath + \"/hardware/tools/avr/bin/avr-ar rcs \" + avrPath + \"/arduino.ar \" + avrPath + \"/Release/Button.cpp.o\");\n\t\t\texecCmd( avrPath + \"/hardware/tools/avr/bin/avr-ar rcs \" + avrPath + \"/arduino.ar \" + avrPath + \"/Release/Debug.cpp.o\");\n\t\t\texecCmd( avrPath + \"/hardware/tools/avr/bin/avr-ar rcs \" + avrPath + \"/arduino.ar \" + avrPath + \"/Release/SensorSR04.cpp.o\");\n\t\t\texecCmd( avrPath + \"/hardware/tools/avr/bin/avr-ar rcs \" + avrPath + \"/arduino.ar \" + avrPath + \"/Release/SensorIR.cpp.o\");\n\t\t\texecCmd( avrPath + \"/hardware/tools/avr/bin/avr-ar rcs \" + avrPath + \"/arduino.ar \" + avrPath + \"/Release/Libraries/SoftwareSerial/SoftwareSerial.cpp.o\");\n\t\t\texecCmd( avrPath + \"/hardware/tools/avr/bin/avr-ar rcs \" + avrPath + \"/arduino.ar \" + avrPath + \"/Release/Libraries/LiquidCrystal/src/LiquidCrystal.cpp.o\");\n\t\t\t// /avr/bin/avr-gcc -w -Os -Wl,--gc-sections -mmcu=atmega1280 -o test.cpp.elf test.cpp.o arduino.ar -L -lm\n\t\t\texecCmd( avrPath + \"/hardware/tools/avr/bin/avr-gcc -Wall -Wextra -Os -Wl,--gc-sections -mmcu=atmega328p -o \" + avrPath + \"/test.cpp.elf \" + avrPath + \"/test.cpp.o \" + avrPath + \"/arduino.ar -L -lm\");\n\t\t\t// /avr/bin/avr-objcopy -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 test.cpp.elf test.cpp.eep\n\t\t\texecCmd( avrPath + \"/hardware/tools/avr/bin/avr-objcopy -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 \" + avrPath + \"/test.cpp.elf \" + avrPath + \"/test.cpp.eep\");\n\t\t\t// /avr/bin/avr-objcopy -O ihex -R .eeprom test.cpp.elf test.cpp.hex\n\t\t\texecCmd( avrPath + \"/hardware/tools/avr/bin/avr-objcopy -O ihex -R .eeprom \" + avrPath + \"/test.cpp.elf \" + avrPath + \"/test.cpp.hex\");\n\t\t\t// /avr/bin/avr-objcopy -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 test.cpp.elf test.cpp.eep\n\t\t\texecCmd( avrPath + \"/hardware/tools/avr/bin/avr-objcopy -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 \" + avrPath + \"/test.cpp.elf \" + avrPath + \"/test.cpp.eep\");\n\t\t\t// /avr/bin/avr-objcopy -O ihex -R .eeprom test.cpp.elf test.cpp.hex\n\t\t\texecCmd( avrPath + \"/hardware/tools/avr/bin/avr-objcopy -O ihex -R .eeprom \" + avrPath + \"/test.cpp.elf \" + avrPath + \"/test.cpp.hex\");\n\t\t\t// /avr/bin/avrdude -C./avr/etc/avrdude.conf -v -patmega1280 -carduino -P/dev/cu.usbserial-AH00PD34 -b57600 -D -Uflash:w:test.cpp.hex:i\n\t\t\texecCmd( avrPath + \"/hardware/tools/avr/bin/avrdude -C\" + avrPath + \"/hardware/tools/avr/etc/avrdude.conf -v -patmega328p -carduino -P\" + getUSBName() + \" -b57600 -D -Uflash:w:\" + avrPath + \"/test.cpp.hex:i\");\t\t\n//\t\t\texecCmd( avrPath + \"/hardware/tools/avr/bin/avrdude -C\" + avrPath + \"/hardware/tools/avr/etc/avrdude.conf -v -patmega328p -carduino -P/dev/tty.usbserial-A9MP9FFZ -b57600 -D -Uflash:w:\" + avrPath + \"/test.cpp.hex:i\");\t\t\n\t\t\t\n\t\t\tMessageDialog.openInformation(\n\t\t\t\t\twindow.getShell(),\n\t\t\t\t\t\"BotDuino\",\n\t\t\t\t\t\"Uploded! Unplug the device.\");\n\t\t}else{\n\t\t\tMessageDialog.openInformation(\n\t\t\t\t\twindow.getShell(),\n\t\t\t\t\t\"BotDuino\",\n\t\t\t\t\t\"No project selected!\");\n\t\t\t\n\t\t}\n\t\treturn null;\n\t}", "private void LoadNative()\n throws IOException {\n\n // local variables\n String LibraryName = \"NI gpib\";\n\n // return if the native library has already been loaded\n if (m_gpib32 != null) {\n // log already loaded\n m_Logger.log(Level.FINE, \"JNA: The library {0} was already loaded.\\n\", LibraryName);\n\n // return\n return;\n }\n\n // log some parameters\n // (done only once for this class and not for every instance)\n m_Logger.log(Level.CONFIG, \"EOT mode = {0}\\n\\t\"\n + \"Receive Termination = 0x{1}\\n\\t\"\n + \"Receive Buffer size = {2}\", new Object[]{\n Integer.toString(EOT_MODE), Integer.toHexString(RECEIVE_TERMINATION),\n Integer.toString(RECEIVE_BUFFER_SIZE)});\n\n\n // enable Java Virtual Machine crash protection\n if ( !Native.isProtected() ) {\n Native.setProtected(true);\n\n // check if VM crash protection is supported on the Platform\n if ( !Native.isProtected() ) {\n m_Logger.config(\"JNA: Java VM Crash Protection is not supported on this platform.\\n\");\n } else {\n m_Logger.config(\"JNA: Enabled Java VM Crash Protection.\\n\");\n }\n }\n\n\n // get library name\n if (Platform.isWindows()) {\n LibraryName = \"gpib-32.dll\";\n\n // get the additional search path\n String Path = m_iC_Properties.getPath(\"GPIB_NI.AdditionalLibraryPathWin\", \"\");\n\n // add additional search path\n NativeLibrary.addSearchPath(LibraryName, Path);\n\n } else if (Platform.isLinux()) {\n\n LibraryName = \"gpibapi\"; // libgpibapi.so\n \n // get the additional search path \n String Path = m_iC_Properties.getPath(\"GPIB_NI.AdditionalLibraryPathLinux\", \"\");\n \n // add additional search path\n NativeLibrary.addSearchPath(LibraryName, Path);\n\n } else if (Platform.isMac()) {\n\n // to load a Framework from a dir other than /System/Library/Frameworks/\n // it is necessary to specify the fully quantified path as LibraryName\n // as NativeLibrary.addSearchPath is not effective for Frameworks it seems\n\n // get the additional path\n String Path = m_iC_Properties.getPath(\"GPIB_NI.AdditionalLibraryPathMac\", \"/Library/Frameworks/NI488.framework/\");\n\n // add an additional search path to the LibraryName\n LibraryName = Path + \"NI488\";\n }\n \n\n // log platform name\n // see https://jna.dev.java.net/nonav/javadoc/index.html\n m_Logger.log(Level.FINE, \"JNA: Platform name = {0}\\n\",\n Integer.toString(Platform.getOSType()));\n\n\n try {\n // load the native library\n m_gpib32 = (gpib32) Native.loadLibrary(LibraryName, gpib32.class);\n\n // log success\n m_Logger.log(Level.FINE, \"JNA: Loaded library {0}.\\n\", LibraryName);\n\n } catch (UnsatisfiedLinkError ex) {\n String str = \"Could not load the native library for the NI/Agilent GPIB-USB controller.\\n\";\n str += \"Please ensure that the drivers are installed properly.\\n\";\n str += \"On WinXP, gpib-32.dll is typically installed in C:\\\\Windows\\\\System32.\\n\";\n str += \"On MacOS, the NI488 Framework is typically installed in /Library/Frameworks/.\\n\"\n + \"On Mac, it is necessary to run iC in 32 bit mode (-d32).\\n\";\n str += \"See Java Native Access (JNA) on how native libraries are loaded.\\n\\n\";\n str += \"Java Native Access' response:\\n\";\n str += ex.getMessage();\n\n m_Logger.severe(str);\n throw new IOException(str);\n }\n\n \n /* Set up access to the user variables (ibsta, iberr, ibcnt, ibcntl).\n * These are declared and exported by the 32-bit DLL. Separate copies\n * exist for each process that accesses the DLL. They are shared by\n * multiple threads of a single process. The variable names in the DLL\n * (Windows) have different names than the variables in the Framework (Mac) */\n try {\n // load variables on a Mac\n if (Platform.isMac()) {\n // ibsta\n Pointer dummy = NativeLibrary.getInstance(LibraryName).getGlobalVariableAddress(\"ibsta\");\n m_ibsta.setPointer(dummy);\n\n //iberr\n dummy = NativeLibrary.getInstance(LibraryName).getGlobalVariableAddress(\"iberr\");\n m_iberr.setPointer(dummy);\n\n // ibcnt\n dummy = NativeLibrary.getInstance(LibraryName).getGlobalVariableAddress(\"ibcnt\");\n m_ibcnt.setPointer(dummy);\n\n // ibcntl\n dummy = NativeLibrary.getInstance(LibraryName).getGlobalVariableAddress(\"ibcntl\");\n m_ibcntl.setPointer(dummy);\n\n } else { // load variables on Windows\n // ibsta\n Pointer dummy = NativeLibrary.getInstance(LibraryName).getGlobalVariableAddress(\"user_ibsta\");\n m_ibsta.setPointer(dummy);\n\n //iberr\n dummy = NativeLibrary.getInstance(LibraryName).getGlobalVariableAddress(\"user_iberr\");\n m_iberr.setPointer(dummy);\n\n // ibcnt\n dummy = NativeLibrary.getInstance(LibraryName).getGlobalVariableAddress(\"user_ibcnt\");\n m_ibcnt.setPointer(dummy);\n\n // ibcntl\n dummy = NativeLibrary.getInstance(LibraryName).getGlobalVariableAddress(\"user_ibcntl\");\n m_ibcntl.setPointer(dummy);\n }\n \n } catch (UnsatisfiedLinkError ex) {\n String str = \"Could not access the global variables in the native library for the NI/Agilent GPIB-USB controller.\\n\";\n str += \"Java Native Access' response:\\n\";\n str += ex.getMessage();\n\n m_Logger.severe(str);\n throw new IOException(str);\n }\n\n // it does not help to set the EOT mode here\n //m_gpib32.ibconfig(0, IbcEOT, NLend);\n \n\n /* When converting Java unicode characters into an array of char, the\n * default platform encoding is used, unless the system property \n * jna.encoding is set to a valid encoding. This property may be set to \n * \"ISO-8859-1\", for example, to ensure all native strings use that encoding.\n * \n * The charqacter encoding used by JNA is set in IcontrolView.myInit\n */\n \n }", "@Converted(kind = Converted.Kind.MANUAL_COMPILATION,\n source = \"${LLVM_SRC}/llvm/tools/clang/lib/Frontend/FrontendActions.cpp\", line = 186,\n old_source = \"${LLVM_SRC}/llvm/tools/clang/lib/Frontend/FrontendActions.cpp\", old_line = 181,\n FQN=\"collectModuleHeaderIncludes\", NM=\"_ZL27collectModuleHeaderIncludesRKN5clang11LangOptionsERNS_11FileManagerERNS_9ModuleMapEPNS_6ModuleERN4llvm15SmallVectorImplIcEE\",\n cmd=\"jclank.sh -java-options=${SPUTNIK}/modules/org.clang.frontend/llvmToClangType ${LLVM_SRC}/llvm/tools/clang/lib/Frontend/FrontendActions.cpp -nm=_ZL27collectModuleHeaderIncludesRKN5clang11LangOptionsERNS_11FileManagerERNS_9ModuleMapEPNS_6ModuleERN4llvm15SmallVectorImplIcEE\")\n//</editor-fold>\npublic static std.error_code collectModuleHeaderIncludes(/*const*/ LangOptions /*&*/ LangOpts, FileManager /*&*/ FileMgr, \n ModuleMap /*&*/ ModMap, Module /*P*/ _Module, \n SmallString/*&*/ Includes) {\n // Don't collect any headers for unavailable modules.\n if (!_Module.isAvailable()) {\n return new std.error_code();\n }\n \n // Add includes for each of these headers.\n for (HeaderKind HK : new /*const*/ HeaderKind [/*2*/] {Module.HeaderKind.HK_Normal, Module.HeaderKind.HK_Private}) {\n for (Module.Header /*&*/ H : _Module.Headers[HK.getValue()]) {\n _Module.addTopHeader(H.Entry);\n // Use the path as specified in the module map file. We'll look for this\n // file relative to the module build directory (the directory containing\n // the module map file) so this will find the same file that we found\n // while parsing the module map.\n addHeaderInclude(new StringRef(H.NameAsWritten), Includes, LangOpts, _Module.IsExternC);\n }\n }\n {\n Module.Header UmbrellaHeader = null;\n try {\n // Note that Module->PrivateHeaders will not be a TopHeader.\n UmbrellaHeader = _Module.getUmbrellaHeader();\n if (UmbrellaHeader.$bool()) {\n _Module.addTopHeader(UmbrellaHeader.Entry);\n if ((_Module.Parent != null)) {\n // Include the umbrella header for submodules.\n addHeaderInclude(new StringRef(UmbrellaHeader.NameAsWritten), Includes, LangOpts, \n _Module.IsExternC);\n }\n } else {\n Module.DirectoryName UmbrellaDir = null;\n try {\n UmbrellaDir = _Module.getUmbrellaDir();\n if (UmbrellaDir.$bool()) {\n JavaCleaner $c$ = $createJavaCleaner();\n try {\n // Add all of the headers we find in this subdirectory.\n std.error_code EC/*J*/= new std.error_code();\n SmallString/*128*/ DirNative/*J*/= new SmallString/*128*/(128);\n path.__native(new Twine(UmbrellaDir.Entry.getName()), DirNative);\n \n FileSystem /*&*/ FS = $c$.clean($c$.track(FileMgr.getVirtualFileSystem()).$star());\n for (recursive_directory_iterator Dir/*J*/= new recursive_directory_iterator(FS, new Twine(DirNative), EC), End/*J*/= new recursive_directory_iterator();\n Dir.$noteq(End) && !EC.$bool(); Dir.increment(EC)) {\n // Check whether this entry has an extension typically associated with \n // headers.\n if (!new StringSwitchBool(path.extension(Dir.$arrow().getName())).\n Cases(/*KEEP_STR*/\".h\", /*KEEP_STR*/\".H\", /*KEEP_STR*/\".hh\", /*KEEP_STR*/\".hpp\", true).\n Default(false)) {\n continue;\n }\n \n /*const*/ FileEntry /*P*/ Header = FileMgr.getFile(Dir.$arrow().getName());\n // FIXME: This shouldn't happen unless there is a file system race. Is\n // that worth diagnosing?\n if (!(Header != null)) {\n continue;\n }\n \n // If this header is marked 'unavailable' in this module, don't include \n // it.\n if (ModMap.isHeaderUnavailableInModule(Header, _Module)) {\n continue;\n }\n \n // Compute the relative path from the directory to this file.\n SmallVector<StringRef> Components/*J*/= new SmallVector<StringRef>(16, new StringRef());\n path.reverse_iterator PathIt = path.rbegin(Dir.$arrow().getName());\n for (int I = 0; I != Dir.level() + 1; ++I , PathIt.$preInc()) {\n Components.push_back(PathIt.$star());\n }\n SmallString/*128*/ RelativeHeader/*J*/= new SmallString/*128*/(new StringRef(UmbrellaDir.NameAsWritten), 128);\n for (std.reverse_iterator<StringRef /*P*/ > It = Components.rbegin(), _End = Components.rend(); $noteq_reverse_iterator$C(It, _End);\n It.$preInc()) {\n path.append(RelativeHeader, new Twine(It.$star()));\n }\n \n // Include this header as part of the umbrella directory.\n _Module.addTopHeader(Header);\n addHeaderInclude(RelativeHeader.$StringRef(), Includes, LangOpts, _Module.IsExternC);\n }\n if (EC.$bool()) {\n return EC;\n }\n } finally {\n $c$.$destroy();\n }\n }\n } finally {\n if (UmbrellaDir != null) { UmbrellaDir.$destroy(); }\n }\n }\n } finally {\n if (UmbrellaHeader != null) { UmbrellaHeader.$destroy(); }\n }\n }\n \n // Recurse into submodules.\n for (std.vector.iterator<Module /*P*/ > Sub = _Module.submodule_begin(), \n SubEnd = _Module.submodule_end();\n $noteq___normal_iterator$C(Sub, SubEnd); Sub.$preInc()) {\n {\n std.error_code Err = collectModuleHeaderIncludes(LangOpts, FileMgr, ModMap, Sub.$star(), Includes);\n if (Err.$bool()) {\n return Err;\n }\n }\n }\n \n return new std.error_code();\n}", "public abstract ILanguageProtocol makeInterpreter(String source, String replQualifiedName, String... salixPath) throws IOException, URISyntaxException, Exception;", "public AddGenericRtlibObject() {\n super();\n\n delay = defaultdelay;\n\n constructStandardValues();\n constructPorts();\n\n enableAnimationFlag = SetupManager.getBoolean(\n \"Hades.LayerTable.RtlibAnimation\", false);\n }", "public void init() {\n\t\tif (!Rengine.versionCheck()) {\n\t\t System.err.println(\"** Version mismatch - Java files don't match library version.\");\n\t\t System.exit(1);\n\t\t}\n\t\t\n\t\tString[] args = {\"--vanilla\"};\n\t\tre = new Rengine(args, false, new TextConsole());\n\t\t\n\t\t// the engine creates R is a new thread, so we should wait until it's ready\n if (!re.waitForR()) {\n System.out.println(\"Cannot load R\");\n return;\n }\n\t\t\n\t}", "public interface ExecService {\n /**\n * Parse an XML file into a build model.\n *\n * @param xmlBuildFile\n * \t\tThe file containing the XML build description.\n * @return A Project model for the build.\n * @exception ExecutionException\n * \t\tif the build cannot be parsed\n */\n org.apache.ant.common.model.Project parseXMLBuildFile(java.io.File xmlBuildFile) throws org.apache.ant.common.util.ExecutionException;\n\n /**\n * Create a project reference.\n *\n * @param referenceName\n * \t\tthe name under which the project will be\n * \t\treferenced.\n * @param model\n * \t\tthe project model.\n * @exception ExecutionException\n * \t\tif the project cannot be referenced.\n */\n void createProjectReference(java.lang.String referenceName, org.apache.ant.common.model.Project model) throws org.apache.ant.common.util.ExecutionException;\n\n /**\n * Setup a sub-build.\n *\n * @param model\n * \t\tthe project model to be used for the build\n * @param properties\n * \t\tthe initiali properties to be used in the build\n * @return a key to the build allowing it to be executed and managed\n * @exception ExecutionException\n * \t\tif the subbuild cannot be setup\n */\n java.lang.Object setupBuild(org.apache.ant.common.model.Project model, java.util.Map properties) throws org.apache.ant.common.util.ExecutionException;\n\n /**\n * Setup a sub-build using the current frame's project model\n *\n * @param properties\n * \t\tthe initiali properties to be used in the build\n * @return a key to the build allowing it to be executed and managed\n * @exception ExecutionException\n * \t\tif the subbuild cannot be setup\n */\n java.lang.Object setupBuild(java.util.Map properties) throws org.apache.ant.common.util.ExecutionException;\n\n /**\n * Run a build which have been previously setup\n *\n * @param buildKey\n * \t\tthe buildKey returned previously when the build was\n * \t\tsetup\n * @param targets\n * \t\tA list of targets to be run\n * @exception ExecutionException\n * \t\tif the build cannot be run\n */\n void runBuild(java.lang.Object buildKey, java.util.List targets) throws org.apache.ant.common.util.ExecutionException;\n\n /**\n * execute a task. The task should have already been initialised by the\n * core\n *\n * @param task\n * \t\tthe task to be executed.\n * @exception ExecutionException\n * \t\tif there is a problem in execution.\n */\n void executeTask(org.apache.ant.common.antlib.Task task) throws org.apache.ant.common.util.ExecutionException;\n\n /**\n * get the name of the project associated with this execution.\n *\n * @return the project's name\n */\n java.lang.String getProjectName();\n\n /**\n * Get the basedir for the current execution\n *\n * @return the base directory for this execution of Ant\n */\n java.io.File getBaseDir();\n\n /**\n * Handle subbuild output.\n *\n * @param subbuildKey\n * \t\tthe core's key for managing the subbuild.\n * @param line\n * \t\tthe content produce by the current thread.\n * @param isErr\n * \t\ttrue if this content is from the thread's error stream.\n * @exception ExecutionException\n * \t\tif the subbuild cannot be found.\n */\n void handleBuildOutput(java.lang.Object subbuildKey, java.lang.String line, boolean isErr) throws org.apache.ant.common.util.ExecutionException;\n}", "public interface WebKitHtmlToImageLibrary extends Library {\n\tpublic static final String JNA_LIBRARY_NAME = \"wkhtmltox\";\n\tpublic static final NativeLibrary JNA_NATIVE_LIB = NativeLibrary.getInstance(WebKitHtmlToImageLibrary.JNA_LIBRARY_NAME);\n\tpublic static final WebKitHtmlToImageLibrary INSTANCE = Native.load(WebKitHtmlToImageLibrary.JNA_LIBRARY_NAME, WebKitHtmlToImageLibrary.class);\n\n\t/** <i>native declaration : src/main/c/wkhtmltox/image.h:4</i> */\n\tpublic interface wkhtmltoimage_str_callback extends Callback {\n\t\tvoid apply(Pointer converter, String str);\n\t};\n\t/** <i>native declaration : src/main/c/wkhtmltox/image.h:5</i> */\n\tpublic interface wkhtmltoimage_int_callback extends Callback {\n\t\tvoid apply(Pointer converter, int val);\n\t};\n\t/** <i>native declaration : src/main/c/wkhtmltox/image.h:6</i> */\n\tpublic interface wkhtmltoimage_void_callback extends Callback {\n\t\tvoid apply(Pointer converter);\n\t};\n\t/**\n\t * Original signature : <code>int wkhtmltoimage_init(int)</code><br>\n\t * <i>native declaration : src/main/c/wkhtmltox/image.h:8</i>\n\t */\n\tint wkhtmltoimage_init(int use_graphics);\n\t/**\n\t * Original signature : <code>int wkhtmltoimage_deinit()</code><br>\n\t * <i>native declaration : src/main/c/wkhtmltox/image.h:10</i>\n\t */\n\tint wkhtmltoimage_deinit();\n\t/**\n\t * Original signature : <code>int wkhtmltoimage_extended_qt()</code><br>\n\t * <i>native declaration : src/main/c/wkhtmltox/image.h:12</i>\n\t */\n\tint wkhtmltoimage_extended_qt();\n\t/**\n\t * Original signature : <code>char* __stdcallwkhtmltoimage_version()</code><br>\n\t * <i>native declaration : src/main/c/wkhtmltox/image.h:14</i>\n\t */\n\tPointer __stdcallwkhtmltoimage_version();\n\t/**\n\t * Original signature : <code>wkhtmltoimage_global_settings* wkhtmltoimage_create_global_settings()</code><br>\n\t * <i>native declaration : src/main/c/wkhtmltox/image.h:16</i>\n\t */\n\tPointerByReference wkhtmltoimage_create_global_settings();\n\t/**\n\t * Original signature : <code>int wkhtmltoimage_set_global_setting(wkhtmltoimage_global_settings*, const char*, const char*)</code><br>\n\t * <i>native declaration : src/main/c/wkhtmltox/image.h:18</i><br>\n\t * @deprecated use the safer methods {@link #wkhtmltoimage_set_global_setting(PointerByReference, String, String)} and {@link #wkhtmltoimage_set_global_setting(PointerByReference, Pointer, Pointer)} instead\n\t */\n\t@Deprecated \n\tint wkhtmltoimage_set_global_setting(Pointer settings, Pointer name, Pointer value);\n\t/**\n\t * Original signature : <code>int wkhtmltoimage_set_global_setting(wkhtmltoimage_global_settings*, const char*, const char*)</code><br>\n\t * <i>native declaration : src/main/c/wkhtmltox/image.h:18</i>\n\t */\n\tint wkhtmltoimage_set_global_setting(PointerByReference settings, String name, String value);\n\t/**\n\t * Original signature : <code>int wkhtmltoimage_set_global_setting(wkhtmltoimage_global_settings*, const char*, const char*)</code><br>\n\t * <i>native declaration : src/main/c/wkhtmltox/image.h:18</i>\n\t */\n\tint wkhtmltoimage_set_global_setting(PointerByReference settings, Pointer name, Pointer value);\n\t/**\n\t * Original signature : <code>int wkhtmltoimage_get_global_setting(wkhtmltoimage_global_settings*, const char*, char*, int)</code><br>\n\t * <i>native declaration : src/main/c/wkhtmltox/image.h:20</i><br>\n\t * @deprecated use the safer methods {@link #wkhtmltoimage_get_global_setting(PointerByReference, String, ByteBuffer, int)} and {@link #wkhtmltoimage_get_global_setting(PointerByReference, Pointer, Pointer, int)} instead\n\t */\n\t@Deprecated \n\tint wkhtmltoimage_get_global_setting(Pointer settings, Pointer name, Pointer value, int vs);\n\t/**\n\t * Original signature : <code>int wkhtmltoimage_get_global_setting(wkhtmltoimage_global_settings*, const char*, char*, int)</code><br>\n\t * <i>native declaration : src/main/c/wkhtmltox/image.h:20</i>\n\t */\n\tint wkhtmltoimage_get_global_setting(PointerByReference settings, String name, ByteBuffer value, int vs);\n\t/**\n\t * Original signature : <code>int wkhtmltoimage_get_global_setting(wkhtmltoimage_global_settings*, const char*, char*, int)</code><br>\n\t * <i>native declaration : src/main/c/wkhtmltox/image.h:20</i>\n\t */\n\tint wkhtmltoimage_get_global_setting(PointerByReference settings, Pointer name, Pointer value, int vs);\n\t/**\n\t * Original signature : <code>wkhtmltoimage_converter* wkhtmltoimage_create_converter(wkhtmltoimage_global_settings*, const char*)</code><br>\n\t * <i>native declaration : src/main/c/wkhtmltox/image.h:22</i><br>\n\t * @deprecated use the safer methods {@link #wkhtmltoimage_create_converter(PointerByReference, String)} and {@link #wkhtmltoimage_create_converter(PointerByReference, Pointer)} instead\n\t */\n\t@Deprecated \n\tPointerByReference wkhtmltoimage_create_converter(Pointer settings, Pointer data);\n\t/**\n\t * Original signature : <code>wkhtmltoimage_converter* wkhtmltoimage_create_converter(wkhtmltoimage_global_settings*, const char*)</code><br>\n\t * <i>native declaration : src/main/c/wkhtmltox/image.h:22</i>\n\t */\n\tPointerByReference wkhtmltoimage_create_converter(PointerByReference settings, String data);\n\t/**\n\t * Original signature : <code>wkhtmltoimage_converter* wkhtmltoimage_create_converter(wkhtmltoimage_global_settings*, const char*)</code><br>\n\t * <i>native declaration : src/main/c/wkhtmltox/image.h:22</i>\n\t */\n\tPointerByReference wkhtmltoimage_create_converter(PointerByReference settings, Pointer data);\n\t/**\n\t * Original signature : <code>void wkhtmltoimage_destroy_converter(wkhtmltoimage_converter*)</code><br>\n\t * <i>native declaration : src/main/c/wkhtmltox/image.h:24</i><br>\n\t * @deprecated use the safer method {@link #wkhtmltoimage_destroy_converter(PointerByReference)} instead\n\t */\n\t@Deprecated \n\tvoid wkhtmltoimage_destroy_converter(Pointer converter);\n\t/**\n\t * Original signature : <code>void wkhtmltoimage_destroy_converter(wkhtmltoimage_converter*)</code><br>\n\t * <i>native declaration : src/main/c/wkhtmltox/image.h:24</i>\n\t */\n\tvoid wkhtmltoimage_destroy_converter(PointerByReference converter);\n\t/**\n\t * Original signature : <code>void wkhtmltoimage_set_warning_callback(wkhtmltoimage_converter*, wkhtmltoimage_str_callback)</code><br>\n\t * <i>native declaration : src/main/c/wkhtmltox/image.h:26</i><br>\n\t * @deprecated use the safer method {@link #wkhtmltoimage_set_warning_callback(PointerByReference, wkhtmltoimage_str_callback)} instead\n\t */\n\t@Deprecated \n\tvoid wkhtmltoimage_set_warning_callback(Pointer converter, wkhtmltoimage_str_callback cb);\n\t/**\n\t * Original signature : <code>void wkhtmltoimage_set_warning_callback(wkhtmltoimage_converter*, wkhtmltoimage_str_callback)</code><br>\n\t * <i>native declaration : src/main/c/wkhtmltox/image.h:26</i>\n\t */\n\tvoid wkhtmltoimage_set_warning_callback(PointerByReference converter, wkhtmltoimage_str_callback cb);\n\t/**\n\t * Original signature : <code>void wkhtmltoimage_set_error_callback(wkhtmltoimage_converter*, wkhtmltoimage_str_callback)</code><br>\n\t * <i>native declaration : src/main/c/wkhtmltox/image.h:28</i><br>\n\t * @deprecated use the safer method {@link #wkhtmltoimage_set_error_callback(PointerByReference, wkhtmltoimage_str_callback)} instead\n\t */\n\t@Deprecated \n\tvoid wkhtmltoimage_set_error_callback(Pointer converter, wkhtmltoimage_str_callback cb);\n\t/**\n\t * Original signature : <code>void wkhtmltoimage_set_error_callback(wkhtmltoimage_converter*, wkhtmltoimage_str_callback)</code><br>\n\t * <i>native declaration : src/main/c/wkhtmltox/image.h:28</i>\n\t */\n\tvoid wkhtmltoimage_set_error_callback(PointerByReference converter, wkhtmltoimage_str_callback cb);\n\t/**\n\t * Original signature : <code>void wkhtmltoimage_set_phase_changed_callback(wkhtmltoimage_converter*, wkhtmltoimage_void_callback)</code><br>\n\t * <i>native declaration : src/main/c/wkhtmltox/image.h:30</i><br>\n\t * @deprecated use the safer method {@link #wkhtmltoimage_set_phase_changed_callback(PointerByReference, wkhtmltoimage_void_callback)} instead\n\t */\n\t@Deprecated \n\tvoid wkhtmltoimage_set_phase_changed_callback(Pointer converter, wkhtmltoimage_void_callback cb);\n\t/**\n\t * Original signature : <code>void wkhtmltoimage_set_phase_changed_callback(wkhtmltoimage_converter*, wkhtmltoimage_void_callback)</code><br>\n\t * <i>native declaration : src/main/c/wkhtmltox/image.h:30</i>\n\t */\n\tvoid wkhtmltoimage_set_phase_changed_callback(PointerByReference converter, wkhtmltoimage_void_callback cb);\n\t/**\n\t * Original signature : <code>void wkhtmltoimage_set_progress_changed_callback(wkhtmltoimage_converter*, wkhtmltoimage_int_callback)</code><br>\n\t * <i>native declaration : src/main/c/wkhtmltox/image.h:32</i><br>\n\t * @deprecated use the safer method {@link #wkhtmltoimage_set_progress_changed_callback(PointerByReference, wkhtmltoimage_int_callback)} instead\n\t */\n\t@Deprecated \n\tvoid wkhtmltoimage_set_progress_changed_callback(Pointer converter, wkhtmltoimage_int_callback cb);\n\t/**\n\t * Original signature : <code>void wkhtmltoimage_set_progress_changed_callback(wkhtmltoimage_converter*, wkhtmltoimage_int_callback)</code><br>\n\t * <i>native declaration : src/main/c/wkhtmltox/image.h:32</i>\n\t */\n\tvoid wkhtmltoimage_set_progress_changed_callback(PointerByReference converter, wkhtmltoimage_int_callback cb);\n\t/**\n\t * Original signature : <code>void wkhtmltoimage_set_finished_callback(wkhtmltoimage_converter*, wkhtmltoimage_int_callback)</code><br>\n\t * <i>native declaration : src/main/c/wkhtmltox/image.h:34</i><br>\n\t * @deprecated use the safer method {@link #wkhtmltoimage_set_finished_callback(PointerByReference, wkhtmltoimage_int_callback)} instead\n\t */\n\t@Deprecated \n\tvoid wkhtmltoimage_set_finished_callback(Pointer converter, wkhtmltoimage_int_callback cb);\n\t/**\n\t * Original signature : <code>void wkhtmltoimage_set_finished_callback(wkhtmltoimage_converter*, wkhtmltoimage_int_callback)</code><br>\n\t * <i>native declaration : src/main/c/wkhtmltox/image.h:34</i>\n\t */\n\tvoid wkhtmltoimage_set_finished_callback(PointerByReference converter, wkhtmltoimage_int_callback cb);\n\t/**\n\t * Original signature : <code>int wkhtmltoimage_convert(wkhtmltoimage_converter*)</code><br>\n\t * <i>native declaration : src/main/c/wkhtmltox/image.h:36</i><br>\n\t * @deprecated use the safer method {@link #wkhtmltoimage_convert(PointerByReference)} instead\n\t */\n\t@Deprecated \n\tint wkhtmltoimage_convert(Pointer converter);\n\t/**\n\t * Original signature : <code>int wkhtmltoimage_convert(wkhtmltoimage_converter*)</code><br>\n\t * <i>native declaration : src/main/c/wkhtmltox/image.h:36</i>\n\t */\n\tint wkhtmltoimage_convert(PointerByReference converter);\n\t/**\n\t * CAPI(void) wkhtmltoimage_cancel(wkhtmltoimage_converter * converter);<br>\n\t * Original signature : <code>int wkhtmltoimage_current_phase(wkhtmltoimage_converter*)</code><br>\n\t * <i>native declaration : src/main/c/wkhtmltox/image.h:41</i><br>\n\t * @deprecated use the safer method {@link #wkhtmltoimage_current_phase(PointerByReference)} instead\n\t */\n\t@Deprecated \n\tint wkhtmltoimage_current_phase(Pointer converter);\n\t/**\n\t * CAPI(void) wkhtmltoimage_cancel(wkhtmltoimage_converter * converter);<br>\n\t * Original signature : <code>int wkhtmltoimage_current_phase(wkhtmltoimage_converter*)</code><br>\n\t * <i>native declaration : src/main/c/wkhtmltox/image.h:41</i>\n\t */\n\tint wkhtmltoimage_current_phase(PointerByReference converter);\n\t/**\n\t * Original signature : <code>int wkhtmltoimage_phase_count(wkhtmltoimage_converter*)</code><br>\n\t * <i>native declaration : src/main/c/wkhtmltox/image.h:43</i><br>\n\t * @deprecated use the safer method {@link #wkhtmltoimage_phase_count(PointerByReference)} instead\n\t */\n\t@Deprecated \n\tint wkhtmltoimage_phase_count(Pointer converter);\n\t/**\n\t * Original signature : <code>int wkhtmltoimage_phase_count(wkhtmltoimage_converter*)</code><br>\n\t * <i>native declaration : src/main/c/wkhtmltox/image.h:43</i>\n\t */\n\tint wkhtmltoimage_phase_count(PointerByReference converter);\n\t/**\n\t * Original signature : <code>char* wkhtmltoimage_phase_description(wkhtmltoimage_converter*, int)</code><br>\n\t * <i>native declaration : src/main/c/wkhtmltox/image.h:45</i><br>\n\t * @deprecated use the safer method {@link #wkhtmltoimage_phase_description(PointerByReference, int)} instead\n\t */\n\t@Deprecated \n\tPointer wkhtmltoimage_phase_description(Pointer converter, int phase);\n\t/**\n\t * Original signature : <code>char* wkhtmltoimage_phase_description(wkhtmltoimage_converter*, int)</code><br>\n\t * <i>native declaration : src/main/c/wkhtmltox/image.h:45</i>\n\t */\n\tString wkhtmltoimage_phase_description(PointerByReference converter, int phase);\n\t/**\n\t * Original signature : <code>char* wkhtmltoimage_progress_string(wkhtmltoimage_converter*)</code><br>\n\t * <i>native declaration : src/main/c/wkhtmltox/image.h:47</i><br>\n\t * @deprecated use the safer method {@link #wkhtmltoimage_progress_string(PointerByReference)} instead\n\t */\n\t@Deprecated \n\tPointer wkhtmltoimage_progress_string(Pointer converter);\n\t/**\n\t * Original signature : <code>char* wkhtmltoimage_progress_string(wkhtmltoimage_converter*)</code><br>\n\t * <i>native declaration : src/main/c/wkhtmltox/image.h:47</i>\n\t */\n\tPointer wkhtmltoimage_progress_string(PointerByReference converter);\n\t/**\n\t * Original signature : <code>int wkhtmltoimage_http_error_code(wkhtmltoimage_converter*)</code><br>\n\t * <i>native declaration : src/main/c/wkhtmltox/image.h:49</i><br>\n\t * @deprecated use the safer method {@link #wkhtmltoimage_http_error_code(PointerByReference)} instead\n\t */\n\t@Deprecated \n\tint wkhtmltoimage_http_error_code(Pointer converter);\n\t/**\n\t * Original signature : <code>int wkhtmltoimage_http_error_code(wkhtmltoimage_converter*)</code><br>\n\t * <i>native declaration : src/main/c/wkhtmltox/image.h:49</i>\n\t */\n\tint wkhtmltoimage_http_error_code(PointerByReference converter);\n\t/**\n\t * Original signature : <code>long wkhtmltoimage_get_output(wkhtmltoimage_converter*, const unsigned char**)</code><br>\n\t * <i>native declaration : src/main/c/wkhtmltox/image.h:51</i><br>\n\t * @deprecated use the safer method {@link #wkhtmltoimage_get_output(PointerByReference, PointerByReference)} instead\n\t */\n\t@Deprecated \n\tNativeLong wkhtmltoimage_get_output(Pointer converter, PointerByReference charPtrPtr1);\n\t/**\n\t * Original signature : <code>long wkhtmltoimage_get_output(wkhtmltoimage_converter*, const unsigned char**)</code><br>\n\t * <i>native declaration : src/main/c/wkhtmltox/image.h:51</i>\n\t */\n\tNativeLong wkhtmltoimage_get_output(PointerByReference converter, PointerByReference charPtrPtr1);\n\tpublic static class wkhtmltoimage_converter extends PointerType {\n\t\tpublic wkhtmltoimage_converter(Pointer address) {\n\t\t\tsuper(address);\n\t\t}\n\t\tpublic wkhtmltoimage_converter() {\n\t\t\tsuper();\n\t\t}\n\t};\n\tpublic static class wkhtmltoimage_global_settings extends PointerType {\n\t\tpublic wkhtmltoimage_global_settings(Pointer address) {\n\t\t\tsuper(address);\n\t\t}\n\t\tpublic wkhtmltoimage_global_settings() {\n\t\t\tsuper();\n\t\t}\n\t};\n}", "@Test\n\tpublic void addEngine_Test() throws Exception {\n\t\t\n\t\tif (Configuration.featureamp &&\n\t\t\t\tConfiguration.playengine &&\n\t\t\t\tConfiguration.choosefile &&\n\t\t\t\tConfiguration.mp3 &&\n\t\t\t\tConfiguration.gui &&\n\t\t\t\tConfiguration.skins &&\n\t\t\t\tConfiguration.light &&\n\t\t\t\tConfiguration.filesupport &&\n\t\t\t\tConfiguration.showtime &&\n\t\t\t\tConfiguration.tracktime \n\t\t\t\t) {\n\t\t\tstart();\n\t\t\t\n\t\t\tgui.addEngine();\t\n\t\t}\n\t}", "private void startR() {\n\t\tif (!Rengine.versionCheck()) {\n\t\t\tSystem.err.println(\"** Version mismatch - Java files don't match library=version.\");\n\t\t\tSystem.exit(1);\n\t\t}\n\t\tSystem.out.println(\"Creating Rengine\");\n\t\tString[] Rargs = {\"--vanilla\"};\n\t\tre= new Rengine(Rargs, false, null);//new TextConsole());\n\t\tSystem.out.println(\"Rengine created, waiting for R\");\n\t\t// the engine creates R is a new thread, so we should wait until it's ready\n\t\tif (!re.waitForR()) {\n\t\t\tSystem.out.println(\"Cannot load R\");\n\t\t\treturn;\n\t\t}\n\t}", "private static native Object setupMainThread0(Object thread);", "public static void load()\n {\n\n try {\n System.loadLibrary(\"gnustl_shared\");\n System.loadLibrary(\"log\");\n System.loadLibrary(composeLibName(\"PocoFoundation\"));\n System.loadLibrary(composeLibName(\"PocoXML\"));\n System.loadLibrary(composeLibName(\"PocoJSON\"));\n System.loadLibrary(composeLibName(\"PocoUtil\"));\n System.loadLibrary(composeLibName(\"PocoData\"));\n System.loadLibrary(composeLibName(\"PocoDataSQLite\"));\n System.loadLibrary(\"HRFusion\");\n }\n catch(Error e)\n {\n Log.e(LOG_TAG, e.getMessage());\n throw e;\n }\n }", "public void makeInstallAction(ActionRequest actionRequest,\n\t\t\t \t\t ActionResponse actionResponse) throws PortletException, IOException\n\t{\n\t\tString res = \"\";\n\t\t\n\t\t/**\n\t\t * A library file\n\t\t */\n\t\tString libName = ParamUtil.getString(actionRequest, \"reqLibName\");\n\t\tif (libName == null) {\n\t\t\tres = \"lib name not available\";\n\t\t}else{\n\t\t\treturn;\n\t\t}\t\n\t\t\n\t\tUploadPortletRequest uploadRequest = PortalUtil.getUploadPortletRequest(actionRequest);\n\t\t/**\n\t\t * A library file\n\t\t */\n\t\tFile uploadedTarFile = uploadRequest.getFile(\"testTarFileName\");\n\t\tif (uploadedTarFile == null) {\n\t\t\tres = \"File Unavailable\";\n\t\t}else{\n\t\t\tSystem.out.println(\"src file size bytes:\" + uploadedTarFile.length());\n\t\t\tSystem.out.println(\"src file name:\" + uploadedTarFile.getName());\n\t\t\tSystem.out.println(\"lib name:\" + uploadedTarFile.getName());\n\t\t\t\n\t\t\tString tarFileName = uploadedTarFile.getName();\n\t\t\t//String solverTestDirPath = Constants.SCIENCE_APP_PARENT_LOCATION + solverTestDirName;\n\t\t\t// create solver directory\n\t\t\tString libDirName = Constants.INSTALL_LIB_PATH+libName+\"/\";\n\t\t\tString result = makeDir(libDirName);\n\t\t\tif(!result.equalsIgnoreCase(\"\")){\n\t\t\t\tres += \", Library Install Directory, named '\"+Constants.INSTALL_LIB_PATH+\"', cannot be created, due to '\"+result+\"'\";\n\t\t\t}\n\t\t\t// System.out.println(uploadedFileLocation);\n\t\t\t\n\t\t\t// Specify a directory to store an uploaded library file.\n\t\t\tString uploadedTarFileLocation = libDirName+tarFileName;\nSystem.out.println(uploadedTarFileLocation);\n\n\t\t\t//Create file input stream\n\t\t\tFileInputStream uploadedInputStream = new FileInputStream(uploadedTarFile);\n\t\t\t//Save this file\n\t\t\tFile newFile = saveToFile(uploadedInputStream, uploadedTarFileLocation);\n\t\t\tif(!newFile.isFile() || newFile.length() == 0){\n\t\t\t\tres += \", \" + Constants.FILE_OPEN_FAILURE;\n\t\t\t}\n\t\t\t//change the permission for execute\n\t\t\tchangeExecPermission(\"x\", uploadedTarFileLocation);\n\n\t\t\t// Let's remember any output while being installed.\n\t\t\tString normalOutput = \"\";\n\t\t\tString errorOutput = \"\";\n\t\t\t// Build a command for installing a given library.\n\t\t\t// String command = \"sudo yum install \" + fileDetail.getFileName();\n\t\t\t// String command = \"cat \" + uploadedFileLocation;\n\t\t\tString command = \"untar \" + libDirName + uploadedTarFile + \";\"+ \"cd \" + uploadedTarFileLocation+\";./make install\";\n\t\t\tRuntime rt = Runtime.getRuntime();\n\t\t\t// Declare a process.\n\t\t\tProcess p0 = null;\n\t\t\ttry {\n\t\t\t\t// Let's execute the command.\n\t\t\t\t// p0 = rt.exec(commandAndArgs);\n\t\t\t\t// RPM installation\n\t\t\t\tSystem.out.println(command);\n\t\t\t\tp0 = rt.exec(command);\n\t\t\t\t// Get any input stream.\n\t\t\t\tInputStream instd = p0.getInputStream();\n\t\t\t\t// Let's get it through buffered reader.\n\t\t\t\tBufferedReader buf_reader = new BufferedReader(\n\t\t\t\t\t\tnew InputStreamReader(instd));\n\t\t\t\tString temp = \"\";\n\t\t\t\t// System.out.println(\"new line executed command: \" + command);\n\t\t\t\twhile ((temp = buf_reader.readLine()) != null) {\n\t\t\t\t\t// System.out.println(\"temp: \" + temp);\n\t\t\t\t\tnormalOutput += temp + \"\\n\";\n\t\t\t\t}\n\t\t\t\t// Let's close buffered reader\n\t\t\t\tbuf_reader.close();\n\t\n\t\t\t\t// Get any error stream.\n\t\t\t\tInputStream errstd = p0.getErrorStream();\n\t\t\t\t// Let's get it through buffered reader.\n\t\t\t\tBufferedReader buf_err_reader = new BufferedReader(\n\t\t\t\t\t\tnew InputStreamReader(errstd));\n\t\t\t\t// Initialize a temporary variable.\n\t\t\t\ttemp = \"\";\n\t\t\t\t// Until there's no more error message,\n\t\t\t\twhile ((temp = buf_err_reader.readLine()) != null) {\n\t\t\t\t\t// Append a current error message to the error message\n\t\t\t\t\t// container.\n\t\t\t\t\terrorOutput += temp + \"\\n\";\n\t\t\t\t}\n\t\t\t\t// Report an error.\n\t\t\t\tSystem.err.println(errorOutput);\n\t\t\t\t// Close buffered error reader.\n\t\t\t\tbuf_err_reader.close();\n\t\t\t\t// Let's wait p0 for completion.\n\t\t\t\tp0.waitFor();\n\t\t\t} catch (IOException e){\n\t\t\t\te.printStackTrace();\n\t\t\t} catch(InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\n\t\t\tres = \"\";\n\t\t\t// If there's no error, then send the success message.\n\t\t\tif (errorOutput.equalsIgnoreCase(\"\")) {\n\t\t\t\tres += \"Successful Installation of '\" + tarFileName + \"' !\" + normalOutput;\n\t\t\t}\n\t\t\t// If there's any error,\n\t\t\telse {\n\t\t\t\tres += \", Installation Error Occurred: \" + errorOutput;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// DB access information: science app path, \n\t\tactionRequest.setAttribute(\"makeInstallRes\", res);\n\t\tString jspFileName = \"/html/scienceappengine/make_install_res.jsp\";\n\t\tactionResponse.setRenderParameter(\"jspPage\", jspFileName);\n\t}", "private static void init() {\n __lib = new JnaGmpLib();\n }", "public void testExtendsLibSet() {\n final LinkerDef baseLinker = new LinkerDef();\n final LibrarySet libset = new LibrarySet();\n final LinkerDef extendedLinker = (LinkerDef) createExtendedProcessorDef(baseLinker);\n libset.setProject(baseLinker.getProject());\n final CUtil.StringArrayBuilder libs = new CUtil.StringArrayBuilder(\"advapi32\");\n libset.setLibs(libs);\n baseLinker.addLibset(libset);\n final CommandLineLinkerConfiguration config = (CommandLineLinkerConfiguration) getConfiguration(extendedLinker);\n final String[] libnames = config.getLibraryNames();\n assertEquals(1, libnames.length);\n assertEquals(\"advapi32\", libnames[0]);\n }", "@Test\r\n public void testCodeExamples() throws SecurityException, NoSuchMethodException, ScriptException\r\n {\n \t// http://java.sun.com/developer/technicalArticles/J2SE/Desktop/scripting/\r\n \t\r\n \t// Code Example 1: Create a ScriptEngine object using the engine name.\r\n \t//\r\n \tScriptEngineManager mgr = new ScriptEngineManager();\r\n \tScriptEngine jsEngine = mgr.getEngineByName(\"jav8\");\r\n \t\r\n \tjsEngine.put(\"print\", this.getClass().getMethod(\"print\", String.class));\r\n \tjsEngine.put(\"println\", this.getClass().getMethod(\"println\", String.class));\r\n \r\n \tjsEngine.eval(\"print('Hello, world!')\");\r\n \t\r\n \t// Code Example 2: You can retrieve a list of all engines installed to your Java platform.\r\n \t//\r\n \tList<ScriptEngineFactory> factories = mgr.getEngineFactories();\r\n \t\r\n \tassertFalse(factories.isEmpty());\r\n \t\r\n \t// Code Example 3: A ScriptEngineFactory object provides detailed information about the engine it provides.\r\n \t//\r\n \tfor (ScriptEngineFactory factory: factories) {\r\n \t System.out.println(\"ScriptEngineFactory Info\");\r\n \t \r\n \t String engName = factory.getEngineName();\r\n \t String engVersion = factory.getEngineVersion();\r\n \t String langName = factory.getLanguageName();\r\n \t String langVersion = factory.getLanguageVersion();\r\n \t System.out.printf(\"\\tScript Engine: %s (%s)\\n\", engName, engVersion);\r\n \t \r\n \t List<String> engNames = factory.getNames();\r\n \t for(String name: engNames) {\r\n \t System.out.printf(\"\\tEngine Alias: %s\\n\", name);\r\n \t }\r\n \t System.out.printf(\"\\tLanguage: %s (%s)\\n\", langName, langVersion);\r\n \t}\r\n \t \t\r\n \t// Code Example 6: The eval method can read script files.\r\n \t//\r\n \tInputStream is = this.getClass().getResourceAsStream(\"/scripts/F1.js\");\r\n \t/*\r\n \ttry {\r\n \t Reader reader = new InputStreamReader(is);\r\n \t engine.eval(reader);\r\n \t} catch (ScriptException ex) {\r\n \t ex.printStackTrace();\r\n \t}\r\n \t*/\r\n \t// Code Example 7: You can use the Invocable interface to call specific methods in a script.\r\n \t//\r\n \tjsEngine.eval(\"function sayHello() {\" +\r\n \t \" println('Hello, world!');\" +\r\n \t \"}\");\r\n \tInvocable invocableEngine = (Invocable) jsEngine;\r\n \tinvocableEngine.invokeFunction(\"sayHello\");\r\n \t\r\n \t// Code Example 8: Java programming language code adds names to a list.\r\n \t//\r\n \tList<String> namesList = new ArrayList<String>();\r\n \t\r\n \tnamesList.add(\"Jill\");\r\n \tnamesList.add(\"Bob\");\r\n \tnamesList.add(\"Laureen\");\r\n \tnamesList.add(\"Ed\");\r\n \t\r\n \t// Code Example 9: Script code can both access and modify native Java objects.\r\n \t//\r\n \tjsEngine.put(\"namesListKey\", namesList);\r\n \t \r\n \tSystem.out.println(\"Executing in script environment...\");\r\n \t\r\n \tjsEngine.eval(\"var x;\" +\r\n \t \"var names = namesListKey.toArray();\" +\r\n \t \"for(x in names) {\" +\r\n \t //\" println(names[x]);\" +\r\n \t \"}\" +\r\n \t \"namesListKey.add('Dana');\");\r\n \t\r\n \tSystem.out.println(\"Executing in Java environment...\");\r\n \t\r\n \tfor (String name: namesList) {\r\n \t System.out.println(name);\r\n \t} \r\n \t\r\n \t// Code Example 10: Applications can pass values to script using the Invocable interface.\r\n \t// \t \t\r\n \t jsEngine.eval(\"function printNames1(namesList) {\" +\r\n \t \" var x;\" +\r\n \t \" var names = namesList.toArray();\" +\r\n \t \" for(x in names) {\" +\r\n \t \" println(names[x]);\" +\r\n \t \" }\" +\r\n \t \"}\" +\r\n \r\n \t \"function addName(namesList, name) {\" +\r\n \t \" namesList.add(name);\" +\r\n \t \"}\");\r\n \t invocableEngine.invokeFunction(\"printNames1\", namesList);\r\n \t invocableEngine.invokeFunction(\"addName\", namesList, \"Dana\");\r\n }", "private static void startWork()\n {{\n String ftnTxt= null;\n FileToFtnParser parser= new FileToFtnParser( arg_ir_filename );\n String hashes39= \"#######################################\";\n\n while( true ) {\n\t ftnTxt= parser.parseFtn();\n\t if ( ftnTxt == null ) { break; }\n\t if ( arg_verbosity > 1 ) {\n\t System.out.println ( hashes39+ hashes39 );\n\t System.out.println ( \"found function: <<EOF \" );\n\t System.out.println ( ftnTxt );\n\t System.out.println ( \"EOF\" );\n\t }\n\n\t FtnParts ftnParts= new FtnParts( ftnTxt );\n\n\t if ( arg_verbosity > 0 ) {\n System.out.println( \"---\" );\n\t System.out.println( \"function: \" );\n\t System.out.println( ftnParts.toString() );\n\t }\n\n\t TestGenerator generator= new TestGenerator( ftnParts, arg_numCalls );\n\t String outFilename= arg_outDirname+ File.separator+ \n\t ftnParts.getNameWithoutSigil()+ \".ll\";\n\t generator.generate( outFilename );\n }\n\n }}", "public static void addLibrary(ILibrary library) {\n \t\tLIBRARIES.add(library);\n \t}", "public PythonInterpreter(PyObject dict) {\n }", "private static void generateHECode(ParsingResult parsingResult, String targetDir, String serviceName, String tomcatDir) throws IOException, URISyntaxException {\r\n\t\t \t\r\n\t\tgenerateHECodeFromTemplate(parsingResult, targetDir + Constants.SERVICE_HE_LIBRARY_FILE_NAME, serviceName, tomcatDir);\r\n\t\tgenerateMakefileFromTemplate(serviceName, targetDir + Constants.SERVICE_HE_LIBRARY_MAKEFILE_NAME);\r\n\r\n\t\t//header is a static file \r\n\t\tClassLoader loader = ServiceGenerator.class.getClassLoader();\r\n\t\t\r\n\t\tURI jniInterfaceHeaderFilePath = loader.getResource(Constants.HE_SERVICE_RESOURCES_FOLDER \r\n\t\t\t\t+ Constants.SERVICE_HE_LIBRARY_HEADER_FILE_NAME).toURI();\r\n\t\tFile origJniInterfaceHeaderFile = new File(jniInterfaceHeaderFilePath);\r\n\t\tFile newJniInterfaceHeaderFile = new File(targetDir + origJniInterfaceHeaderFile.getName());\r\n\t\t\r\n\t\tUtils.deployStaticResource(origJniInterfaceHeaderFile, newJniInterfaceHeaderFile);\r\n\t}", "public void run() throws TException, IOException\n {\n System.out.println(\"API version: \"+extension.apiVersion());\n\n // Send a message to the SP log\n extension.info(\"Hello Smart Pendant, I'm MyExtension\");\n\n\n // read YML text from the file\n String yml = new String(Files.readAllBytes(Paths.get(\"MyUtility.yml\")), StandardCharsets.UTF_8);\n // and register it with the pendant\n var errors = pendant.registerYML(yml);\n\n // Register it as a Utility window\n pendant.registerUtilityWindow(\"myutil\",true,\"MyUtility\",\n \"YML Util\", \"YML Util\",\n UtilityWindowWidth.FullWidth, UtilityWindowHeight.HalfHeight,\n UtilityWindowExpansion.expandableNone);\n\n // run 'forever' (or until API service shutsdown) \n extension.run(() -> false);\n }", "public static void loadLibrary(final String libName) throws Exception {\n\t\tif (LOADED_LIB_SET.contains(libName)) {\n\t\t\treturn;\n\t\t}\n\n\t\tString libFileName = System.mapLibraryName(libName);\n\t\tString tempName = removeExtension(libFileName);\n\t\tString ext = getExtension(libFileName);\n\n\t\tPath tempPath = Files.createTempFile(tempName, ext);\n\t\tFile tempFile = tempPath.toFile();\n\n\t\ttry (InputStream is = NativeLoader.class.getClassLoader().getResourceAsStream(libFileName)) {\n\t\t\tFiles.copy(is, tempPath, StandardCopyOption.REPLACE_EXISTING);\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\ttempFile.delete();\n\n\t\t\tthrow e;\n\t\t}\n\n\t\ttry {\n\t\t\tSystem.load(tempPath.toAbsolutePath().toString());\n\n\t\t\tLOADED_LIB_SET.add(libName);\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\ttempFile.delete();\n\n\t\t\tthrow e;\n\t\t}\n\n\t\tif (FileSystems.getDefault().supportedFileAttributeViews().contains(\"posix\")) {\n\t\t\t// Assume POSIX compliant file system, library can be deleted after loading.\n\t\t\ttempFile.delete();\n\t\t}\n\t\telse {\n\t\t\ttempFile.deleteOnExit();\n\t\t}\n\t}", "private static void buildFramework() {\n \tLOG.info(\"Begin building of shared framework.\");\n \t\n \tLOG.debug(\"Create a IterativeFileReader.\");\n \tIterativeFileReader iterativeFileReader = (IterativeFileReader) ReaderFactory.instance().getIterativeFileReader();\n \tLOG.debug(\"Create a TextFileLineReader.\");\n \tTextFileLineReader textFileLineReader = (TextFileLineReader) ReaderFactory.instance().getTextFileLineReader();\n \t\n \t// Setup IterativeFileReader\n \tFile dir = new File(clArgs.buildFrameworkInDir);\n \titerativeFileReader.setFile(dir);\n \titerativeFileReader.setFileFilter(FileUtil.acceptOnlyClusterFilesFilter());\n \titerativeFileReader.setReader(textFileLineReader);\n \t\n \t// Setup processor\n \tLOG.debug(\"Create a SharedFrameworkProcessor.\");\n \tSharedFrameworkProcessor sharedFrameworkProcessor = new SharedFrameworkProcessor();\n \ttextFileLineReader.setProcessor(sharedFrameworkProcessor);\n \t// Get informed about the finishing of each cluster (file) to reset the processor's status\n \ttextFileLineReader.attach(sharedFrameworkProcessor, Interests.HasFinished);\n \t// Get informed about the finishing of all clusters to give each cluster in the generated graph a pretty id\n \titerativeFileReader.attach(sharedFrameworkProcessor, Interests.HasFinished);\n \t\n \titerativeFileReader.read();\n \t\n \tLOG.info(\"Finished building shared framework.\");\n }", "public void init() {\n\t\tThread appThread = new Thread() {\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tSwingUtilities.invokeAndWait(doHelloWorld);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"Finished on \" + Thread.currentThread());\n\t\t\t}\n\t\t};\n\t\tappThread.start();\n\t}", "public boolean connect(){\r\n if (matlabEng==null){ \r\n java.net.URI uri=null;\r\n java.net.URI uribase=null;\r\n java.net.URI urijar=null;\r\nString filename = System.mapLibraryName(\"JMatLink\");\r\n try{ \r\n// uri = new java.net.URI(\"file://\"+pathOfJmatlink+\"JMatlink.dll\");\r\n \t uri = new java.net.URI(\"file://\"+pathOfJmatlink+'/'+filename);\r\n uribase = new java.net.URI(getBaseDirectory());\r\n urijar = new java.net.URI(pathOfJimc);\r\n }\r\n catch(java.net.URISyntaxException e){ System.out.println(e);} \r\n File efile = new File(uri); \r\n File efilebase= new File(uribase); \r\n File efilejar=new File(urijar);\r\n\r\n matlabEng = new JMatLink(efile.toString());\r\n \r\n id = matlabEng.engOpenSingleUse(); \r\n\r\n //directory with latin characters \r\n matlabEng.engEvalString(id,\"jim___str='\"+\"cd (''\"+efilebase.toString()+\"''),addpath(''\"+efilejar.toString()+\"'')\" +\"'\"); \r\n matlabEng.engEvalString(id,\"jim___bytes=unicode2native(jim___str, 'ISO-8859-1')\");\r\n matlabEng.engEvalString(id,\"jim___str=native2unicode(jim___bytes, 'UTF-8')\");\r\n matlabEng.engEvalString(id,\"eval(jim___str)\");\r\n matlabEng.engEvalString(id,\"clear jim___str jim___bytes\");\r\n }\r\n \r\n //Check connection\r\n matlabEng.engEvalString(id,\"ejsrandomkey=888\"); \r\n int key=(int)matlabEng.engGetScalar(id,\"ejsrandomkey\");\r\n matlabEng.engEvalString(id,\"clear ejsrandomkey\"); \r\n if (888!=key){\r\n matlabEng=null;\r\n resultOfLastAction=CONNECTION_FAILED;\r\n return false;\r\n }\r\n resultOfLastAction=CONNECTION_OK;\r\n return true;\r\n }", "public void loadLibrary(String str) {\n _lancet.com_ss_android_ugc_aweme_lancet_launch_LoadSoLancet_loadLibrary(str);\n }", "private void loadNativesAndStart(final File nativeLib){\r\n displayMessage(\"Starting \" + subAppletDisplayName);\r\n\r\n // back to the EDT\r\n SwingUtilities.invokeLater(new Runnable() {\r\n public void run() {\r\n if (osType != MAC_OS) { // borrowed from NativeLibLoader\r\n try {\r\n System.loadLibrary(\"jawt\");\r\n } catch (UnsatisfiedLinkError ex) {\r\n // Accessibility technologies load JAWT themselves; safe to continue\r\n // as long as JAWT is loaded by any loader\r\n if (ex.getMessage().indexOf(\"already loaded\") == -1) {\r\n displayError(\"Unabled to load JAWT\");\r\n throw ex;\r\n }\r\n }\r\n }\r\n // static linking\r\n try {\r\n System.load(nativeLib.getPath());\r\n } catch (UnsatisfiedLinkError ex) {\r\n // should be safe to continue as long as the native is loaded by any loader\r\n if (ex.getMessage().indexOf(\"already loaded\") == -1) {\r\n displayError(\"Unable to load \" + nativeLib.getName());\r\n throw ex;\r\n }\r\n }\r\n\r\n // disable JOGL loading form elsewhere\r\n //net.java.games.jogl.impl.NativeLibLoader.disableLoading();\r\n\r\n // start the subapplet\r\n startSubApplet();\r\n }\r\n });\r\n }", "public static synchronized void initNativeLibs(android.content.Context r6) {\n /*\n r2 = org.telegram.messenger.NativeLoader.class;\n monitor-enter(r2);\n r0 = nativeLoaded;\t Catch:{ all -> 0x00d1 }\n if (r0 == 0) goto L_0x0009;\n L_0x0007:\n monitor-exit(r2);\n return;\n L_0x0009:\n net.hockeyapp.android.C2367a.m11720a(r6);\t Catch:{ all -> 0x00d1 }\n r0 = android.os.Build.CPU_ABI;\t Catch:{ Exception -> 0x0122 }\n r1 = \"armeabi-v7a\";\n r0 = r0.equalsIgnoreCase(r1);\t Catch:{ Exception -> 0x0122 }\n if (r0 == 0) goto L_0x00d4;\n L_0x0017:\n r0 = \"armeabi-v7a\";\n L_0x001a:\n r1 = \"os.arch\";\n r1 = java.lang.System.getProperty(r1);\t Catch:{ Throwable -> 0x012b }\n if (r1 == 0) goto L_0x0130;\n L_0x0023:\n r3 = \"686\";\n r1 = r1.contains(r3);\t Catch:{ Throwable -> 0x012b }\n if (r1 == 0) goto L_0x0130;\n L_0x002c:\n r0 = \"x86\";\n r1 = r0;\n L_0x0030:\n r0 = getNativeLibraryDir(r6);\t Catch:{ Throwable -> 0x012b }\n if (r0 == 0) goto L_0x005f;\n L_0x0036:\n r3 = new java.io.File;\t Catch:{ Throwable -> 0x012b }\n r4 = \"libtmessages.27.so\";\n r3.<init>(r0, r4);\t Catch:{ Throwable -> 0x012b }\n r0 = r3.exists();\t Catch:{ Throwable -> 0x012b }\n if (r0 == 0) goto L_0x005f;\n L_0x0044:\n r0 = \"load normal lib\";\n org.telegram.messenger.FileLog.m13725d(r0);\t Catch:{ Throwable -> 0x012b }\n r0 = \"tmessages.27\";\n java.lang.System.loadLibrary(r0);\t Catch:{ Error -> 0x005b }\n r0 = net.hockeyapp.android.C2367a.f7955a;\t Catch:{ Error -> 0x005b }\n r3 = org.telegram.messenger.BuildVars.DEBUG_VERSION;\t Catch:{ Error -> 0x005b }\n init(r0, r3);\t Catch:{ Error -> 0x005b }\n r0 = 1;\n nativeLoaded = r0;\t Catch:{ Error -> 0x005b }\n goto L_0x0007;\n L_0x005b:\n r0 = move-exception;\n org.telegram.messenger.FileLog.m13728e(r0);\t Catch:{ Throwable -> 0x012b }\n L_0x005f:\n r3 = new java.io.File;\t Catch:{ Throwable -> 0x012b }\n r0 = r6.getFilesDir();\t Catch:{ Throwable -> 0x012b }\n r4 = \"lib\";\n r3.<init>(r0, r4);\t Catch:{ Throwable -> 0x012b }\n r3.mkdirs();\t Catch:{ Throwable -> 0x012b }\n r4 = new java.io.File;\t Catch:{ Throwable -> 0x012b }\n r0 = \"libtmessages.27loc.so\";\n r4.<init>(r3, r0);\t Catch:{ Throwable -> 0x012b }\n r0 = r4.exists();\t Catch:{ Throwable -> 0x012b }\n if (r0 == 0) goto L_0x009c;\n L_0x007c:\n r0 = \"Load local lib\";\n org.telegram.messenger.FileLog.m13725d(r0);\t Catch:{ Error -> 0x0095 }\n r0 = r4.getAbsolutePath();\t Catch:{ Error -> 0x0095 }\n java.lang.System.load(r0);\t Catch:{ Error -> 0x0095 }\n r0 = net.hockeyapp.android.C2367a.f7955a;\t Catch:{ Error -> 0x0095 }\n r5 = org.telegram.messenger.BuildVars.DEBUG_VERSION;\t Catch:{ Error -> 0x0095 }\n init(r0, r5);\t Catch:{ Error -> 0x0095 }\n r0 = 1;\n nativeLoaded = r0;\t Catch:{ Error -> 0x0095 }\n goto L_0x0007;\n L_0x0095:\n r0 = move-exception;\n org.telegram.messenger.FileLog.m13728e(r0);\t Catch:{ Throwable -> 0x012b }\n r4.delete();\t Catch:{ Throwable -> 0x012b }\n L_0x009c:\n r0 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x012b }\n r0.<init>();\t Catch:{ Throwable -> 0x012b }\n r5 = \"Library not found, arch = \";\n r0 = r0.append(r5);\t Catch:{ Throwable -> 0x012b }\n r0 = r0.append(r1);\t Catch:{ Throwable -> 0x012b }\n r0 = r0.toString();\t Catch:{ Throwable -> 0x012b }\n org.telegram.messenger.FileLog.m13726e(r0);\t Catch:{ Throwable -> 0x012b }\n r0 = loadFromZip(r6, r3, r4, r1);\t Catch:{ Throwable -> 0x012b }\n if (r0 != 0) goto L_0x0007;\n L_0x00b9:\n r0 = \"tmessages.27\";\n java.lang.System.loadLibrary(r0);\t Catch:{ Error -> 0x00cb }\n r0 = net.hockeyapp.android.C2367a.f7955a;\t Catch:{ Error -> 0x00cb }\n r1 = org.telegram.messenger.BuildVars.DEBUG_VERSION;\t Catch:{ Error -> 0x00cb }\n init(r0, r1);\t Catch:{ Error -> 0x00cb }\n r0 = 1;\n nativeLoaded = r0;\t Catch:{ Error -> 0x00cb }\n goto L_0x0007;\n L_0x00cb:\n r0 = move-exception;\n org.telegram.messenger.FileLog.m13728e(r0);\t Catch:{ all -> 0x00d1 }\n goto L_0x0007;\n L_0x00d1:\n r0 = move-exception;\n monitor-exit(r2);\n throw r0;\n L_0x00d4:\n r0 = android.os.Build.CPU_ABI;\t Catch:{ Exception -> 0x0122 }\n r1 = \"armeabi\";\n r0 = r0.equalsIgnoreCase(r1);\t Catch:{ Exception -> 0x0122 }\n if (r0 == 0) goto L_0x00e4;\n L_0x00df:\n r0 = \"armeabi\";\n goto L_0x001a;\n L_0x00e4:\n r0 = android.os.Build.CPU_ABI;\t Catch:{ Exception -> 0x0122 }\n r1 = \"x86\";\n r0 = r0.equalsIgnoreCase(r1);\t Catch:{ Exception -> 0x0122 }\n if (r0 == 0) goto L_0x00f4;\n L_0x00ef:\n r0 = \"x86\";\n goto L_0x001a;\n L_0x00f4:\n r0 = android.os.Build.CPU_ABI;\t Catch:{ Exception -> 0x0122 }\n r1 = \"mips\";\n r0 = r0.equalsIgnoreCase(r1);\t Catch:{ Exception -> 0x0122 }\n if (r0 == 0) goto L_0x0104;\n L_0x00ff:\n r0 = \"mips\";\n goto L_0x001a;\n L_0x0104:\n r0 = \"armeabi\";\n r1 = new java.lang.StringBuilder;\t Catch:{ Exception -> 0x0122 }\n r1.<init>();\t Catch:{ Exception -> 0x0122 }\n r3 = \"Unsupported arch: \";\n r1 = r1.append(r3);\t Catch:{ Exception -> 0x0122 }\n r3 = android.os.Build.CPU_ABI;\t Catch:{ Exception -> 0x0122 }\n r1 = r1.append(r3);\t Catch:{ Exception -> 0x0122 }\n r1 = r1.toString();\t Catch:{ Exception -> 0x0122 }\n org.telegram.messenger.FileLog.m13726e(r1);\t Catch:{ Exception -> 0x0122 }\n goto L_0x001a;\n L_0x0122:\n r0 = move-exception;\n org.telegram.messenger.FileLog.m13728e(r0);\t Catch:{ Throwable -> 0x012b }\n r0 = \"armeabi\";\n goto L_0x001a;\n L_0x012b:\n r0 = move-exception;\n r0.printStackTrace();\t Catch:{ all -> 0x00d1 }\n goto L_0x00b9;\n L_0x0130:\n r1 = r0;\n goto L_0x0030;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.telegram.messenger.NativeLoader.initNativeLibs(android.content.Context):void\");\n }", "public PythonInterpreter() {\n }", "public static void main(String[] args) throws Exception{\n\t\tParseTree tree = new ParseTree(new Information(\"C:\\\\Users\\\\Darkras\\\\Documents\\\\CPSC 449\\\\commands.jar\", \"Commands\"));\n\t\tFile f = new File(\"C:\\\\Users\\\\Darkras\\\\Documents\\\\CPSC 449\\\\commands.jar\");\n\t\tClass[] parameterTypes = new Class[]{URL.class};\n\t\tURL url = (f.toURI()).toURL();\n\t\tURLClassLoader sysloader = (URLClassLoader) ClassLoader.getSystemClassLoader();\n\t\tClass<?> sysclass = URLClassLoader.class;\n\t\tMethod method = sysclass.getDeclaredMethod(\"addURL\", parameterTypes);\n\t\tmethod.setAccessible(true);\n\t\tmethod.invoke(sysloader, new Object[]{ url });\n\t\t\n\t\tClass<?> c = Class.forName(\"Commands\");\n\t\tMethod[] methods = c.getDeclaredMethods();\n\t\t\n\t\tInformation test = new Information(\"C:\\\\Users\\\\Darkras\\\\Documents\\\\CPSC 449\\\\commands.jar\", \"Commands\");\n\t\tList<Integer[]> testList = test.properArguments(\"add\");\n\t\t\n\t\tSystem.out.println(testList);\n\t\t\n\t\t\n\t\tTreeEvaluator e = new TreeEvaluator(test);\n\t\t\n\t\ttree.grow(\"add\",1);\n\t\ttree.grow(\"5\",0);\n\t\ttree.grow(\"5\",0);\n\t\ttree.addReturnTypes();\n\t\tSystem.out.println(tree.isComplete());\n\t\tSystem.out.print(e.evaluate(tree.getRoot()));\n\t}", "private native void init (String configFile) throws IOException;", "public void libraryLoaded();", "public void setup(LdBookCB cb);", "public void createInterpreter(String path, String interprName,\n\t\t\tboolean isDefault, int index) {\n\t\ttry {\n\t\t\topenInterpreters();\n\n\t\t\tgetBot().button(BTN_ADD).click();\n\t\t\tgetBot().waitUntil(Conditions.shellIsActive(DLG_ADD_INTERPRETER));\n\t\t\tgetBot().textWithLabel(FLD_INTERPR_NAME).setText(interprName);\n\t\t\tgetBot().textWithLabel(FLD_INTERPR_PATH).setText(path);\n\n\t\t\tString type = getBot().comboBoxWithLabel(FLD_INTERPR_TYPE)\n\t\t\t\t\t.getText();\n\t\t\tSWTBotTestCase.assertEquals(TCL_INTERPRETER_TYPE, type);\n\n\t\t\twaitEnableAndClick(BTN_OK);\n\t\t\tgetBot().waitUntil(Conditions.shellIsActive(DLG_PREFERENCES));\n\t\t\tSWTBotShell shell = getBot().shell(DLG_PREFERENCES);\n\t\t\tSWTBotTable tableBot = getBot().table();\n\t\t\tgetBot().waitUntil(Conditions.tableHasRows(tableBot, index + 1));\n\n\t\t\t// Alternative interpreter will add to first row because table is\n\t\t\t// sorting by name.\n\t\t\tcheckInterpreter(tableBot, path, interprName, isDefault, 0);\n\n\t\t\twaitEnableAndClick(BTN_OK);\n\t\t\tgetBot().waitUntil(Conditions.shellCloses(shell));\n\t\t} catch (WidgetNotFoundException ex) {\n\t\t\tSWTBotTestCase.fail(ex.getLocalizedMessage());\n\t\t} catch (TimeoutException ex) {\n\t\t\tSWTBotTestCase.fail(ex.getLocalizedMessage());\n\t\t}\n\t}", "public interface IConnector extends Callable<Boolean> {\n\n enum State {\n DISCOVER,\n RECONNECT,\n WAIT_FOR_CONNECT_BUTTON_PRESS,\n CONNECT_BUTTON_IS_PRESSED,\n WAIT_FOR_CMD,\n WAIT_UPLOAD,\n WAIT_EXECUTION,\n DISCONNECT,\n WAIT_FOR_SERVER,\n UPDATE,\n UPDATE_SUCCESS,\n UPDATE_FAIL,\n ERROR_HTTP,\n ERROR_UPDATE,\n ERROR_BRICK,\n ERROR_DOWNLOAD,\n TOKEN_TIMEOUT\n }\n\n String KEY_TOKEN = \"token\";\n String KEY_CMD = \"cmd\";\n String KEY_SUBTYPE = \"subtype\";\n\n String CMD_REGISTER = \"register\";\n String CMD_PUSH = \"push\";\n String CMD_ISRUNNING = \"isrunning\";\n\n String CMD_REPEAT = \"repeat\";\n String CMD_ABORT = \"abort\";\n String CMD_UPDATE = \"update\";\n String CMD_DOWNLOAD = \"download\";\n String CMD_DOWNLOAD_RUN = \"download_run\";\n String CMD_CONFIGURATION = \"configuration\";\n\n /**\n * Search for a specific robot type for auto detection at the beginning of the program. The robot is considered to not run a user program at this time to be\n * available.\n *\n * @return true if a robot is connected, false otherwise\n */\n boolean findRobot();\n\n /**\n * Tell the connector to collect necessary data from the robot and initialise a registration to Open Roberta.\n */\n void userPressConnectButton();\n\n /**\n * Disconnect the current robot properly and search for robots again (start condition of the USB program).\n */\n void userPressDisconnectButton();\n\n /**\n * Shut down the connector for closing the USB program.\n */\n void close();\n\n /**\n * Tell the gui, that the connector state has changed.\n *\n * @param state the state of the connector\n */\n void notifyConnectionStateChanged(State state);\n\n /**\n * Get the token to display in the gui.\n *\n * @return the token\n */\n String getToken();\n\n /**\n * Get the robot name to display in the gui.\n *\n * @return robot name\n */\n String getBrickName();\n\n /**\n * In this state, the connector will download system libraries from the server, and upload it to the robot.\n */\n void update();\n\n /**\n * Update the server communicator's address to which it will connect.\n *\n * @param customServerAddress the specified server address\n */\n void updateCustomServerAddress(String customServerAddress);\n\n /**\n * If gui fields are empty but advanced options is checked, use the default server address.\n */\n void resetToDefaultServerAddress();\n}", "void runCode() throws IOException, InterruptedException {\n String[] cmd = {\n \"/bin/sh\",\n \"-c\",\n \"gnome-terminal --command=\\\"bash -c \\'cd \" + currentDirectory.getPath() + \" && g++ -o \" + currentFile.getName().substring(0, currentFile.getName().lastIndexOf('.')) + \" \" + currentFile.getName() + \" && \" + \"./main; $SHELL\\'\\\"\"\n };\n Process p = new ProcessBuilder(cmd).start();\n\n StringBuilder output = new StringBuilder();\n\n BufferedReader reader = new BufferedReader(new InputStreamReader(p.getInputStream()));\n\n String line;\n while ((line = reader.readLine()) != null) {\n output.append(line + \"\\n\");\n }\n\n int exitVal = p.waitFor();\n if (exitVal == 0) {\n System.out.println(\"Success!\");\n } else {\n System.out.println(\"Fail!\");\n }\n }", "public interface BuildMainSpaceAPI extends API {\n\n /**\n * Build all assets of the main code space.\n *\n * <ul>\n * <li>Compile sources and jar generated classes\n * <li>Check modules\n * <li>Generate API documentation\n * <li>Generate custom runtime image\n * </ul>\n *\n * @see #buildMainBuildModules()\n * @see #buildMainCheckModules()\n * @see #buildMainGenerateAPIDocumentation()\n * @see #buildMainGenerateCustomRuntimeImage()\n */\n default void buildMainSpace() throws Exception {\n buildMainBuildModules();\n buildMainCheckModules();\n buildMainGenerateAPIDocumentation();\n buildMainGenerateCustomRuntimeImage();\n }\n\n /** Compile and jar main modules. */\n default void buildMainBuildModules() {\n var main = bach().project().spaces().main();\n var modules = main.declarations();\n if (modules.isEmpty()) {\n log(\"Main module list is empty, nothing to build here.\");\n return;\n }\n var s = modules.size() == 1 ? \"\" : \"s\";\n say(\"Build %d main module%s: %s\", modules.size(), s, modules.toNames(\", \"));\n\n var release = main.release();\n var feature = release != 0 ? release : Runtime.version().feature();\n var classes = bach().folders().workspace(\"classes-main-\" + feature);\n\n var workspaceModules = bach().folders().workspace(\"modules\");\n Paths.deleteDirectories(workspaceModules);\n if (feature == 8) {\n bach().run(buildMainJavac(9, classes)).requireSuccessful();\n buildMainSpaceClassesForJava8(classes);\n } else {\n bach().run(buildMainJavac(release, classes)).requireSuccessful();\n }\n\n Paths.createDirectories(workspaceModules);\n var jars = new ArrayList<Jar>();\n var javacs = new ArrayList<Javac>();\n for (var declaration : modules.map().values()) {\n for (var folder : declaration.sources().list()) {\n if (!folder.isTargeted()) continue;\n javacs.add(buildMainJavac(declaration, folder, classes));\n }\n jars.add(buildMainJar(declaration, classes));\n }\n if (!javacs.isEmpty()) bach().run(javacs.stream()).requireSuccessful();\n bach().run(jars.stream()).requireSuccessful();\n }\n\n /** Check main modules. */\n default void buildMainCheckModules() {\n if (!bach().project().settings().tools().enabled(\"jdeps\")) return;\n say(\"Check main modules\");\n var main = bach().project().spaces().main();\n var modules = main.declarations();\n var jdeps = new ArrayList<JDeps>();\n for (var declaration : modules.map().values()) {\n jdeps.add(buildMainJDeps(declaration));\n }\n bach().run(jdeps.stream()).requireSuccessful();\n }\n\n /** Generate HTML pages of API documentation from main modules' source files. */\n default void buildMainGenerateAPIDocumentation() {\n if (!bach().project().settings().tools().enabled(\"javadoc\")) return;\n say(\"Generate API documentation\");\n var api = bach().folders().workspace(\"documentation\", \"api\");\n bach().run(buildMainJavadoc(api)).requireSuccessful();\n bach().run(buildMainJavadocJar(api)).requireSuccessful();\n }\n\n /** Assemble and optimize main modules and their dependencies into a custom runtime image. */\n default void buildMainGenerateCustomRuntimeImage() {\n if (!bach().project().settings().tools().enabled(\"jlink\")) return;\n say(\"Assemble custom runtime image\");\n var image = bach().folders().workspace(\"image\");\n Paths.deleteDirectories(image);\n bach().run(buildMainJLink(image));\n }\n\n default void buildMainSpaceClassesForJava8(Path classes) {\n var project = bach().project();\n var folders = project.settings().folders();\n var main = project.spaces().main();\n var classPaths = new ArrayList<Path>();\n main.declarations().toNames().forEach(name -> classPaths.add(classes.resolve(name)));\n classPaths.addAll(Paths.list(bach().folders().externalModules(), Paths::isJarFile));\n var javacs = new ArrayList<Javac>();\n for (var declaration : main.declarations().map().values()) {\n var name = declaration.name();\n var sources = declaration.sources();\n var root = sources.list().isEmpty() ? folders.root() : sources.first().path();\n var java8Files = Paths.find(root, 99, BuildMainSpaceAPI::isJava8File);\n if (java8Files.isEmpty()) continue; // skip aggregator module\n var compileSources =\n Command.javac()\n .with(\"--release\", main.release()) // 8\n .with(\"--class-path\", classPaths)\n .ifTrue(bach().is(Flag.STRICT), javac -> javac.with(\"-Xlint\").with(\"-Werror\"))\n .withAll(main.tweaks().arguments(\"javac\"))\n .with(\"-d\", classes.resolve(name))\n .withAll(java8Files);\n javacs.add(compileSources);\n }\n if (javacs.isEmpty()) return; // no javac command collected\n bach().run(javacs.stream()).requireSuccessful();\n }\n\n /** Test supplied path for pointing to a Java 8 compilation unit. */\n private static boolean isJava8File(Path path) {\n var name = Paths.name(path);\n return !path.startsWith(\".bach\") // ignore all files in `.bach` directory\n && name.endsWith(\".java\")\n && !name.equals(\"module-info.java\") // ignore module declaration compilation units\n && Files.isRegularFile(path);\n }\n\n /**\n * {@return the {@code javac} call to compile all configured modules of the main space}\n *\n * @param release the Java feature release number to compile modules for\n */\n default Javac buildMainJavac(int release, Path classes) {\n var project = bach().project();\n var main = project.spaces().main();\n return Command.javac()\n .ifTrue(release != 0, javac -> javac.with(\"--release\", release))\n .with(\"--module\", main.declarations().toNames(\",\"))\n .with(\"--module-version\", project.version())\n .forEach(\n main.declarations().toModuleSourcePaths(false),\n (javac, path) -> javac.with(\"--module-source-path\", path))\n .ifPresent(\n main.modulePaths().pruned(), (javac, paths) -> javac.with(\"--module-path\", paths))\n .ifTrue(bach().is(Flag.STRICT), javac -> javac.with(\"-Xlint\").with(\"-Werror\"))\n .withAll(main.tweaks().arguments(\"javac\"))\n .with(\"-d\", classes);\n }\n\n /** {@return the {@code javac} call to compile a specific version of a multi-release module} */\n default Javac buildMainJavac(LocalModule local, SourceFolder folder, Path classes) {\n var name = local.name();\n var project = bach().project();\n var main = project.spaces().main();\n var release = folder.release();\n var javaSourceFiles = Paths.find(folder.path(), 99, Paths::isJavaFile);\n return Command.javac()\n .with(\"--release\", release)\n .with(\"--module-version\", project.version())\n .ifPresent(\n main.modulePaths().pruned(), (javac, paths) -> javac.with(\"--module-path\", paths))\n .with(\"--class-path\", classes.resolve(name))\n .with(\"-implicit:none\") // generate classes for explicitly referenced source files\n .withAll(main.tweaks().arguments(\"javac\"))\n .withAll(main.tweaks().arguments(\"javac(\" + name + \")\"))\n .withAll(main.tweaks().arguments(\"javac(\" + release + \")\"))\n .withAll(main.tweaks().arguments(\"javac(\" + name + \"@\" + release + \")\"))\n .with(\"-d\", buildMultiReleaseClassesDirectory(name, release))\n .withAll(javaSourceFiles);\n }\n\n private Path buildMultiReleaseClassesDirectory(String module, int release) {\n return bach().folders().workspace(\"classes-mr-\" + release, module);\n }\n\n default Jar buildMainJar(LocalModule local, Path classes) {\n var project = bach().project();\n var main = project.spaces().main();\n var name = local.name();\n var file = bach().folders().workspace(\"modules\", buildMainJarFileName(name));\n var mainClass = local.reference().descriptor().mainClass();\n var jar =\n Command.jar()\n .ifTrue(bach().is(Flag.VERBOSE), command -> command.with(\"--verbose\"))\n .with(\"--create\")\n .with(\"--file\", file)\n .ifPresent(mainClass, (args, value) -> args.with(\"--main-class\", value))\n .withAll(main.tweaks().arguments(\"jar\"))\n .withAll(main.tweaks().arguments(\"jar(\" + name + \")\"));\n var baseClasses = classes.resolve(name);\n if (Files.isDirectory(baseClasses)) jar = jar.with(\"-C\", baseClasses, \".\");\n // include base resources\n for (var folder : local.resources().list()) {\n if (folder.isTargeted()) continue; // handled later\n jar = jar.with(\"-C\", folder.path(), \".\");\n }\n // add (future) targeted classes and targeted resources in ascending order\n for (int release = 9; release <= Runtime.version().feature(); release++) {\n var paths = new ArrayList<Path>();\n var isSourceTargeted = local.sources().stream(release).findAny().isPresent();\n if (isSourceTargeted) paths.add(buildMultiReleaseClassesDirectory(name, release));\n local.resources().stream(release).map(SourceFolder::path).forEach(paths::add);\n if (paths.isEmpty()) continue;\n jar = jar.with(\"--release\", release);\n for (var path : paths) jar = jar.with(\"-C\", path, \".\");\n }\n return jar;\n }\n\n default String buildMainJarFileName(String module) {\n return module + '@' + bach().project().versionNumberAndPreRelease() + \".jar\";\n }\n\n default JDeps buildMainJDeps(LocalModule local) {\n var folders = bach().folders();\n return Command.jdeps()\n .with(\"--check\", local.name())\n .with(\"--multi-release\", \"BASE\")\n .with(\"--module-path\", List.of(folders.workspace(\"modules\"), folders.externalModules()));\n }\n\n default Javadoc buildMainJavadoc(Path destination) {\n var project = bach().project();\n var main = project.spaces().main();\n return Command.javadoc()\n .with(\"--module\", main.declarations().toNames(\",\"))\n .forEach(\n main.declarations().toModuleSourcePaths(false),\n (javadoc, path) -> javadoc.with(\"--module-source-path\", path))\n .ifPresent(\n main.modulePaths().pruned(), (javadoc, paths) -> javadoc.with(\"--module-path\", paths))\n .ifTrue(bach().is(Flag.STRICT), javadoc -> javadoc.with(\"-Xdoclint\").with(\"-Werror\"))\n .withAll(main.tweaks().arguments(\"javadoc\"))\n .with(\"-d\", destination);\n }\n\n /** {@return the jar call generating the API documentation archive} */\n default Jar buildMainJavadocJar(Path api) {\n var project = bach().project();\n var file = project.name() + \"-api-\" + project.version() + \".zip\";\n return Command.jar()\n .with(\"--create\")\n .with(\"--file\", api.getParent().resolve(file))\n .with(\"--no-manifest\")\n .with(\"-C\", api, \".\");\n }\n\n default JLink buildMainJLink(Path image) {\n var project = bach().project();\n var main = project.spaces().main();\n var test = project.spaces().test();\n return Command.jlink()\n .ifPresent(main.launcher(), (jlink, launcher) -> jlink.with(\"--launcher\", launcher.value()))\n .with(\"--add-modules\", main.declarations().toNames(\",\"))\n .ifPresent(\n test.modulePaths().pruned(), (jlink, paths) -> jlink.with(\"--module-path\", paths))\n .withAll(main.tweaks().arguments(\"jlink\"))\n .with(\"--output\", image);\n }\n}", "@Override\n public void install(String dvName, String libName, String libPath) throws Exception {\n File installLibDir = ExternalLibraryUtils.getLibraryInstallDir();\n // directory exists?\n if (!installLibDir.exists()) {\n installLibDir.mkdir();\n }\n // copy the library file into the directory\n File destinationDir = new File(\n installLibDir.getAbsolutePath() + File.separator + dvName + File.separator + libName);\n FileUtils.deleteQuietly(destinationDir);\n destinationDir.mkdirs();\n try {\n AsterixEventServiceUtil.unzip(libPath, destinationDir.getAbsolutePath());\n } catch (Exception e) {\n\n throw new Exception(\"Couldn't unzip the file: \" + libPath, e);\n }\n // for each file (library), register library\n ExternalLibraryUtils.registerLibrary(dvName, libName, true, destinationDir);\n // get library file\n // install if needed (add functions, adapters, datasources, parsers to the metadata)\n // <Not required for use>\n ExternalLibraryUtils.installLibraryIfNeeded(dvName, destinationDir, new HashMap<>());\n }", "ICompilerWorkflow getRobotCompilerWorkflow();", "public void run() {\r\n\t\tvar configs = new Configurations();\r\n\t\ttry {\r\n\t\t\tconfig = configs.properties(new File(PROPERTIES_FILE_NAME));\r\n\t\t\toutputDirPath = config.getString(OUTPUT_DIR_KEY, \"./\");\r\n\t\t\tvar dir = new File(outputDirPath);\r\n\t\t\toutputDirPath = dir.getAbsolutePath();\r\n\t\t\tdir.mkdirs();\r\n\t\t} catch (ConfigurationException cex) {\r\n\t\t\tlogger.severe(\"Initialization failed: unable to load \" + PROPERTIES_FILE_NAME + \"!\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tsetOutputDirectory();\r\n\t\tlogger.info(\"Synthesizer: started\");\r\n\t\tsynthesisTime.reset();\r\n\t\tplanningTime.reset();\r\n\t\ttry {\r\n\t\t\tvar problem = genProblem();\r\n\t\t\tdebugger = new JminorDebugger(config, logger, problem.name, outputDirPath);\r\n\t\t\tdebugger.addLink(logFile.getName(), \"Events log\");\r\n\t\t\tdebugger.addCodeFile(\"problem.txt\", problem.toString(), \"Specification\");\r\n\t\t\tdebugger.printExamples(problem.examples);\r\n\t\t\tsynthesisTime.start();\r\n\t\t\tvar planner = new AStar<JmStore, Stmt>(new BasicJminorTR(problem.semantics));\r\n\t\t\tvar synthesizer = new PETISynthesizer<JmStore, Stmt, BoolExpr>(planner, config, logger, debugger);\r\n\t\t\tvar synthesisResult = synthesizer.synthesize(problem);\r\n\t\t\tif (synthesisResult.success()) {\r\n\t\t\t\tlogger.info(\"success!\");\r\n\t\t\t\t// We have to structure _after_ testing against the test examples,\r\n\t\t\t\t// since currently a command sequence is counted as an atomic\r\n\t\t\t\t// command, which fails the tests.\r\n\t\t\t\tvar automaton = synthesisResult.get();\r\n\t\t\t\tif (config.getBoolean(\"pexyn.structureResultAutomaton\", false)) {\r\n\t\t\t\t\tnew AutomatonToStructuredCmd<JmStore, Stmt, BoolExpr>(\r\n\t\t\t\t\t\t\t(StructuredSemantics<JmStore, Stmt, BoolExpr>) problem.semantics()).compress(automaton);\r\n\t\t\t\t\tdebugger.printAutomaton(automaton, \"Compressed automaton\");\r\n\t\t\t\t}\r\n\t\t\t\tif (config.getBoolean(\"jminor.generateJavaImplementation\", true)) {\r\n\t\t\t\t\tvar backend = AutomatonCodegen.forJava(automaton, problem, config, debugger, logger);\r\n\t\t\t\t\tbackend.generate();\r\n\t\t\t\t}\r\n\t\t\t\tif (config.getBoolean(\"jminor.generateDafnyImplementation\", true)) {\r\n\t\t\t\t\tvar backend = AutomatonCodegen.forDafny(automaton, problem, config, debugger, logger);\r\n\t\t\t\t\tbackend.generate();\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tlogger.info(\"fail!\");\r\n\t\t\t}\r\n\t\t} catch (Throwable t) {\r\n\t\t\tlogger.severe(t.toString());\r\n\t\t\tt.printStackTrace();\r\n\t\t} finally {\r\n\t\t\tsynthesisTime.stop();\r\n\t\t\tlogger.info(\"Planning time: \" + planningTime.toSeconds());\r\n\t\t\tlogger.info(\"Synthesizer: done! (\" + synthesisTime.toSeconds() + \")\");\r\n\t\t\tdebugger.refresh();\r\n\t\t}\r\n\t}", "public void installDefaultLibraries() {\n //APACHE\n this.install(\"org.apache.httpcomponents\", \"httpcore-nio\", \"4.4.6\", Repository.CENTRAL);\n this.install(\"org.apache.httpcomponents\", \"httpcore\", \"4.3.2\", Repository.CENTRAL);\n this.install(\"org.apache.httpcomponents\", \"httpmime\", \"4.5.3\", Repository.CENTRAL);\n this.install(\"org.apache.httpcomponents\", \"httpclient\", \"4.5.3\", Repository.CENTRAL);\n this.install(\"org.apache.httpcomponents\", \"httpclient\", \"4.5.2\", Repository.CENTRAL);\n this.install(\"org.apache.commons\", \"commons-lang3\", \"3.5\", Repository.CENTRAL);\n\n this.install(\"commons-io\", \"commons-io\", \"2.6\", Repository.CENTRAL);\n this.install(\"commons-logging\", \"commons-logging\", \"1.2\", Repository.CENTRAL);\n this.install(\"commons-lang\", \"commons-lang\", \"2.5\", Repository.CENTRAL);\n this.install(\"org.slf4j\", \"slf4j-api\", \"1.7.25\", Repository.CENTRAL);\n this.install(\"org.apache.logging.log4j\", \"log4j-api\", \"2.5\", Repository.CENTRAL);\n this.install(\"log4j\", \"log4j\", \"1.2.17\", Repository.CENTRAL);\n\n //NETWORK\n this.install(\"io.netty\", \"netty-all\", \"4.1.44.Final\", Repository.CENTRAL);\n this.install(\"javax.servlet\", \"servlet-api\", \"2.5\", Repository.CENTRAL);\n\n //Logging and Console\n this.install(\"jline\", \"jline\", \"2.14.6\", Repository.CENTRAL);\n this.install(\"org.jline\", \"jline-terminal-jna\", \"3.18.0\", Repository.CENTRAL);\n this.install(\"org.jline\", \"jline-terminal\", \"3.19.0\", Repository.CENTRAL);\n this.install(\"ch.qos.logback\", \"logback-classic\", \"1.2.3\", Repository.CENTRAL);\n this.install(\"ch.qos.logback\", \"logback-core\", \"1.2.3\", Repository.CENTRAL);\n\n //Database\n this.install(\"mysql\", \"mysql-connector-java\", \"8.0.11\", Repository.CENTRAL);\n this.install(\"org.mongodb\", \"bson\", \"4.2.0\", Repository.CENTRAL);\n this.install(\"org.mongodb\", \"mongodb-driver\", \"3.12.7\", Repository.CENTRAL);\n this.install(\"org.mongodb\", \"mongodb-driver-core\", \"3.12.7\", Repository.CENTRAL);\n this.install(\"org.mongodb\", \"mongo-java-driver\", \"3.12.7\", Repository.CENTRAL);\n //this.install(\"com.arangodb\", \"arangodb-java-driver\", \"6.9.1\", Repository.CENTRAL);\n\n //OTHER\n this.install(\"org.openjfx\", \"javafx-base\", \"11\", Repository.CENTRAL);\n this.install(\"org.projectlombok\", \"lombok\", \"1.18.16\", Repository.CENTRAL);\n this.install(\"com.google.code.gson\", \"gson\", \"2.8.5\", Repository.CENTRAL);\n this.install(\"com.google.guava\", \"guava\", \"25.1-jre\", Repository.CENTRAL);\n this.install(\"com.google.j2objc\", \"j2objc-annotations\", \"1.1\", Repository.CENTRAL);\n this.install(\"com.google.protobuf\", \"protobuf-java\", \"3.14.0\", Repository.CENTRAL);\n this.install(\"dnsjava\", \"dnsjava\", \"3.3.1\", Repository.CENTRAL);\n\n this.loaded = true;\n }", "public void addJARFolder() {\n btAddJARFolder().push();\n }", "public void load() {\n new Thread(new Runnable() {\n @Override\n public void run() {\n try {\n loader = HijackLoader.create(Language.ENGLISH, true);\n callback.call();\n } catch (Exception e) {\n e.printStackTrace();\n log(Bot.class, Level.SEVERE, \"Error loading bot!\");\n }\n initialized = true;\n log(Bot.class, \"Bot now active.\");\n\n while ((canvas = getCanvas()) == null) {\n Utils.sleep(1);\n }\n\n canvas.setBot(Bot.this);\n Utils.sleep(3000);\n inputHandler = new InputHandler(bot, canvas);\n }\n }).start();\n\n thread = new Thread(new Runnable() {\n @Override\n public void run() {\n while (true) {\n if (!scriptStack.isEmpty()) {\n final Script script = scriptStack.peek();\n if (script != null) {\n final ScriptContext context = script.getContext();\n if (context.randomEvents != null) {\n context.randomEvents.check();\n }\n if (script.isExitRequested()) {\n context.getBot().popScript();\n break;\n }\n if (!script.isPaused()) {\n long time = System.currentTimeMillis();\n if (time >= script.getNextExecutionTime()) {\n int delay = script.pulse();\n if (delay < 0)\n context.getBot().popScript();\n script.setNextExecutionTime(time + delay);\n }\n }\n\n try {\n if (script.getNextExecutionTime() > 0) {\n long sleep = script.getNextExecutionTime() - System.currentTimeMillis();\n if (sleep > 0)\n Thread.sleep(script.getNextExecutionTime()\n - System.currentTimeMillis());\n } else {\n Thread.sleep(500);\n }\n } catch (InterruptedException e1) {\n // ignore the exception, because interrupting is normal\n }\n }\n } else {\n Utils.sleep(5000);\n }\n }\n\n }\n });\n thread.setName(\"Bot-\" + getBotIndex());\n thread.start();\n }", "private void runTypeChefAnalyzes(IFolder folder) {\r\n\t\tProjectExplorerController prjController = new ProjectExplorerController();\r\n\t\tprjController.addResource(folder);\r\n\t\ttypeChef.run(prjController.getList());\r\n\t\tfinal Display display = Display.getDefault();\r\n\t\tif (display == null) {\r\n\t\t\tthrow new NullPointerException(\"Display is null\");\r\n\t\t}\r\n\r\n\t\tdisplay.syncExec(new Runnable() {\r\n\t\t\tpublic void run() {\r\n\t\t\t\tPluginViewController viewController = PluginViewController\r\n\t\t\t\t\t\t.getInstance();\r\n\t\t\t\tviewController.showPluginView();\r\n\t\t\t\tif (typeChef.getLogs().length > 0) {\r\n\t\t\t\t\tviewController.adaptTo(typeChef.getLogs());\r\n\t\t\t\t\tcontinueCompilationFlag = MessageDialog.openQuestion(\r\n\t\t\t\t\t\t\tdisplay.getActiveShell(),\r\n\t\t\t\t\t\t\t\"Error!\",\r\n\t\t\t\t\t\t\t\"This project contains errors in some feature combinations.\\nDo you want to continue the compilation?\");\r\n\t\t\t\t} else {\r\n\t\t\t\t\tviewController.clear();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t}", "public static Library readLibrary(URL fileURL, String libName, FileType type, boolean quick, Map<Setting,Object> projectSettings) {\n \t\tif (fileURL == null) return null;\n \t\tlong startTime = System.currentTimeMillis();\n errorLogger = ErrorLogger.newInstance(\"Library Read\");\n \n File f = new File(fileURL.getPath());\n \n if (f != null && f.exists()) {\n LibDirs.readLibDirs(f.getParent());\n }\n \t\tLibraryFiles.initializeLibraryInput();\n \n \t\tLibrary lib = null;\n \t\tboolean formerQuiet = isChangeQuiet();\n \t\tif (!formerQuiet) changesQuiet(true);\n \t\ttry {\n \t\t\t// show progress\n \t\t\tif (!quick) startProgressDialog(\"library\", fileURL.getFile());\n \n \t\t\tCell.setAllowCircularLibraryDependences(true);\n \n \t\t\tStringBuffer errmsg = new StringBuffer();\n \t\t\tboolean exists = TextUtils.URLExists(fileURL, errmsg);\n \t\t\tif (!exists)\n \t\t\t{\n \t\t\t\tSystem.out.print(errmsg.toString());\n \t\t\t\t// if doesn't have extension, assume DEFAULTLIB as extension\n \t\t\t\tString fileName = fileURL.toString();\n \t\t\t\tif (fileName.indexOf(\".\") == -1)\n \t\t\t\t{\n \t\t\t\t\tfileURL = TextUtils.makeURLToFile(fileName+\".\"+type.getExtensions()[0]);\n \t\t\t\t\tSystem.out.print(\"Attempting to open \" + fileURL+\"\\n\");\n \t\t\t\t\terrmsg.setLength(0);\n \t\t\t\t\texists = TextUtils.URLExists(fileURL, errmsg);\n \t\t\t\t\tif (!exists && (type != FileType.DELIB)) { // Check if this is a DELIB\n \t\t\t\t\t\tfileURL = TextUtils.makeURLToFile(fileName+\".\"+FileType.DELIB.getExtensions()[0]);\n \t\t\t\t\t\tSystem.out.print(\"Attempting to open \" + fileURL+\"\\n\");\n \t\t\t\t\t\terrmsg.setLength(0);\n \t\t\t\t\t\texists = TextUtils.URLExists(fileURL, errmsg);\n \t\t\t\t\t\tif (exists) { // If it is a DELIB\n \t\t\t\t\t\t\tlibName = null; // Get the library name from fileURL\n \t\t\t\t\t\t\ttype = FileType.DELIB; // Set the type to DELIB\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t\tif (!exists) System.out.print(errmsg.toString());\n \t\t\t\t}\n \t\t\t}\n \t\t\tif (exists)\n \t\t\t{\n \t\t\t\t// get the library name\n \t\t\t\tif (libName == null) libName = TextUtils.getFileNameWithoutExtension(fileURL);\n \t\t\t\tlib = readALibrary(fileURL, null, libName, type, projectSettings);\n \t\t\t}\n \t\t\tif (LibraryFiles.VERBOSE)\n \t\t\t\tSystem.out.println(\"Done reading data for all libraries\");\n \n \t\t\tLibraryFiles.cleanupLibraryInput();\n \t\t\tif (LibraryFiles.VERBOSE)\n \t\t\t\tSystem.out.println(\"Done instantiating data for all libraries\");\n \t\t} finally {\n \t\t\tif (!quick) stopProgressDialog();\n \t\t\tCell.setAllowCircularLibraryDependences(false);\n \t\t}\n \t\tif (!formerQuiet) changesQuiet(formerQuiet);\n \t\tif (lib != null && !quick)\n \t\t{\n \t\t\tlong endTime = System.currentTimeMillis();\n \t\t\tfloat finalTime = (endTime - startTime) / 1000F;\n \t\t\tSystem.out.println(\"Library \" + fileURL.getFile() + \" read, took \" + finalTime + \" seconds\");\n \t\t}\n \n // if CVS is enabled, get status of library\n // if (CVS.isEnabled()) {\n // Update.updateOpenLibraries(Update.UpdateEnum.STATUS);\n // }\n \t\terrorLogger.termLogging(true);\n \n \t\treturn lib;\n \t}", "@Override\n public void init() {\n tol = new TeleOpLibrary();\n tol.init(this);\n telemetry.addLine(\"Initializing complete.\");\n telemetry.update();\n }", "abstract public PyCode getMain();", "private void loadInterpreter() throws IOException {\n tflite = new Interpreter(loadModelFile(activity));\n\n labelList = loadLabelList(activity);\n // the image as ByteBuffer\n imgData = ByteBuffer.allocateDirect((int)(4 *\n parameter.get(\"dimBatchSize\") *\n parameter.get(\"tensorImageWidth\") *\n parameter.get(\"tensorImageHeight\") *\n parameter.get(\"dimPixelSize\")));\n imgData.order(ByteOrder.nativeOrder());\n labelProbArray = new float[1][labelList.size()];\n filterLabelProbArray = new float[Math.round(parameter.get(\"filterStages\"))][labelList.size()];\n }", "public static void main()\n {\n Lex edp = new Lex();\n try\n {\n edp.run();\n } catch (Exception e)\n {\n System.out.println(\"Exception: \" + e.toString());\n e.printStackTrace();\n } // catch\n }", "@Test\n\tpublic void test_run() throws Exception {\n\t\tdeleteBasicItem(workspaceView, new GTTreePath(\"HelloApp\", \"test.HelloServlet\"), GTPreferences.TIMEOUT);\n\n\t\t/* New Servlet */\n\t\tworkspaceView.contextMenuNew(new GTTreePath(\"HelloApp\"), \"Servlet\").click();\n\t\tshell = new GTCadseShell(\"Servlet\");\n\t\tshell.findCadseFieldName().typeText(\"test.HelloServlet\");\n\t\tshell.findTextWithLabel(\"className\").typeText(\"HelloServlet\");\n\t\tshell.findTextWithLabel(\"packageName\").typeText(\"test\");\n\t\tshell.findTextWithLabel(\"relativeURL\").typeText(\"hello\");\n\t\tshell.capture(\"image072\");\n\t\tshell.close();\n\t}", "private CommandResult addLesson() throws KolinuxException {\n try {\n timetable.executeAdd(parsedArguments, false);\n } catch (ExceedWorkloadException exception) {\n new TimetablePromptHandler(exception.getMessage(), timetable).handleExceedWorkload(parsedArguments);\n }\n logger.log(Level.INFO, \"User added a module to timetable\");\n return new CommandResult(parsedArguments[0].toUpperCase() + \" \"\n +\n parsedArguments[1].toUpperCase() + \" has been added to timetable\");\n }", "public ConceptCodeManager()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tthis.initCoder();\r\n\t\t}\r\n\t\tcatch (final Exception ex)\r\n\t\t{\r\n\t\t\tConceptCodeManager.logger.error(\"Initialization of concept coding\" +\r\n\t\t\t\t\t\"process failed or error in main thread\" +\r\n\t\t\t\t\tex.getMessage(),ex);\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t}", "public static void getALibrary()\n \t{\n \t\tProject.pmActive = true;\n \n \t\t// find a list of files (libraries) in the repository\n \t\tString dirName = Project.getRepositoryLocation();\n \t\tFile dir = new File(dirName);\n \t\tFile [] filesInDir = dir.listFiles();\n \t\tif (filesInDir == null && dirName.length() == 0)\n \t\t{\n \t\t\tJob.getUserInterface().showInformationMessage(\"No repository location is set. Use the 'Project Management' Preferences to set it.\", \"Warning\");\n \t\t\treturn;\n \t\t}\n \n \t\t// choose one and read it in\n \t\tnew LibraryDialog(filesInDir);\n \t}", "public boolean compute() throws Exception{\n \n String cmdLine;\n String voicedir = db.getProp(db.ROOTDIR);\n \n /* Run: perl hts/scripts/Training.pl hts/scripts/Config.pm (It can take several hours...)*/ \n cmdLine = db.getExternal(db.PERLPATH) + \"/perl \" + voicedir +\"hts/scripts/Training.pl \" + voicedir + \"hts/scripts/Config.pm\"; \n launchProcWithLogFile(cmdLine, \"\", voicedir);\n \n return true;\n }", "@Converted(kind = Converted.Kind.AUTO,\n source = \"${LLVM_SRC}/llvm/tools/clang/lib/Driver/ToolChains.cpp\", line = 3423,\n old_source = \"${LLVM_SRC}/llvm/tools/clang/lib/Driver/ToolChains.cpp\", old_line = 3062,\n FQN=\"clang::driver::toolchains::FreeBSD::FreeBSD\", NM=\"_ZN5clang6driver10toolchains7FreeBSDC1ERKNS0_6DriverERKN4llvm6TripleERKNS6_3opt7ArgListE\",\n cmd=\"jclank.sh -java-options=${SPUTNIK}/modules/org.clang.driver/llvmToClangType ${LLVM_SRC}/llvm/tools/clang/lib/Driver/ToolChains.cpp -nm=_ZN5clang6driver10toolchains7FreeBSDC1ERKNS0_6DriverERKN4llvm6TripleERKNS6_3opt7ArgListE\")\n //</editor-fold>\n public FreeBSD(/*const*/ Driver /*&*/ D, /*const*/ Triple /*&*/ _Triple, \n /*const*/ ArgList /*&*/ Args) {\n /* : Generic_ELF(D, Triple, Args)*/ \n //START JInit\n super(D, _Triple, Args);\n //END JInit\n \n // When targeting 32-bit platforms, look for '/usr/lib32/crt1.o' and fall\n // back to '/usr/lib' if it doesn't exist.\n if ((_Triple.getArch() == Triple.ArchType.x86\n || _Triple.getArch() == Triple.ArchType.ppc)\n && D.getVFS().exists(new Twine($add_string$C_T(getDriver().SysRoot, /*KEEP_STR*/\"/usr/lib32/crt1.o\")))) {\n getFilePaths().push_back($add_string$C_T(getDriver().SysRoot, /*KEEP_STR*/\"/usr/lib32\"));\n } else {\n getFilePaths().push_back($add_string$C_T(getDriver().SysRoot, /*KEEP_STR*/\"/usr/lib\"));\n }\n }", "public void addFromJAR() {\n btAddFromJAR().push();\n }", "IFunctionLibrary getFunctionLibrary();", "native void nativeSetJavaTmpDir(String path);", "public void startTest() throws Throwable\n {\n ExcelFileUtil excel= new ExcelFileUtil();\n // iterate all row in masterTestCases sheet\n\n for(int i=1;i<=excel.rowCount(\"MasterTestCases\");i++)\n {\n String ModuleStatus=\"\";\n if(excel.getData(\"MasterTestCases\", i, 2).equalsIgnoreCase(\"Y\"))\n {\n //store module name to TCModule\n String TCModule =excel.getData(\"MasterTestCases\", i, 1);\n report=new ExtentReports(\"./Reports/\"+TCModule+Muvi_Functions.generateDate()+\".html\");\n //iterate all rows in TCModule\n for(int j=1;j<=excel.rowCount(TCModule);j++)\n {\n test=report.startTest(TCModule);\n //read al the columns from TCMocule\n String Description=excel.getData(TCModule, j, 0);\n String Object_Type=excel.getData(TCModule, j, 1);\n String Locator_Type=excel.getData(TCModule, j, 2);\n String Locator_Value=excel.getData(TCModule, j, 3);\n String Test_Data=excel.getData(TCModule, j, 4);\n //System.out.println(Description+\" \"+Object_Type);\n //calling the method from function library\n try{\n if(Object_Type.equalsIgnoreCase(\"startBrowser\"))\n {\n System.out.println(\"Executing startBroswer\");\n driver= Muvi_Functions.startBrowser(driver);\n System.out.println(\"Executing startBroswer\");\n }else if (Object_Type.equalsIgnoreCase(\"openApplication\"))\n {\n Muvi_Functions.openApplication(driver);\n test.log(LogStatus.INFO, Description);\n System.out.println(\"Executing openApplication\");\n }else if (Object_Type.equalsIgnoreCase(\"waitForElement\"))\n {\n Muvi_Functions.waitForElement(driver, Locator_Type, Locator_Value, Test_Data);\n test.log(LogStatus.INFO, Description);\n System.out.println(\"Executing waitForElement\");\n }else if (Object_Type.equalsIgnoreCase(\"typeAction\"))\n {\n Muvi_Functions.typeAction(driver, Locator_Type, Locator_Value, Test_Data);\n test.log(LogStatus.INFO, Description);\n System.out.println(\"Executing typeAction\");\n }else if (Object_Type.equalsIgnoreCase(\"clickAction\"))\n {\n Muvi_Functions.clickAction(driver, Locator_Type, Locator_Value);\n test.log(LogStatus.INFO, Description);\n System.out.println(\"Executing clickAction\");\n }else if (Object_Type.equalsIgnoreCase(\"selectAction\"))\n {\n Muvi_Functions.selectAction(driver, Locator_Type, Locator_Value);\n test.log(LogStatus.INFO, Description);\n System.out.println(\"Executing selectAction\");\n } else if (Object_Type.equalsIgnoreCase(\"selectStartDate\"))\n {\n Muvi_Functions.selectStartDate(driver, Locator_Type, Locator_Value);\n test.log(LogStatus.INFO, Description);\n System.out.println(\"Executing selectStartDate\");\n }\n else if (Object_Type.equalsIgnoreCase(\"switchWindow\"))\n {\n Muvi_Functions.switchWindow(driver);\n test.log(LogStatus.INFO, Description);\n System.out.println(\"Executing switchWindow\");\n }else if (Object_Type.equalsIgnoreCase(\"isElementVisible\"))\n {\n Muvi_Functions.isElementVisible(driver, Locator_Type, Locator_Value);\n test.log(LogStatus.INFO, Description);\n System.out.println(\"Executing isElementVisible\");\n }else if (Object_Type.equalsIgnoreCase(\"hoverOver\"))\n {\n Muvi_Functions.hoverOver(driver, Locator_Type, Locator_Value);\n test.log(LogStatus.INFO, Description);\n System.out.println(\"Executing hoverOver\");\n }else if (Object_Type.equalsIgnoreCase(\"uploadTopBanner\"))\n {\n Muvi_Functions.uploadTopBanner(driver);\n test.log(LogStatus.INFO, Description);\n System.out.println(\"Executing uploadTopBanner\");\n }\n else if (Object_Type.equalsIgnoreCase(\"uploadPoster\"))\n {\n Muvi_Functions.uploadPoster(driver);\n test.log(LogStatus.INFO, Description);\n System.out.println(\"Executing uploadPoster\");\n }\n else if (Object_Type.equalsIgnoreCase(\"profilePicture\"))\n {\n Muvi_Functions.profilePicture(driver);\n test.log(LogStatus.INFO, Description);\n System.out.println(\"Executing profilePicture\");\n }\n else if (Object_Type.equalsIgnoreCase(\"uploadVideo\"))\n {\n Muvi_Functions.uploadVideo(driver);\n test.log(LogStatus.INFO, Description);\n System.out.println(\"Executing uploadVideo\");\n }\n else if (Object_Type.equalsIgnoreCase(\"verifyUpload\"))\n {\n Muvi_Functions.verifyUpload(driver);\n test.log(LogStatus.INFO, Description);\n System.out.println(\"Executing verifyUpload\");\n }\n\n else if (Object_Type.equalsIgnoreCase(\"closeBrowser\"))\n {\n Muvi_Functions.closeBrowser(driver);\n test.log(LogStatus.INFO, Description);\n System.out.println(\"Executing closeBrowser\");\n }\n\n\n //write as pass into status column\n excel.setCellData(TCModule, j, 5, \"PASS\");\n test.log(LogStatus.PASS, Description);\n ScreenShot.Takescreen(driver,Description);\n ModuleStatus=\"TRUE\";\n\n }\n catch(Exception e)\n {\n excel.setCellData(TCModule, j, 5, \"FAIL\");\n ModuleStatus=\"FALSE\";\n if(ModuleStatus.equalsIgnoreCase(\"FALSE\"))\n {\n excel.setCellData(\"MasterTestCases\", i, 3, \"FAIL\");\n Thread.sleep(2000);\n test.log(LogStatus.FAIL, \"Test Fail\");\n ScreenShot.Takescreen(driver,Description);\n }\n System.out.println(e.getMessage());\n break;\n }\n if(ModuleStatus.equalsIgnoreCase(\"TRUE\"))\n {\n excel.setCellData(\"MasterTestCases\", i, 3, \"PASS\");\n }\n report.flush();//push reports to html\n report.endTest(test);\n }\n\n }\n else\n {\n //write as not executed in master testcases in status coulmn for flag N\n excel.setCellData(\"MasterTestCases\", i,3, \"Not Executed\");\n\n }\n }\n }", "private void setupDb(){\n try {\n openConnection();\n s.executeUpdate(\"CREATE TABLE IF NOT EXISTS LIB (NAME text UNIQUE , TYPE text, LANGUAGE text, INTRUSIVE text, OPENSOURCE text)\");\n }catch (SQLException e) {\n System.err.println(e.getMessage());\n }finally {\n if (c != null){\n close(c);\n }\n }\n }", "@Override\n public native boolean init(String blendFile, String configFile, String EtcPath);", "private static void compileAndRun(String fileName, String code) {\n\n if(verboseCompiling) println(\"Deleting old temp files...\", warning);\n new File(fileName + \".java\").delete();\n new File(fileName + \".class\").delete();\n\n if(verboseCompiling) println(\"Creating source file...\", progErr);\n file = new File(fileName + \".java\");\n\n if(verboseCompiling) println(\"Writing code to source file...\", progErr);\n try {\n new FileWriter(file).append(code).close();\n } catch (IOException i) {\n println(\"Had an IO Exception when trying to write the code. Stack trace:\", error);\n i.printStackTrace();\n return; //Exit on error\n }\n\n if(verboseCompiling) println(\"Compiling code...\", progErr);\n //This should only ever be called if the JDK isn't installed. How you'd get here, I don't know.\n if (compiler == null) {\n println(\"Fatal Error: JDK not installed. Go to java.sun.com and install.\", error);\n return;\n }\n\n //Tries to compile. Success code is 0, so if something goes wrong, report.\n int result = -1;\n if (compileOptions.trim().equals(\"\"))\n result = compiler.run(null, out, err, file.getAbsolutePath());\n else\n //result = compiler.run(null, out, err, compileOptions, file.getAbsolutePath());\n result = compiler.run(null, out, err, \"-cp\", \"/Users/student/Desktop/bluecove-2.1.0.jar\", file.getAbsolutePath());\n //ArrayList<String> files = new ArrayList<>();\n //files.add(fileName);\n //boolean result = compiler.getTask(null, null, new ErrorReporter(), null, files, null).call();\n if (result != 0) {\n displayLog();\n //println(\"end record\", error); //End recording and pull out the message\n\n //println(\"Error type: \" + result,error);\n println(\"Failed to compile.\", warning);\n return; //Return on error\n }\n\n if(verboseCompiling) println(\"Attempting to run code...\", progErr);\n try {\n //Makes sure the JVM resets if it's already running.\n if(JVMrunning) \n kill();\n\n //Clears terminal window on main method call.\n if(clearOnMethod)\n outputText.setText(\"\");\n\n //Some String constants for java path and OS-specific separators.\n String separator = System.getProperty(\"file.separator\");\n String path = System.getProperty(\"java.home\")\n + separator + \"bin\" + separator + \"java\";\n\n //Creates a new process that executes the source file.\n ProcessBuilder builder = null;\n if(runOptions.trim().equals(\"\")) \n builder = new ProcessBuilder(path, fileName);\n else \n builder = new ProcessBuilder(path, runOptions, fileName);\n\n //Everything should be good now. Everything past this is on you. Don't mess it up.\n println(\"Build succeeded on \" + java.util.Calendar.getInstance().getTime().toString(), progErr);\n println(\"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\", progErr); \n\n //Tries to run compiled code.\n JVM = builder.start();\n JVMrunning = true;\n\n //Links runtime out/err to our terminal window. No support for input yet.\n Reader errorReader = new InputStreamReader(JVM.getErrorStream());\n Reader outReader = new InputStreamReader(JVM.getInputStream());\n //Writer inReader = new OutputStreamWriter(JVM.getOutputStream());\n\n redirectErr = redirectIOStream(errorReader, err);\n redirectOut = redirectIOStream(outReader, out);\n //redirectIn = redirectIOStream(null, inReader);\n } catch (IOException e) {\n //JVM = builder.start() can throw this.\n println(\"IOException when running the JVM.\", progErr);\n e.printStackTrace();\n displayLog();\n return;\n }\n }", "@Test\n\tpublic void testClassAndFileLinks() throws Exception\n\t{\n\t\tFile file = new File(System.getProperty(\"user.dir\"));\n\t\twhile (! file.getName().equals(\"swac-testbed\")) {\n\t\t\tfile = file.getParentFile();\n\t\t\tif (file == null)\n\t\t\t\tAssert.fail(\"Could not find create scenario scripts. Started from \" + System.getProperty(\"user.dir\") + \" and went up\");\n\t\t}\n\t\t\n\t\t// Find swac-assembly dir\n\t\tFile swacParent = file.getParentFile();\n\t\tif (swacParent == null)\n\t\t\tAssert.fail(\"Could not find create scenario scripts, no dir above swac-controller\");\n\t\t\n\t\tFile swacAssembly = new File(swacParent, \"swac-assembly\");\n\t\tif (swacAssembly == null || ! swacAssembly.exists())\n\t\t\tAssert.fail(\"Could not find create scenario scripts, swac-assembly not parallel to swac-controller\");\n\t\t\n\t\t// Find windows and unix creat scenario scripts\n\t\tchar sep = File.separatorChar; \n\t\tFile swacAssemblyBin = new File(swacAssembly.getAbsolutePath() + sep + \"src\" + sep + \"main\" + sep + \"bin\");\n\t\tif (swacAssemblyBin == null || ! swacAssemblyBin.exists())\n\t\t\tAssert.fail(\"Could not find create scenario scripts in swac-assembly/src/main/bin\");\n\t\t\n\t\tFile windowsScript = new File(swacAssemblyBin, \"swac-create-scenario.bat\");\n\t\tif (! windowsScript.exists())\n\t\t\tAssert.fail(\"Could not find windows create scenario script in swac-assembly/src/main/bin/swac-create-scenario.bat\");\n\t\t\n\t\tFile unixScript = new File(swacAssemblyBin, \"new-swac-create-scenario.sh\");\n\t\tif (! unixScript.exists())\n\t\t\tAssert.fail(\"Could not find unix create scenario script in swac-assembly/src/main/bin/new-swac-create-scenario.sh\");\n\n\n\t\t// Read in windows create scenario script, parse out file and class lists.\n\t\tSet<String> winFilesSet = new LinkedHashSet<String>();\n\t\tparseWindowsScript(\"file_name_templates\", windowsScript, winFilesSet);\n\t\tSet<String> winClassSet = new LinkedHashSet<String>();\n\t\tparseWindowsScript(\"file_classes\", windowsScript, winClassSet);\n\t\tAssert.assertEquals(\"For windows create scenario script, num of files != num of classes, file \" + winFilesSet.size() + \", classes \" + winClassSet.size(),\n\t\t\t\t\t\t\twinFilesSet.size(), winClassSet.size());\n\t\tMap<String, String> winFileClassMap = new HashMap<String, String>();\n\t\tcombineToMap(winFilesSet, winClassSet, winFileClassMap);\n\t\t\n\t\t// Read in unix create scenario script, parse out file and class lists. \n\t\t// Adjust some values to align with windows style to allow apple to apples comparisons\n\t\tSet<String> unixFilesSet = new LinkedHashSet<String>();\n\t\tparseUnixScript(\"Files\", unixScript, unixFilesSet);\n\t\tunixFilesSet = adjustUnixFiles(unixFilesSet, new LinkedHashSet<String>());\n\t\tSet<String> unixClassSet = new LinkedHashSet<String>();\n\t\tparseUnixScript(\"Classes\", unixScript, unixClassSet);\n\t\tunixClassSet = adjustUnixClasses(unixClassSet, new LinkedHashSet<String>());\n\t\tAssert.assertEquals(\"For unix create scenario script, num of files != num of classes, file \" + unixFilesSet.size() + \", classes \" + unixClassSet.size(),\n\t\t\t\tunixFilesSet.size(), unixClassSet.size());\n\t\tMap<String, String> unixFileClassMap = new HashMap<String, String>();\n\t\tcombineToMap(unixFilesSet, unixClassSet, unixFileClassMap); \n\n\t\t// Test if the classes in windows and unix scripts match up\n\t\tif (! winClassSet.equals(unixClassSet)) {\n\t\t\tLinkedHashSet<String> uniqueWindowClasses = new LinkedHashSet<String>(winClassSet);\n\t\t\tuniqueWindowClasses.removeAll(unixClassSet);\n\t\t\t\n\t\t\tLinkedHashSet<String> uniqueUnixClasses = new LinkedHashSet<String>(unixClassSet);\n\t\t\tuniqueUnixClasses.removeAll(winClassSet);\n\t\t\t\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tsb.append(\"Create scenario script mismatch error between windows and unix. \");\n\t\t\tif(! uniqueWindowClasses.isEmpty()) \n\t\t\t\tsb.append(\"Unique windows class(es): \").append(uniqueWindowClasses).append(\". \");\n\t\t\tif(! uniqueUnixClasses.isEmpty()) \n\t\t\t\tsb.append(\"Unique unix class(es): \").append(uniqueUnixClasses).append(\". \");\n\t\t\t\n\t\t\tSystem.out.println(sb);\n\t\t\tAssert.fail(sb.toString());\n\t\t}\n\t\t\n\t\t// Test if the files in windows and unix scripts match up\n\t\tStringBuilder sb = null;\n\t\tfor (Entry<String, String> winEntry : winFileClassMap.entrySet()) {\n\t\t\tString winFile = winEntry.getValue();\n\t\t\tString unixFile = unixFileClassMap.get(winEntry.getKey());\n\t\t\tif (! winFile.equals(unixFile)) {\n\t\t\t\tif (sb == null) {\n\t\t\t\t\tsb = new StringBuilder();\n\t\t\t\t\tsb.append(\"Create scenario script mismatch error between windows and unix. \");\n\t\t\t\t}\n\t\t\t\tsb.append(\"Different files specified for class '\" + winEntry.getKey() + \"': windows: '\" + winFile + \"', unix: '\" + unixFile + \"'. \");\n\t\t\t}\n\t\t}\n\t\tif (sb != null) {\n\t\t\tSystem.out.println(sb);\n\t\t\tAssert.fail(sb.toString());\n\t\t}\n\t}", "public void exec(PyObject code) {\n }" ]
[ "0.54908127", "0.5051967", "0.49335635", "0.4851688", "0.477531", "0.47342584", "0.4702805", "0.469301", "0.46750516", "0.465493", "0.46302003", "0.4590276", "0.45521122", "0.4550132", "0.45280403", "0.4520412", "0.4516293", "0.45129067", "0.44865137", "0.44656768", "0.44472182", "0.44440967", "0.44330755", "0.4431251", "0.4415623", "0.4409843", "0.4385432", "0.4345279", "0.43312544", "0.4307386", "0.42942703", "0.42796925", "0.42623845", "0.42514473", "0.42276034", "0.4220234", "0.4196606", "0.41942564", "0.41909695", "0.418936", "0.4188578", "0.41722152", "0.415906", "0.4140496", "0.4139543", "0.4136658", "0.41342595", "0.41282615", "0.41254914", "0.41082725", "0.4106103", "0.4105227", "0.4093135", "0.40864155", "0.40818205", "0.40680662", "0.40642986", "0.40548158", "0.4052597", "0.40516552", "0.40504396", "0.4049928", "0.40431195", "0.40420362", "0.40404522", "0.4030746", "0.40299663", "0.40256646", "0.40161878", "0.4014649", "0.40111816", "0.40075523", "0.39937258", "0.3988125", "0.39750633", "0.39447576", "0.39335698", "0.3915911", "0.39144477", "0.3914029", "0.3913281", "0.39083746", "0.39042076", "0.389832", "0.38963458", "0.38960877", "0.38906002", "0.3888932", "0.3884644", "0.3879352", "0.3879111", "0.38687545", "0.386473", "0.3863209", "0.38556653", "0.38553357", "0.38521004", "0.38484642", "0.38465458", "0.3844271", "0.3843694" ]
0.0
-1